/* ========================================
   GLOBAL RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- Institutional Color System --- */
    /* Base Backgrounds */
    --bg-body: #0b1120;       /* Very dark navy/slate */
    --bg-section: #0f172a;    /* Slightly lighter section bg */
    --bg-secondary: #1e293b;  /* Secondary background */
    --bg-header: rgba(15, 23, 42, 0.95);
    
    /* Card & Surface */
    --bg-card: #1e293b;       /* Card background */
    --bg-card-hover: #334155; /* Lighter on hover */
    --bg-input: #1e293b;
    
    /* Text Colors */
    --text-main: #f8fafc;     /* Primary text (white/off-white) */
    --text-muted: #94a3b8;    /* Muted/Secondary text */
    --text-dark: #0f172a;     /* Dark text for light backgrounds */
    
    /* Brand / Accent Colors */
    --accent-primary: #38bdf8; /* Sky blue - primary accent */
    --accent-hover: #0ea5e9;   /* Darker sky blue for hover */
    --accent-glow: rgba(56, 189, 248, 0.15);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(56, 189, 248, 0.5);
    
    /* Layout */
    --banner-height: 74px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 0;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3 {
    color: var(--text-main);
}

h2 {
    font-size: 38px;
    text-align: center;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

h2.sub-title{
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 5px; 
}

/* ========================================
   HEADER COMPOSITE (Top banner + Main nav)
======================================== */

/* ========================================
   NAVBAR (Executive Glass)
======================================== */
header {
    display: contents;
    font-family: 'Inter', sans-serif;
}
.college-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.college-text {
    flex: 1;
    text-align: center;
}

.college-logo img {
    height: 80px;
    border-radius: 50%;
    width: auto;
    object-fit: contain;
}


.usha-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.usha-logo img {
    width: 90%;
    height: auto;
    object-fit: contain;
}

/* ================== TOP INSTITUTIONAL STRIP ================== */

.header-top {
    background: var(--bg-header);
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.header-top::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(120px);
}

.header-top .banner-inner {
    padding: 0px 4%;
    position: relative;
    z-index: 2;
}

.header-top .pes {
    
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.8;
    text-align: center;
}

.header-top .college-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin:0px 0 4px 0;
    text-align: center;
}

.header-top .college-name span {
    font-weight: 500;
    opacity: 0.85;
}

.header-top .college-meta {
    font-size: 11px;
    opacity: 0.75;
    text-align: center;
}


/* ================== MAIN NAV ================== */

.header-main {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 8px 4.9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #0f172a, #1e293b); /* Darker navy gradient using vars approximate */
    border-bottom: 1px solid var(--border-light);
}




/* Right Logo */
.iaem-logo {
    width: 74px;
    height: 74px;
    /* background: white; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.iaem-logo img {
    width: 100%;
    object-fit: contain;
}

.logo::after {
    content: "";
    display: block;
    margin-top: 6px;
    width: 40px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 3px;
}


/* ================== NAV LINKS ================== */

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: #cbd5e1; /* Using hex equivalent of muted light for nav specific */
    position: relative;
    transition: 0.25s ease;
}

nav a:hover {
    color: var(--accent-primary);
}

/* Centered animated underline */
nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 0;
    background: var(--accent-primary);
    transition: 0.3s ease;
}

nav a:hover::after {
    width: 60%;
}


/* ================== MOBILE TOGGLE ================== */

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}


/* ================== RESPONSIVE ================== */

@media (max-width: 1024px) {

    .header-top .banner-inner,
    .header-main {
        padding-left: 6%;
        padding-right: 6%;
    }
}

@media (max-width: 768px) {

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg-header);
        backdrop-filter: blur(20px);
        width: 230px;
        display: none;
        flex-direction: column;
        padding: 25px;
        border-left: 1px solid var(--border-light);
    }

    nav a {
        margin: 18px 0;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}


/* ========================================
   SECTION BASE
======================================== */

