/* Mobile Styles for Quantum Classes */

/* Mobile-specific CSS Variables */
:root {
    --mobile-padding: 1rem;
    --mobile-font-size-sm: 0.875rem;
    --mobile-font-size-base: 1rem;
    --mobile-font-size-lg: 1.125rem;
    --mobile-font-size-xl: 1.25rem;
    --mobile-font-size-2xl: 1.5rem;
    --mobile-font-size-3xl: 1.875rem;
    --primary-red: #dc2626;
    --primary-yellow: #fbbf24;
    --dark-red: #991b1b;
    --animation-duration: 0.3s;
    --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-mobile: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-mobile-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Enhanced Mobile Base Styles */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    body {
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Container improvements */
    .container {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
        max-width: 100%;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    nav {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(220, 38, 38, 0.1);
    }
    
    .mobile-menu-button {
        position: relative;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all var(--animation-duration) var(--animation-easing);
    }
    
    .mobile-menu-button:active {
        transform: scale(0.95);
        background: rgba(220, 38, 38, 0.1);
    }
    
    .mobile-menu-button i {
        transition: transform var(--animation-duration) var(--animation-easing);
    }
    
    .mobile-menu-button.active i {
        transform: rotate(90deg);
    }
    
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 0 0 16px 16px;
        box-shadow: var(--shadow-mobile-lg);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--animation-duration) var(--animation-easing);
        z-index: 1000;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-dark);
        text-decoration: none;
        border-bottom: 1px solid rgba(229, 231, 235, 0.5);
        transition: all var(--animation-duration) var(--animation-easing);
        position: relative;
        overflow: hidden;
    }
    
    .mobile-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
        transition: left 0.5s var(--animation-easing);
    }
    
    .mobile-menu a:hover::before {
        left: 100%;
    }
    
    .mobile-menu a:hover {
        background: rgba(220, 38, 38, 0.05);
        color: var(--primary-red);
        padding-left: 2rem;
    }
    
    .mobile-menu a:last-child {
        border-bottom: none;
    }
}

