/* Global Styles & Reset */
:root {
    --primary-color: #ffffff;
    --secondary-color: #808080;
    --accent-color: #404040;
    --bg-color: #000000;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(50, 50, 50, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(100, 100, 100, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

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

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.loading-jet-img {
    width: 100%;
    filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.6));
    /* Initial state for GSAP */
    opacity: 0;
    transform: scale(0.5);
}

.loading-text {
    margin-top: 2rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: 2px;
    animation: pulse 1s infinite;
    text-align: center;
}

@keyframes flyUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200vh);
    }
}

@keyframes shake {
    0% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(2px);
    }
}

@keyframes pulse {

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

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.completion-banner {
    animation: pulse 2s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transition: 0.3s;
}

.completion-banner:hover {
    background: rgba(0, 243, 255, 0.2) !important;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between logo and text */
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    /* Ensure generic text is white */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

/* Logo Styles */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* Made smaller */
    font-weight: 800;
    /* Slightly less heavy */
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    /* Reduced spacing */
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Closer gap */
    transition: 0.3s;
}

.logo-text i {
    font-size: 1.4rem;
    /* Balanced icon size */
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    filter: drop-shadow(0 0 8px var(--primary-color));
    transform: rotate(0deg);
    /* Straight jet looks cleaner usually, or 90deg */
}

.logo-text:hover {
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    transform: scale(1.02);
}

.logo span {
    color: #fff;
    /* Explicitly white as requested */
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    /* Vertically center items */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

/* Register Button with Moving Mask */
.nav-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    /* This MUST clip children */
    color: #fff;
    background: transparent;
    transition: color 0.3s;
    z-index: 1;
    /* Establish stacking context */
    display: inline-block;
    /* Ensure it respects box model */
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    /* Wider mask for smoother pass */
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    z-index: -1;
    /* Place BEHIND text but above background */
    transform: skewX(-20deg);
    /* Angled shine looks more pro */
    animation: maskMove 3s linear infinite;
}

@keyframes maskMove {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -100%;
        /* Returns to start, creating right-to-left effect */
    }
}

.nav-btn:hover {
    color: #fff;
    /* Keep white on hover or change if needed */
    box-shadow: 0 0 10px var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a:not(.nav-btn)::after {
    /* Exclude underline from button */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 6rem 10% 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Home Section */
#home {
    background: url('elements/earth.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Stack for centering */
    align-items: center;
    justify-content: center;
    /* Center vertically */
    text-align: center;
    gap: 0;
    overflow: hidden;
    padding: 0 5%;
    /* Balanced padding */
    min-height: 100vh;
    /* Default to full height */
}

#home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker overlay for B&W theme */
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle {
    font-size: 2rem;
    letter-spacing: 8px;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    /* Large and impactful */
    line-height: 1;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.6), 0 0 60px rgba(0, 242, 255, 0.4);
    background: linear-gradient(to bottom, #fff, #b3f0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.event-details {
    display: flex;
    justify-content: center;
    /* Centered */
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.detail-box {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure internal text is centered */
    gap: 15px;
    /* Increased gap */
    font-size: 1.3rem;
    /* Slightly larger text */
    font-weight: 500;
    /* Bolder text */
    border: 1px solid var(--primary-color);
    padding: 12px 25px;
    /* More padding */
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    /* Slightly lighter background */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    /* Highlight glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* Centered */
}

/* Unified Button Style */
.btn {
    padding: 18px 40px;
    border-radius: 5px;
    /* Techy sharp corners or slightly rounded */
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    transition: 0.3s;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    /* For GSAP */
    transform: translateY(20px);
}

/* Merged styles removed */

.btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.4);
    border-color: #fff;
    transform: scale(1.05);
}

/* 3D Model Container */
.model-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    pointer-events: none;
    /* Make it strictly background */
    /* Fade out the bottom to blend the structure */
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 90%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 90%);
}

model-viewer {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.4));
    --poster-color: transparent;
    background-color: transparent;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Mission Divider */
