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

:root {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary-color: #06b6d4;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-border: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --success: #10b981;
    --gradient-1: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-highlight {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.85); /* Added translucency like other sections */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.causal-network {
    width: 100%;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

.causal-network svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

.node {
    fill: var(--dark-surface);
    stroke: var(--primary-color);
    stroke-width: 3;
    animation: pulse 2s ease-in-out infinite;
}

.node-primary {
    fill: var(--primary-color);
    stroke: var(--primary-light);
    stroke-width: 4;
}

.node-accident {
    fill: var(--dark-surface);
    stroke: var(--secondary-color);
    stroke-width: 2;
    animation: pulse 2.5s ease-in-out infinite;
}

.node-effect {
    fill: rgba(139, 92, 246, 0.3);
    stroke: var(--primary-color);
    stroke-width: 2.5;
    animation: pulse 3s ease-in-out infinite;
}

.edge {
    stroke: rgba(139, 92, 246, 0.6);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: dash 20s linear infinite;
}

.edge-inherence {
    stroke: rgba(6, 182, 212, 0.4);
    stroke-width: 1.5;
}

.edge-causal {
    stroke: rgba(139, 92, 246, 0.8);
    animation: dash 15s linear infinite;
}

.node-label {
    fill: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.node-label-large {
    fill: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.node-label-small {
    fill: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
}

.node-annotation {
    fill: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
    font-style: italic;
}

.diagram-caption {
    fill: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

/* Additional node types for new diagrams */
.node-universal {
    fill: var(--primary-color);
    stroke: var(--primary-light);
    stroke-width: 4;
    animation: pulse 2s ease-in-out infinite;
}

.node-domain {
    fill: rgba(6, 182, 212, 0.2);
    stroke: var(--secondary-color);
    stroke-width: 3;
    animation: pulse 2.8s ease-in-out infinite;
}

.edge-instantiation {
    stroke: rgba(6, 182, 212, 0.6);
    stroke-width: 2;
    animation: dash 18s linear infinite;
}

/* Info visual containers */
.info-visual {
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    justify-content: center;
}

.concept-diagram {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.2));
}

/* Background causal diagrams - decorative only, no space occupied */
/* Scattered diagrams container (absolute, document-relative) */
.scattered-diagrams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 100; /* High z-index to ensure visibility */
    overflow: visible;
}

.bg-diagrams {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-diagram {
    position: absolute;
    opacity: 0.55; /* Increased for better visibility */
    pointer-events: none;
    transition: transform 0.1s ease-out; /* For parallax effect */
    width: 200px; /* Fixed width for diagrams */
    height: auto;
    max-height: 100px; /* Prevent them from being too tall */
}

.bg-diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

.bg-diagram-random {
    width: 200px; /* Increased for larger diagrams with chains */
    position: absolute;
    z-index: 100; /* High z-index for visibility */
}

.bg-diagram-random svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)); /* Subtle shadow for depth */
}

/* Ensure diagrams stay in margins on smaller screens */
@media (max-width: 1400px) {
    .bg-diagram-random {
        width: 170px;
    }
}

@keyframes subtleFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.55; }
}

/* Hide random diagrams on mobile/tablet to avoid clutter */
@media (max-width: 1024px) {
    .bg-diagram-random {
        display: none;
    }
}

.bg-text {
    fill: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.5px;
}

.bg-text-cyan {
    fill: var(--secondary-color);
    font-size: 10px;
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.5px;
}

.bg-label {
    fill: var(--text-secondary); /* Brighter color for visibility */
    font-size: 9px; /* Slightly larger */
    font-style: italic;
    font-family: 'Inter', sans-serif;
    font-weight: 600; /* Bolder for visibility */
}

/* Ensure main content stays above background */
nav, section, footer {
    position: relative;
    z-index: 10;
    background-color: transparent; /* Will use section-specific backgrounds */
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background-color: rgba(30, 41, 59, 0.9); /* var(--dark-surface) with transparency */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(15, 23, 42, 0.85); /* var(--dark-bg) with more transparency */
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Technology Section */
.technology {
    background-color: rgba(15, 23, 42, 0.9); /* var(--dark-bg) with transparency */
}

.tech-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tech-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tech-visual {
    order: 1;
}

.tech-description {
    order: 2;
}

.tech-description h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-list strong {
    color: var(--text-primary);
}

/* Code Block */
.code-block {
    background-color: rgba(30, 41, 59, 0.85); /* var(--dark-surface) with transparency */
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--dark-border);
}

.code-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    overflow-x: auto;
}

.code-keyword {
    color: var(--primary-light);
    font-weight: 600;
}

.code-string {
    color: var(--secondary-color);
}

.code-comment {
    color: var(--text-muted);
    font-style: italic;
}

/* Tech Stats */
.tech-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--gradient-2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-primary);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Vision Box */
.vision-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}

