/* =========================================
   1. IMPORTS & DEBUGGING
========================================= */
@import "tailwindcss";

/* =========================================
   2. ROOT VARIABLES & BASE
========================================= */
:root {
    --bg-base: #020617;
    --bg-deep-blue: #0f172a;
    --bg-deep-purple: #1e1b4b;
    --bg-deep: #030303;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.1);

    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --accent-tertiary: #ff00c8;
    --accent-blue: #3b82f6;
    --accent-purple: #c084fc;
    --accent-cyan: #22d3ee;

    --text-primary: #ffffff;
    --text-main: #e2e8f0;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-dim: #94a3b8;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --footer-bg: #020204;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* =========================================
   3. UTILITIES & TYPOGRAPHY
========================================= */
.container-max {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.flex-1 {
    flex: 1;
}

.w-100 {
    width: 100%;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 60px;
}

.text-dim-sm {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.text-bold-dim {
    color: var(--text-dim);
    font-weight: bold;
}

.accent-cyan-text {
    color: var(--accent-cyan);
}

.accent-purple-text {
    color: var(--accent-purple);
}

.accent-blue-text {
    color: var(--accent-blue);
}

.border-purple {
    border-color: var(--accent-purple) !important;
}

.border-blue {
    border-color: var(--accent-blue) !important;
}

.icon-md {
    font-size: 1.5rem;
    margin-right: 10px;
}

.icon-lg {
    font-size: 2.5rem;
}

.icon-xl {
    font-size: 8rem;
    opacity: 0.8;
}

h1,
h2,
h3,
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.display-large {
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.85;
    text-transform: uppercase;
    font-weight: 800;
}

.display-medium {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    text-transform: uppercase;
}

/* =========================================
   4. BACKGROUNDS & SHIMMER
========================================= */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: var(--bg-base);
    will-change: background;
}

.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.animated-bg::before {
    background: radial-gradient(circle at 20% 80%, var(--bg-deep-blue), transparent 60%);
}

.animated-bg::after {
    background: radial-gradient(circle at 80% 20%, var(--bg-deep-purple), transparent 70%);
}

.shimmer-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    transform: translateZ(0);
}

.text-gradient {
    background: linear-gradient(90deg, #06b6d4, #8b5cf6, #3b82f6, #06b6d4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: background-position;
    transform: translateZ(0);
}

/* =========================================
   5. LAYOUT GRIDS
========================================= */
.page-content {
    padding: 140px 5% 60px 5%;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    height: 600px;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
}

@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        height: auto;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 180px 5% 40px 5%;
    }
}

/* =========================================
   6. NAVBAR & MOBILE MENU
========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateZ(0);
    will-change: top, width, background, box-shadow;
}

.navbar.scrolled {
    top: 10px;
    width: 95%;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.logo-link:hover {
    transform: scale(1.05) translateZ(0);
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.6));
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.nav-actions {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateZ(0);
}

.nav-links a::before,
.nav-links a::after {
    display: none !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(2, 2, 4, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: right;
}

.mobile-menu.active {
    right: 0;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-links a {
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-main);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: var(--accent-cyan);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: var(--accent-cyan);
    }
}

/* =========================================
   7. BUTTONS
========================================= */
.btn {
    padding: 0.8rem 2.5rem;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn-grad {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2), inset 0 0 20px rgba(139, 92, 246, 0.3);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    will-change: transform, box-shadow, border-color;
}

.btn-grad::before {
    content: '';
    position: absolute;
    inset: -150%;
    background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.5) 0%, transparent 50%);
    z-index: -2;
    opacity: 0.7;
    will-change: transform;
    transform: translateZ(0);
}

.btn-grad::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(34, 211, 238, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.9) 50%, transparent);
    background-size: 12px 12px, 12px 12px, 200% 100%;
    z-index: -1;
    opacity: 0.8;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    will-change: background-position;
}

.btn-grad:hover {
    transform: translateY(-3px) scale(1.05) translateZ(0);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5), inset 0 0 30px rgba(34, 211, 238, 0.6);
}

.btn-grad:hover::before {
    opacity: 1;
}

.btn-grad:hover::after {
    opacity: 1;
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: white;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateZ(0);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-4px) scale(1.05) translateZ(0);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