/* Enhanced Mobile Hero Section - About Quantum Classes */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
        background: white;
        position: relative;
        overflow: hidden;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
        z-index: 1;
    }
    
    .hero-section .max-w-7xl {
        position: relative;
        z-index: 2;
        padding: 0 var(--mobile-padding);
    }
    
    /* Mobile Hero Logo */
    .hero-logo {
        margin-bottom: 2rem;
        animation: fadeInScale 0.8s ease-out;
    }
    
    .hero-logo .flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-logo .w-20 {
        width: 4rem;
        height: 4rem;
        margin-right: 0;
        margin-bottom: 1rem;
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
        transition: transform 0.3s ease;
    }
    
    .hero-logo .w-20:active {
        transform: scale(0.95);
    }
    
    .hero-logo h1 {
        font-size: 2rem;
        font-weight: 900;
        line-height: 1.1;
        margin-bottom: 0.5rem;
        color: var(--text-dark);
    }
    
    .hero-logo p {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary-yellow);
    }
    
    /* Mobile Hero Title */
    .hero-title {
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        animation: slideInUp 0.8s ease-out 0.2s both;
        color: var(--text-dark);
    }
    
    /* Mobile Hero Description */
    .hero-description {
        margin-bottom: 2rem;
        animation: slideInUp 0.8s ease-out 0.4s both;
    }
    
    .hero-description p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        color: var(--text-light);
    }
    
    .hero-description p:first-child {
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-dark);
    }
    
    /* Mobile Feature Cards */
    .hero-features {
        margin: 2rem 0;
        animation: slideInUp 0.8s ease-out 0.6s both;
    }
    
    .hero-features .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 1.25rem;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .feature-card:active {
        transform: scale(0.98);
        background: #f3f4f6;
    }
    
    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.05), transparent);
        transition: left 0.5s ease;
    }
    
    .feature-card:active::before {
        left: 100%;
    }
    
    .feature-icon {
        margin-bottom: 0.75rem;
        transition: transform 0.3s ease;
    }
    
    .feature-icon i {
        font-size: 2.5rem;
        color: var(--primary-yellow);
    }
    
    .feature-card h3 {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
        color: var(--text-light);
        line-height: 1.4;
        margin: 0;
    }
    
    /* Mobile Call to Action */
    .hero-cta {
        margin: 2rem 0;
        animation: slideInUp 0.8s ease-out 0.8s both;
    }
    
    .hero-cta .flex {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 25px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, var(--primary-yellow) 0%, #f59e0b 100%);
        color: var(--text-dark);
        border: none;
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
    }
    
    .btn-primary:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, #f59e0b 0%, var(--primary-yellow) 100%);
    }
    
    .btn-secondary {
        background: transparent;
        color: var(--primary-red);
        border: 2px solid var(--primary-red);
    }
    
    .btn-secondary:active {
        transform: scale(0.98);
        background: var(--primary-red);
        color: white;
    }
    
    /* Mobile Trust Indicators */
    .hero-trust {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid #e5e7eb;
        animation: slideInUp 0.8s ease-out 1s both;
    }
    
    .hero-trust p {
        font-size: 0.8rem;
        color: var(--text-light);
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-trust .flex {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .trust-item {
        display: flex;
        align-items: center;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        background: rgba(251, 191, 36, 0.05);
        transition: all 0.3s ease;
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .trust-item:active {
        transform: scale(0.98);
        background: rgba(251, 191, 36, 0.1);
    }
    
    .trust-item i {
        font-size: 1.25rem;
        color: var(--primary-yellow);
        margin-right: 0.5rem;
        transition: transform 0.3s ease;
    }
    
    .trust-item:active i {
        transform: scale(1.1);
    }
    
    .trust-item span {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--text-dark);
    }
    
    /* Mobile Animations */
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.8);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Touch-friendly interactions */
    .feature-card,
    .btn-primary,
    .btn-secondary,
    .trust-item {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Mobile Performance Optimizations */
    .hero-section,
    .feature-card,
    .btn-primary,
    .btn-secondary {
        will-change: transform;
    }
    
    .hero-section {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Mobile-specific adjustments for smaller screens */
@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-logo h1 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description p {
        font-size: 0.9rem;
    }
    
    .hero-description p:first-child {
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        max-width: 250px;
    }
    
    /* Course button adjustments for smaller mobile screens */
    .course-button {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        min-height: 52px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin: 1rem auto 0 auto;
    }
    
    /* Course card adjustments for smaller mobile screens */
    .course-card {
        min-height: 360px;
    }
    
    .trust-item {
        padding: 0.4rem 0.75rem;
        max-width: 180px;
    }
    
    .trust-item i {
        font-size: 1rem;
    }
    
    .trust-item span {
        font-size: 0.7rem;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 0;
        min-height: auto;
    }
    
    .hero-logo {
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        margin: 1.5rem 0;
    }
    
    .hero-cta {
        margin: 1.5rem 0;
    }
    
    .hero-trust {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    /* Course card adjustments for landscape mobile */
    .course-card {
        min-height: 340px;
    }
}

/* Mobile Toppers Page Styles */
@media (max-width: 768px) {
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin: 0.25rem;
    }
    
    .topper-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .topper-card:hover {
        transform: translateY(-4px);
    }
    
    .topper-card .w-24 {
        width: 5rem;
    }
    
    .topper-card .h-24 {
        height: 5rem;
    }
    
    .topper-card .text-xl {
        font-size: 1.125rem;
    }
    
    .topper-card .text-sm {
        font-size: 0.75rem;
    }
    
    .topper-card .bg-red-50,
    .topper-card .bg-green-50,
    .topper-card .bg-blue-50,
    .topper-card .bg-yellow-50 {
        padding: 0.75rem;
    }
}

/* Mobile Director's Message Styles */
@media (max-width: 768px) {
    .director-message {
        margin-bottom: 2rem;
        animation: slideInUp 0.8s ease-out;
    }
    
    .director-photo {
        animation: slideInUp 0.8s ease-out 0.2s both;
    }
    
    .director-quote blockquote {
        font-size: 1rem;
        padding-left: 1.5rem;
        line-height: 1.6;
    }
    
    .director-quote blockquote::before {
        font-size: 3rem;
        top: -0.3rem;
    }
    
    .director-signature {
        padding-left: 1rem;
        margin-top: 1.5rem;
    }
    
    .director-photo .w-64 {
        width: 14rem;
    }
    
    .director-photo .h-80 {
        height: 18rem;
    }
    
    .director-photo .w-32 {
        width: 8rem;
    }
    
    .director-photo .h-32 {
        height: 8rem;
    }
    
    .director-photo .text-2xl {
        font-size: 1.5rem;
    }
    
    .director-photo .text-sm {
        font-size: 0.8rem;
    }
}

/* Mobile Image Slider Styles */
@media (max-width: 768px) {
    .image-slider-section {
        height: 50vh;
        min-height: 300px;
        max-height: 500px;
        position: relative;
        overflow: hidden;
    }
    
    .slider-container {
        height: 100%;
        position: relative;
    }
    
    .slider-wrapper {
        height: 100%;
        position: relative;
        overflow: hidden;
    }
    
    .slider-track {
        height: 100%;
        display: flex;
        width: 500%;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .slide {
        width: 20%;
        height: 100%;
        position: relative;
        flex-shrink: 0;
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
    }
    
    .slide.active {
        opacity: 1;
    }
    
    .slide-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.6s ease;
    }
    
    .slide-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        padding: 1rem;
    }
    
    .slide-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(153, 27, 27, 0.8) 100%);
        z-index: 1;
    }
    
    .slide-text {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        max-width: 100%;
        padding: 0 1rem;
        animation: slideInUp 0.8s ease-out 0.3s both;
    }
    
    .slide-title {
        font-size: 1.75rem;
        font-weight: 900;
        margin-bottom: 0.75rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
        line-height: 1.2;
        letter-spacing: -0.01em;
    }
    
    .slide-description {
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 1.5rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
        line-height: 1.4;
        opacity: 0.95;
    }
    
    .slide-button {
        display: inline-block;
        background: linear-gradient(135deg, var(--primary-yellow) 0%, #f59e0b 100%);
        color: var(--dark-red);
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
        position: relative;
        overflow: hidden;
    }
    
    .slide-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .slide-button:hover::before {
        left: 100%;
    }
    
    .slide-button:active {
        transform: scale(0.98);
    }
    
    /* Mobile Navigation Dots */
    .slider-dots {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
        z-index: 10;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .dot::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: white;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }
    
    .dot.active {
        background: var(--primary-yellow);
        transform: scale(1.3);
    }
    
    .dot.active::before {
        width: 4px;
        height: 4px;
        background: var(--dark-red);
    }
    
    .dot:active {
        transform: scale(1.1);
    }
    
    /* Mobile Navigation Arrows */
    .slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: white;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slider-nav:active {
        transform: translateY(-50%) scale(0.95);
        background: rgba(255, 255, 255, 0.25);
    }
    
    .slider-nav.prev {
        left: 0.5rem;
    }
    
    .slider-nav.next {
        right: 0.5rem;
    }
    
    .slider-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
    
    .slider-nav:disabled:active {
        transform: translateY(-50%);
    }
    
    /* Mobile Slider Animations */
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Touch-friendly interactions */
    .slide-button:active {
        transform: scale(0.98);
    }
    
    .dot:active {
        transform: scale(1.1);
    }
    
    /* Mobile Performance Optimizations */
    .slider-track,
    .slide-image img {
        will-change: transform;
    }
    
    .slide-image img {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Mobile-specific adjustments for smaller screens */
    @media (max-width: 480px) {
        .image-slider-section {
            height: 45vh;
            min-height: 280px;
        }
        
        .slide-title {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
        
        .slide-description {
            font-size: 0.85rem;
            margin-bottom: 1.25rem;
        }
        
        .slide-button {
            padding: 0.625rem 1.25rem;
            font-size: 0.8rem;
        }
        
        .slider-nav {
            width: 35px;
            height: 35px;
            font-size: 0.9rem;
        }
        
        .slider-nav.prev {
            left: 0.25rem;
        }
        
        .slider-nav.next {
            right: 0.25rem;
        }
        
        .slider-dots {
            bottom: 0.75rem;
            gap: 0.375rem;
        }
        
        .dot {
            width: 6px;
            height: 6px;
        }
        
        .dot.active::before {
            width: 3px;
            height: 3px;
        }
    }
    
    /* Landscape mobile adjustments */
    @media (max-width: 768px) and (orientation: landscape) {
        .image-slider-section {
            height: 60vh;
            min-height: 250px;
        }
        
        .slide-title {
            font-size: 1.5rem;
        }
        
        .slide-description {
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .slide-button {
            padding: 0.5rem 1.25rem;
            font-size: 0.8rem;
        }
    }
}

/* Enhanced Mobile Course Cards */
@media (max-width: 768px) {
    .courses-section {
        padding: 3rem 0;
    }
    
    .courses-container {
        padding: 0 var(--mobile-padding);
        overflow: visible;
    }
    
    .courses-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        overflow: visible;
    }
    
    .course-card {
        margin: 0;
        min-height: 380px;
        border-radius: 16px;
        overflow: hidden;
        transition: all var(--animation-duration) var(--animation-easing);
        box-shadow: var(--shadow-mobile);
        width: 100%;
        flex-shrink: 0;
    }
    
    .course-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-mobile-lg);
    }
    
    .course-card:active {
        transform: translateY(-4px) scale(1.01);
    }
    
    .course-card-header {
        padding: 1.5rem 1rem;
        position: relative;
        overflow: hidden;
        text-align: center;
    }
    
    .course-card-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transform: rotate(45deg);
        transition: all 0.6s var(--animation-easing);
        opacity: 0;
    }
    
    .course-card:hover .course-card-header::before {
        opacity: 1;
        animation: shimmer 1.5s var(--animation-easing);
    }
    
    .course-card-title {
        font-size: var(--mobile-font-size-xl);
        margin-bottom: 0.5rem;
        animation: fadeInUp 0.6s var(--animation-easing);
    }
    
    .course-card-subtitle {
        font-size: var(--mobile-font-size-sm);
        opacity: 0.9;
    }
    
    .course-card-body {
        padding: 1.5rem 0.75rem;
        text-align: center;
    }
    
    .course-price {
        font-size: var(--mobile-font-size-sm);
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        border-radius: 25px;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        animation: bounceIn 0.6s var(--animation-easing) 0.2s both;
    }
    
    .course-features {
        font-size: var(--mobile-font-size-sm);
        margin-bottom: 1.5rem;
    }
    
    .course-features li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
        animation: slideInLeft 0.4s var(--animation-easing);
        animation-fill-mode: both;
    }
    
    .course-features li:nth-child(1) { animation-delay: 0.1s; }
    .course-features li:nth-child(2) { animation-delay: 0.2s; }
    .course-features li:nth-child(3) { animation-delay: 0.3s; }
    .course-features li:nth-child(4) { animation-delay: 0.4s; }
    .course-features li:nth-child(5) { animation-delay: 0.5s; }
    .course-features li:nth-child(6) { animation-delay: 0.6s; }
    
    .course-features li::before {
        content: '✓';
        position: absolute;
        left: 0;
        color: var(--primary-red);
        font-weight: bold;
        animation: checkmark 0.3s var(--animation-easing);
    }
    
    .course-button {
        width: 100%;
        padding: 1.25rem 1.5rem;
        font-size: var(--mobile-font-size-base);
        margin: 1rem auto 0 auto;
        border-radius: 12px;
        position: relative;
        overflow: hidden;
        transition: all var(--animation-duration) var(--animation-easing);
        text-align: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 56px;
    }
    
    .course-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s var(--animation-easing);
    }
    
    .course-button:hover::before {
        left: 100%;
    }
    
    .course-button:active {
        transform: scale(0.98);
    }
    
    /* Course slider navigation */
    .course-nav-button {
        display: none;
    }
    
    .course-indicators {
        margin-top: 2rem;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .course-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: all var(--animation-duration) var(--animation-easing);
        position: relative;
    }
    
    .course-indicator::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: var(--primary-red);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all var(--animation-duration) var(--animation-easing);
    }
    
    .course-indicator.active {
        background: var(--primary-red);
        transform: scale(1.2);
    }
    
    .course-indicator.active::before {
        width: 6px;
        height: 6px;
        background: white;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    /* Mobile Menu Button */
    #mobile-menu-button {
        transition: all 0.3s ease;
        padding: 0.5rem;
        border-radius: 0.375rem;
    }
    
    #mobile-menu-button:hover {
        background-color: rgba(0, 0, 0, 0.05);
        transform: scale(1.05);
    }
    
    #mobile-menu-button:active {
        transform: scale(0.95);
    }
    
    /* Mobile Menu */
    #mobile-menu {
        transition: all 0.3s ease;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
    }
    
    #mobile-menu.block {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    #mobile-menu a {
        transition: all 0.3s ease;
        border-radius: 0.375rem;
        margin: 0.25rem 0;
    }
    
    #mobile-menu a:hover {
        background-color: rgba(220, 38, 38, 0.1);
        color: var(--primary-red);
        transform: translateX(5px);
    }
    
    /* Body scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile Menu Animation */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    #mobile-menu.block {
        animation: slideDown 0.3s ease-out;
    }
}