.vision-box h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.vision-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Floating Causal Diagram */
.floating-causal-diagram {
    position: absolute;
    right: -250px; /* Default starting position */
    top: 40%;
    width: 200px;
    height: 120px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-causal-diagram.visible {
    opacity: 1;
    animation: fadeInDiagram 0.5s ease forwards;
}

@keyframes fadeInDiagram {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.floating-causal-diagram svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.floating-causal-diagram .causal-node {
    fill: rgba(139, 92, 246, 0.2);
    stroke: rgba(139, 92, 246, 0.6);
    stroke-width: 2;
}

.floating-causal-diagram .causal-node-accent {
    fill: rgba(6, 182, 212, 0.2);
    stroke: rgba(6, 182, 212, 0.6);
    stroke-width: 2;
}

.floating-causal-diagram .causal-edge-solid {
    stroke: rgba(139, 92, 246, 0.6);
    stroke-width: 2;
    fill: none;
}

.floating-causal-diagram .causal-edge-dashed {
    stroke: rgba(6, 182, 212, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 4, 3;
    fill: none;
}

/* Scattered diagrams use same styles */
.bg-diagram-random .causal-node {
    fill: rgba(139, 92, 246, 0.3);
    stroke: rgba(139, 92, 246, 0.7);
    stroke-width: 2;
}

.bg-diagram-random .causal-node-accent {
    fill: rgba(6, 182, 212, 0.3);
    stroke: rgba(6, 182, 212, 0.7);
    stroke-width: 2;
}

.bg-diagram-random .causal-node-intermediate {
    fill: rgba(168, 85, 247, 0.3);
    stroke: rgba(168, 85, 247, 0.7);
    stroke-width: 2;
}

.bg-diagram-random .causal-node-weak {
    fill: rgba(139, 92, 246, 0.15);
    stroke: rgba(139, 92, 246, 0.4);
    stroke-width: 1.5;
}

.bg-diagram-random .causal-node-weak-accent {
    fill: rgba(6, 182, 212, 0.15);
    stroke: rgba(6, 182, 212, 0.4);
    stroke-width: 1.5;
}

.bg-diagram-random .causal-edge-solid {
    stroke: rgba(139, 92, 246, 0.7);
    stroke-width: 2;
    fill: none;
}

.bg-diagram-random .causal-edge-solid-accent {
    stroke: rgba(6, 182, 212, 0.7);
    stroke-width: 2;
    fill: none;
}

.bg-diagram-random .causal-edge-solid-intermediate {
    stroke: rgba(168, 85, 247, 0.7);
    stroke-width: 2;
    fill: none;
}

.bg-diagram-random .causal-edge-dashed {
    stroke: rgba(139, 92, 246, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 5, 3;
    fill: none;
}

.bg-diagram-random .causal-edge-dashed-accent {
    stroke: rgba(6, 182, 212, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 5, 3;
    fill: none;
}

/* Hide on mobile/tablet */
@media (max-width: 1200px) {
    .floating-causal-diagram {
        display: none;
    }
}

/* Experience Section */
.experience {
    background-color: rgba(15, 23, 42, 0.95);
    padding: 5rem 0;
}

.experience-carousel {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 4rem;
}

.carousel-container {
    overflow: visible;
    border-radius: 12px;
    padding: 1rem 0;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
}

.carousel-slide {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    opacity: 0.4;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.experience-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.experience-company {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.experience-description {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.experience-tag {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(139, 92, 246, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* Mobile responsiveness for carousel */
@media (max-width: 1024px) {
    .carousel-slide {
        min-width: 320px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .experience-carousel {
        padding: 0 3rem;
    }

    .carousel-slide {
        min-width: 280px;
        max-width: 280px;
    }

    .experience-company {
        font-size: 1.5rem;
    }

    .experience-description {
        font-size: 0.9rem;
    }

    .experience-card {
        padding: 2rem 1.5rem;
        min-height: 200px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .experience-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Team Section */
.team {
    background-color: rgba(30, 41, 59, 0.9); /* var(--dark-surface) with transparency */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    background-color: rgba(15, 23, 42, 0.85); /* var(--dark-bg) with more transparency */
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.team-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.team-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.project-tag {
    background-color: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background-color: rgba(15, 23, 42, 0.9); /* var(--dark-bg) with transparency */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background-color: rgba(30, 41, 59, 0.85); /* var(--dark-surface) with transparency */
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background-color: rgba(15, 23, 42, 0.7); /* var(--dark-bg) with more transparency */
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: rgba(30, 41, 59, 0.9); /* var(--dark-surface) with transparency */
    border-top: 1px solid var(--dark-border);
    padding: 3rem 0;
}

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

.footer-tagline {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    /* Hide background diagrams on mobile - v2 */
    .bg-diagrams {
        display: none !important;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .tech-feature {
        grid-template-columns: 1fr;
    }

    .tech-visual {
        order: 2;
    }

    .tech-description {
        order: 1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--dark-surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--dark-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

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

    .tech-stats {
        grid-template-columns: 1fr;
    }
}

