/* ===================================
   Responsive Styles - Mobile & Tablet
   =================================== */

/* Tablet Styles (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 96px;
    }

    .hero-tagline {
        font-size: 24px;
    }

    .stats-logo {
        height: 64px;
    }

    .event-tabs {
        flex-wrap: wrap;
    }

    .contact-grid {
        gap: 40px;
    }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .logo-text {
        display: none;
    }

    .christ-logo,
    .ex-logo {
        height: 40px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        padding: 40px;
        gap: 24px;
        transition: left 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .logo-right {
        display: block;
        z-index: 1000;
        pointer-events: auto;
    }

    .logo-right a {
        pointer-events: auto;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    /* Proper X transformation when menu is open */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Section */
    .hero-section {
        padding-top: 60px;
    }

    .hero-university {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero-department {
        font-size: 11px;
    }

    .stats-logo {
        height: 48px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-tagline {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .suit {
        font-size: 64px;
    }

    /* Countdown */
    .countdown {
        flex-wrap: wrap;
        gap: 12px;
    }

    .time-box {
        min-width: 80px;
        padding: 12px 16px;
    }

    .time-value {
        font-size: 32px;
    }

    .time-label {
        font-size: 10px;
    }

    .time-separator {
        display: none;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Sections */
    .section-title {
        font-size: 36px;
    }

    .about-section,
    .events-section,
    .contact-section {
        padding: 60px 0;
    }

    .about-text {
        font-size: 16px;
    }

    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-card {
        padding: 24px;
    }

    .event-icon {
        font-size: 36px;
    }

    .event-title {
        font-size: 20px;
    }

    .event-description {
        font-size: 14px;
    }

    /* Contact */
    .coordinators-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .coordinators-section {
        padding: 25px 20px;
    }

    .contact-heading {
        font-size: 20px;
    }

    .coordinator-card {
        padding: 16px;
    }

    .location-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .location-info h3 {
        font-size: 18px;
    }

    .location-info p {
        font-size: 14px;
    }

    .contact-map {
        height: 350px;
    }

    .coordinator-name {
        font-size: 16px;
    }

    /* Footer */
    .footer-title {
        font-size: 24px;
    }

    .footer-tagline {
        font-size: 14px;
    }

    /* Coming Soon Page */
    .coming-soon-title {
        font-size: 48px;
    }

    .coming-soon-description {
        font-size: 18px;
    }

    .coming-soon-info {
        font-size: 14px;
    }

    .clock-icon svg {
        width: 64px;
        height: 64px;
    }

    /* Intro Video */
    .skip-button {
        bottom: 60px;
        right: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .christ-logo {
        height: 32px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .stats-logo {
        height: 40px;
    }

    .countdown {
        gap: 8px;
    }

    .time-box {
        min-width: 70px;
        padding: 10px 12px;
    }

    .time-value {
        font-size: 24px;
    }

    .time-label {
        font-size: 9px;
    }

    .section-title {
        font-size: 28px;
    }

    .event-card {
        padding: 20px;
    }

    .event-icon {
        font-size: 32px;
    }

    .event-title {
        font-size: 18px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .coming-soon-title {
        font-size: 36px;
    }

    .coming-soon-description {
        font-size: 16px;
    }

    .skip-button {
        bottom: 40px;
        right: 16px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Landscape Mobile Orientation */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-tagline {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .countdown {
        margin-bottom: 20px;
    }

    .time-box {
        padding: 8px 12px;
    }

    .time-value {
        font-size: 24px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* High Resolution Displays */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 180px;
    }

    .hero-tagline {
        font-size: 40px;
    }

    .section-title {
        font-size: 64px;
    }

    .event-card {
        padding: 40px;
    }

    .event-title {
        font-size: 28px;
    }

    .event-description {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .intro-overlay,
    #particle-canvas,
    .hero-video,
    .events-video,
    .coming-soon-video,
    .floating-suits,
    .scroll-indicator,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero-overlay,
    .hero-section::before,
    .coming-soon-overlay {
        display: none;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .section-title::after {
        background: black;
    }
}

/* ===================================
   Additional Responsive Styles for New About Section
   =================================== */

/* Tablet and Below (768px) */
@media (max-width: 768px) {
    .intro-title {
        font-size: 60px;
        letter-spacing: 6px;
    }

    .intro-year {
        font-size: 60px;
        margin-left: -5px;
    }

    .section-title {
        font-size: 36px;
    }

    .about-intro {
        font-size: 18px;
    }

    .theme-name {
        font-size: 24px;
    }

    .about-description {
        font-size: 16px;
    }

    .about-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .stat-number {
        font-size: 32px;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .intro-title {
        font-size: 40px;
        letter-spacing: 3px;
    }

    .intro-year {
        font-size: 40px;
        margin-left: -3px;
    }

    .about-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .about-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .about-theme {
        padding: 25px;
    }

    .theme-name {
        font-size: 20px;
    }

    .about-description {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* ===================================
   Mobile-Specific Improvements
   =================================== */

/* Prevent horizontal scroll on all mobile devices */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Ensure all containers don't overflow */
    * {
        max-width: 100%;
    }

    /* Make videos responsive */
    video {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    /* Touch-friendly buttons */
    .btn,
    .card-btn,
    .tab-btn,
    button {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    /* Prevent text from being too small */
    p, li, span, .event-description, .coordinator-phone, .coordinator-email {
        font-size: 16px !important;
        line-height: 1.6;
    }

    /* Better spacing for touch */
    .nav-link {
        padding: 16px 20px;
        display: block;
    }

    /* Ensure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix for coordinators grid on mobile */
    .coordinators-grid,
    .contact-grid,
    .contact-grid-compact {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Better card spacing on mobile */
    .coordinator-card,
    .event-card {
        margin-bottom: 16px;
    }

    /* Phone numbers should be easily clickable */
    .coordinator-phone a,
    .footer-contact-email {
        display: block;
        padding: 8px 0;
        font-size: 16px;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 24px;
    }

    .time-box {
        min-width: 60px;
        padding: 8px 10px;
    }

    .time-value {
        font-size: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Landscape mode for phones */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 60px 0 40px;
    }

    .navbar {
        padding: 10px 0;
    }

    .christ-logo, .ex-logo {
        height: 36px;
    }

    .scroll-indicator {
        display: none;
    }
}
