/* ==========================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================== */
:root {
    --bg-dark: #07090e;
    --bg-card: #0d121f;
    --bg-footer: #05070a;

    --primary: #00e5ff;
    /* Neon Cyan */
    --secondary: #9d4edd;
    /* Neon Purple */
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --glow-primary: 0 0 15px rgba(0, 229, 255, 0.4);
    --glow-secondary: 0 0 15px rgba(157, 78, 221, 0.4);
    --glow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

    --font-header: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   BASE & RESET STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: var(--glow-primary);
}

/* ==========================================
   PARTICLE CANVAS
   ========================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================
   NAVIGATION HEADER
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.15rem;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
}

.branch-number {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: var(--glow-primary);
    animation: pulse 3s infinite ease-in-out;
}

.logo-text {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.accent-text {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: var(--font-header);
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    font-family: var(--font-header);
    font-weight: 600;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary);
    text-shadow: var(--glow-primary);
    transform: scale(1.1);
}

/* Hamburger Active States */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

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

/* ==========================================
   HERO / HOME SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem 2rem;
    gap: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.05);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    animation: blink 2s infinite ease-in-out;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-header);
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

/* Hero 3D Graphic */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.emblem-container {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.glow-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, rgba(157, 78, 221, 0) 70%);
    border-radius: 50%;
    filter: blur(15px);
    animation: pulse 4s infinite ease-in-out;
}

/* Pure CSS 3D Rotating Cube */
.ieee-cube {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(13, 18, 31, 0.75);
    border: 2px solid var(--primary);
    box-shadow: var(--glow-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    overflow: hidden;
}

.cube-logo {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

.front {
    transform: rotateY(0deg) translateZ(60px);
}

.back {
    transform: rotateY(180deg) translateZ(60px);
}

.right {
    transform: rotateY(90deg) translateZ(60px);
}

.left {
    transform: rotateY(-90deg) translateZ(60px);
}

.top {
    transform: rotateX(90deg) translateZ(60px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(60px);
}

/* ==========================================
   SECTION COMMON LAYOUTS
   ========================================== */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin-top: 0.75rem;
}

/* ==========================================
   EVENTS SECTION (HOVER TO REVEAL)
   ========================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.event-card {
    background-color: transparent;
    perspective: 1000px;
    height: 460px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.event-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-front {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(13, 18, 31, 0.4) 100%);
    box-shadow: var(--glow-card);
    transition: var(--transition);
}

.event-card:hover .card-front {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}

.event-number {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.event-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.event-brief {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hover-tip {
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* ---- Card Back ---- */
.card-back {
    background: linear-gradient(145deg, #0d1220 0%, #121828 100%);
    box-shadow: var(--glow-card);
    transform: rotateY(180deg);
    border-color: rgba(157, 78, 221, 0.35);
    justify-content: flex-start;
    gap: 0;
    padding: 1.75rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(157, 78, 221, 0.3) transparent;
}

.card-back::-webkit-scrollbar {
    width: 4px;
}

.card-back::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.35);
    border-radius: 2px;
}

.back-title {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: var(--glow-secondary);
    margin-bottom: 0.4rem;
    flex-shrink: 0;
}

.back-summary {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    font-style: italic;
    border-left: 2px solid rgba(0, 229, 255, 0.35);
    padding-left: 0.65rem;
    margin-bottom: 0.9rem;
    flex-shrink: 0;
}

/* Meta grid: date / venue / attendees */
.back-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0;
}

.back-meta-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.back-meta-icon {
    color: var(--primary);
    font-size: 0.78rem;
    width: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

.back-meta-text {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.back-meta-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.back-meta-value {
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Divider */
.back-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(157, 78, 221, 0.25), rgba(0, 229, 255, 0.1), transparent);
    margin: 0.85rem 0;
    flex-shrink: 0;
}

/* Section labels */
.back-section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* Winners */
.back-winners {
    flex-shrink: 0;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 500;
}

.medal {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    line-height: 1.4;
}

.medal-gold {
    background: rgba(255, 197, 61, 0.18);
    color: #ffc53d;
    border: 1px solid rgba(255, 197, 61, 0.35);
}

.medal-silver {
    background: rgba(192, 192, 192, 0.12);
    color: #c8c8c8;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.medal-bronze {
    background: rgba(205, 127, 50, 0.18);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.35);
}

