/* TooPersonal Website Styles - Updated Brand */
:root {
    --primary-indigo: #4F46E5;
    --primary-purple: #7C3AED;
    --accent-cyan: #06B6D4;
    --accent-teal: #0891B2;
    --warm-amber: #F59E0B;
    --warm-red: #EF4444;
    --neutral-dark: #1F2937;
    --neutral-gray: #6B7280;
    --light-gray: #F9FAFB;
    --white: #FFFFFF;
    
    /* Light mode colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Glass morphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(10px);
}

/* Dark mode */
[data-theme="dark"] {
    --bg-primary: #0F0F1A;
    --bg-secondary: #1A1A2E;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 15, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    /* Enhanced dark mode colors */
    --primary-indigo: #6366F1;
    --primary-purple: #A78BFA;
    --accent-cyan: #22D3EE;
    --accent-teal: #14B8A6;
    --warm-amber: #FBBF24;
    --warm-red: #F87171;
    --neutral-dark: #E5E7EB;
    --neutral-gray: #94A3B8;
    --light-gray: #1E293B;
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(15, 15, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Brand Logo Styles */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
}

.pulse-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    position: absolute;
    top: 5px;
    left: 5px;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.pulse-line::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 6px;
    width: 4px;
    height: 6px;
    background: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.pulse-line::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 6px;
    width: 4px;
    height: 6px;
    background: white;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.data-nodes {
    position: absolute;
}

.data-node {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    position: absolute;
    animation: dataflow 3s ease-in-out infinite;
}

.data-node:nth-child(1) { top: 3px; left: 3px; }
.data-node:nth-child(2) { top: 3px; right: 3px; animation-delay: 0.5s; }
.data-node:nth-child(3) { bottom: 3px; left: 3px; animation-delay: 1s; }
.data-node:nth-child(4) { bottom: 3px; right: 3px; animation-delay: 1.5s; }

@keyframes dataflow {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(1); }
}

.brand-text h1 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0;
}

.brand-text .personal {
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text .tagline {
    font-size: 11px;
    color: var(--neutral-gray);
    font-weight: 400;
    margin-top: 2px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-indigo);
}

[data-theme="dark"] .nav-menu a {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-menu a:hover {
    color: var(--accent-cyan);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-indigo);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Theme toggle removed - using auto-detection based on browser preference */

/* Glass Card Component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 48px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px 0 rgba(79, 70, 229, 0.15);
}

[data-theme='dark'] .glass-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .glass-card:hover {
    box-shadow: 0 20px 60px 0 rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--neutral-dark);
    /* Reserve space to prevent layout shifts */
    min-height: 1.4em;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.05);
    /* Prevent text reflow during animation */
    overflow: hidden;
}

[data-theme='dark'] .hero-headline {
    color: var(--text-primary);
    text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 4px 24px rgba(0,0,0,0.3);
}

/* Smooth text reveal animations */
.text-revealing {
    /* Maintain layout during animation */
    display: block;
    width: 100%;
}

.text-revealing .word {
    display: inline-block;
    position: relative;
    /* Prevent word wrapping during animation */
    white-space: nowrap;
}

.text-revealing .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: charReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    /* Maintain character width during animation */
    position: relative;
    /* Prevent font rendering issues */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes charReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* After animation completes, ensure stable layout */
.text-revealing.animation-complete .char {
    animation: none;
    opacity: 1;
    transform: translateY(0);
}

