*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0c;
    --surface: #111115;
    --text: #e8e6e3;
    --text-dim: #7a7880;
    --accent: #c4f04d;
    --accent-dim: rgba(196, 240, 77, 0.08);
    --border: rgba(255, 255, 255, 0.06);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Ambient glow */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

.glow-1 { top: -200px; right: -100px; background: var(--accent); }
.glow-2 { bottom: -200px; left: -100px; background: #4d7cf0; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    animation: fadeDown 0.8s ease-out;
}

.nav-logo-wide { height: 36px; width: auto; display: block; }
.nav-logo-square { height: 32px; width: 32px; display: none; object-fit: contain; }

.nav-center {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-anchor {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-anchor:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 24px; }

.nav-socials { display: flex; align-items: center; gap: 16px; }
.nav-socials a { color: var(--text-dim); transition: color 0.3s; display: flex; align-items: center; }
.nav-socials a:hover { color: var(--accent); }
.nav-socials svg { width: 18px; height: 18px; }
.nav-socials .icon-img { width: 18px; height: 18px; filter: brightness(0) invert(1) opacity(0.5); transition: filter 0.3s; }
.nav-socials a:hover .icon-img { filter: brightness(0) invert(1) opacity(1) sepia(1) saturate(50) hue-rotate(30deg); }

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.lang-btn {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 6px 12px;
    background: transparent;
    color: var(--text-dim);
    border: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    background: var(--accent-dim);
    color: var(--accent);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 48px 80px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 48px;
    animation: fadeUp 0.8s ease-out 0.2s both;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.05));
}

.hero h1 {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero h1 strong {
    font-weight: 600;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 520px;
    font-weight: 300;
    animation: fadeUp 0.8s ease-out 0.6s both;
}

/* Sections */
.section { padding: 120px 48px; position: relative; z-index: 1; }
.section-divider { width: 100%; height: 1px; background: var(--border); margin: 0 auto; }

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

/* About */
.about-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-title { font-size: 36px; font-weight: 300; line-height: 1.3; letter-spacing: -0.5px; }
.about-title strong { font-weight: 600; }

.about-text { font-size: 16px; line-height: 1.8; color: var(--text-dim); font-weight: 300; }
.about-text p + p { margin-top: 20px; }

/* Project card */
.project-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 64px;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.project-title { font-size: 42px; font-weight: 600; letter-spacing: -1px; margin-bottom: 16px; }

.project-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
    font-size: 12px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-dim);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.project-btn {
    display: inline-block;
    margin-top: 32px;
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bg);
    background: var(--accent);
    padding: 14px 36px;
    border-radius: 100px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(196, 240, 77, 0.15);
}

.project-btn:hover {
    background: #d4ff5e;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(196, 240, 77, 0.25);
}

/* Footer */
footer { padding: 48px; text-align: center; position: relative; z-index: 1; }

.footer-logo { height: 48px; width: auto; margin-bottom: 24px; opacity: 0.4; transition: opacity 0.3s; }
.footer-logo:hover { opacity: 0.7; }

.footer-socials { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 24px; }
.footer-socials a { color: var(--text-dim); transition: color 0.3s, transform 0.3s; display: flex; align-items: center; }
.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }
.footer-socials svg { width: 20px; height: 20px; }
.footer-socials .icon-img { width: 20px; height: 20px; filter: brightness(0) invert(1) opacity(0.5); transition: filter 0.3s, transform 0.3s; }
.footer-socials a:hover .icon-img { filter: brightness(0) invert(1) opacity(1) sepia(1) saturate(50) hue-rotate(30deg); transform: translateY(-2px); }

.footer-text { font-size: 13px; color: var(--text-dim); font-weight: 300; letter-spacing: 0.5px; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    nav { padding: 14px 16px; gap: 12px; }
    .nav-logo-wide { display: none; }
    .nav-logo-square { display: block; }
    .nav-center { gap: 14px; }
    .nav-anchor { font-size: 10px; letter-spacing: 1px; }
    .nav-socials { display: none; }
    .nav-right { gap: 12px; }
    .lang-switcher { border-radius: 6px; }
    .lang-btn { font-size: 10px; padding: 5px 10px; }
    .hero { padding: 100px 24px 80px; }
    .hero-logo { width: 140px; height: 140px; margin-bottom: 36px; }
    .hero h1 { letter-spacing: -1px; }
    .hero-description { font-size: 16px; }
    .section { padding: 80px 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .project-card { padding: 40px 28px; }
    .project-title { font-size: 32px; }
    footer { padding: 40px 24px; }
}

/* Disable heavy effects on touch devices */
@media (hover: none) {
    body::after { display: none; }
    .ambient-glow { display: none; }
}