/* =========================================
   8. CARDS & SECTIONS
========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease, border-color 0.5s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow, border-color;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.01) translateZ(0);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-card:hover::before {
    opacity: 1;
}

.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.metric-card {
    padding: 2.5rem;
    text-align: center;
}

.metric-value {
    font-size: 3rem;
    font-weight: bold;
    margin-top: 10px;
}

.ecosystem-card {
    transition: none !important;
}

.ecosystem-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--glass-border) !important;
    background: var(--glass-bg) !important;
}

.ecosystem-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
}

.ecosystem-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-dim);
}

.ecosystem-list li:hover {
    transform: none !important;
}

.ecosystem-list strong {
    color: var(--text-main);
}

.ecosystem-list li i {
    margin-top: 4px;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.ecosystem-icons {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 250px;
}

.ecosystem-icons::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    backface-visibility: hidden;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
}

.ecosystem-icons .icon-xl {
    font-size: 10rem;
    position: relative;
    z-index: 1;
    margin-left: 12px;
}

.blog-section {
    margin-top: 80px;
    padding-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card.glass-card {
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-image-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--glass-border);
}

.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.blog-card:hover img {
    transform: scale(1.1) translateZ(0);
}

.blog-card .content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    margin: 0 0 12px;
    color: var(--text-main);
    font-size: 1.3rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--accent-cyan);
}

.blog-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* =========================================
   9. MISC & UTILITIES
========================================= */
.dash-glow-top,
.dash-glow-bottom {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.5;
    z-index: -1;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.dash-glow-top {
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, #a855f7, transparent 70%);
}

.dash-glow-bottom {
    bottom: -15%;
    right: -10%;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
}

.dash-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-title {
    margin: 0;
    text-align: left;
    font-size: 2.2rem !important;
}

.dash-welcome {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin: 1rem 0;
    background: linear-gradient(135deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-ring {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-ring .bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.progress-ring .bar {
    stroke: var(--accent-primary);
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.task-list {
    list-style: none;
    color: var(--text-dim);
    line-height: 2.5;
}

.task-list li {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateZ(0);
}

.task-list li:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px) translateZ(0);
}

.blinking-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent-primary);
    margin-left: 4px;
}

.custom-svg-logo {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.2));
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transform: translateZ(0);
}

.text-reveal-wrapper {
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
    position: relative;
    z-index: 1;
    margin-left: -40px;
    padding-left: 43px;
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.brand-name {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.sub-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    text-transform: uppercase;
}

.liquid-shine {
    background: linear-gradient(90deg, #8B5CF6, #3B82F6, #0EA5E9, #8B5CF6);
    background-size: 200% auto;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: block;
    line-height: 1;
    will-change: background-position;
    transform: translateZ(0);
}

.ae-footer {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 6rem 5% 2rem 5%;
    margin-top: 8rem;
    color: #e5e7eb;
}

.ae-footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.ae-logo {
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.ae-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 25px;
}

.ae-footer-col h4 {
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.ae-footer-col ul {
    list-style: none;
    padding: 0;
}

.ae-footer-col ul li {
    margin-bottom: 12px;
}

.ae-footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
    transform: translateZ(0);
}

.ae-footer-col ul li a:hover {
    color: var(--accent-cyan);
    transform: translateX(8px) translateZ(0);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.ae-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-right: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateZ(0);
}

.ae-socials a:hover {
    background: var(--accent-cyan);
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.ae-footer-bottom {
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   10. LAYOUT & STRUCTURAL ANIMATION HOOKS
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.tilt-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 50;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* Portfolio Card Layout Structure */
@media (min-width: 993px) {
    .portfolio-grid-anim {
        position: relative;
        height: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .card-dealer-wrap {
        position: absolute;
        width: 350px;
        height: 300px;
    }

    .portfolio-card-1 {
        z-index: 3;
    }

    .portfolio-card-2 {
        z-index: 2;
    }

    .portfolio-card-3 {
        z-index: 1;
    }
}

@media (max-width: 992px) {
    .portfolio-grid-anim {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

/* Team Orbit Layout Structure */
.orbit-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-track {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 760px;
    height: 760px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 242, 255, 0.2);
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(0, 242, 255, 0.02);
    will-change: transform;
    backface-visibility: hidden;
}

.orbit-center {
    position: absolute;
    z-index: 10;
    width: 350px;
}

.orbit-satellite {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    margin-top: -150px;
    margin-left: -140px;
    --orbit-radius: 380px;
    z-index: 5;
    will-change: transform;
}

.orbit-satellite>div {
    height: 100%;
    will-change: transform;
}

.sat-1 {
    --start-angle: 0deg;
}

.sat-2 {
    --start-angle: 120deg;
}

.sat-3 {
    --start-angle: 240deg;
}

@media (max-width: 1024px) {
    .orbit-container {
        height: auto;
        flex-direction: column;
        gap: 2rem;
        padding-top: 2rem;
    }

    .orbit-track {
        display: none;
    }

    .orbit-center,
    .orbit-satellite {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
        margin: 0;
        width: 100%;
        max-width: 350px;
    }
}
/* =========================================
   11. MOBILE OVERLAY NAVIGATION 
========================================= */

/* Hamburger Menu Trigger */
.hamburger-menu {
    position: fixed;
    top: 30px;
    right: 30px; 
    z-index: 1000000;
    cursor: pointer;
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 6px;
    background: rgba(10, 15, 30, 0.5);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--accent-cyan); 
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease;
}

/* Animate to 'X' */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #ff4d4d; 
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #ff4d4d;
}

/* Full Screen Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-overlay ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-overlay ul li {
    margin: 25px 0;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active ul li {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered Load-in */
.mobile-nav-overlay.active ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active ul li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-overlay.active ul li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-overlay.active ul li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-overlay.active ul li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-overlay ul li a {
    color: var(--text-primary);
    font-size: 2.5rem;
    text-decoration: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color 0.3s, text-shadow 0.3s;
}

.mobile-nav-overlay ul li a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}