/* ============================================================
   Design System — Farzat Amin
   Swiss/editorial minimalism, dark mode, single accent.
   No glassmorphism, no decorative blur. Hairlines + space do the work.
   ============================================================ */

:root {
    --bg: #070707;
    --bg-raised: #0c0c0c;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #ededed;
    --text-muted: #8a8a8a;
    --accent: #ef4444;
    --accent-soft: rgba(239, 68, 68, 0.12);
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Section label motif: // LABEL */
.eyebrow {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Card surface — replaces glass-morphism. Hairline border, no blur. */
.surface {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.surface:hover {
    border-color: var(--line-strong);
}

/* Backward-compat alias so existing markup keeps working while pages are migrated */
.glass-morphism {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: border-color 0.25s ease;
}
.glass-morphism:hover {
    border-color: var(--line-strong);
}

/* Single hairline accent rule, used sparingly instead of glow orbs */
.accent-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Scroll reveal (replaces AOS dependency) */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background-color: var(--line-strong);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent);
}

/* Form inputs */
.form-input {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    transition: border-color 0.2s ease;
}
.form-input::placeholder {
    color: var(--text-muted);
}
.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* YouTube embed aspect ratio */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
}
.aspect-h-9 {
    height: 0;
}
.aspect-w-16 > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
}

/* Project gallery masonry */
.project-gallery {
    column-count: 1;
    column-gap: 1rem;
}
.project-gallery > div {
    margin-bottom: 1rem;
    break-inside: avoid;
}
@media (min-width: 640px) {
    .project-gallery {
        column-count: 2;
    }
}
