/* CSS Variables - IEEE Standard + Modern Touches */
:root {
    --primary-blue: #00629B;
    --dark-blue: #002855;
    --accent-cyan: #00B5E2;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --transition-speed: 0.3s;
    --card-shadow: 0 10px 30px -10px rgba(0, 98, 155, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--bg-light);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    /* Ensure body doesn't stretch */
}

html {
    overflow-x: hidden;
    /* Critical for mobile */
    width: 100%;
}

h1,
h2,
h3,
h4,
.nav-logo {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

/* --- Navigation (Premium Floating Design) --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Scrolled state (optional js hook can add class 'scrolled') */
.navbar.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    /* Reduced padding for slimmer look */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo .logo-vasavi {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-logo .logo-ieee {
    height: 55px;
    /* Reduced to balance */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

/* Animated Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Button override for nav */
.nav-links .btn {
    padding: 0.6rem 1.5rem !important;
    /* Ensure proper sizing in menu */
}

.nav-links .btn::after {
    display: none;
}

/* Remove underline for button */


/* --- Mobile Toggle --- */
.mobile-toggle {
    display: none;
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 98, 155, 0.3);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background-color: var(--bg-light);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    /* Better for mobile content */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Clip orbs */
    background: radial-gradient(circle at 50% 50%, #f0f9ff 0%, #ffffff 70%);
    padding-top: 8rem;
    /* Space for Navbar */
}

.hero-3d-wrapper {
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 2;
    padding: 0 1rem;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 98, 155, 0.2);
}

.hero-text-layer h1 {
    font-size: 5rem;
    color: var(--dark-blue);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* 3D Background Elements */
.hero-bg-elements .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: -100px;
    left: -100px;
    animation: float 10s infinite alternate ease-in-out;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    bottom: -50px;
    right: -50px;
    animation: float 12s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* --- Countdown Timer --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    font-family: 'Rajdhani', sans-serif;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 98, 155, 0.1);
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.time-block span {
    display: block;
}

.time-block #days,
.time-block #hours,
.time-block #minutes {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.time-block .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-top: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- About Section --- */
.section-padding {
    padding: 6rem 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
}

.info-grid {
    display: grid;
    gap: 4rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:nth-child(even) {
    flex-direction: row-reverse;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    max-width: 400px;
}

.card-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.info-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* --- Timeline Section --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    width: 100%;
    position: relative;
}

/* Alternating logic */
.timeline-item .timeline-content {
    width: 45%;
    margin-right: auto;
    /* Left side by default */
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: right;
    position: relative;
    transform: perspective(1000px);
}

.schedule-list {
    list-style: none;
    text-align: left;
    /* Always left align list for readability */
    margin-top: 1rem;
    padding-left: 1rem;
}

.schedule-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.schedule-list li::before {
    content: '▹';
    /* Custom bullet */
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.timeline-item.item-right {
    justify-content: flex-end;
}

.timeline-item.item-right .timeline-content {
    margin-right: 0;
    margin-left: auto;
    /* Right side */
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-blue);
}

.img-holder {
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 6px;
    height: 200px;
}

.img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    cursor: pointer;
}

.timeline-content:hover .img-holder img {
    transform: scale(1.1);
}

.date-badge {
    display: inline-block;
    background: var(--accent-cyan);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* --- IEEE Societies Section --- */
.societies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    justify-items: center;
    align-items: center;
    margin-top: 2rem;
}

.society-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 250px;
    height: 150px;
    /* Fixed height for uniformity */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(0, 98, 155, 0.05);
}

.society-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 98, 155, 0.2);
}

.society-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    /* Optional: grayscale until hover for effect, or remove if colorful */
    transition: filter 0.3s;
}

.society-card:hover img {
    filter: grayscale(0%);
}

/* --- Brochure Section (3D Carousel) --- */
.brochure-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.brochure-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
    perspective: 2000px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brochure-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.brochure-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 495px;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.brochure-card-3d {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 98, 155, 0.3);
    overflow: hidden;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.brochure-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 181, 226, 0.1) 0%, rgba(0, 98, 155, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.brochure-slide:hover .brochure-card-3d::before {
    opacity: 1;
}

.brochure-card-3d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.brochure-slide:hover .brochure-card-3d img {
    transform: scale(1.05);
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 2;
}

.brochure-slide:hover .card-shine {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--primary-blue);
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 98, 155, 0.3);
}

