:root {
    --bg-color: #020c1b;
    /* Deep Navy */
    --bg-secondary: #0a192f;
    /* Lighter Navy */
    --card-bg: rgba(17, 34, 64, 0.7);
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent-color: #d4af37;
    /* Gold */
    --accent-glow: rgba(212, 175, 55, 0.2);
    --secondary-accent: #00ff9d;
    /* Bullish Green */
    --tertiary-accent: #ff0055;
    /* Bearish Red */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-speed: 0.3s;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ... existing scrollbar styles ... */

/* Sections Snap Alignment for Desktop */
.hero-section,
.section-container {
    padding: 120px 10%;
    /* Added top padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    /* Use min-height */
    position: relative;
    z-index: 1;
}

/* Ensure Contact section has space for ticker */
#contact {
    padding-bottom: 60px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0.3;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(2, 12, 27, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo .accent {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    /* User Override: Flex-start to prevent layout shifting */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    min-height: 100vh;
    width: 100%;

    /* Forced top padding to push content below nav */
    padding-top: 180px;
    padding-bottom: 50px;
    padding-left: 10%;
    padding-right: 10%;

    position: relative;
    z-index: 1;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.greeting {
    color: var(--secondary-accent);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

@media (max-width: 1400px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 400;
}

.bio-short {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.btn.primary {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn.primary:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.secondary:hover {
    border-color: var(--secondary-accent);
    color: var(--secondary-accent);
}

/* Trading Visuals */
.hero-visual {
    width: 500px;
    height: 500px;
    position: relative;
}

/* User Override: Ensure chart visibility on small screens */
.trading-chart-visual {
    height: 300px;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 50px;
}

.candle.footprint {
    width: 60px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column-reverse;
    overflow: hidden;
    animation: pulse-candle 3s infinite ease-in-out;
}

.fp-cell {
    width: 100%;
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.fp-cell.buy {
    background: rgba(0, 255, 157, 0.3);
}

.fp-cell.buy-heavy {
    background: rgba(0, 255, 157, 0.6);
}

.fp-cell.buy-extreme {
    background: rgba(0, 255, 157, 0.9);
}

.fp-cell.sell {
    background: rgba(255, 0, 85, 0.3);
}

.fp-cell.sell-heavy {
    background: rgba(255, 0, 85, 0.6);
}

.fp-cell.neutral {
    background: rgba(255, 255, 255, 0.05);
}

.c1 {
    height: 150px;
    animation-delay: 0s;
}

.c2 {
    height: 220px;
    animation-delay: 1s;
}

.c3 {
    height: 300px;
    animation-delay: 0.5s;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}

@keyframes pulse-candle {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.9;
    }

    50% {
        transform: scaleY(1.02);
        opacity: 1;
    }
}

/* Background Grid Overlay */
.trading-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}



/* Sections General */
.section-container {
    /* Padding handled by Snap Rule */
    background: var(--bg-color);
    position: relative;
    z-index: 1;
}

.section-tag {
    color: var(--secondary-accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.highlight {
    color: var(--accent-color);
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Instagram Card */
.instagram-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 40px;
    border-radius: 12px;
    text-decoration: none;
    max-width: 450px;
    margin: 0 auto;
    transition: 0.3s;
}

.instagram-card:hover {
    transform: translateY(-5px);
    border-color: #e1306c;
    background: rgba(225, 48, 108, 0.05);
}

.insta-icon svg {
    width: 40px;
    height: 40px;
    stroke: #e1306c;
}

.insta-text {
    flex: 1;
    text-align: left;
    padding-left: 20px;
}

.insta-text h3 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.insta-text p {
    color: var(--text-secondary);
    margin: 0;
}

.insta-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-center {
    text-align: center;
}

.contact-text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 60px 0 90px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tablet & Mobile Layout */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 150px;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        height: 400px;
        margin-top: 60px;
    }

    .about-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }

    .hero-section,
    .section-container {
        height: auto;
        min-height: 100vh;
        scroll-snap-align: none;
        padding: 80px 5%;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: var(--nav-height);
        height: 100vh;
        width: 100%;
        background: var(--bg-color);
        /* Solid background */
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transform: translateX(100%);
        transition: 0.3s;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-visual {
        height: 300px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* TradingView Ticker Container */
/* ... (existing content) ... */

/* MINIGAME SECTION */
.minigame-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    /* Don't take full height if not needed, but give space */
}

/* Game Container - Visual */
.game-container {
    background: rgba(17, 34, 64, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Stats Row */
.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    font-family: var(--font-mono);
}

.pnl-box {
    text-align: left;
}

.pnl-box .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pnl-box .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Dynamic Colors for PnL */
.pnl-box .value.profit {
    color: var(--secondary-accent);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.pnl-box .value.loss {
    color: var(--tertiary-accent);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

.game-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 200px;
    text-align: right;
}

/* Market Bar (The Track) */
.market-bar-wrapper {
    position: relative;
    height: 80px;
    background: rgba(2, 12, 27, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.market-bar {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Liquidity Zone (Target) */
.liquidity-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    /* Target width */
    background: rgba(0, 255, 157, 0.15);
    border-left: 2px solid var(--secondary-accent);
    border-right: 2px solid var(--secondary-accent);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
    z-index: 1;
}

/* Price Cursor (Moving Element) */
.price-cursor {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 2;
    left: 0;
    animation: scan 2s linear infinite alternate;
    /* Default speed */
}

/* Speed Modifiers */
.price-cursor.speed-1 {
    animation-duration: 2s;
}

.price-cursor.speed-2 {
    animation-duration: 1.5s;
}

.price-cursor.speed-3 {
    animation-duration: 1s;
}

.price-cursor.speed-4 {
    animation-duration: 0.7s;
}

.price-cursor.speed-max {
    animation-duration: 0.4s;
}

@keyframes scan {
    0% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

/* Exec Button */
.execute-btn {
    width: 100%;
    height: 60px;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    background: rgba(212, 175, 55, 0.1);
    transition: all 0.1s;
}

.execute-btn:active {
    transform: scale(0.98);
    background: rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .game-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .pnl-box,
    .game-message {
        text-align: center;
    }
}