@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg: #050505;
    --fg: #f0f0f0;
    --accent: #ff3e3e;
    --accent-dim: #4a0000;
    --gray: #888;
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

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

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
}

h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 700;
    position: relative;
}

.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: var(--accent);
    opacity: 0.5;
    z-index: -1;
    animation: glitch 3s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(1px, -3px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(-1px, 2px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(3px, 1px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, -2px); }
    100% { clip-path: inset(58% 0 43% 0); transform: translate(1px, 1px); }
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5,5,5,0.8), transparent);
    backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--fg);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-top: 1rem;
    max-width: 600px;
}

.section-title {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--gray);
    margin-bottom: 1.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.about-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    max-width: 900px;
    line-height: 1.2;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--fg);
}

.card p {
    color: var(--gray);
}

.capabilities-list {
    list-style: none;
}

.capabilities-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
}

.capabilities-list span {
    color: var(--gray);
}

.work-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 20, 20, 0.4);
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    padding: 1px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.work-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.work-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: grayscale(0.8) brightness(0.6);
    display: block;
}

.work-item:hover .work-image {
    transform: scale(1.02);
    filter: grayscale(0.2) brightness(0.8);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
    opacity: 1;
}

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

.team-member h4 {
    margin-top: 1rem;
}

.team-member span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray);
}

.contact-email {
    font-size: clamp(1.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-email:hover {
    color: var(--accent);
}

footer {
    padding-bottom: 4rem;
    color: var(--gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    section { min-height: auto; padding: 60px 0; }
}