/* In-charge */
.back-incharge {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.incharge-row {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.incharge-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--secondary);
    font-weight: 700;
    opacity: 0.85;
}

.incharge-value {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.4;
}


/* ==========================================
   TEAM SECTION (STAGGERED HONEYCOMB)
   ========================================== */
.honeycomb-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hexagon-wrapper {
    position: relative;
    width: 200px;
    height: 230px;
    transition: var(--transition);
}

.hexagon {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    overflow: hidden;
}

/* Outer boundary border simulation because border doesn't work well with clip-path */
.hexagon-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition);
}

.hexagon-wrapper:hover {
    transform: translateY(-8px) scale(1.05);
}

.hexagon-wrapper:hover::before {
    opacity: 1;
    box-shadow: var(--glow-primary);
}

.hex-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hex-avatar {
    font-size: 3rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.hexagon-wrapper:hover .hex-avatar {
    color: var(--primary);
    transform: scale(1.1);
}

.hex-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
    transition: var(--transition);
    filter: brightness(0.85) saturate(1.1);
}

.hexagon-wrapper:hover .hex-photo {
    filter: brightness(1) saturate(1.2);
    transform: scale(1.05);
}

.hex-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 18, 31, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    opacity: 1;
    z-index: 2;
    transition: var(--transition);
}

.hexagon-wrapper:hover .hex-overlay {
    opacity: 0;
    pointer-events: none;
}

.hex-role {
    font-family: var(--font-header);
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hex-name {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

/* ==========================================
   ABOUT US SECTION
   ========================================== */
.about-section {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-title {
    font-family: var(--font-header);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--secondary);
    background: rgba(157, 78, 221, 0.05);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: var(--glow-secondary);
}

.stat-card:nth-child(1) .stat-number {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   WOMEN IN ENGINEERING (WIE)
   ========================================== */
.wie-section {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.wie-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.wie-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.wie-logo-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e040fb;
    /* WIE Theme Purple/Pink */
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(224, 64, 251, 0.3);
    margin-bottom: 1rem;
}

.wie-title {
    font-family: var(--font-header);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.wie-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.wie-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.wie-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.wie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(224, 64, 251, 0.4);
    box-shadow: 0 10px 20px rgba(224, 64, 251, 0.1);
}

.wie-card-image {
    height: 180px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    transition: var(--transition);
}

.wie-card:hover .wie-card-image {
    color: #e040fb;
}

.wie-card-body {
    padding: 1.5rem;
}

.wie-card-body h4 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.wie-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================
   SVG WAVE DIVIDER & FOOTER
   ========================================== */
.svg-divider {
    width: 100%;
    line-height: 0;
    background-color: var(--bg-dark);
}

.svg-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

.main-footer {
    background-color: var(--bg-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 4rem 2rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col h3 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-branch-id {
    display: inline-block;
    margin-top: 0.65rem;
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.brand-col .logo-img {
    height: 120px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-list li i {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.developer-credit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dev-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.7;
    white-space: nowrap;
}

.dev-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dev-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem 0.3rem 0.55rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-header);
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.dev-chip-icon {
    font-size: 0.85rem;
    color: #0a66c2;
    transition: var(--transition);
    opacity: 0.7;
}

.dev-chip:hover {
    background: rgba(10, 102, 194, 0.12);
    border-color: rgba(10, 102, 194, 0.4);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.15);
}

.dev-chip:hover .dev-chip-icon {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(10, 102, 194, 0.5));
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 7rem;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 3.25rem;
    }

    .hero-subtitle {
        margin: 0 auto;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
    }

    .social-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    /* Reduce logo size in navbar on mobile */
    .logo-img {
        height: 52px;
    }

    .nav-container {
        padding: 0.6rem 1.25rem;
        min-height: 60px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .wie-cards {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .social-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .developer-credit {
        justify-content: center;
    }

    .dev-chips {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Honeycomb: shrink hexagons on mobile */
    .hexagon-wrapper {
        width: 150px;
        height: 173px;
    }

    .honeycomb-container {
        gap: 1rem;
    }

    /* Hero section top padding accounts for smaller header */
    .hero-section {
        padding-top: 6rem;
    }

    /* About grid single column padding */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 4rem 1.25rem;
    }
}

/* ==========================================
   SRMS × IEEE COLLAB BANNER
   ========================================== */
.collab-banner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: calc(72px + 3rem) 2rem 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, #070b14 0%, #0b1025 50%, #07090e 100%);
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.collab-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0, 229, 255, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(157, 78, 221, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.collab-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    position: relative;
    z-index: 1;
}

.collab-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.collab-logo {
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.25));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.collab-logo:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.5));
}

.collab-logo-srms {
    height: 140px;
    width: auto;
    max-width: 300px;
}

.collab-logo-ieee {
    height: 140px;
    width: auto;
    max-width: 340px;
}

.collab-x-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.collab-x {
    font-family: var(--font-header);
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    line-height: 1;
    animation: collabXPulse 3s ease-in-out infinite;
    display: block;
}

@keyframes collabXPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.12);
    }
}