.mission-divider {
    position: relative;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -2rem;
    /* Pull up slightly */
    z-index: 5;
}

.divider-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 10px var(--primary-color);
}

.divider-jet {
    position: absolute;
    left: 0;
    font-size: 2rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* About Section */
/* About Section */
#about {
    padding-top: 8rem;
    /* Increased margin */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Force two columns side-by-side */
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align content to top */
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

/* Animated Black & White Grid Background */
.animated-bg {
    background-color: #000;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveGrid 20s linear infinite;
    /* Removed background-size: cover/center from generic card rule override */
}

@keyframes moveGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 40px;
    }
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.about-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-transform: uppercase;
    text-align: center;
}

.about-card p {
    color: #ddd;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
}

.about-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

.about-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Events Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    /* Increased max-width */
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--secondary-color), transparent);
    top: 0;
    bottom: 0;
    left: 50px;
    /* Position line to the left */
    margin-left: 0;
}

.timeline-item {
    padding: 20px 0 20px 80px;
    /* Space for the line */
    position: relative;
    width: 100%;
    /* Full width */
    opacity: 0;
}

.timeline-item::after {
    content: '\f135';
    /* Rocket icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    width: 40px;
    height: 40px;
    background: #000;
    border: 2px solid var(--primary-color);
    top: 30px;
    left: 31px;
    /* Align with line */
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.timeline-content {
    display: flex;
    /* Horizontal layout */
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    /* Less rounded for tech feel */
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Ensure content takes full width */
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-content:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.timeline-info {
    flex: 2;
}

.timeline-time {
    flex: 1;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    border-left: 1px solid var(--glass-border);
    padding-left: 2rem;
    margin-left: 2rem;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content p {
    color: #ccc;
    font-size: 1.1rem;
}

/* Remove odd/even specific positioning since it's all left-aligned now */
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    left: 0;
}

.timeline-item:nth-child(odd)::after,
.timeline-item:nth-child(even)::after {
    left: 31px;
    right: auto;
}

/* Rules Section */
.rules-list {
    list-style: none;
}

.rules-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    /* Align bullet to top of text */
    gap: 15px;
    line-height: 1.5;
}

.rules-list li i {
    color: var(--primary-color);
    margin-top: 5px;
    /* Adjust icon vertical position */
}

/* Removed duplicate rule */

/* Prizes Section */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.prize-card {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.prize-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    z-index: 0;
}

.rewards-card h3 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 0 25px var(--primary-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    white-space: nowrap;
}

.prize-card .card-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.centered-content {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.price-tag {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
    margin: 1rem 0;
}

.currency {
    font-size: 2rem;
    vertical-align: super;
}

.per-team {
    font-size: 1.2rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 243, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
    }
}

.prize-list h4 {
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prize-list h4 i {
    color: var(--secondary-color);
}

.prize-list ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.prize-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: #ddd;
    font-size: 1.1rem;
}

.prize-list li i {
    color: var(--primary-color);
    font-size: 0.9rem;
    transform: rotate(90deg);
}

/* Back to Top Button */
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: url('elements/2.png') no-repeat center center/cover;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    opacity: 1;
    /* Always visible */
    pointer-events: all;
    transform: translateY(0);
    animation: floatBtn 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

@keyframes floatBtn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.back-to-top:hover {
    box-shadow: 0 0 25px var(--primary-color), 0 0 50px var(--primary-color);
    transform: scale(1.1);
}

.back-to-top:active {
    transform: translateY(-50px) scale(0.8);
    transition: transform 0.1s;
}

.back-to-top img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: transform 0.5s;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-card h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    white-space: nowrap !important;
}

.team-card .role {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 0.2rem;
}

