:root {
    --bg-color: #f8fafc;
    --bg-secondary: #ffffff;
    --primary: #2563eb;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glow: 0 10px 30px rgba(37, 99, 235, 0.15);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

[data-theme="dark"] {
    --bg-color: #070b14;
    --bg-secondary: #0d1424;
    --primary: #00f0ff;
    --accent: #ff003c;
    --accent-hover: #ff4d79;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --glass-bg: rgba(13, 20, 36, 0.75);
    --glass-border: rgba(0, 240, 255, 0.2);
    --glow: 0 0 25px rgba(0, 240, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-register {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: 1px solid var(--primary);
    box-shadow: var(--glow);
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: transparent;
    color: var(--primary) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    padding-top: 80px;
    gap: 1.5rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

[data-theme="dark"] .badge {
    background: rgba(55, 118, 171, 0.2);
    color: var(--text-main);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.highlight {
    color: var(--primary);
}

[data-theme="dark"] .highlight {
    color: var(--accent);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    color: var(--text-main);
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-weight: 500;
}

.stat i {
    color: var(--primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    box-shadow: var(--glow);
}

[data-theme="dark"] .btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

[data-theme="dark"] .btn-primary:hover {
    color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 212, 59, 0.4);
}

/* Code Window Responsive Aesthetics */
.code-window {
    flex: 1;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1), 0 0 0 1px var(--glass-border);
    max-width: 500px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease, background 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .code-window {
    background: #011627;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--glass-border);
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.window-header {
    background: #f1f5f9;
    padding: 0.8rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s ease;
}

[data-theme="dark"] .window-header {
    background: #112331;
    border-bottom: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

pre {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    overflow-x: auto;
    color: #334155;
}

[data-theme="dark"] pre {
    color: #cbd5e1;
}

.keyword {
    color: #db2777;
}

[data-theme="dark"] .keyword {
    color: #c678dd;
}

.function {
    color: #0284c7;
}

[data-theme="dark"] .function {
    color: #61afef;
}

.string {
    color: #16a34a;
}

[data-theme="dark"] .string {
    color: #98c379;
}

.number {
    color: #ea580c;
}

[data-theme="dark"] .number {
    color: #d19a66;
}

.comment {
    color: #94a3b8;
    font-style: italic;
}

[data-theme="dark"] .comment {
    color: #5c6370;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
    font-weight: 800;
}

.bracket {
    color: var(--primary);
    font-family: var(--font-mono);
    opacity: 0.5;
}

/* Glass Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3), 0 0 0 1px var(--glass-border);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.highlight-text {
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* VIP Section */
.vip-section {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.5), rgba(248, 250, 252, 0.5));
    position: relative;
}

[data-theme="dark"] .vip-section {
    background: linear-gradient(to right, rgba(22, 27, 34, 0.9), rgba(13, 17, 23, 0.9));
}

.vip-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.vip-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

[data-theme="dark"] .vip-container {
    box-shadow: 0 0 40px rgba(255, 212, 59, 0.05) inset;
    border-color: rgba(255, 212, 59, 0.3);
}

.vip-placeholder {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.radar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 50%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid rgba(37, 99, 235, 0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .radar {
    background: radial-gradient(circle, transparent 50%, rgba(255, 212, 59, 0.1) 100%);
    border-color: rgba(255, 212, 59, 0.5);
    box-shadow: 0 0 30px rgba(255, 212, 59, 0.2);
}

.radar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: var(--primary);
    transform-origin: 0% 50%;
    animation: scan 2s linear infinite;
    box-shadow: 0 0 10px var(--primary);
}

[data-theme="dark"] .radar::after {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.vip-badge {
    padding: 0.5rem 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-family: var(--font-mono);
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 1rem;
    animation: pulse 2s infinite;
    font-weight: 700;
}

[data-theme="dark"] .vip-badge {
    background: rgba(255, 212, 59, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

/* Speaker & Form Layout Classes */
.speaker-experience-block,
.speaker-contact-block {
    margin-bottom: 2rem;
}

.speaker-subheading {
    color: var(--text-main);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
}

.speaker-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 1rem;
}

.speaker-list li {
    display: flex;
    align-items: flex-start;
}

.icon-green {
    color: #10b981;
    /* Nice modern green for light mode */
    margin-right: 0.8rem;
    width: 20px;
    margin-top: 4px;
}

[data-theme="dark"] .icon-green {
    color: #27c93f;
}

.icon-accent {
    color: var(--accent);
    margin-right: 0.8rem;
    width: 20px;
    margin-top: 4px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Registration Section */
.register-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.register-info h2 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.register-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.benefits {
    list-style: none;
}

.benefits li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.benefits li i {
    color: #10b981;
}

[data-theme="dark"] .benefits li i {
    color: #27c93f;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form h3 {
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.backend-notice {
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    transition: background 0.4s ease;
}

[data-theme="dark"] footer {
    background: #010409;
    border-color: rgba(0, 240, 255, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-credit strong {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-credit a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-credit a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo i {
    color: var(--primary);
}

[data-theme="dark"] .footer-logo i {
    color: var(--accent);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

@keyframes scan {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}



/* Responsive Media Queries */
@media (max-width: 900px) {
    .register-container {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
    }

    .hero-stats {
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        border-bottom: 1px solid var(--glass-border);
    }

    [data-theme="dark"] .nav-links {
        background: rgba(13, 17, 23, 0.95);
    }

    .nav-links.active {
        display: flex;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .speaker-details {
        text-align: center;
    }

    .speaker-details ul {
        align-items: center;
    }

    .speaker-details li {
        justify-content: center;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }

    /* Mobile Pro Sizing Fixes */
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding-top: 100px;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
    }

    .subtitle {
        font-size: 1rem;
    }

    .stat {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .vip-container {
        padding: 2rem 1.5rem;
    }

    .code-window {
        width: 100%;
        max-width: 100vw;
    }

    pre {
        padding: 1rem;
        font-size: 0.85rem;
    }


    
    /* MOBILE CODE WINDOW SNIPPET NO SCROLL */
    .code-window {
        width: 100%;
        max-width: 100vw;
        margin-top: 2rem;
        transform: perspective(none) rotateY(0deg) rotateX(0deg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: block !important;
    }

    [data-theme="dark"] .code-window {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    pre {
        padding: 1rem;
        font-size: 0.65rem; /* Extensively scaled down for no scroll */
        overflow-x: hidden;
        white-space: pre-wrap; /* Forces logical wrap to ensure viewability */
        word-break: break-all;
    }
    
    .window-header {
        padding: 0.5rem;
    }

}

/* =========================================
   NEW UI ENHANCEMENTS
========================================= */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--primary);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem 0;
    font-family: var(--font-mono);
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    min-width: 80px;
    box-shadow: var(--glow);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.time-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.time-box span {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .time-box span {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.time-box small {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-sans);
}

.separator {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

@media (max-width: 900px) {
    .countdown-timer {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .time-box {
        min-width: 70px;
        padding: 0.8rem;
    }
    .time-box span {
        font-size: 1.8rem;
    }
    .separator {
        display: none;
    }
}

/* Floating Labels */
.form-group.floating {
    position: relative;
    margin-top: 0.5rem;
}

.form-group.floating input,
.form-group.floating select {
    padding: 1.6rem 1rem 0.6rem;
    height: 60px;
    width: 100%;
}

.form-group.floating label {
    position: absolute;
    top: 20px;
    left: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.2s ease-out;
    pointer-events: none;
    font-family: var(--font-mono);
    margin-bottom: 0;
}

.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating select:focus ~ label,
.form-group.floating select:valid ~ label {
    top: 8px;
    font-size: 0.75rem;
    color: var(--primary);
}