.collab-tagline {
    margin-top: 1.75rem;
    font-family: var(--font-header);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Responsive adjustments for collab banner */
@media (max-width: 640px) {
    .collab-banner {
        padding: calc(60px + 2rem) 1rem 2rem;
        overflow-x: hidden;
    }

    .collab-inner {
        gap: 1rem;
        flex-wrap: nowrap;
        width: 100%;
        justify-content: center;
    }

    .collab-logo-wrap {
        flex: 0 1 auto;
        min-width: 0;
    }

    .collab-logo-srms,
    .collab-logo-ieee {
        height: 70px;
        max-width: 130px;
    }

    .collab-x {
        font-size: 2.5rem;
    }

    .collab-tagline {
        font-size: 0.7rem;
        text-align: center;
        padding: 0 0.5rem;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 400px) {
    .collab-logo-srms,
    .collab-logo-ieee {
        height: 55px;
        max-width: 100px;
    }

    .collab-x {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hexagon-wrapper {
        width: 130px;
        height: 150px;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .logo-img {
        height: 44px;
    }
}

/* ==========================================
   NAV ACTIONS & THEME TOGGLE
   ========================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.theme-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* ==========================================
   LIGHT MODE OVERRIDES
   ========================================== */
html.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-footer: #f1f5f9;

    --primary: #0077b6;
    --secondary: #6b21a8;
    --text-main: #0f172a;
    --text-muted: #475569;

    --glow-primary: 0 0 15px rgba(0, 119, 182, 0.3);
    --glow-secondary: 0 0 15px rgba(107, 33, 168, 0.3);
    --glow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
}

html.light-mode .main-header {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

html.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

html.light-mode .cube-face {
    background: rgba(255, 255, 255, 0.85);
}

html.light-mode .card-front {
    background: linear-gradient(145deg, #ffffff 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .card-back {
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}

html.light-mode .back-summary {
    border-left: 2px solid rgba(0, 119, 182, 0.5);
}

html.light-mode .back-divider {
    background: linear-gradient(90deg, rgba(107, 33, 168, 0.15), rgba(0, 119, 182, 0.1), transparent);
}

html.light-mode .medal-gold {
    background: rgba(255, 197, 61, 0.2);
    border: 1px solid rgba(255, 197, 61, 0.5);
}

html.light-mode .medal-silver {
    background: rgba(148, 163, 184, 0.2);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

html.light-mode .medal-bronze {
    background: rgba(205, 127, 50, 0.2);
    border: 1px solid rgba(205, 127, 50, 0.5);
}

html.light-mode .hexagon {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .hex-overlay {
    background: rgba(255, 255, 255, 0.9);
}

html.light-mode .stat-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .wie-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .wie-card-image {
    background: rgba(0, 0, 0, 0.02);
    color: rgba(0, 0, 0, 0.1);
}

html.light-mode .main-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .footer-container {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .social-links a {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .dev-chip {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .collab-banner {
    background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .mobile-menu-overlay {
    background: rgba(248, 250, 252, 0.95);
}