/* GLOBAL RESET & VARIABLES */
:root {
    --navy: #0A1A44;
    --royal: #1B3FA0;
    --gold: #F4C430;
    --white: #FFFFFF;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--navy);
    color: var(--white);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    background-attachment: fixed;
    /* Default cursor behavior restored */
    cursor: auto; 
    /* Removed global perspective to prevent breaking fixed positioned elements like the cursor */
}

/* Ensure images never overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* CUSTOM CURSOR */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--gold);
    border: 2px solid var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647; /* Maximum Z-Index */
    /* Start off-screen */
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 0; /* Hidden until moved */
    transition: opacity 0.2s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(244, 196, 48, 0.2);
    border-color: var(--gold);
}

/* State to hide system cursor only when custom cursor is active */
body.hide-cursor {
    cursor: none;
}

body.hide-cursor a,
body.hide-cursor button,
body.hide-cursor .feature-card,
body.hide-cursor .event-card,
body.hide-cursor .org-card,
body.hide-cursor .contact-card {
    cursor: none;
}

/* LAYOUT UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-padding {
    padding: 80px 0;
    /* Apply perspective here to maintain 3D scroll effects locally */
    perspective: 1000px; 
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-bold { font-weight: 700; }

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 26, 68, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(27, 63, 160, 0.3);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.logo-area img {
    height: 60px;
    width: auto;
}

.title-area {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
}

.title-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(180deg, #FFFFFF 20%, #B0C4DE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.title-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
    margin: 3px 0;
    font-weight: 500;
}

.title-event {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 6px;
    font-size: 1.6rem;
    margin-top: 2px;
    text-shadow: 0 0 15px rgba(244, 196, 48, 0.6), 0 0 30px rgba(244, 196, 48, 0.2);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-item {
    position: relative;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--gold);
}

.nav-cta {
    background-color: var(--gold);
    color: var(--navy);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s;
}

.nav-cta:hover {
    transform: scale(1.05);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    background: transparent;
}

/* HERO SECTION */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 100px 0;
    transform-style: preserve-3d;
    perspective: 1000px; /* Applied locally */
}

/* Parallax Container for Image */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Taller for parallax movement */
    z-index: -3;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ensure center is focused */
    transform-origin: center center;
    transition: transform 0.1s linear; /* Smooth parallax */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 68, 0.75);
    z-index: -2;
}

.bg-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#hero .bg-layer {
    background: radial-gradient(circle 600px at var(--mouse-x) var(--mouse-y), rgba(27, 63, 160, 0.3), transparent 70%);
}

.hero-content {
    /* Will be animated in JS for 3D depth */
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

.dept-title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--navy);
    background: var(--gold);
    padding: 10px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(244, 196, 48, 0.5);
    display: inline-block;
    border: 2px solid var(--white);
    transform: translateZ(20px);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    opacity: 0.95;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--navy);
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.4);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(244, 196, 48, 0.6);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
    transform: translateY(-3px);
}

/* 3D SCROLL REVEAL ANIMATIONS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(100px) rotateX(20deg) scale(0.9);
    transform-origin: center top;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
}

/* Custom Animation for Technical Events */
.reveal-on-scroll.tech-anim {
    transform: scale(0.8) translateY(60px);
    opacity: 0;
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy Spring Effect */
}

.reveal-on-scroll.tech-anim.is-visible {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
}

/* Staggered Delay Helper (handled more flexibly in CSS/JS mixture, but CSS cascading helps) */
.events-grid .reveal-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.events-grid .reveal-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.events-grid .reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.events-grid .reveal-on-scroll:nth-child(4) { transition-delay: 0.1s; }
.events-grid .reveal-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.events-grid .reveal-on-scroll:nth-child(6) { transition-delay: 0.3s; }
.events-grid .reveal-on-scroll:nth-child(7) { transition-delay: 0.1s; }
.events-grid .reveal-on-scroll:nth-child(8) { transition-delay: 0.2s; }

.org-grid .reveal-on-scroll:nth-child(odd) { transition-delay: 0.1s; }
.org-grid .reveal-on-scroll:nth-child(even) { transition-delay: 0.2s; }

/* SECTION HEADERS */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
    word-wrap: break-word;
}

.section-title span {
    border-bottom: 4px solid var(--gold);
    padding-bottom: 10px;
    display: inline-block;
}

/* ABOUT SECTION */
#about {
    background-color: var(--navy);
    position: relative;
    z-index: 10;
}

#about .bg-layer {
    background: radial-gradient(circle 400px at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.05), transparent);
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.feature-card {
    background: rgba(13, 33, 85, 0.6);
    border: 1px solid var(--royal);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.feature-icon {
    position: absolute;
    top: -30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateZ(20px); /* 3D pop */
}

.feature-card h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--white);
    transform: translateZ(10px);
}

.feature-card p {
    color: #bbb;
    transform: translateZ(5px);
}

/* POSTER SECTION */
#poster {
    background-color: #081536;
    position: relative;
    z-index: 10;
}

