/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    h3 { font-size: var(--font-size-lg); }
    
    /* Hero section */
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section p {
        font-size: var(--font-size-base);
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: var(--font-size-base);
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card, .team-member, .review-card,
    .case-study-card, .process-step, .career-card, .info-card,
    .blog-card, .foundation-card, .tool-card, .methodology-card, .knowledge-card,
    .community-card, .acceleration-card, .cognitive-card, .metacognitive-card,
    .neuroplasticity-card, .optimization-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    /* Contact form */
    .contact-form {
        padding: var(--spacing-md);
    }
    
    /* Timeline mobile layout */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        width: calc(100% - 30px);
        margin-left: 30px !important;
        margin-bottom: var(--spacing-md);
    }
    
    .timeline-item::before {
        left: -22px !important;
        width: 15px;
        height: 15px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    /* Team members */
    .team-member img {
        width: 60px;
        height: 60px;
    }
    
    /* Service images */
    .service-card img, .case-study-card img, .blog-card img {
        height: 150px;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: var(--spacing-lg);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: var(--font-size-3xl);
    }
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Team layout */
    .team-member {
        margin-bottom: var(--spacing-md);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-3xl);
    }
    
    /* Timeline adjustments */
    .timeline-item {
        width: 48%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 52%;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Process steps responsive */
    .process-step {
        margin-bottom: var(--spacing-md);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop layout - most styles from main.css apply */
    .hero-section h1 {
        font-size: var(--font-size-4xl);
    }
    
    /* Team members in a row */
    .team-member {
        margin-bottom: var(--spacing-sm);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced spacing for large screens */
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    /* Larger cards on big screens */
    .feature-card, .service-card, .price-card, .case-study-card,
    .career-card, .info-card, .blog-card {
        padding: var(--spacing-xl);
    }
}

/* Swiper Responsive Behavior */
@media (max-width: 767.98px) {
    .swiper {
        padding: var(--spacing-sm) 0;
    }
    
    .swiper-slide {
        padding: 0 var(--spacing-xs);
    }
    
    /* Disable autoplay and effects on mobile as per requirements */
    .swiper[data-swiper-autoplay] {
        --swiper-autoplay-delay: 0;
    }
}

/* Navbar Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        margin-top: var(--spacing-sm);
        padding: var(--spacing-sm);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-sm) !important;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Form Responsive */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: var(--spacing-sm);
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Button Responsive */
@media (max-width: 575.98px) {
    .btn {
        width: 100%;
        padding: var(--spacing-md);
        font-size: var(--font-size-base);
    }
}

/* Price Cards Responsive */
@media (max-width: 991.98px) {
    .price-card.featured {
        transform: none;
        margin-bottom: var(--spacing-lg);
    }
}

/* Services Grid Responsive */
@media (max-width: 767.98px) {
    .service-card, .case-study-card, .blog-card {
        margin-bottom: var(--spacing-lg);
    }
}

/* FAQ Responsive */
@media (max-width: 767.98px) {
    .accordion-button {
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm);
    }
    
    .accordion-body {
    overflow-x: hidden;
        padding: var(--spacing-sm);
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: var(--spacing-xl);
    }
    
    footer ul {
        list-style: none;
        padding: 0;
    }
    
    footer li {
        margin-bottom: var(--spacing-xs);
    }
}

/* Contact Info Responsive */
@media (max-width: 767.98px) {
    .contact-info-section .col-lg-4 {
        margin-bottom: var(--spacing-lg);
    }
    
    .contact-info-section i {
        font-size: var(--font-size-xl);
    }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
    #gallery .col-6 {
        padding: var(--spacing-xs);
    }
    
    #gallery img {
        border-radius: 4px;
    }
}

/* Additional Page Sections Responsive */
@media (max-width: 767.98px) {
    .foundation-card, .tool-card, .methodology-card, .knowledge-card,
    .community-card, .acceleration-card, .cognitive-card, .metacognitive-card,
    .neuroplasticity-card, .optimization-card {
        margin-bottom: var(--spacing-md);
    }
}

/* Breadcrumb Responsive */
@media (max-width: 575.98px) {
    .breadcrumb {
        padding: var(--spacing-xs) 0;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Space Page Responsive */
@media (max-width: 767.98px) {
    #space {
        padding-top: 100px;
        min-height: calc(100vh - 100px);
    }
    
    #space h1 {
        font-size: var(--font-size-2xl);
    }
}

/* Utility Classes for Responsive */
@media (max-width: 767.98px) {
    .d-md-none {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center;
    }
    
    .mb-mobile-lg {
        margin-bottom: var(--spacing-lg);
    }
}

/* Print Styles */
@media print {
    .navbar, .btn, .swiper-pagination, footer {
        display: none !important;
    }
    
    body {
    overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .hero-section {
        background: none !important;
        color: #000;
    }
    
    .card, .feature-card, .service-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
} 