.prev-nav {
    left: -25px;
}

.next-nav {
    right: -25px;
}

/* Pagination Dots */
.carousel-pagination {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 98, 155, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pagination-dot:hover {
    background: rgba(0, 98, 155, 0.6);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: var(--primary-blue);
    width: 32px;
    border-radius: 6px;
    border-color: var(--primary-blue);
}

/* --- Contact Us Section (3D Carousel) --- */
.contact-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.contact-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
    perspective: 2000px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-carousel {
    position: relative;
    width: 100%;
    height: 380px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 380px;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.contact-card-3d {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 98, 155, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.contact-slide:hover .contact-card-3d {
    border-color: var(--accent-cyan);
}

.contact-card-3d .contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 98, 155, 0.3);
    transition: all 0.4s ease;
}

.contact-slide:hover .contact-icon {
    transform: scale(1.1) rotateY(360deg);
}

.contact-card-3d h3 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.contact-card-3d .role {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.contact-card-3d .contact-info {
    margin-top: auto;
    width: 100%;
}

.contact-card-3d .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 98, 155, 0.2);
}

.contact-card-3d .contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 98, 155, 0.35);
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
}

/* Role badges */
.role-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.chair-badge {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
}

.vice-chair-badge {
    background: linear-gradient(90deg, #C0C0C0 0%, #A8A8A8 100%);
}

.webmaster-badge {
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--primary-blue) 100%);
}

/* --- Coordinators Section (Exact Replica) --- */
.tilt-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.tilt-card {
    width: 300px;
    height: 400px;
    position: relative;
    perspective: 1000px;
    /* Outer perspective */
}

.tilt-card-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 2px solid #fff;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* JS will handle transform: rotateX/Y */
}

.tilt-image-wrapper {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    /* Larger for parallax movement */
    height: calc(100% + 20px);
    transform-style: preserve-3d;
    /* JS will handle transform: translate3d for parallax */
}

.tilt-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Align to top to prevent head crop */
}

.tilt-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0.4;
    /* Adjusted from 1 to 0.4 for better visibility initially */
    transition: opacity 0.5s ease;
}

.tilt-card:hover .tilt-overlay {
    opacity: 0.15;
    /* Much brighter on hover */
}

.tilt-border {
    position: absolute;
    inset: 10px;
    /* Inner border spacing */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    pointer-events: none;
    /* Let clicks pass */
}

.tilt-text-wrapper {
    padding: 1.5rem;
    transform: translate3d(0, 56px, 0);
    /* Hidden state */
    transition: transform 0.5s ease;
}

.tilt-card:hover .tilt-text-wrapper {
    transform: translate3d(0, 0, 0);
    /* Reveal state */
}

.tilt-text-wrapper h3 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px #000;
}

.tilt-text-wrapper .team-role {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    text-shadow: 1px 1px #000;
    margin: 0;
}



.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.profile-img-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: var(--primary-blue);
    font-size: 2rem;
    position: relative;
}

.profile-img-placeholder::after {
    content: '👤';
    font-size: 3rem;
    opacity: 0.5;
}

.team-card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    background: var(--primary-blue);
    padding: 8rem 2rem;
    color: var(--white);
    overflow: hidden;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--dark-blue), var(--primary-blue));
    z-index: 1;
}

