/* ========================================
   Resume Coaching Template - Responsive CSS
   ======================================== */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.87rem; }
    h3 { font-size: 1.51rem; }
    h4 { font-size: 1.32rem; }
    
    /* Hero section mobile */
    .hero-section h1 {
        font-size: 2.52rem;
        line-height: 1.2;
    }
    
    .hero-section h2 {
        font-size: 1.29rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.30rem;
    }
    
    /* Card padding adjustment */
    .feature-card, .service-card, .strategy-card, .linkedin-card, 
    .negotiation-card, .executive-card, .digital-card, .global-card, 
    .future-card, .price-card, .review-card, .case-study-card, 
    .career-card, .info-card, .blog-card {
        padding: 1.5rem 1rem;
    }
    
    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item::before {
        left: -35px !important;
    }
    
    /* Process steps mobile */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.40rem;
    }
    
    /* Team member adjustments */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Price card mobile */
    .price-card.featured {
        transform: none;
        margin-top: 2rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.84rem;
    }
    
    .timeline-item {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: -25px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero adjustments for tablets */
    .hero-section h1 {
        font-size: 3rem;
    }
    
    /* Timeline adjustments for tablets */
    .timeline-item {
        width: 47%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 53%;
    }
    
    /* Service cards tablet layout */
    .service-card img {
        height: 180px;
    }
    
    /* Team grid adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop adjustments */
    .hero-section h1 {
        font-size: 3.28rem;
    }
    
    /* Service cards desktop */
    .service-card img {
        height: 220px;
    }
    
    /* Timeline desktop */
    .timeline-item {
        width: 45%;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Large desktop optimizations */
    .hero-section h1 {
        font-size: 3.62rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Service cards large desktop */
    .service-card img {
        height: 240px;
    }
}

/* Height-based media queries for better UX */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-section h1 {
        font-size: 2.62rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.31rem;
        margin-bottom: 0.72rem;
    }
    
    .hero-section p {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .breadcrumb-nav,
    .btn,
    footer,
    .contact-form {
        display: none !important;
    }
    
    /* Ensure proper printing */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .hero-section,
    .hero-section * {
        background: white !important;
        color: black !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    /* Adjust spacing for print */
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #00168d;
        --color-secondary: #75007f;
        --color-accent: #ec5500;
        --color-success: #780200;
        --color-info: #565555;
        
        --box-shadow: 0 8px 6px rgba(0, 0, 0, 0.3);
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .card, .feature-card, .service-card {
        border: 1px solid #000;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Note: Currently not implementing dark mode as per requirements */
    /* This is a placeholder for future enhancement */
}

/* Focus improvements for accessibility */
@media (any-hover: hover) {
    .btn:hover,
    .nav-link:hover,
    .card:hover {
        outline: 2px solid transparent;
        outline-offset: 2px;
    }
}

/* Touch device optimizations */
@media (any-pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.75rem;
    }
    
    /* Hover effects disabled on touch */
    .feature-card:hover,
    .service-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* Reduced data usage for slow connections */
@media (prefers-reduced-data: reduce) {
    /* Disable background images */
    .hero-section::before {
        display: none;
    }
    
    /* Reduce image quality hints */
    img {
        image-rendering: auto;
    }
}

/* Specific component responsive adjustments */

/* Gallery responsive */
@media (max-width: 767.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* FAQ responsive */
@media (max-width: 767.98px) {
    .accordion-button {
        font-size: 1.02rem;
        padding: 0.75rem 1rem;
    }
}

/* Blog grid responsive */
@media (max-width: 991.98px) {
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Services grid responsive */
@media (max-width: 991.98px) {
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Team section responsive */
@media (max-width: 991.98px) {
    .team-member {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Process section responsive */
@media (max-width: 991.98px) {
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step::after {
        display: none;
    }
}

/* Reviews section responsive */
@media (max-width: 991.98px) {
    .review-card {
        margin-bottom: 1.63rem;
    }
}

/* Form responsive improvements */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Navigation responsive improvements */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-item {
        margin-bottom: 0.72rem;
    }
}

/* Footer responsive */
@media (max-width: 767.98px) {
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    footer ul li {
        flex: 0 0 auto;
    }
} 