.hero-subheadline {
    font-size: 22px;
    color: #5a6c7d;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-indigo));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-indigo);
    border: 2px solid var(--primary-indigo);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--primary-indigo);
    color: white;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.data-visualization {
    width: 300px;
    height: 300px;
    position: relative;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.data-point {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.data-point:nth-child(1) {
    top: 30%;
    left: 25%;
    animation-delay: 0s;
}

.data-point:nth-child(2) {
    top: 60%;
    right: 30%;
    animation-delay: 0.5s;
}

.data-point:nth-child(3) {
    bottom: 25%;
    left: 50%;
    animation-delay: 1s;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.connection-line:nth-child(4) {
    width: 120px;
    top: 45%;
    left: 30%;
    transform: rotate(25deg);
}

.connection-line:nth-child(5) {
    width: 80px;
    top: 55%;
    right: 25%;
    transform: rotate(-45deg);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* 3D Brain Visualization Section - REMOVED: Merged into hero section */
/* .brain-viz-section styles removed */
/* .viz-title and .viz-subtitle styles removed */
/* Old .brain-container styles removed - using .brain-background instead */

.viz-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.viz-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--neutral-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.viz-btn:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    color: var(--primary-indigo);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.viz-btn.active {
    background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--primary-purple) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Section Styles */
section {
    padding: 80px 0;
}

[data-theme='dark'] section:nth-child(even) {
    background: rgba(26, 26, 46, 0.3);
}

[data-theme='dark'] section:nth-child(odd) {
    background: rgba(15, 15, 26, 0.3);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: #5d6d7e;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* About Section */
.about {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(52, 73, 94, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card p {
    color: #5d6d7e;
    line-height: 1.6;
}

/* Technology Section */
.technology {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.tech-column {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.tech-column:hover {
    transform: translateY(-3px);
}

.tech-column h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.tech-column p {
    color: #5d6d7e;
    line-height: 1.7;
    text-align: center;
}

/* Team Section */
.team {
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.placeholder-avatar {
    font-size: 48px;
    font-weight: 600;
    color: white;
}

.headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.role {
    font-size: 18px;
    color: #e67e22;
    font-weight: 500;
    margin-bottom: 20px;
}

.bio {
    color: #5d6d7e;
    line-height: 1.7;
    font-size: 16px;
}

/* Mission Section */
.mission {
    background: #f8f9fa;
}

.mission-statement {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #2c3e50;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
    font-style: italic;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #e67e22;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.value-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.value-item p {
    color: #5d6d7e;
    line-height: 1.6;
}

/* Hero Section with Neural Network Background */
.hero {
    position: relative;
    padding: 120px 0 80px;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

[data-theme='dark'] .hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

[data-theme='dark'] .hero-headline {
    color: var(--text-primary);
}

[data-theme='dark'] .hero-subheadline {
    color: var(--text-secondary);
}

[data-theme='dark'] .viz-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme='dark'] .viz-btn:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
    color: var(--primary-indigo);
}

.brain-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

[data-theme='dark'] .brain-background {
    opacity: 0.5;
    filter: brightness(1.2);
}

.brain-background canvas {
    width: 100% !important;
    height: 100% !important;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    transition: background 0.3s ease;
}

[data-theme='dark'] .cta {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-headline {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.cta-subtext {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: #e67e22;
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: white;
    color: #2c3e50;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    transition: background-color 0.3s ease;
}

[data-theme='dark'] .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-left p {
    opacity: 0.8;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    color: #e67e22;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin-top: 15px;
        gap: 20px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-headline {
        font-size: 42px;
    }
    
    .hero-subheadline {
        font-size: 18px;
    }
    
    .hero-actions {
        gap: 20px;
    }
    
    .viz-controls {
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Tablet breakpoint */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 32px;
    }
    
    .hero-subheadline {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .data-visualization {
        width: 250px;
        height: 250px;
    }
}

/* Statistics Section */
.statistics {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
}

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

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-indigo);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-indigo);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dark mode statistics */
[data-theme='dark'] .statistics {
    background: rgba(13, 13, 23, 0.5);
}

[data-theme='dark'] .stat-item {
    background: rgba(26, 26, 46, 0.2);
    border-color: rgba(255, 255, 255, 0.03);
}

[data-theme='dark'] .stat-item:hover {
    background: rgba(30, 30, 50, 0.3);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme='dark'] .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #2c3e50;
    margin: 0;
}

.close {
    color: #95a5a6;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #2c3e50;
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
#contactForm {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

[data-theme='dark'] .modal-content {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme='dark'] .modal-header {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme='dark'] .form-group label {
    color: var(--text-primary);
}

[data-theme='dark'] .form-group input,
[data-theme='dark'] .form-group select,
[data-theme='dark'] .form-group textarea {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme='dark'] .form-group input:focus,
[data-theme='dark'] .form-group select:focus,
[data-theme='dark'] .form-group textarea:focus {
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background-color: rgba(30, 30, 50, 0.8);
}

[data-theme='dark'] .close {
    color: var(--text-secondary);
}

[data-theme='dark'] .close:hover {
    color: var(--text-primary);
}

[data-theme='dark'] .checkbox-label {
    color: var(--text-secondary);
}

[data-theme='dark'] .checkmark {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #5d6d7e;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark {
    width: 24px;
    height: 24px;
    background-color: #FFFFFF;
    border: 3px solid #374151;
    border-radius: 6px;
    margin-right: 15px;
    margin-top: 1px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: block;
}

.checkbox-label:hover .checkmark {
    border-color: #4F46E5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    transform: scale(1.05);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-color: #4F46E5;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.4);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel,
.btn-submit {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-cancel {
    background-color: #f8f9fa;
    color: #5d6d7e;
    border: 2px solid #e9ecef;
}

.btn-cancel:hover {
    background-color: #e9ecef;
    color: #2c3e50;
}

.btn-submit {
    background-color: #e67e22;
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-submit:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-submit:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success and Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.success-message h3,
.error-message h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.success-message p,
.error-message p {
    margin: 0;
    font-size: 16px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}


/* Custom Cursor removed - using default cursor */

/* Enhanced Glass Effects */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 100%);
    border-radius: 24px;
    pointer-events: none;
}

/* Enhanced feature cards with glass morphism */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

[data-theme='dark'] .feature-card {
    background: rgba(26, 26, 46, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .feature-card:hover {
    background: rgba(30, 30, 50, 0.3);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

[data-theme='dark'] .feature-card h3,
[data-theme='dark'] .feature-card p {
    color: rgba(255, 255, 255, 0.95);
}

[data-theme='dark'] .feature-icon {
    filter: brightness(1.2);
}

/* Enhanced values cards with glass morphism */
.value-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

[data-theme='dark'] .value-card {
    background: rgba(16, 16, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme='dark'] .value-card:hover {
    background: rgba(20, 20, 28, 0.6);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

[data-theme='dark'] .value-card h3,
[data-theme='dark'] .value-card p {
    color: rgba(255, 255, 255, 0.95);
}

/* Enhanced tech columns with glass morphism */
.tech-column {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

[data-theme='dark'] .tech-column {
    background: rgba(26, 26, 46, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme='dark'] .tech-column:hover {
    background: rgba(30, 30, 50, 0.3);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.1);
}

[data-theme='dark'] .tech-column h3,
[data-theme='dark'] .tech-column p {
    color: rgba(255, 255, 255, 0.95);
}

/* Dark mode adjustments for sections */
[data-theme='dark'] .section-title {
    color: var(--text-primary);
}

[data-theme='dark'] .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme='dark'] .header {
    background: var(--bg-primary);
    border-bottom-color: var(--border-color);
}

[data-theme='dark'] .cta-button {
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .cta-button:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-indigo));
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.6);
    transform: translateY(-2px);
}

[data-theme='dark'] .cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-indigo);
    color: var(--primary-indigo);
}

[data-theme='dark'] .cta-button.secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

/* Smooth transitions for dark mode */
.header,
.section-title,
.section-subtitle,
.feature-card,
.value-card,
.tech-column,
.about-text,
.cta {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brain-background {
        opacity: 0.2;
    }
    
    .viz-title {
        font-size: 36px;
    }
    
    .glass-card {
        padding: 24px;
    }
    
    /* Theme toggle removed */
}

/* Keyboard Navigation Focus Styles */
body.keyboard-nav *:focus {
    outline: 2px solid var(--primary-indigo);
    outline-offset: 3px;
}

body:not(.keyboard-nav) *:focus {
    outline: none;
}

/* Form validation states */
.form-group.focused label {
    color: var(--primary-indigo);
    transform: translateY(-25px) scale(0.9);
}

input.valid,
textarea.valid {
    border-color: #00D9A3;
}

input.invalid,
textarea.invalid {
    border-color: #FF4757;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-indigo) 0%, var(--primary-purple) 100%);
    width: 0%;
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
