:root[data-theme="light"] {
    --bg-primary: #fcfcfd;
    --bg-secondary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-1: #6d28d9;
    --accent-2: #ea580c;
    --accent-3: #0891b2;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --navbar-bg: rgba(252, 252, 253, 0.8);
}

:root[data-theme="dark"] {
    --bg-primary: #050508;
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #a78bfa;
    --accent-2: #fb923c;
    --accent-3: #22d3ee;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
    --navbar-bg: rgba(5, 5, 8, 0.8);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 63, 228, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ===== NAVBAR ===== */
.navbar-landing {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    z-index: 2000;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
}

.navbar-landing .navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.navbar-landing .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.navbar-landing .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-landing .nav-link:hover::after,
.navbar-landing .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-landing .nav-link:hover,
.navbar-landing .nav-link.active {
    color: var(--accent-1) !important;
}

.nav-cta {
    background: var(--accent-1);
    color: #fff !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-left: 1.5rem;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
    text-decoration: none;
    transition: 0.3s;
}

.nav-cta:hover {
    background: var(--text-primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    background: radial-gradient(circle at top right, rgba(109, 40, 217, 0.05) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(8, 145, 178, 0.03) 0%, transparent 50%);
    overflow: hidden;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.title-accent {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

#hero-animation-container {
    width: 100%;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== SECTIONS ===== */
.page-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.section-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent-1);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: block;
    font-weight: 700;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    opacity: 0;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(109, 40, 217, 0.2);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
    transition: 0.3s;
}

.feature-card:hover::after {
    opacity: 0.2;
    transform: scale(1.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-1);
    margin-bottom: 1.5rem;
}

/* ===== INNOVATIVE PRODUCT CARDS ===== */
.product-card-innovative {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.product-card-innovative:hover {
    background: var(--card-bg);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-1);
    box-shadow: 0 0 30px rgba(109, 40, 217, 0.15), var(--shadow-lg);
}

.product-card-innovative::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(109, 40, 217, 0.05), transparent);
    z-index: 1;
    pointer-events: none;
}

.product-card-innovative:hover::before {
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.tech-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.product-card-innovative .tl-1 {
    top: 20px;
    left: 20px;
    width: 40px;
    height: 1px;
}

.product-card-innovative .tl-2 {
    top: 20px;
    left: 20px;
    width: 1px;
    height: 40px;
}

.product-card-innovative .tl-3 {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 1px;
}

.product-card-innovative .tl-4 {
    bottom: 20px;
    right: 20px;
    width: 1px;
    height: 40px;
}

/* Light Theme Visibility Fixes */
[data-theme="light"] .tech-line {
    background: var(--accent-1);
    opacity: 0.15;
}

[data-theme="light"] .product-card-innovative {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .product-card-innovative:hover {
    border-color: var(--accent-1);
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.08);
}

[data-theme="light"] .product-icon-wrap {
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
}

.product-icon-wrap {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: 0.3s ease;
}

.product-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.btn-neon {
    background: transparent;
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-neon:hover {
    background: var(--accent-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

/* Innovative Glowing Button */
.btn-innovative-glow {
    position: relative;
    padding: 15px 35px;
    background: transparent;
    color: var(--accent-3);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-3);
    border-radius: 50px;
    overflow: hidden;
    transition: 0.4s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.btn-innovative-glow:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.1), transparent);
    transition: 0.5s;
}

.btn-innovative-glow:hover {
    background: var(--accent-3);
    color: #fff;
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3);
    transform: translateY(-2px);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 1.5rem;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: var(--accent-1);
    color: #fff;
    transform: rotate(15deg);
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

/* ===== COLLECTIVE BRAIN VIZ ===== */
.collective-brain-container {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(123, 63, 228, 0.05) 0%, transparent 70%);
}

.collective-brain-viz {
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: crosshair;
}

#neural-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dream-core {
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, var(--accent-1) 0%, var(--accent-3) 50%, var(--accent-1) 100%);
    border-radius: 50%;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 70px rgba(123, 63, 228, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.4);
    animation: corePulse 4s infinite ease-in-out;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.dream-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

@keyframes corePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 50px var(--accent-1);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 80px var(--accent-3);
    }
}

.person-node {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.person-node::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    animation: spinRotate 10s linear infinite;
    pointer-events: none;
}

@keyframes spinRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.person-node:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-3);
    box-shadow: 0 0 30px var(--accent-3);
    transform: scale(1.15);
}

.person-node i {
    font-size: 1.2rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.node-label {
    position: absolute;
    bottom: -30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
}

.person-node:hover .node-label {
    opacity: 1;
    bottom: -25px;
}

.dream-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.dream-text-overlay h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 12vw;
    font-weight: 900;
    opacity: 0.03;
    line-height: 0.8;
    margin: 0;
    color: var(--text-primary);
    text-transform: uppercase;
}

[data-theme="dark"] .dream-text-overlay h2 {
    opacity: 0.05;
}

[data-theme="light"] .dream-text-overlay h2 {
    opacity: 0.08;
}

/* Theme specific overrides for product showcase hover in dark theme */
[data-theme="dark"] .product-card-innovative:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-3);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.2);
}

/* Expansion Layer */
.dream-expansion-layer {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-1) 0%, var(--accent-3) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 100px var(--accent-1);
    opacity: 0;
}

.collective-brain-container .section-title,
.collective-brain-container .section-label,
.collective-brain-container .text-secondary {
    text-align: center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Light Mode Overrides for Collective Brain */
:root[data-theme='light'] {
    --particle-color: 109, 40, 217;
}

:root[data-theme='dark'] {
    --particle-color: 167, 139, 250;
}

[data-theme='light'] .person-node {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .person-node i {
    color: var(--accent-1);
    opacity: 1;
}

[data-theme='light'] .person-node:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .dream-text-overlay h2 {
    opacity: 0.04;
}

[data-theme='light'] .dream-core {
    box-shadow: 0 0 50px rgba(109, 40, 217, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.6);
}