:root {
    /* Color Palette */
    --bg-deep: #0B0F19;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    --neon-blue: #00D4FF;
    --neon-cyan: #00F5FF;
    --neon-violet: #8B5CF6;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    
    --gradient-blue: linear-gradient(135deg, #00D4FF 0%, #0072FF 100%);
    --gradient-fusion: linear-gradient(90deg, #00D4FF 0%, #8B5CF6 100%);
    --gradient-glow: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.15) 0%, transparent 40%);

    /* Spacing & Sizing */
    --container-width: 1200px;
    --nav-height: 80px;
    
    /* Animation */
    --spring-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.gradient-text {
    background: var(--gradient-fusion);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.center { text-align: center; }

/* Cursor Glow */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: var(--gradient-glow);
    transition: opacity 0.3s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
}

.logo-text span {
    color: var(--neon-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

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

.nav-links a:hover {
    color: var(--neon-blue);
}

/* Buttons */
.btn-primary-sm {
    background: var(--neon-blue);
    color: var(--bg-deep) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

.btn-primary {
    background: var(--neon-blue);
    color: var(--bg-deep);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-primary-glowing {
    background: var(--neon-blue);
    color: var(--bg-deep);
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    from { box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
    to { box-shadow: 0 0 30px rgba(0, 212, 255, 0.6); }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.grid-background {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Floating UI */
.floating-ui-elements {
    position: relative;
    height: 400px;
}

.ui-card {
    position: absolute;
    padding: 1.5rem;
    width: 200px;
    border-radius: 12px;
}

.float-1 { top: 10%; right: 20%; animation: float 6s infinite ease-in-out; }
.float-2 { bottom: 20%; left: 0%; animation: float 8s infinite ease-in-out reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-value .unit { font-size: 1rem; opacity: 0.6; margin-left: 2px; }

.mini-chart { height: 40px; display: flex; align-items: flex-end; gap: 4px; }
.bar { flex: 1; background: var(--neon-blue); border-radius: 2px; opacity: 0.8; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    z-index: 10;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--border-glass);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--neon-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* About Section */
.about-section {
    padding: 10rem 0;
}

.grid-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    transition: transform 0.4s var(--spring-easing), background 0.3s;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: var(--neon-blue);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h4 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); }

.about-visual .visual-wrapper {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.analytics-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.side {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-blue);
    background: rgba(0, 212, 255, 0.05);
}

.front  { transform: translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate {
    from { transform: rotateX(0) rotateY(0); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Horizontal Scroll Section */
.horizontal-scroll-container {
    height: 400vh; /* Adjust for scroll length */
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.scroll-content {
    display: flex;
    align-items: center;
    padding: 0 10vw;
    gap: 5vw;
    transition: transform 0.1s linear;
}

.section-intro {
    min-width: 400px;
}

.event-cards-track {
    display: flex;
    gap: 3rem;
}

.event-card {
    min-width: 600px;
    height: 500px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 70%;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--spring-easing);
}

.event-card:hover .card-img img { transform: scale(1.05); }

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 212, 255, 0.2));
    opacity: 0;
    transition: opacity 0.5s;
}

.event-card:hover .card-glow { opacity: 1; }

.card-info {
    padding: 2rem;
    flex-grow: 1;
}

.card-date {
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.card-info h4 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.card-info p { color: var(--text-secondary); }

/* Analytics Section */
.analytics-section {
    padding: 10rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.main-viz-card {
    padding: 2rem;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.viz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.viz-legend { display: flex; gap: 1.5rem; font-size: 0.8rem; }
.viz-legend span { display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.blue { background: var(--neon-blue); }
.dot.cyan { background: var(--neon-cyan); }

.canvas-container { flex-grow: 1; position: relative; }
#live-chart { width: 100%; height: 100%; }

.stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon { font-size: 2rem; }
.stat-info .label { font-size: 0.85rem; color: var(--text-secondary); }
.stat-info .value { font-size: 1.8rem; font-weight: 700; color: var(--neon-blue); }
.stat-info .unit { font-size: 0.75rem; color: var(--text-secondary); }

/* Achievements Section */
.achievements-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 5rem 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-value { font-size: 3rem; font-weight: 700; color: var(--neon-cyan); }
.stat-label { color: var(--text-secondary); margin-bottom: 1rem; }

.mini-bar-track {
    width: 100px;
    height: 4px;
    background: var(--border-glass);
    margin: 0 auto;
    border-radius: 2px;
}

.mini-bar {
    height: 100%;
    background: var(--neon-blue);
    border-radius: 2px;
}

/* CTA Section */
.cta-section {
    padding: 10rem 0;
}

.cta-inner {
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-section h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.cta-section p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 3rem; }

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border-glass);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.link-group h5 { margin-bottom: 1.5rem; color: var(--text-primary); }
.link-group ul { list-style: none; }
.link-group li { margin-bottom: 0.8rem; color: var(--text-secondary); }
.link-group a { text-decoration: none; color: var(--text-secondary); transition: color 0.3s; }
.link-group a:hover { color: var(--neon-blue); }

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Base Animations */
.animate-in { opacity: 0; transform: translateY(30px); transition: 0.8s var(--spring-easing); }
.animate-in.active { opacity: 1; transform: translateY(0); }

.reveal-up { opacity: 0; transform: translateY(50px); transition: 1s var(--spring-easing); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: 1.2s var(--spring-easing); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: 1.2s var(--spring-easing); }

.reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-subtitle { margin: 0 auto 3rem; }
    .hero-actions { justify-content: center; }
    .floating-ui-elements { display: none; }
    
    .grid-split { grid-template-columns: 1fr; gap: 4rem; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 1.5rem auto 0; }
    .footer-links { margin-top: 3rem; }
    
    .achievements-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .event-card { min-width: 80vw; height: auto; }
    .section-title { font-size: 2rem; }
    .cta-section h2 { font-size: 2.5rem; }
}