.cta-section .container {
    z-index: 5;
    position: relative;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- Footer --- */
footer {
    position: relative;
    background: var(--dark-blue);
    color: white;
    padding: 4rem 2rem 4rem;
    /* More padding at bottom since copyright is gone */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertical Center */
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-brand h4 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Address Section */
.footer-center {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.address-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}

.address-link:hover {
    color: var(--accent-cyan);
}

.icon-map {
    color: var(--primary-blue);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.address-link:hover .icon-map {
    transform: translateY(-3px);
    color: var(--accent-cyan);
}

/* Social Icons */
.social-icons {
    flex: 1;
    min-width: 150px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.social-link {
    color: white;
    opacity: 0.7;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link svg {
    display: block;
}

.instagram-link {
    margin-top: 7px;
}

.social-link:hover {
    opacity: 1;
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

/* Footer Credit */
.footer-credit {
    width: 100%;
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-credit p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.5px;
}

.designer-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.designer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- Image Modal (Lightbox) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 181, 226, 0.2);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-cyan);
    text-decoration: none;
    cursor: pointer;
}

/* Event Modal Styles */
.event-trigger {
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.event-trigger:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
    text-decoration: underline;
}

.event-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    /* Above image modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.event-modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 2.5rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-event-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-event-modal:hover {
    color: var(--dark-blue);
}

#event-modal-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 0.5rem;
    display: inline-block;
}

#event-modal-body {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* --- Premium Animations --- */
.glitch-text {
    position: relative;
    color: var(--dark-blue);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    opacity: 0.7;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    4.166% {
        clip: rect(91px, 9999px, 43px, 0);
    }

    8.333% {
        clip: rect(65px, 9999px, 59px, 0);
    }

    12.5% {
        clip: rect(10px, 9999px, 73px, 0);
    }

    16.66% {
        clip: rect(15px, 9999px, 3px, 0);
    }

    100% {
        clip: rect(67px, 9999px, 62px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    4.166% {
        clip: rect(55px, 9999px, 76px, 0);
    }

    8.333% {
        clip: rect(2px, 9999px, 20px, 0);
    }

    12.5% {
        clip: rect(32px, 9999px, 21px, 0);
    }

    16.66% {
        clip: rect(89px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(98px, 9999px, 14px, 0);
    }
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s, transform 0.5s;
}

.glow-effect:hover::after {
    opacity: 1;
    transform: scale(1);
}

.card-image-wrapper {
    position: relative;
}

.shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine-move 3s infinite;
    pointer-events: none;
}

@keyframes shine-move {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1001;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--dark-blue);
        margin-bottom: 5px;
        border-radius: 2px;
        transition: 0.3s;
    }

    .hero-text-layer h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .timeline-line {
        left: 20px;
    }

    /* Reduce Orbs on Mobile */
    .orb-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        left: -50px;
    }

    .orb-2 {
        width: 150px;
        height: 150px;
        right: -30px;
        bottom: -30px;
    }

    .timeline-item,
    .timeline-item.item-right {
        justify-content: flex-start !important;
    }

    .timeline-content,
    .timeline-item.item-right .timeline-content {
        width: auto !important;
        margin-left: 60px !important;
        /* Force left margin for ALL items */
        margin-right: 20px !important;
        text-align: left !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
        max-width: calc(100vw - 80px) !important;
    }

    .timeline-dot {
        left: 20px;
    }

    .info-card {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem;
    }

    .card-image-wrapper {
        max-width: 100%;
    }

    .countdown-container {
        gap: 1rem;
    }

    .time-block {
        padding: 0.8rem;
        min-width: 70px;
    }

    .time-block #days,
    .time-block #hours,
    .time-block #minutes {
        font-size: 1.8rem;
    }

    .time-block .label {
        font-size: 0.7rem;
    }

    .team-grid {
        gap: 2rem;
    }

    /* Brochure Carousel Responsive */
    .brochure-carousel-wrapper {
        padding: 2rem 0;
        min-height: 450px;
    }

    .brochure-carousel {
        height: 400px;
    }

    .brochure-slide {
        width: 280px;
        height: 380px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .prev-nav {
        left: 5px;
    }

    .next-nav {
        right: 5px;
    }

    .carousel-pagination {
        bottom: -10px;
    }

    /* Contact Carousel Responsive */
    .contact-carousel-wrapper {
        padding: 2rem 0;
        min-height: 350px;
    }

    .contact-carousel {
        height: 320px;
    }

    .contact-slide {
        width: 260px;
        height: 320px;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-center {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Typing Cursor Animation */
.typing-cursor::after {
    content: '|';
    display: inline-block;
    color: var(--accent-cyan);
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hidden Developer Signature (Easter Egg) */
.developer-signature {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    font-size: 0.75rem;
    z-index: 100;
}

.invisible-link {
    color: var(--dark-blue);
    /* Same as footer background */
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.invisible-link:hover {
    color: var(--dark-blue);
    /* Stays invisible on hover */
}

/* Visible when text is selected (Ctrl+A) */
.invisible-link::selection {
    background: var(--accent-cyan);
    color: var(--dark-blue);
}