/* Enhanced Mobile About Us Page */
@media (max-width: 768px) {
    /* About Hero Section Mobile */
    .about-hero {
        padding: 3rem 0;
        background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 50%, #7c2d12 100%);
        position: relative;
        overflow: hidden;
    }
    
    .about-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
        animation: float 15s ease-in-out infinite;
    }
    
    .about-hero-title {
        font-size: 2.5rem;
        font-weight: 900;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
        animation: fadeInScale 1s ease-out;
        letter-spacing: -0.01em;
        line-height: 1.1;
    }
    
    .about-hero-subtitle {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--primary-yellow);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        animation: slideInUp 1s ease-out 0.3s both;
        margin-top: 1rem;
    }
    
    /* About Story Section Mobile */
    .about-story-section {
        padding: 2.5rem 0;
        background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    }
    
    .story-badge {
        background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 30px;
        font-size: 1.125rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
        animation: slideInLeft 0.8s ease-out;
        margin-bottom: 2rem;
        display: inline-block;
    }
    
    .story-content {
        animation: fadeInUp 0.8s ease-out 0.2s both;
    }
    
    .story-text {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--text-dark);
        margin-bottom: 1.25rem;
        opacity: 0;
        animation: fadeInUp 0.6s ease-out both;
    }
    
    .story-text:nth-child(1) { animation-delay: 0.4s; }
    .story-text:nth-child(2) { animation-delay: 0.6s; }
    .story-text:nth-child(3) { animation-delay: 0.8s; }
    
    .story-visual-card {
        background: white;
        border-radius: 16px;
        padding: 2rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        animation: slideInRight 0.8s ease-out 0.4s both;
        margin-top: 2rem;
        position: relative;
        overflow: hidden;
    }
    
    .story-visual-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-yellow) 100%);
    }
    
    .story-icon-container {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
        border-radius: 50%;
        margin: 0 auto 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: bounceIn 1s ease-out 0.6s both;
        box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    }
    
    .story-icon {
        font-size: 2rem;
        color: white;
        animation: pulse 2s infinite;
    }
    
    .story-visual-title {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--text-dark);
        margin-bottom: 0.75rem;
        animation: fadeInUp 0.8s ease-out 0.8s both;
    }
    
    .story-visual-text {
        color: var(--text-light);
        font-size: 0.9rem;
        line-height: 1.5;
        animation: fadeInUp 0.8s ease-out 1s both;
    }
    
    /* Faculty Cards Mobile */
    .faculty-card-enhanced {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        animation: fadeInUp 0.8s ease-out both;
        margin-bottom: 1.5rem;
    }
    
    .faculty-card-enhanced:nth-child(1) { animation-delay: 0.1s; }
    .faculty-card-enhanced:nth-child(2) { animation-delay: 0.2s; }
    .faculty-card-enhanced:nth-child(3) { animation-delay: 0.3s; }
    
    .faculty-card-enhanced:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
    
    .faculty-icon-enhanced {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
        border-radius: 50%;
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .faculty-icon-enhanced i {
        font-size: 1.5rem;
        color: white;
    }
    
    .faculty-title-enhanced {
        font-size: 1.125rem;
        font-weight: 800;
        color: var(--text-dark);
        margin-bottom: 0.5rem;
    }
    
    .faculty-subtitle-enhanced {
        color: var(--text-light);
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .faculty-specialty-enhanced {
        color: var(--text-light);
        font-size: 0.85rem;
        font-style: italic;
        line-height: 1.4;
    }
    
    /* Methodology Section Mobile */
    .methodology-section {
        padding: 2.5rem 0;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }
    
    .methodology-card {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        text-align: center;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        animation: fadeInUp 0.8s ease-out both;
        margin-bottom: 1.5rem;
    }
    
    .methodology-card:nth-child(1) { animation-delay: 0.1s; }
    .methodology-card:nth-child(2) { animation-delay: 0.2s; }
    .methodology-card:nth-child(3) { animation-delay: 0.3s; }
    .methodology-card:nth-child(4) { animation-delay: 0.4s; }
    
    .methodology-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    }
    
    .methodology-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary-yellow) 0%, #f59e0b 100%);
        border-radius: 50%;
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .methodology-icon i {
        font-size: 1.25rem;
        color: var(--dark-red);
    }
    
    .methodology-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.5rem;
    }
    
    .methodology-description {
        color: var(--text-light);
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Achievements Section Mobile */
    .achievements-section {
        padding: 2.5rem 0;
        background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
        color: white;
        position: relative;
        overflow: hidden;
    }
    
    .achievements-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    }
    
    .achievements-container {
        position: relative;
        z-index: 1;
    }
    
    .achievements-title {
        font-size: 2rem;
        font-weight: 900;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        animation: fadeInUp 0.8s ease-out;
        margin-bottom: 1rem;
    }
    
    .achievements-subtitle {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        animation: slideInUp 0.8s ease-out 0.2s both;
        margin-bottom: 2rem;
    }
    
    .achievement-stat {
        text-align: center;
        animation: fadeInUp 0.8s ease-out both;
        margin-bottom: 2rem;
    }
    
    .achievement-stat:nth-child(1) { animation-delay: 0.3s; }
    .achievement-stat:nth-child(2) { animation-delay: 0.4s; }
    .achievement-stat:nth-child(3) { animation-delay: 0.5s; }
    .achievement-stat:nth-child(4) { animation-delay: 0.6s; }
    
    .achievement-number {
        font-size: 2.5rem;
        font-weight: 900;
        color: var(--primary-yellow);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 0.5rem;
        animation: countUp 2s ease-out;
    }
    
    .achievement-label {
        font-size: 0.9rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Call to Action Mobile */
    .cta-section {
        padding: 2.5rem 0;
        background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
        position: relative;
        overflow: hidden;
    }
    
    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    }
    
    .cta-content {
        position: relative;
        z-index: 1;
    }
    
    .cta-title {
        font-size: 1.75rem;
        font-weight: 900;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        animation: fadeInUp 0.8s ease-out;
        margin-bottom: 1rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        animation: slideInUp 0.8s ease-out 0.2s both;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        background: linear-gradient(135deg, var(--primary-yellow) 0%, #f59e0b 100%);
        color: var(--dark-red);
        padding: 0.875rem 2rem;
        border-radius: 30px;
        font-weight: 700;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
        animation: slideInUp 0.8s ease-out 0.4s both;
        display: inline-block;
    }
    
    .cta-button:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
    }
    
    /* Floating Action Button Mobile */
    .fab-container {
        bottom: 0;
        right: 0;
        gap: 0.75rem;
        align-items: flex-end;
        padding: 0.5rem;
    }
    
    .fab-main {
        width: 56px;
        height: 56px;
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    }
    
    .fab-main:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    }
    
    .fab-main i {
        font-size: 1.375rem;
    }
    
    .fab-item {
        width: 46px;
        height: 46px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    }
    
    .fab-item:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .fab-item i {
        font-size: 1.125rem;
    }
    
    /* Mobile Tooltip */
    .fab-item[data-tooltip]:hover::after {
        right: 55px;
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .fab-item[data-tooltip]:hover::before {
        right: 47px;
        border-width: 4px;
    }
    
    /* Enhanced Mobile About and Vision Sections */
    .about-section,
    .vision-section {
        padding: 3rem 0;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header {
        font-size: var(--mobile-font-size-xl);
        padding: 0.75rem 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
        animation: slideInLeft 0.6s var(--animation-easing);
    }
    
    .section-content {
        font-size: var(--mobile-font-size-base);
        line-height: 1.7;
        animation: fadeInUp 0.6s var(--animation-easing) 0.2s both;
    }
    
    .section-content p {
        margin-bottom: 1.5rem;
        opacity: 0;
        animation: fadeInUp 0.6s var(--animation-easing) both;
    }
    
    .section-content p:nth-child(1) { animation-delay: 0.1s; }
    .section-content p:nth-child(2) { animation-delay: 0.2s; }
    .section-content p:nth-child(3) { animation-delay: 0.3s; }
    
    .section-icon {
        width: 5rem;
        height: 5rem;
        margin-bottom: 1.5rem;
        animation: bounceIn 0.8s var(--animation-easing) 0.4s both;
    }
    
    .section-icon i {
        font-size: 2rem;
    }
}

/* Enhanced Mobile Contact Section */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
        padding: 2rem;
        border-radius: 16px;
        animation: slideInUp 0.6s var(--animation-easing);
    }
    
    .contact-form h3 {
        font-size: var(--mobile-font-size-xl);
        margin-bottom: 1.5rem;
        animation: slideInLeft 0.6s var(--animation-easing);
    }
    
    .form-group {
        margin-bottom: 1.5rem;
        animation: fadeInUp 0.6s var(--animation-easing);
        animation-fill-mode: both;
    }
    
    .form-group:nth-child(1) { animation-delay: 0.1s; }
    .form-group:nth-child(2) { animation-delay: 0.2s; }
    .form-group:nth-child(3) { animation-delay: 0.3s; }
    .form-group:nth-child(4) { animation-delay: 0.4s; }
    .form-group:nth-child(5) { animation-delay: 0.5s; }
    .form-group:nth-child(6) { animation-delay: 0.6s; }
    .form-group:nth-child(7) { animation-delay: 0.7s; }
    
    .form-label {
        font-size: var(--mobile-font-size-sm);
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--text-dark);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 1rem;
        font-size: var(--mobile-font-size-base);
        border-radius: 12px;
        border: 2px solid #e5e7eb;
        transition: all var(--animation-duration) var(--animation-easing);
        background: white;
    }
    
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--primary-red);
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
        transform: translateY(-1px);
    }
    
    .form-textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .contact-info-item {
        margin-bottom: 2rem;
        animation: slideInRight 0.6s var(--animation-easing);
        animation-fill-mode: both;
    }
    
    .contact-info-item:nth-child(1) { animation-delay: 0.1s; }
    .contact-info-item:nth-child(2) { animation-delay: 0.2s; }
    .contact-info-item:nth-child(3) { animation-delay: 0.3s; }
    .contact-info-item:nth-child(4) { animation-delay: 0.4s; }
    
    .contact-icon {
        width: 3rem;
        height: 3rem;
        padding: 0.75rem;
        margin-right: 1rem;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }
    
    .contact-icon i {
        font-size: 1.25rem;
    }
    
    .contact-details h4 {
        font-size: var(--mobile-font-size-lg);
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    .contact-details p {
        font-size: var(--mobile-font-size-sm);
        line-height: 1.5;
        color: var(--text-light);
    }
}

