/* ============================================
   VICTORIA HAUGNES — v4
   Glass cards · Blurred hero · Animations
   ============================================ */

@font-face {
    font-family: 'MangoGrotesque';
    src: url('assets/fonts/MangoGrotesque-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Brooklyn';
    src: url('assets/fonts/Brooklyn-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

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

:root {
    --bg: #191b1e;
    --bg-soft: #1e2024;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.06);
    --gray: #70757a;
    --gray-light: #9ea3a9;
    --white: #ededed;
    --white-dim: #bfc3c8;
    --red: #f0434f;
    --red-dim: rgba(223, 37, 49, 0.6);
    --red-glow: rgba(223, 37, 49, 0.08);
    --font-heading: 'Syne', -apple-system, sans-serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--red); color: white; }

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


/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 2.5rem;
    transition: all 0.5s var(--ease);
}
.nav.scrolled {
    background: rgba(25, 27, 30, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-logo {
    font-family: var(--font-heading);
    font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.3s;
}
.nav-logo:hover { color: var(--red); }
.nav-links { display: flex; gap: 2rem; }
.nav-link {
    font-size: 0.7rem; font-weight: 400;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray-light); transition: color 0.3s;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 0; height: 1px; background: var(--red);
    transition: width 0.4s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 24px; height: 16px; position: relative; z-index: 110;
}
.nav-toggle span {
    display: block; width: 100%; height: 1px; background: var(--white);
    position: absolute; left: 0; transition: all 0.3s;
}
.nav-toggle span:first-child { top: 2px; }
.nav-toggle span:last-child { bottom: 2px; }
.nav-toggle.active span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active span:last-child { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(25, 27, 30, 0.97); backdrop-filter: blur(30px);
    flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-link {
    font-family: var(--font-heading); font-size: 1.5rem;
    color: var(--gray-light); transition: color 0.3s;
}
.mobile-link:hover { color: var(--red); }


/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh; min-height: 550px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 60%;
    filter: blur(8px) grayscale(100%);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(25,27,30,0.4) 0%,
            rgba(25,27,30,0.15) 35%,
            rgba(25,27,30,0.5) 70%,
            var(--bg) 100%),
        linear-gradient(90deg, rgba(25,27,30,0.5) 0%, transparent 60%);
}

.hero-grain {
    position: absolute; inset: 0; z-index: 2;
    opacity: 0.04;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px; pointer-events: none;
}

.hero-content {
    position: relative; z-index: 3;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1;
    max-width: 940px; width: 100%; margin: 0 auto;
}

.hero-tag {
    font-size: 0.62rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.8rem;
    opacity: 0; transform: translateY(14px);
    animation: fadeUp 0.8s var(--ease) 0.3s forwards;
}

.hero-name {
    font-family: 'MangoGrotesque', var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 1.05;
    letter-spacing: 0.06em;
    opacity: 0; transform: translateY(24px);
    animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 3;
    opacity: 0; animation: fadeUp 0.7s var(--ease) 1s forwards;
}
.hero-scroll-line {
    width: 1px; height: 36px;
    background: rgba(255,255,255,0.12);
    position: relative; overflow: hidden;
}
.hero-scroll-line::after {
    content: ''; position: absolute; top: -100%; left: 0;
    width: 100%; height: 100%;
    background: var(--red);
    animation: scrollDown 2.2s var(--ease) infinite;
}


/* ===== SECTION LABELS ===== */
.section-label {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.section-num {
    font-size: 0.58rem; font-weight: 500;
    color: var(--red); letter-spacing: 0.1em;
}
.section-name {
    font-size: 0.58rem; font-weight: 400;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gray);
}


/* ===== ABOUT ===== */
.about { padding: 6rem 0; }

.about-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.about-portrait {
    border-radius: 4px; overflow: hidden;
    position: relative; aspect-ratio: 3 / 4;
    max-width: 260px;
    border: 1px solid var(--glass-border);
}
.about-portrait img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    transition: transform 0.6s var(--ease);
}
.about-portrait:hover img { transform: scale(1.03); }

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600; line-height: 1.2;
    margin-bottom: 1.25rem;
}

.about-body {
    font-size: 0.88rem; font-weight: 300;
    line-height: 1.75; color: var(--white-dim);
    margin-bottom: 0.75rem;
}

.about-accent {
    color: var(--red);
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 1.8rem;
}

