* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --text-secondary: #777777;
    --text-muted: #555555;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.logo {
    text-decoration: none;
}

.logo-img {
    height: 24px;
    width: auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    min-height: 100vh;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 620px;
}

/* Circuit Traces Animation */
.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    opacity: 0.4;
}

.circuit-traces {
    width: 100%;
    height: 100%;
}

.trace {
    fill: none;
    stroke: #00BFA5;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawTrace 3s ease-out forwards;
}

/* Left side traces */
.trace-1 { animation-delay: 0s; }
.trace-2 { animation-delay: 0.15s; }
.trace-3 { animation-delay: 0.3s; }
.trace-4 { animation-delay: 0.45s; }
.trace-5 { animation-delay: 0.6s; }
.trace-6 { animation-delay: 0.75s; }
.trace-7 { animation-delay: 0.9s; }
.trace-8 { animation-delay: 1.05s; }
.trace-9 { animation-delay: 1.2s; }

/* Right side traces */
.trace-10 { animation-delay: 0.1s; }
.trace-11 { animation-delay: 0.25s; }
.trace-12 { animation-delay: 0.4s; }
.trace-13 { animation-delay: 0.55s; }
.trace-14 { animation-delay: 0.7s; }
.trace-15 { animation-delay: 0.85s; }
.trace-16 { animation-delay: 1.0s; }
.trace-17 { animation-delay: 1.15s; }
.trace-18 { animation-delay: 1.3s; }

/* Top and bottom traces */
.trace-19 { animation-delay: 0.2s; }
.trace-20 { animation-delay: 0.35s; }
.trace-21 { animation-delay: 0.5s; }
.trace-22 { animation-delay: 0.65s; }
.trace-23 { animation-delay: 1.1s; }
.trace-24 { animation-delay: 1.25s; }
.trace-25 { animation-delay: 1.4s; }
.trace-26 { animation-delay: 1.55s; }

/* Vertical connectors */
.trace-27 { animation-delay: 1.0s; }
.trace-28 { animation-delay: 1.1s; }
.trace-29 { animation-delay: 1.3s; }
.trace-30 { animation-delay: 1.2s; }
.trace-31 { animation-delay: 1.4s; }
.trace-32 { animation-delay: 0.8s; }

@keyframes drawTrace {
    to {
        stroke-dashoffset: 0;
    }
}

.node {
    fill: #00BFA5;
    opacity: 0;
    animation: fadeInNode 0.5s ease-out forwards;
}

.node-1 { animation-delay: 0.6s; }
.node-2 { animation-delay: 0.7s; }
.node-3 { animation-delay: 0.8s; }
.node-4 { animation-delay: 0.9s; }
.node-5 { animation-delay: 1.0s; }
.node-6 { animation-delay: 1.1s; }
.node-7 { animation-delay: 1.2s; }
.node-8 { animation-delay: 1.3s; }
.node-9 { animation-delay: 0.65s; }
.node-10 { animation-delay: 0.75s; }
.node-11 { animation-delay: 0.85s; }
.node-12 { animation-delay: 0.95s; }
.node-13 { animation-delay: 1.05s; }
.node-14 { animation-delay: 1.15s; }
.node-15 { animation-delay: 1.25s; }
.node-16 { animation-delay: 1.35s; }
.node-17 { animation-delay: 0.5s; }
.node-18 { animation-delay: 0.55s; }
.node-19 { animation-delay: 0.7s; }
.node-20 { animation-delay: 0.8s; }

@keyframes fadeInNode {
    to {
        opacity: 1;
    }
}

/* Subtle pulse on nodes after they appear */
.node {
    animation: fadeInNode 0.5s ease-out forwards, pulseNode 2s ease-in-out infinite 2s;
}

@keyframes pulseNode {
    0%, 100% {
        r: 4;
        opacity: 1;
    }
    50% {
        r: 6;
        opacity: 0.7;
    }
}

/* Scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Team Section */
.team {
    padding: 60px 0;
}

.team h2 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.member-name:hover {
    color: var(--text-secondary);
}

/* Careers Section */
.careers {
    padding: 60px 0;
}

.careers h2 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.careers p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.careers a {
    color: var(--text-primary);
    text-decoration: none;
}

.careers a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 60px 0;
}

.contact h2 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-list p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contact-label {
    display: inline-block;
    min-width: 140px;
}

.contact-list a {
    color: var(--text-primary);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 60px 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo {
    height: 20px;
    width: auto;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-image {
        max-width: 100%;
    }

    .circuit-bg {
        opacity: 0.2;
    }

    .contact-label {
        display: block;
        min-width: auto;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1.5rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    main {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    footer {
        padding: 40px 1rem;
    }
}