/* Query / Student Coordinator Section */
.section-subtitle {
    font-family: var(--font-heading);
    color: #fff;
    text-align: center;
    margin: 3rem 0 2rem;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.query-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.query-card {
    padding: 1.5rem;
    /* Compact padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.query-card h4 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.query-card .role {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-row {
    margin-top: 0.5rem;
    font-size: 1rem;
}

.contact-row a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-row a:hover {
    color: var(--primary-color);
}

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

.icon-only {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

.icon-only:hover {
    opacity: 1;
    cursor: pointer;
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-image: url('elements/3.png');
    /* Added background image */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    /* Dark overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.contact-info {
    position: relative;
    z-index: 2;
    /* Ensure text is above overlay */
}

.info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Footer */
#footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 10% 2rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
    /* Ensure all columns extend to same height */
    text-align: center;
}

.footer-col {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s, border-color 0.3s;
    height: 100%;
    position: relative;
    /* Context for overlay */
    overflow: hidden;
    /* Clip overlay */
    z-index: 1;
}

.footer-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark overlay */
    z-index: -1;
    /* Behind content */
}

.footer-col:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    /* background: Keep image */
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-text {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.social-icons-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    /* Center icons */
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    /* Circle icons */
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.social-icon-link:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.map-container {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: box-shadow 0.3s;
}

.map-container:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    border-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.developer-credit {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #aaa;
}

.dev-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.dev-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.dev-link:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

.dev-link:hover::after {
    width: 100%;
}


/* Tablet & Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    /* Removed duplicate main-title rule */

    .main-title {
        font-size: 3rem;
        /* Scaled down for mobile but still large */
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .logo-text {
        font-size: 1.1rem;
        /* Even smaller for mobile safety */
        gap: 4px;
        letter-spacing: 0;
    }

    .logo-text i {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 1.2rem;
        gap: 10px;
    }

    .navbar {
        padding: 1rem;
    }

    /* Nav Button Style */
    .nav-btn {
        padding: 10px 25px !important;
        /* Override standard nav link padding */
        border: 2px solid var(--primary-color);
        border-radius: 30px;
        color: #fff;
        position: relative;
        overflow: hidden;
        background: transparent;
        z-index: 1;
        transition: color 0.4s;
    }

    .nav-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: var(--primary-color);
        z-index: -1;
        transition: width 0.4s ease-in-out;
        /* Left to Right animation */
    }

    .nav-btn:hover {
        color: #000;
    }

    .nav-btn:hover::before {
        width: 100%;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--text-color);
        transition: all 0.3s ease-in-out;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(5, 5, 16, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid var(--glass-border);
    }

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

    .nav-links li {
        margin: 16px 0;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timeline-time {
        width: 100%;
        text-align: left;
        margin: 1rem 0 0 0;
        padding: 1rem 0 0 0;
        border-left: none;
        border-top: 1px solid var(--glass-border);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .timeline-time span br {
        display: none;
        /* Make it one line or separated by space if needed, or keep break but left aligned */
    }

    /* Home Layout Fixes */
    #home {
        padding: 6rem 1rem 2rem;
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top */
        align-items: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        z-index: 10;
        margin-top: 2rem;
    }

    .main-title {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    /* 3D Model adjusted for mobile */
    .model-container {
        position: absolute;
        /* Keep absolute but adjust props */
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        right: 0;
        opacity: 0.5;
        z-index: 1;
        /* Below text */
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
        mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    }

    /* Button and Event Details Stacking */
    .event-details {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    /* About Section Stacking */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .event-details,
    .cta-buttons {
        justify-content: center;
    }

    .model-container {
        width: 100%;
        height: 400px;
        order: -1;
        margin-top: 2rem;
    }

    /* Prize/Mission Cards Stacking */
    .prizes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prize-card {
        min-height: auto;
    }

    .footer-col {
        height: auto;
        min-height: auto;
    }

    /* Ensure team cards also behave nicely if not already */
    /* Ensure team cards also behave nicely if not already */
    .query-grid,
    .footer-row,
    .team-grid {
        grid-template-columns: 1fr !important;
    }

    /* Team grid removed from 2-col definition */

    /* Removed strict padding on team-card since we are now 1-col */
    /* Removed small font/wrapping on team-card h3 since we want single line */

    .rewards-card h3 {
        font-size: 2rem;
        white-space: normal;
    }

    .price-tag {
        font-size: 3rem;
    }
}

/* === Registration Page Styles === */
#register-page {
    padding-top: 8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.centered-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.registration-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 5rem;
    /* Increased margin */
}

.reg-card {
    flex: 1;
    min-width: 350px;
    max-width: 700px;
    /* Made even wider */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, border 0.3s, box-shadow 0.3s, background 0.3s;
    padding: 2rem 2.5rem;
    /* Reduced margin */
    border-radius: 12px;
    position: relative;
    justify-content: flex-start;
    /* Align top first */
}

/* #pg-card block removed to apply styles globally */

.reg-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    font-size: 3rem;
    height: 60px;
    /* Fixed height container */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    /* Reduced margin */
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.reg-card h3 {
    font-size: 1.4rem;
    /* Reduced to fit one line */
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Reduced spacing */
    min-height: 2.4rem;
    /* Force alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    /* Force one line */
}

.reg-card h4 {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    min-height: 1.5rem;
    /* Force alignment for longer text */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-tag-sm {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-size: 1.2rem;
    min-width: 180px;
    /* Ensure uniform tag width */
}

.reg-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    width: 90%;
    flex-grow: 1;
    /* Allow list to take up space to push button down evenly */
}

.reg-features li {
    margin-bottom: 12px;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.reg-features li i {
    color: var(--primary-color);
    font-size: 1rem;
    min-width: 20px;
    /* Align text properly */
    text-align: center;
}

.full-width-btn {
    width: 100%;
    max-width: 300px;
    margin-top: auto;
    /* Override global opacity/transform since no GSAP on this page for these buttons */
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* === Form Styles === */
.form-panel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 3rem 3rem 6rem;
    /* Increased bottom padding significantly */
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--primary-color);
    position: relative;
    border-radius: 12px;
}

.hidden {
    display: none !important;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.form-header h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    text-transform: uppercase;
}

.close-form {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-form:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: #fff;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.input-group label {
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 5px;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-actions .btn {
    opacity: 1;
    transform: none;
}

.form-panel.hidden {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border: none;
}

/* Mobile Responsiveness for Register Page */
@media screen and (max-width: 768px) {
    .registration-grid {
        flex-direction: column;
        align-items: center;
    }

    .reg-card {
        width: 100%;
        max-width: 100%;
    }

    .form-panel {
        padding: 1.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .input-group {
        margin-bottom: 1rem;
    }
}

.loading-jet-img-sm {
    width: 60px;
    filter: drop-shadow(0 0 5px rgba(0, 150, 255, 0.6));
    animation: shake 0.2s infinite;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.active-page {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px var(--primary-color);
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #ccc;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: 0.3s;
}

.checkbox-container:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkbox-text a {
    text-decoration: underline;
}

/* Payment Section Styling provided in previous steps but ensuring file input looks okay */
input[type="file"] {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--glass-border);
    color: #ccc;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    margin-right: 15px;
    border: none;
    background: var(--primary-color);
    padding: 5px 10px;
    border-radius: 3px;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-heading);
}

input[type="file"]:hover::file-selector-button {
    background: #fff;
}

/* Mobile Font Adjustments */
@media screen and (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
        /* Reduce from 6rem */
    }

    .section-title {
        font-size: 2.2rem;
        /* Reduce from 3rem */
    }

    .subtitle {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    section {
        padding: 4rem 5% 2rem;
    }

    .hero-content {
        padding-top: 4rem;
    }
}

@media screen and (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }

    .detail-box {
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-btn {
        padding: 8px 15px;
        width: 100%;
        text-align: center;
    }
}

/* Success/Message Modal */
.success-modal {
    display: none;
    /* JS toggles to flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.success-content {
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid var(--primary-color);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 60px rgba(0, 243, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.8;
    z-index: 10;
}

.close-modal-btn:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: rotate(90deg);
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.success-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.success-message {
    font-size: 1.4rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
    white-space: pre-line;
    /* Handle newlines in JS messages */
}