/* ============================================
   TDT - The Deluxe Trading
   Dark Theme with White Accents (Black & White)
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(20, 20, 20, 0.6);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --accent-primary: #ffffff;
    --accent-secondary: #e5e5e5;
    --accent-tertiary: #cccccc;
    --accent-glow: rgba(255, 255, 255, 0.3);

    --gradient-white: linear-gradient(135deg, #ffffff 0%, #e5e5e5 50%, #cccccc 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);

    --font-title: 'Arial', sans-serif;
    --font-body: 'Arial', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    --container-width: 1200px;
    --section-padding: 120px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition-medium), backdrop-filter var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 55px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 30px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.btn-signin {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    background: var(--accent-primary);
    color: #0a0a0a;
    border-radius: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-signin:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

#hero-canvas-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
}

.hero-left {
    flex: 1;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title span {
    display: block;
}

.hero-right {
    flex: 0 0 400px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-form {
    display: flex;
    gap: 12px;
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    background: var(--accent-primary);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 20px var(--accent-glow);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translate(2px, -2px);
}

/* ============================================
   Section Styles
   ============================================ */
.section-title {
    font-family: var(--font-title);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* Philosophy Section Removed */

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: linear-gradient(180deg,
            rgba(20, 20, 30, 0.8) 0%,
            rgba(20, 20, 30, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-white);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-number {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 48px;
    font-weight: 700;
    font-style: italic;
    background: var(--gradient-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Partners Section
   ============================================ */
.partners {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.partners-track {
    margin-top: 60px;
    overflow: hidden;
    mask-image: linear-gradient(90deg,
            transparent 0%,
            white 10%,
            white 90%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0%,
            white 10%,
            white 90%,
            transparent 100%);
}

.partners-slide {
    display: flex;
    gap: 60px;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all var(--transition-medium);
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.partner-img {
    height: 30px;
    width: auto;
    margin-right: 12px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.partner-logo:hover .partner-img {
    opacity: 1;
}

.partner-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

.partner-logo:hover span {
    color: var(--text-primary);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-title);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 48px;
    position: relative;
}

.cta-title span {
    display: block;
}

.cta-description {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.cta-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 20%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.5) 80%,
            transparent 100%);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================
   Core Areas Section
   ============================================ */
.core-areas {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.area-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.area-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.area-left {
    flex: 0 0 45%;
    position: sticky;
    top: 150px;
}

.area-title {
    font-family: var(--font-title);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 32px;
}

.area-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.area-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 200px;
    /* Space for scroll effect */
    padding-bottom: 100px;
}

.area-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.area-icon-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    opacity: 0.15;
    transform: rotate(10deg);
    pointer-events: none;
    z-index: 0;
}

.area-card h3,
.area-card p {
    position: relative;
    z-index: 1;
}

.area-card h3 {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.area-card p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tablet/Mobile Areas */
@media (max-width: 1024px) {
    .area-container {
        flex-direction: column;
    }

    .area-left {
        position: static;
        width: 100%;
        margin-bottom: 60px;
    }

    .area-right {
        gap: 60px;
        padding-bottom: 0;
        width: 100%;
    }
}

/* ============================================
   Unleash Section (New Grid)
   ============================================ */
/* Icon Styles */
/* Icon Styles */
/* .trust-icon removed */

.icon-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-title img {
    height: 1.8em;
    /* Increased from 1.2em */
    width: auto;
    display: block;
}

/* Specific card overrides if needed */
.unleash-card h3.icon-title {
    margin-bottom: 24px;
}

.unleash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.unleash-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px;
    /* Increased padding */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.unleash-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.unleash-card h3 {
    font-family: var(--font-title);
    font-size: 28px;
    /* Increased from 22px */
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.unleash-card p {
    font-size: 18px;
    /* Increased from 16px */
    color: var(--text-secondary);
    line-height: 1.6;
}

.unleash-grid .card-trust {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-content: center;
    /* Center vertically */
    text-align: center;
    /* Center text horizontally */
    position: relative;
    overflow: hidden;
}

.trust-icon-bg {
    position: absolute;
    bottom: -40px;
    /* Changed from top */
    left: -40px;
    /* Changed from right */
    width: 250px;
    opacity: 0.15;
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 0;
}

.unleash-grid .card-trust h3,
.unleash-grid .card-trust p {
    position: relative;
    z-index: 1;
}

.unleash-grid .card-standard {
    grid-column: 2 / span 2;
    grid-row: 1;
    position: relative;
    overflow: hidden;
    /* Clips the background icon */
}

.standard-icon-bg {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 250px;
    /* Large size */
    opacity: 0.15;
    /* Subtle watermark effect */
    transform: rotate(15deg);
    /* Slight rotation for style */
    pointer-events: none;
    z-index: 0;
}

.unleash-grid .card-standard h3,
.unleash-grid .card-standard p {
    position: relative;
    z-index: 1;
    /* Ensure text is above icon */
}

.unleash-grid .card-algo {
    grid-column: 2;
    grid-row: 2;
}

.unleash-grid .card-prop {
    grid-column: 3;
    grid-row: 2;
}


/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    text-align: center;
}

.contact-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 500;
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all var(--transition-medium);
}

.contact-email:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-4px);
}

.contact-email svg {
    color: var(--accent-primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 360px;
    margin-bottom: 24px;
}

.footer-form {
    display: flex;
    gap: 12px;
}

.footer-form .email-input {
    width: 200px;
}

.footer-form .btn-primary {
    padding: 14px 20px;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--accent-primary);
    color: white;
    border-radius: 4px;
    margin-left: 8px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1199px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .hero-right {
        flex: none;
        width: 100%;
        max-width: 500px;
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid .service-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        justify-self: center;
    }

    .footer-grid {
        gap: 60px;
    }

    .footer-links {
        gap: 60px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: 100px 32px 40px;
        border-radius: 0;
        border: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transition: right var(--transition-medium);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 16px 0;
        font-size: 18px;
        border-radius: 0;
    }

    .nav-link:hover {
        background: transparent;
        color: var(--text-primary);
    }

    .btn-signin {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 140px 24px 60px;
    }

    .hero-title {
        font-size: 40px;
        margin-top: 60px;
        /* Push title down to avoid graphic */
    }

    .hero-form {
        flex-direction: column;
    }

    .hero-form .email-input {
        width: 100%;
    }

    .hero-form .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .unleash-grid {
        grid-template-columns: 1fr;
    }

    .unleash-grid .card-trust,
    .unleash-grid .card-standard,
    .unleash-grid .card-algo,
    .unleash-grid .card-prop {
        grid-column: auto;
        grid-row: auto;
    }

    /* Algo & Prop: Plain text on mobile */
    .unleash-grid .card-algo,
    .unleash-grid .card-prop {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 40px;
        /* Increased spacing from previous elements */
        margin-bottom: 20px;
    }

    .unleash-grid .card-algo h3,
    .unleash-grid .card-prop h3 {
        margin-bottom: 12px;
        font-size: 24px;
    }

    .unleash-grid .card-algo p,
    .unleash-grid .card-prop p {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid .service-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .cta-title {
        font-size: 32px;
    }

    .contact-email {
        padding: 16px 24px;
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }

    .footer-form {
        flex-direction: column;
    }

    .footer-form .email-input {
        width: 100%;
    }

    .footer-form .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Logo Adjustment */
    .logo img {
        height: 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-number {
        font-size: 36px;
    }

    .service-card h3 {
        font-size: 22px;
    }

    .cta-title {
        font-size: 26px;
    }
}

/* Mobile Menu Overlay */
.nav-menu::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: -1;
}

.nav-menu.active::before {
    opacity: 1;
    visibility: visible;
    left: -100vw;
    width: 100vw;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   Performance Section
   ============================================ */
.performance {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    overflow: hidden;
    position: relative;
}

.perf-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    grid-template-rows: repeat(3, auto);
    /* 3 rows */
    gap: 0;
    /* Border based grid */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

.perf-section-title {
    text-align: left;
    margin-bottom: 40px;
    font-size: 48px;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.perf-cell {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transition: background 0.3s ease;
    margin: -1px 0 0 -1px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

/* Feature Cell (Top Left) */
.perf-feature-cell {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
    z-index: 1;
}

.perf-feature-cell:hover {
    background: transparent;
    border-color: transparent;
}

.perf-feature-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 60px;
}

.perf-subtitle-large {
    font-size: 32px;
    /* Much larger */
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 90%;
}

.perf-flashy-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.perf-bg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.perf-roi-cell {
    grid-column: 3 / span 2;
    grid-row: 1;
}

.perf-guaranteed-cell {
    grid-column: 3;
    grid-row: 2;
}

.perf-turnover-cell {
    grid-column: 4;
    grid-row: 2;
}

.perf-benchmark-cell {
    grid-column: 1;
    grid-row: 3;
}

.perf-sharpe-cell {
    grid-column: 2;
    grid-row: 3;
}

.perf-drawdown-cell {
    grid-column: 3;
    grid-row: 3;
}

.perf-graphic-cell {
    grid-column: 4;
    grid-row: 3;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    overflow: hidden;
}

/* Typography */
.perf-title {
    font-family: var(--font-title);
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.1;
}

.perf-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.perf-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.perf-value {
    font-family: var(--font-title);
    font-size: 42px;
    font-weight: 600;
    color: var(--text-primary);
}

.perf-value.positive {
    color: var(--text-primary);
    /* Kept white as per request */
}

/* Specific value sizes */
.perf-roi-cell .perf-value {
    font-size: 64px;
}

/* AOS Animation Customization */
[data-aos="zoom-in"] {
    transform: scale(0.9);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .perf-feature-cell {
        grid-column: 1 / span 2;
        grid-row: auto;
        min-height: 300px;
    }

    .perf-roi-cell {
        grid-column: 1 / span 2;
        grid-row: auto;
    }

    .perf-guaranteed-cell,
    .perf-turnover-cell,
    .perf-benchmark-cell,
    .perf-sharpe-cell,
    .perf-drawdown-cell,
    .perf-graphic-cell {
        grid-column: span 1;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .perf-feature-cell {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .perf-roi-cell {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .perf-guaranteed-cell,
    .perf-turnover-cell,
    .perf-benchmark-cell,
    .perf-sharpe-cell,
    .perf-drawdown-cell,
    .perf-graphic-cell {
        grid-column: span 1;
        grid-row: auto;
    }

    .perf-roi-cell .perf-value {
        font-size: 48px;
    }

    .perf-title {
        font-size: 32px;
    }
}