/*
 * responsive.css - Mobile-First Responsive Design
 * 중흥동 영어학원 (eng.hzibs.com)
 *
 * Design Philosophy:
 * - Native app-like mobile experience
 * - Crystal clear readability at all sizes
 * - Smooth, natural transitions
 * - Touch-optimized interactions
 */

/* ========================================
   MOBILE BASE (< 640px)
   ======================================== */

/* Container adjustments */
@media (max-width: 639px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* Header Mobile */
    .header {
        height: var(--header-height-mobile);
    }

    .header-container {
        padding: 0 var(--space-4);
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo-main {
        font-size: var(--text-base);
    }

    .logo-sub {
        font-size: 0.625rem;
    }

    .header-actions .btn-primary {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    /* Main Content */
    .main-content {
        padding-top: var(--header-height-mobile);
    }

    /* Sections */
    .section {
        padding: var(--space-10) 0;
    }

    .section-lg {
        padding: var(--space-12) 0;
    }

    .section-header {
        margin-bottom: var(--space-8);
    }

    .section-label {
        padding: var(--space-1) var(--space-3);
        font-size: 0.625rem;
        margin-bottom: var(--space-3);
    }

    .section-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-3);
    }

    .section-subtitle {
        font-size: var(--text-base);
        padding: 0 var(--space-2);
    }

    /* Grid - Single Column */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6 {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .card {
        padding: var(--space-5);
        border-radius: var(--radius-lg);
    }

    /* Buttons */
    .btn {
        min-height: 48px;
        padding: var(--space-3) var(--space-5);
    }

    .btn-lg {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-sm);
    }

    .btn-sm {
        min-height: 40px;
    }

    /* Forms */
    .form-input,
    .form-textarea,
    .form-select {
        min-height: 52px;
        padding: var(--space-4);
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Footer */
    .footer {
        padding-top: var(--space-10);
        padding-bottom: var(--space-6);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-section {
        text-align: center;
    }

    .footer-info {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-3);
    }

    .footer-links li {
        margin: 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Scroll to Top */
    .scroll-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 48px;
        height: 48px;
    }

    /* Toast */
    .toast-container {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
        top: auto;
        max-width: none;
        width: auto;
    }

    .toast {
        padding: var(--space-4);
    }

    /* Modal */
    .modal {
        padding: var(--space-4);
    }

    .modal-content {
        border-radius: var(--radius-xl);
        max-height: 85vh;
    }

    .modal-body {
        padding: var(--space-6);
    }

    .modal-close {
        top: var(--space-3);
        right: var(--space-3);
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    /* Avatar */
    .avatar-xl {
        width: 72px;
        height: 72px;
        font-size: var(--text-2xl);
    }
}

/* ========================================
   MOBILE NAVIGATION - APP-LIKE
   ======================================== */
@media (max-width: 1023px) {
    .nav-mobile {
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(12, 1, 23, 0.98);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: calc(var(--z-fixed) - 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .nav-mobile.active {
        transform: translateX(0);
    }

    .nav-mobile-inner {
        padding: var(--space-6) var(--space-5);
        padding-bottom: calc(var(--space-20) + env(safe-area-inset-bottom));
    }

    .nav-menu-mobile {
        list-style: none;
    }

    .nav-menu-mobile > li {
        border-bottom: 1px solid var(--border-subtle);
        position: relative;
    }

    .nav-menu-mobile > li:last-child {
        border-bottom: none;
    }

    .nav-menu-mobile > li > a {
        display: flex;
        align-items: center;
        padding: var(--space-5) var(--space-2);
        font-size: var(--text-lg);
        font-weight: var(--weight-medium);
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.15s ease;
        min-height: 56px;
    }

    .nav-menu-mobile > li > a:active {
        color: var(--accent-purple);
        background: rgba(168, 85, 247, 0.08);
        border-radius: var(--radius-md);
    }

    .submenu-toggle {
        position: absolute;
        right: 0;
        top: 0;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 1.5rem;
        cursor: pointer;
        transition: transform 0.2s ease, color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .submenu-toggle.active {
        transform: rotate(45deg);
        color: var(--accent-purple);
    }

    .submenu {
        list-style: none;
        padding: 0 0 var(--space-4) var(--space-4);
        margin: 0;
        display: none;
        animation: slideDown 0.25s ease;
    }

    .submenu.active {
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .submenu li {
        margin: 0;
    }

    .submenu a {
        display: flex;
        align-items: center;
        padding: var(--space-4) var(--space-3);
        font-size: var(--text-base);
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.15s ease;
        min-height: 48px;
        border-radius: var(--radius-md);
    }

    .submenu a:active {
        color: var(--accent-purple);
        background: rgba(168, 85, 247, 0.08);
    }

    .nav-mobile-cta {
        margin-top: var(--space-8);
        padding-top: var(--space-6);
        border-top: 1px solid var(--border-subtle);
    }

    .nav-mobile-cta .btn {
        font-size: var(--text-base);
        padding: var(--space-4) var(--space-6);
        min-height: 56px;
    }

    /* Body lock when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* ========================================
   SMALL TABLETS (640px - 767px)
   ======================================== */
@media (min-width: 640px) and (max-width: 767px) {
    html {
        font-size: 15.5px;
    }

    .container {
        padding: 0 var(--space-6);
    }

    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: var(--space-12) 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   TABLETS (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 16px;
    }

    .container {
        padding: 0 var(--space-8);
    }

    .header-container {
        padding: 0 var(--space-8);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

    .footer-section {
        text-align: left;
    }

    .footer-info {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-logo {
        justify-content: flex-start;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

/* ========================================
   DESKTOP (1024px - 1279px)
   ======================================== */
@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }

    /* Hide mobile menu */
    .mobile-menu-toggle {
        display: none;
    }

    .nav-mobile {
        display: none;
    }

    /* Show desktop navigation */
    .nav-desktop {
        display: flex;
    }

    .header-phone {
        display: inline-flex;
    }

    /* Grid layouts */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .footer-section {
        text-align: left;
        margin-bottom: 0;
    }

    .footer-info {
        max-width: 280px;
    }

    .footer-logo {
        justify-content: flex-start;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   LARGE DESKTOP (1280px+)
   ======================================== */
@media (min-width: 1280px) {
    html {
        font-size: 17px;
    }

    .container {
        max-width: var(--container-xl);
    }

    .section {
        padding: var(--space-20) 0;
    }

    .section-lg {
        padding: var(--space-24) 0;
    }

    .footer-grid {
        gap: var(--space-12);
    }

    .footer-info {
        max-width: 320px;
    }
}

/* ========================================
   EXTRA LARGE (1536px+)
   ======================================== */
@media (min-width: 1536px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: var(--container-2xl);
    }

    .header-container {
        max-width: 1600px;
    }
}

/* ========================================
   HERO SLIDER RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .hero-slider {
        height: 70vh;
        min-height: 480px;
        max-height: 700px;
    }

    .slide-content {
        padding: var(--space-5);
    }

    .slide-content h2 {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-4);
        line-height: 1.2;
    }

    .slide-content p {
        font-size: var(--text-base);
        margin-bottom: var(--space-5);
        line-height: 1.6;
    }

    .slide-cta {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .slide-cta .btn {
        width: 100%;
    }

    .slider-nav {
        bottom: var(--space-5);
    }

    .slider-dots {
        gap: var(--space-2);
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-arrows {
        display: none;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .hero-slider {
        height: 75vh;
        min-height: 520px;
    }

    .slide-content h2 {
        font-size: var(--text-4xl);
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 85vh;
        min-height: 600px;
    }

    .slide-content {
        max-width: 900px;
        padding: var(--space-8);
    }

    .slide-content h2 {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1280px) {
    .hero-slider {
        height: 90vh;
    }
}

/* ========================================
   STATS SECTION RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .stat-item {
        padding: var(--space-4);
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: var(--space-2);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .stat-label {
        font-size: var(--text-xs);
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   SERVICES GRID RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .service-card {
        padding: var(--space-5);
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: var(--space-4);
    }

    .service-card h3 {
        font-size: var(--text-xl);
    }

    .service-features {
        margin: var(--space-4) 0;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   FEATURES GRID RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-4) !important;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-5);
        gap: var(--space-4);
    }

    .feature-item .feature-icon {
        font-size: 2.25rem;
    }

    .feature-content h3 {
        font-size: var(--text-lg);
    }

    .feature-content p {
        font-size: var(--text-sm);
    }
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item {
        text-align: left;
    }
}

/* ========================================
   TESTIMONIALS RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .testimonial-card {
        padding: var(--space-5);
    }

    .testimonial-rating {
        font-size: var(--text-sm);
    }

    .testimonial-text {
        font-size: var(--text-base);
    }

    .testimonial-author {
        gap: var(--space-3);
    }

    .author-avatar {
        width: 42px;
        height: 42px;
        font-size: var(--text-base);
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   LOCATION SECTION RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .location-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-8) !important;
    }

    .location-content {
        order: 1;
    }

    .location-map {
        order: 2;
    }

    .location-map iframe {
        min-height: 280px;
    }

    .location-info-list {
        gap: var(--space-3);
    }

    .info-item {
        font-size: var(--text-sm);
    }
}

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ========================================
   CTA SECTION RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .cta-section {
        padding: var(--space-12) 0;
    }

    .cta-content .section-title {
        font-size: var(--text-2xl);
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   LEVEL TEST RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .level-test-container {
        padding: var(--space-5);
        border-radius: var(--radius-lg);
    }

    .level-test-header h2 {
        font-size: var(--text-xl);
    }

    .test-progress {
        padding: var(--space-4);
    }

    .test-question h3 {
        font-size: var(--text-base);
    }

    .test-options {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .test-option {
        padding: var(--space-4);
        font-size: var(--text-sm);
        min-height: 52px;
    }

    .test-result {
        padding: var(--space-6);
    }

    .result-score {
        font-size: 3.5rem;
    }
}

/* ========================================
   TEAM GRID RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .team-card {
        padding: var(--space-5);
    }

    .team-avatar {
        width: 80px;
        height: 80px;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   FAQ RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .faq-item {
        padding: var(--space-4);
        margin-bottom: var(--space-3);
    }

    .faq-question {
        font-size: var(--text-base);
        padding-right: var(--space-10);
    }

    .faq-answer {
        font-size: var(--text-sm);
        padding-top: var(--space-4);
    }
}

/* ========================================
   CONTACT FORM RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-8);
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   BLOG RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-card-content {
        padding: var(--space-4);
    }

    .blog-card-title {
        font-size: var(--text-lg);
    }

    .blog-card-excerpt {
        font-size: var(--text-sm);
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   PRICING RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .pricing-card {
        padding: var(--space-6);
    }

    .pricing-card.featured {
        transform: none;
        margin: var(--space-4) 0;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: scale(1.02);
    }
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-card.featured {
        transform: scale(1.05);
    }
}

/* ========================================
   TIMELINE RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .timeline::before {
        left: var(--space-5);
    }

    .timeline-item {
        padding-left: var(--space-12);
        margin-bottom: var(--space-6);
    }

    .timeline-marker {
        left: var(--space-3);
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: var(--space-4);
    }

    .timeline-date {
        font-size: var(--text-xs);
    }

    .timeline-title {
        font-size: var(--text-base);
    }
}

/* ========================================
   COMPARISON TABLE RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table table {
        min-width: 600px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-3);
        font-size: var(--text-sm);
    }
}

/* ========================================
   STATS SECTION RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 639px) {
    .stats-section {
        padding: var(--space-10) 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .stat-item {
        padding: var(--space-6);
        display: flex;
        align-items: center;
        gap: var(--space-4);
        text-align: left;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 0;
    }
}

/* ========================================
   SERVICE CARDS RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 639px) {
    .services-overview {
        padding: var(--space-12) 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .service-card {
        padding: var(--space-6);
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: var(--text-lg);
    }
}

/* ========================================
   FEATURE ITEMS RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

@media (max-width: 639px) {
    .why-choose-us {
        padding: var(--space-12) 0;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }

    .feature-icon {
        font-size: 2.5rem;
    }
}

/* ========================================
   TESTIMONIALS RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 639px) {
    .testimonials-section {
        padding: var(--space-12) 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .testimonial-card {
        padding: var(--space-6);
    }
}

/* ========================================
   LEVEL TEST SECTION RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .level-test-section {
        padding: var(--space-12) 0;
    }
}

/* ========================================
   SHUTTLE ROUTE RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .shuttle-route-item {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
        padding: var(--space-4);
    }

    .route-time {
        font-size: var(--text-lg);
        margin-bottom: var(--space-2);
    }

    .route-stops {
        font-size: var(--text-sm);
    }
}

/* ========================================
   CURRICULUM RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .curriculum-level {
        padding: var(--space-5);
    }

    .curriculum-level h4 {
        font-size: var(--text-lg);
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch */
    .btn:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-link:hover {
        background: none;
    }

    /* Ensure touch targets are large enough */
    .btn {
        min-height: 48px;
    }

    .nav-menu-mobile > li > a {
        min-height: 56px;
    }

    .submenu a {
        min-height: 48px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        min-height: 52px;
    }

    /* Active states instead of hover */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .card:active {
        transform: scale(0.99);
    }

    /* Faster transitions for responsiveness */
    * {
        transition-duration: 0.15s !important;
    }

    /* Disable sticky hover states */
    .btn-primary:hover {
        box-shadow: var(--shadow-glow-sm);
    }
}

/* ========================================
   PAGE HEADER RESPONSIVE
   ======================================== */
@media (max-width: 639px) {
    .page-header {
        padding: var(--space-12) 0 var(--space-10);
    }

    .page-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-subtitle {
        font-size: var(--text-base);
    }
}

/* ========================================
   CONTACT PAGE RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 639px) {
    .contact-section {
        padding: var(--space-10) 0 var(--space-12);
    }

    .contact-form-container .card {
        padding: var(--space-5);
    }

    .contact-info-item {
        padding: var(--space-4);
    }
}

/* ========================================
   TEAM PAGE RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 639px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .team-card {
        padding: var(--space-6);
    }

    .team-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* ========================================
   ABOUT PAGE RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about-image {
        order: -1;
    }
}

/* ========================================
   REVIEWS PAGE RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .reviews-score {
        font-size: 3rem;
    }
}

/* ========================================
   SAFE AREA SUPPORT (iPhone X+)
   ======================================== */
@supports (padding: max(0px)) {
    .nav-mobile-inner {
        padding-bottom: max(var(--space-16), calc(var(--space-16) + env(safe-area-inset-bottom)));
    }

    .footer {
        padding-bottom: max(var(--space-8), calc(var(--space-8) + env(safe-area-inset-bottom)));
    }

    .scroll-to-top {
        bottom: max(var(--space-6), calc(var(--space-6) + env(safe-area-inset-bottom)));
    }

    .toast-container {
        bottom: max(var(--space-4), calc(var(--space-4) + env(safe-area-inset-bottom)));
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        min-height: auto;
    }

    .slide-content {
        padding: var(--space-4);
    }

    .slide-content h2 {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-3);
    }

    .slide-content p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-4);
    }

    .slide-cta {
        flex-direction: row;
        gap: var(--space-3);
    }

    .slider-nav {
        bottom: var(--space-3);
    }

    .level-test-container {
        padding: var(--space-4);
    }

    .modal-content {
        max-height: 95vh;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .footer,
    .scroll-to-top,
    .toast-container,
    .modal,
    .nav-mobile,
    #antigravity-container,
    #particle-canvas,
    #plasma-clouds {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }

    .main-content {
        padding-top: 0 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        text-shadow: none !important;
    }

    p {
        color: #333 !important;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }

    .card {
        border: 1px solid #ddd !important;
        background: white !important;
        box-shadow: none !important;
    }

    .btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-slider .slide {
        transition: none !important;
    }

    .nav-mobile {
        transition: none !important;
    }

    .btn:hover,
    .card:hover {
        transform: none !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }

    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --text-tertiary: #f0f0f0;
        --border-default: rgba(255, 255, 255, 0.5);
        --border-strong: rgba(255, 255, 255, 0.7);
    }

    .btn-primary {
        border: 2px solid white;
    }

    .btn-secondary {
        border: 2px solid white;
    }

    .card {
        border-width: 2px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        border-width: 2px;
    }

    a {
        text-decoration: underline;
    }
}

/* ========================================
   DARK MODE (Site is already dark)
   ======================================== */
@media (prefers-color-scheme: light) {
    /* Site uses dark theme by design - no changes needed */
}