/* Enhanced Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
    
    .footer-logo {
        flex-direction: column;
        margin-bottom: 1rem;
        animation: fadeInUp 0.6s var(--animation-easing);
    }
    
    .footer-logo-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
        animation: bounceIn 0.8s var(--animation-easing) 0.2s both;
    }
    
    .footer-title {
        font-size: var(--mobile-font-size-lg);
        animation: slideInUp 0.6s var(--animation-easing) 0.4s both;
    }
    
    .footer-subtitle {
        font-size: var(--mobile-font-size-sm);
        margin-bottom: 1rem;
        animation: fadeInUp 0.6s var(--animation-easing) 0.6s both;
    }
    
    .footer-copyright {
        font-size: var(--mobile-font-size-sm);
        animation: fadeInUp 0.6s var(--animation-easing) 0.8s both;
    }
}

/* Beautiful Mobile Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Typography Enhancements */
@media (max-width: 768px) {
    h1 {
        font-size: var(--mobile-font-size-3xl);
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: -0.025em;
    }
    
    h2 {
        font-size: var(--mobile-font-size-2xl);
        line-height: 1.3;
        font-weight: 700;
    }
    
    h3 {
        font-size: var(--mobile-font-size-xl);
        line-height: 1.4;
        font-weight: 600;
    }
    
    h4 {
        font-size: var(--mobile-font-size-lg);
        line-height: 1.4;
        font-weight: 600;
    }
    
    p {
        font-size: var(--mobile-font-size-base);
        line-height: 1.6;
    }
    
    .text-sm {
        font-size: var(--mobile-font-size-sm);
    }
    
    .text-lg {
        font-size: var(--mobile-font-size-lg);
    }
    
    .text-xl {
        font-size: var(--mobile-font-size-xl);
    }
    
    .text-2xl {
        font-size: var(--mobile-font-size-2xl);
    }
    
    .text-3xl {
        font-size: var(--mobile-font-size-3xl);
    }
}