section {
    padding: 30px 10%;
}
.nav-cta {
    background: var(--accent-primary);
    color: var(--bg-body) !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

 




/* ================= HERO BLOCK ANIMATION ================= */

.event-intro .intro-container {
    opacity: 0;
    transform: translateY(50px);
    animation: heroBlock 1s ease forwards;
}

@keyframes heroBlock {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   EVENT INTRO
======================================== */

.event-intro {
    padding: 60px 8% 120px 8%;
    text-align: center;
    background: radial-gradient(circle at top center, var(--accent-glow), transparent 60%),
                linear-gradient(135deg, #0c2135, #122f4f); /* Keep gradient as base but adjust if needed, using vars */
    background: radial-gradient(circle at top center, var(--accent-glow), transparent 60%),
                linear-gradient(135deg, var(--bg-body), var(--bg-section));
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

.event-intro::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
}

.event-intro .intro-container {
    max-width: 900px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.event-intro h1 {
    font-size: 43px;
    font-weight: 800;
    letter-spacing: 1px;
    /* margin-bottom: 20px; */
    line-height: 1.1;
    text-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

.event-intro h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--accent-hover); /* Using hover variant for subtle diff */
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.event-intro .intro-sub {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 135px;
}
.intro-sub span {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 16px;
    border-radius: 25px;
    color: var(--accent-primary);
    font-weight: 700;
    border: 1px solid var(--accent-primary);
    animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow:
            0 0 6px rgba(56, 189, 248, 0.5),
            0 0 15px rgba(56, 189, 248, 0.3);
    }
    50% {
        box-shadow:
            0 0 12px rgba(56, 189, 248, 0.9),
            0 0 30px rgba(56, 189, 248, 0.6);
    }
    100% {
        box-shadow:
            0 0 6px rgba(56, 189, 248, 0.5),
            0 0 15px rgba(56, 189, 248, 0.3);
    }
}

.intro-sub span {
    animation: glowPulse 2.5s ease-in-out infinite;
}



.event-intro .intro-desc {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.85;
}


/* ========================================
   CARD BASE STYLE (Unified)
======================================== */

.coord-card,
.highlight-card,
.event-card {
    background: var(--bg-card);
    padding: 35px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.coord-card:hover,
.highlight-card:hover,
.event-card:hover {
    transform: translateY(-12px);
    border: 1px solid var(--border-accent);
    box-shadow: 0 25px 70px rgba(56, 189, 248, 0.22);
}

/* ========================================
   EVENT LEADERSHIP LAYOUT
======================================== */
.row {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

/* Make both layouts responsive */
.row.two,
.row.three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.coord-card {
    text-align: center;
    padding: 15px 10px;
}

/* Image */
.coord-card img {
    width: 100px;
    height: 100px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--accent-primary);
}

/* Text */
.coord-card h3 {
    margin-bottom: 6px;
    font-size: 16px;
}

.coord-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Domain Tags */
.domain-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.domain-tags span {
    padding: 10px 22px;
    border-radius: 30px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-main);
    transition: 0.3s ease;
    cursor: default;
}

.domain-tags span:hover {
    background: var(--accent-primary);
    color: var(--bg-body);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
}


/* ========================================
   TIMELINE
======================================== */
.timeline {
    padding: 110px 10%;
    background: linear-gradient(135deg, var(--bg-section), var(--bg-secondary));
}

.timeline-container {
    max-width: 1000px;
    margin: 60px auto 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    background: var(--bg-card);
    margin-bottom: 25px;
    padding: 28px 35px;
    border-radius: 18px;
    border-left: 5px solid var(--accent-primary);
    transition: 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Time column */
.timeline-item .time {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-primary);
}

/* Event column */
.timeline-item .event {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-main);
}

/* Highlight lunch */
.timeline-item.lunch {
    background: #204c67; /* Maybe adjust this too? Let's keep it for now or use a variable if we had one for lunch */
    border-left: 5px solid #ffcb6b;
}

.timeline-item.lunch .time {
    color: #ffcb6b;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .timeline-item .time {
        margin-bottom: 8px;
    }
}


/* Responsive */
@media (max-width: 900px) {

    .timeline-container::before {
        left: 20px;
    }

    .timeline-row {
        width: 100%;
        padding-left: 60px;
        padding-right: 25px;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-row::before {
        left: 11px !important;
    }
}


/* ========================================
   HIGHLIGHTS
======================================== */

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Optional: reduce gap on small devices */
@media (max-width: 768px) {
    .highlight-grid {
        display: contents;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .highlight-grid {
        display:flow-root;
        row-gap: inherit;
        gap: 20px;
    }
}

.highlight-card h3 {
    margin-bottom: 12px;
    color: #3fe0ff;
}



/* ========================================*/

/* ========================================
   FOOTER
======================================== */

.footer {
    background: #050a14; /* Darker than body */
    color: var(--text-muted);
    padding: 60px 20px 0;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

/* Common Section Styles */
.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Brand Section */
.brand-section .tagline {
    font-size: 14px;
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.brand-section .organizer {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Links Section */
.links-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-section li {
    margin-bottom: 10px;
}

.links-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.links-section a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* Contact Section */
.contact-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.contact-item .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-item .value {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

/* Map Section */
.map-wrapper {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%) invert(92%) hue-rotate(180deg); /* Dark mode map */
}

/* Footer Bottom */
.footer-bottom {
    background: #02060e;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer-bottom .copyright {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
}

.footer-bottom .developer-credit {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.65;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .links-section a:hover {
        transform: none;
    }
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 992px) {
    .coord-grid,
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .row.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .row.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .college-top-row {
        flex-direction: column;
        gap: 12px;
    }

    .college-text {
        order: 2;
    }

    .college-logo {
        order: 1;
    }

    .usha-logo {
        order: 3;
    }

    .college-logo img {
        height: 64px;
    }

    .usha-logo {
        width: 60px;
        height: 60px;
    }

    .header-top .college-name {
        font-size: 18px;
        line-height: 1.2;
    }

    .header-top .college-meta {
        font-size: 10px;
        line-height: 1.4;
    }

    section {
        padding: 28px 6%;
    }

    .event-intro {
        padding: 48px 6% 90px 6%;
    }

    .event-intro h1 {
        font-size: 34px;
    }

    .event-intro h2 {
        font-size: 22px;
    }

    .event-intro .intro-sub {
        margin-bottom: 70px;
        font-size: 16px;
    }

    .event-intro .intro-desc {
        font-size: 16px;
    }

    .timeline {
        padding: 80px 6%;
    }

    .timeline-item {
        padding: 22px 20px;
    }

    .timeline-item .event {
        font-size: 18px;
    }

    .highlight-grid {
        gap: 26px;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 30px;
    }

    .header-main {
        padding-left: 6%;
        padding-right: 6%;
    }

    nav {
        width: min(92vw, 320px);
    }

    nav a {
        font-size: 18px;
    }

    .event-intro h1 {
        font-size: 30px;
    }

    .domain-tags {
        gap: 12px;
    }

    .domain-tags span {
        padding: 8px 16px;
        font-size: 13px;
    }

    .row.three,
    .row.two {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        margin-top: 40px;
    }

    .timeline-item .time {
        font-size: 16px;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }
}