/* 
   TechRoots 2026 - Main Stylesheet 
   Theme: Dark, Neon, Antigravity, Glassmorphism
*/

:root {
    --bg-color: #0b0d17;
    --text-color: #ffffff;
    --text-muted: #a0a0bf;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* --- Background Effects --- */
.bg-gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    top: -100px;
    left: -100px;
    animation: floatOrb 10s infinite alternate ease-in-out;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    bottom: -100px;
    right: -100px;
    animation: floatOrb 12s infinite alternate-reverse ease-in-out;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* --- Typography & Utilities --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.highlight {
    color: var(--accent-cyan);
}

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-purple);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary,
.btn-register-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    color: white;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

.btn-register-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-register-nav:hover {
    background: var(--accent-cyan);
    color: black;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 1000;
    border-radius: 50px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

.desktop-only {
    display: flex;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-cyan);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Mobile Menu Overlay Styles */
.mobile-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: top 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    border-radius: 0;
}

.mobile-menu.open {
    top: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

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

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    cursor: pointer;
}

@media (max-width: 768px) {

    .nav-links,
    .desktop-only {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        width: 95%;
        top: 10px;
        padding: 0.8rem 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* --- Logo Styling --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.college-name {
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 40px;
}

.event-chips {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.chip {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Shapes (Antigravity) */
.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    opacity: 0.3;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--accent-cyan);
    top: 20%;
    left: 10%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-purple);
    bottom: 20%;
    right: 15%;
}

/* --- Registration Section --- */
.registration-section {
    padding: 100px 0;
    position: relative;
}

.registration-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.reg-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.reg-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.reg-options {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
    gap: 20px;
}

.reg-option {
    flex: 1;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s;
}

.reg-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-cyan);
}

.reg-option .badge {
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.reg-option .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
    font-family: var(--font-heading);
}

.reg-option .note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.reg-action-area {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-container {
    width: 150px;
    height: 150px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-container .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 4px var(--accent-cyan);
    animation: scan 2s infinite linear;
    z-index: 2;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.link-area {
    text-align: left;
}

.copy-box {
    display: flex;
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-box input {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 10px;
    width: 200px;
    outline: none;
}

.btn-copy {
    background: var(--accent-purple);
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-color);
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* --- Schedule Section --- */
.schedule-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item .time {
    width: 45%;
    text-align: right;
    padding: 20px;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
}

.timeline-item:nth-child(even) .time {
    text-align: left;
}

.timeline-item .content {
    width: 45%;
    padding: 25px;
    position: relative;
}

/* Content Dot */
.timeline-item .content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Adjust dot position based on side */
.timeline-item:nth-child(odd) .content::before {
    left: -50px;
    /* actually calculates to center relative to container width math */
    /* A clearer way is to position relative to the center line */
}

/* Re-adjust dot specifically for the layout */
/* Using a simpler approach for the dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: var(--bg-color);
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item h3 {
    margin-bottom: 10px;
    color: white;
}

.timeline-item ul {
    list-style: none;
    color: var(--text-muted);
}

.timeline-item li {
    margin-bottom: 5px;
}

.tag {
    display: inline-block;
    background: rgba(188, 19, 254, 0.2);
    color: var(--accent-purple);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 5px;
}

/* --- Prizes Section --- */
.prizes-section {
    padding: 100px 0;
}

.prizes-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align bottom to show podium effect */
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.prize-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    width: 250px;
    transition: transform 0.3s;
}

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

.first-place {
    height: 350px;
    order: 2;
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.1), transparent);
    border-color: rgba(255, 215, 0, 0.3);
}

.second-place {
    height: 300px;
    order: 1;
}

.third-place {
    height: 280px;
    order: 3;
}

.prize-card h3 {
    margin: 15px 0;
    font-size: 1.2rem;
}

.prize-card .reward {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: white;
}

.medal,
.crown {
    font-size: 3rem;
    margin-bottom: 10px;
}

.perks-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.perk-item {
    text-align: center;
    color: var(--text-muted);
}

.perk-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tagline {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.footer-details {
    margin-bottom: 30px;
    color: white;
}

.footer-cta {
    display: inline-block;
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-cyan);
    padding-bottom: 2px;
    margin-bottom: 40px;
    font-weight: 700;
}

.copyright {
    font-size: 0.8rem;
    color: #555;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-item .time,
    .timeline-item:nth-child(even) .time {
        width: 100%;
        text-align: left;
        padding: 5px 0;
        font-size: 0.9rem;
    }

    .timeline-item .content {
        width: 100%;
    }

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

    .reg-options {
        flex-direction: column;
    }

    .divider {
        width: 100%;
        height: 1px;
    }

    .prizes-grid {
        align-items: center;
    }

    .first-place,
    .second-place,
    .third-place {
        order: unset;
        height: auto;
        width: 100%;
    }
}