.tags-row {
    display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.tag {
    font-size: 0.58rem; font-weight: 400;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--gray-light);
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    transition: all 0.35s var(--ease);
}
.tag:hover {
    border-color: var(--red-dim);
    color: var(--white);
    background: rgba(223, 37, 49, 0.06);
}


/* ===== WORK ===== */
.work { padding: 6rem 0; }

/* Glass cards */
.work-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 754px;
    margin-left: -12px;
}

.glass-card {
    display: block;
    padding: 0.95rem 1.4rem;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(223,37,49,0.03), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}
.glass-card:hover {
    border-color: rgba(223, 37, 49, 0.25);
    background: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(223,37,49,0.08);
}
.glass-card:hover::before { opacity: 1; }

.glass-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    position: relative;
}

.card-role {
    font-size: 0.56rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--red);
}

.card-arrow {
    color: var(--gray);
    transition: all 0.35s var(--ease);
}
.glass-card:hover .card-arrow {
    color: var(--red);
    transform: translate(2px, -2px);
}

.card-title {
    font-family: 'Brooklyn', var(--font-heading);
    font-size: 1.2rem; font-weight: 600;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
    position: relative;
}

.card-meta {
    font-size: 0.72rem; font-weight: 300;
    color: var(--gray-light);
    margin-bottom: 0.75rem;
    position: relative;
}

.card-highlight {
    color: var(--white-dim);
    font-weight: 400;
}

.card-desc {
    font-size: 0.82rem; font-weight: 300;
    line-height: 1.6; color: var(--white-dim);
    position: relative;
}

/* Minor work rows */
.work-minor {
    padding-top: 0.25rem;
    max-width: 740px;
    margin-left: -5px;
}

.minor-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: border-color 0.3s;
    text-decoration: none; color: inherit;
}
a.minor-row:hover { border-color: var(--red-dim); }
a.minor-row:hover .minor-title { color: var(--red); }

.minor-title {
    font-size: 0.82rem; font-weight: 400;
    color: var(--white-dim);
    transition: color 0.3s;
}

.minor-meta {
    font-size: 0.65rem; font-weight: 300;
    color: var(--gray); flex: 1;
}

.minor-arrow {
    color: var(--gray);
    transition: all 0.3s;
    flex-shrink: 0;
}
a.minor-row:hover .minor-arrow {
    color: var(--red);
    transform: translate(1px, -1px);
}


/* ===== IMAGE BREAK ===== */
.image-break {
    position: relative;
    height: 28vh; min-height: 180px;
    overflow: hidden;
}
.image-break img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.55) contrast(1.05);
}
.image-break-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
    pointer-events: none;
}


/* ===== TOOLS ===== */
.tools { padding: 3rem 0 4rem; }

/* ===== CONTACT ===== */
.contact {
    padding: 6rem 0;
    position: relative;
}
.contact::before {
    content: ''; position: absolute; top: 0; left: 2rem; right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(223,37,49,0.2), transparent);
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-sub {
    font-size: 0.88rem; font-weight: 300;
    color: var(--white-dim);
    margin-bottom: 2rem;
}

.glass-btn {
    display: inline-flex;
    align-items: center; gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.82rem; font-weight: 400;
    color: var(--white);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s var(--ease);
}
.glass-btn svg { flex-shrink: 0; }
.glass-btn:hover {
    border-color: var(--red-dim);
    color: var(--red);
    background: rgba(223,37,49,0.06);
    transform: translateY(-1px);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
.social-link:hover {
    color: var(--white);
    border-color: var(--red);
}


/* ===== FOOTER ===== */
.footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}
.footer-row {
    display: flex; justify-content: space-between;
    font-size: 0.62rem; color: var(--gray);
    letter-spacing: 0.03em;
}


/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDown {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* Scroll reveal */
.anim-fade {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.anim-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.anim-fade:nth-child(1) { transition-delay: 0ms; }
.anim-fade:nth-child(2) { transition-delay: 80ms; }
.anim-fade:nth-child(3) { transition-delay: 160ms; }
.anim-fade:nth-child(4) { transition-delay: 240ms; }
.anim-fade:nth-child(5) { transition-delay: 320ms; }


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav { padding: 1rem 1.25rem; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }

    .hero-content { padding: 0 1.25rem 3.5rem; }
    .container { padding: 0 1.25rem; }
    .about, .work, .contact { padding: 4rem 0; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-portrait { max-width: 200px; }

    .glass-card { padding: 1.4rem 1.5rem; }

    .minor-row { flex-wrap: wrap; gap: 0.25rem; }

    .contact::before { left: 1.25rem; right: 1.25rem; }
}