.poster-wrapper {
    max-width: 900px; /* Increased from 800px for better visibility */
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.poster-wrapper:hover {
    transform: scale(1.02) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(244, 196, 48, 0.15);
    border-color: var(--gold);
}

.poster-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    transform: translateZ(5px);
}

.poster-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    border-radius: 20px;
    z-index: 2;
}


/* TECH & CULTURAL EVENTS */
#tech, #cultural {
    position: relative;
    z-index: 10;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px; /* Context for 3D card tilt */
}

.event-card {
    background: #0d2155;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.1s ease-out, border-color 0.3s; /* Fast transform for scroll tilt */
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.event-card:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(244, 196, 48, 0.15);
    z-index: 10;
}

.event-card-img {
    width: 100%;
    height: 250px; /* Increased height from 200px */
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.5s ease; /* Smooth hover zoom effect */
}

.event-card:hover .event-card-img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    transform: translateZ(0);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tag {
    background: var(--royal);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.card-icon {
    font-size: 1.5rem;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    transition: color 0.3s;
}

.event-card:hover .event-title {
    color: var(--gold);
}

.event-desc {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
}

.card-actions {
    padding: 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-join {
    background: var(--gold);
    color: var(--navy);
}

.btn-join:hover {
    background: var(--white);
}

.btn-team {
    border: 1px solid var(--royal);
    color: var(--white);
}

.btn-team:hover {
    background: var(--royal);
}

/* ORGANIZERS */
#organizers {
    background-color: var(--navy);
    position: relative;
}

#organizers .bg-layer {
    background-image: radial-gradient(circle at center, rgba(244, 196, 48, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.org-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    transform-style: preserve-3d;
}

.org-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--gold);
    transform: translateY(-10px);
}

.org-avatar {
    width: 100px;
    height: 100px;
    background: var(--royal);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.org-card:hover .org-avatar {
    transform: scale(1.1) rotateZ(5deg);
}

.org-name {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.org-role {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CONTACT */
#contact {
    background-color: #081536;
    position: relative;
    z-index: 10;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-card {
    background: var(--navy);
    border: 1px solid var(--royal);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s;
    transform-style: preserve-3d;
}

.contact-card:hover {
    border-color: var(--gold);
    transform: translateZ(10px);
}

.contact-card h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 1.1rem;
    align-items: flex-start;
    word-break: break-word;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.coord-list .coord-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(13, 33, 85, 0.5);
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-wrap: wrap;
    gap: 10px;
}

.coord-item:hover {
    background: rgba(27, 63, 160, 0.3);
}

.coord-item a:hover {
    color: var(--gold);
}

/* FOOTER */
footer {
    background: #050e26;
    border-top: 1px solid rgba(27, 63, 160, 0.3);
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.scroll-top {
    width: 50px;
    height: 50px;
    background: var(--royal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.scroll-top:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-5px);
}

/* COORDINATOR MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000; /* Above header */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--navy);
    border: 1px solid var(--gold);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(244, 196, 48, 0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gold);
}

#modal-event-title {
    color: var(--gold);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.coords-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.coord-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--royal);
}

.coord-row:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--gold);
}

.coord-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.coord-phone {
    color: var(--gold);
    font-family: monospace;
    font-size: 1.1rem;
}

/* SOCIAL MEDIA LINKS */
.social-list {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    
    /* Ensure hit area is above card transform */
    position: relative;
    z-index: 10;
    transform: translateZ(20px);
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    transform: translateZ(30px) translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 20;
}

/* COUNTDOWN TIMER */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10, 26, 68, 0.6);
    border: 1px solid rgba(244, 196, 48, 0.3);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.time-block:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.time-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(244, 196, 48, 0.3);
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
    margin-top: 5px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 1200px) {
    /* Tablet/Mobile Layout: Centered Title, Absolute Logo/Toggle */
    .header-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        min-height: 60px;
    }
    
    .logo-area {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .mobile-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    
    .title-area {
        z-index: 1;
        padding: 0 50px; /* Prevent text from touching logo/button */
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--navy);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-top: 1px solid var(--royal);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .feature-grid, .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    /* Adjust header font size for smaller screens */
    .title-main { font-size: 1.4rem; }
    .title-sub { font-size: 0.65rem; letter-spacing: 3px; }
    .title-event { font-size: 1.3rem; }
    
    .logo-area img {
        height: 50px;
    }

    .dept-title {
        font-size: 0.9rem;
        padding: 6px 16px;
        margin-bottom: 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 15px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    .events-grid, .org-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }
    
    .coord-list .coord-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        padding: 25px;
        width: 95%;
    }
    
    .coord-row {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    /* Countdown Responsive */
    .countdown-wrapper {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .time-block {
        padding: 10px 5px;
        min-width: 65px;
    }
    
    .time-number {
        font-size: 1.2rem;
    }
    
    .time-label {
        font-size: 0.6rem;
    }

    /* Fix background image zoom on mobile */
    .hero-bg-wrapper {
        height: 100%; /* Reset from 120% to prevent excess zoom */
    }
}