/* Mobile Spacing Improvements */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .mb-mobile {
        margin-bottom: 1.5rem;
    }
    
    .mt-mobile {
        margin-top: 1.5rem;
    }
    
    .py-mobile {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .px-mobile {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
    }
}

/* Mobile Touch Interactions */
@media (max-width: 768px) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: var(--mobile-font-size-base);
        font-weight: 600;
        border-radius: 12px;
        transition: all var(--animation-duration) var(--animation-easing);
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }
    
    .course-card {
        cursor: pointer;
    }
    
    .course-card:active {
        transform: translateY(-2px) scale(1.01);
    }
    
    /* Enhanced button hover effects */
    .btn-primary::after,
    .btn-secondary::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s var(--animation-easing);
    }
    
    .btn-primary:hover::after,
    .btn-secondary:hover::after {
        transform: translateX(100%);
    }
}

/* Mobile Loading States */
@media (max-width: 768px) {
    .loading {
        position: relative;
        overflow: hidden;
    }
    
    .loading::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        animation: loading-shimmer 1.5s infinite;
    }
    
    @keyframes loading-shimmer {
        0% {
            left: -100%;
        }
        100% {
            left: 100%;
        }
    }
}

/* Mobile Accessibility Improvements */
@media (max-width: 768px) {
    .sr-only-mobile {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    
    .focus-visible:focus {
        outline: 3px solid var(--primary-red);
        outline-offset: 2px;
        border-radius: 8px;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .course-card {
            border: 2px solid var(--primary-red);
        }
        
        .btn-primary,
        .btn-secondary {
            border: 2px solid currentColor;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    .course-card,
    .hero-section,
    .mobile-menu {
        will-change: transform;
    }
    
    /* GPU acceleration for smooth animations */
    .course-card,
    .btn-primary,
    .btn-secondary,
    .mobile-menu-button {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Optimize repaints */
    .course-card-header,
    .course-card-body {
        contain: layout style paint;
    }
    
    /* Facility Cards Mobile - Horizontal Scroll */
    .facilities-section {
        padding: 2rem 0;
    }
    
    .facilities-container {
        padding: 0 var(--mobile-padding);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }
    
    .facilities-container::-webkit-scrollbar {
        display: none;
    }
    
    .facilities-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem;
        padding: 0 0 1rem 0;
        min-width: max-content;
        width: max-content;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        align-items: stretch;
    }
    
    .facility-card {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
        padding: 1.25rem;
        margin-bottom: 0;
        scroll-snap-align: start;
        border-radius: 16px;
        box-shadow: var(--shadow-mobile);
        transition: all var(--animation-duration) var(--animation-easing);
        background: white;
        border: 1px solid #f3f4f6;
    }
    
    .facility-card:active {
        transform: scale(0.98);
    }
    
    .facility-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
        color: white;
        transition: all var(--animation-duration) var(--animation-easing);
        font-size: 1.5rem;
    }
    
    .facility-title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: var(--text-dark);
        line-height: 1.3;
    }
    
    .facility-description {
        font-size: 0.85rem;
        line-height: 1.4;
        color: var(--text-light);
        margin: 0;
    }
    
    /* Scroll indicators */
    .facilities-scroll-hint {
        text-align: center;
        margin-top: 1rem;
        color: var(--text-light);
        font-size: 0.8rem;
        opacity: 0.7;
    }
    
    .facilities-scroll-hint::after {
        content: "← Swipe to see more →";
        display: block;
        margin-top: 0.25rem;
    }
    
    /* Faculty Cards Mobile - Vertical Layout */
    .faculty-container {
        padding: 0 var(--mobile-padding);
    }
    
    .faculty-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        padding: 0;
    }
    
    .faculty-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: var(--shadow-mobile);
        transition: all var(--animation-duration) var(--animation-easing);
        border: 1px solid #f3f4f6;
        margin-bottom: 0;
    }
    
    .faculty-card:active {
        transform: scale(0.98);
    }
    
    .faculty-photo {
        height: 200px;
        position: relative;
        overflow: hidden;
    }
    
    .faculty-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--animation-duration) var(--animation-easing);
    }
    
    .faculty-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(185, 28, 28, 0.8));
        opacity: 0;
        transition: opacity var(--animation-duration) var(--animation-easing);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .faculty-card:active .faculty-overlay {
        opacity: 1;
    }
    
    .faculty-social {
        display: flex;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-red);
        text-decoration: none;
        transition: all var(--animation-duration) var(--animation-easing);
        font-size: 0.9rem;
    }
    
    .faculty-info {
        padding: 1.25rem;
        text-align: center;
    }
    
    .faculty-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.4rem;
    }
    
    .faculty-post {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--primary-red);
        margin-bottom: 0.6rem;
    }
    
    .faculty-qualification {
        font-size: 0.85rem;
        color: var(--text-light);
        margin-bottom: 0.4rem;
        font-weight: 500;
    }
    
    .faculty-experience {
        font-size: 0.8rem;
        color: var(--text-light);
        margin-bottom: 0.6rem;
        font-weight: 500;
    }
    
    .faculty-specialization {
        font-size: 0.75rem;
        color: var(--text-light);
        line-height: 1.3;
        font-style: italic;
    }
}