/* ============================================
   Denis Orlov — Full-Screen Editorial Portfolio
   Typography: Nozhik Bold (display) + Moniqa (body) + DM Sans (UI)
   Aesthetic: Editorial Brutalist-Modern, dark/cream zones
   ============================================ */

/* --- Font Faces --- */
@font-face {
    font-family: 'Nozhik';
    src: url('fonts/Nozhik-Bold.woff2') format('woff2'),
         url('fonts/Nozhik-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moniqa';
    src: url('fonts/Moniqa-LightDisplay.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moniqa';
    src: url('fonts/Moniqa-MediumDisplay.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moniqa';
    src: url('fonts/Moniqa-BoldDisplay.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

/* --- Design Tokens --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-cream: #f2efe8;
    --bg-accent: #1a1a2e;

    --text-on-dark: #f2efe8;
    --text-on-dark-muted: rgba(242, 239, 232, 0.45);
    --text-on-cream: #0a0a0a;
    --text-on-cream-muted: rgba(10, 10, 10, 0.5);
    --text-on-accent: #f2efe8;

    --accent-warm: #c8956c;
    --accent-warm-light: #e0b08a;
    --accent-cool: #8b9dc3;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;

    --gutter: clamp(24px, 5vw, 80px);
    --max-width: 1400px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    overflow-x: hidden;
    cursor: default;
}

::selection {
    background: var(--accent-warm);
    color: var(--bg-dark);
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 149, 108, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active { opacity: 1; }

@media (hover: none) {
    .cursor-glow { display: none; }
}

/* ============================================
   SECTION — Base
   ============================================ */
.section {
    position: relative;
    padding: var(--space-4xl) var(--gutter);
    overflow: hidden;
}

.section__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-on-cream-muted);
    margin-bottom: var(--space-3xl);
}

.section__label--light {
    color: var(--text-on-dark-muted);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-dark);
    position: relative;
    padding-bottom: var(--space-5xl);
}

.hero__label {
    position: absolute;
    top: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-on-dark-muted);
    opacity: 0;
}

.hero__content {
    margin-bottom: var(--space-2xl);
}

.hero__name {
    font-family: 'Nozhik', 'Instrument Serif', serif;
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero__name-line {
    display: block;
    font-size: clamp(4.5rem, 14vw, 12rem);
    opacity: 0;
    transform: translateY(60px);
}

.hero__name-line--accent {
    color: var(--accent-warm);
}

.hero__tagline {
    font-family: 'Moniqa', serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    line-height: 1.4;
    color: var(--text-on-dark-muted);
    opacity: 0;
    transform: translateY(30px);
}

.hero__roles {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-on-dark-muted);
    opacity: 0;
    transform: translateY(20px);
}

.hero__role-divider {
    color: var(--accent-warm);
    font-size: 0.5rem;
}

.hero__scroll-hint {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent-warm), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--bg-cream);
    color: var(--text-on-cream);
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
}

.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4xl);
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: start;
}

.about__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--space-xl);
    border: 3px solid var(--accent-warm);
    transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}

.about__photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(200, 149, 108, 0.2);
}

.about__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter var(--duration-slow) var(--ease-out);
}

.about__photo:hover .about__photo-img {
    filter: grayscale(0%);
}

.about__heading {
    font-family: 'Nozhik', 'Instrument Serif', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.about__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-on-cream-muted);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.about__text:last-of-type {
    margin-bottom: var(--space-xl);
}

.about__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-on-cream);
    text-decoration: none;
    padding: 14px 28px;
    border: 1.5px solid var(--text-on-cream);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.about__cta:hover {
    background: var(--text-on-cream);
    color: var(--bg-cream);
    transform: translateY(-2px);
}

.about__cta svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.about__cta:hover svg {
    transform: translate(3px, -3px);
}

/* ============================================
   PARALLAX STATEMENT
   ============================================ */
.parallax-statement {
    background: var(--bg-dark);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-5xl) var(--gutter);
}

.parallax-statement__bg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    pointer-events: none;
}

.parallax-statement__line {
    font-family: 'Nozhik', 'Instrument Serif', serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 8rem);
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(242, 239, 232, 0.03);
    letter-spacing: 0.05em;
    line-height: 1;
    will-change: transform;
}

.parallax-statement__line--2 {
    color: rgba(200, 149, 108, 0.04);
}

.parallax-statement__center {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.parallax-statement__quote {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.4;
    color: rgba(242, 239, 232, 0.6);
    display: block;
}

/* ============================================
   SKILLS
   ============================================ */
.skills {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-5xl);
}

.skills__list {
    max-width: var(--max-width);
    margin: 0 auto;
}

.skill {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(242, 239, 232, 0.08);
    cursor: default;
    transition: all var(--duration-normal) var(--ease-out);
}

.skill:first-child {
    border-top: 1px solid rgba(242, 239, 232, 0.08);
}

.skill:hover {
    padding-left: var(--space-md);
}

.skill:hover .skill__number {
    color: var(--accent-warm);
}

.skill:hover .skill__icon {
    opacity: 1;
    color: var(--accent-warm);
    transform: translateX(0);
}

.skill__number {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
    letter-spacing: 0.05em;
    transition: color var(--duration-normal) var(--ease-out);
}

.skill__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.skill__title {
    font-family: 'Moniqa', serif;
    font-weight: 500;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.skill__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-on-dark-muted);
    max-width: 560px;
}

.skill__icon {
    opacity: 0;
    color: var(--text-on-dark-muted);
    transition: all var(--duration-normal) var(--ease-out);
    transform: translateX(-10px);
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    background: var(--accent-warm);
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.marquee {
    width: 100%;
    overflow: hidden;
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}

.marquee__track span {
    font-family: 'Nozhik', 'Instrument Serif', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--bg-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.marquee__dot {
    font-size: 0.5rem !important;
    opacity: 0.4;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
    background: var(--bg-cream);
    color: var(--text-on-cream);
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
}

.projects__header {
    max-width: var(--max-width);
    margin: 0 auto var(--space-3xl);
}

.projects__heading {
    font-family: 'Nozhik', 'Instrument Serif', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.projects__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.project {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    transition: transform var(--duration-normal) var(--ease-out);
}

a.project:hover {
    transform: translateY(-8px);
}

a.project:hover .project__image-circle {
    transform: scale(1.05);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

a.project:hover .project__arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* Circular project images */
.project__image-circle {
    width: clamp(140px, 18vw, 220px);
    height: clamp(140px, 18vw, 220px);
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    transition: all var(--duration-slow) var(--ease-out);
    flex-shrink: 0;
}

.project__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project__image-placeholder--adgena {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--accent-cool);
}

.project__image-placeholder--cv {
    background: linear-gradient(135deg, #1a2e1a, #0a1a0a);
    color: var(--accent-warm-light);
}

.project__image-placeholder--puppy {
    background: linear-gradient(135deg, #2d1b3d, #1a1a2e);
    color: var(--accent-warm-light);
}

.project__image-placeholder--reshala {
    background: linear-gradient(135deg, #1b2d1b, #1a2e1a);
    color: #8bc38b;
}

.project__meta {
    flex: 1;
}

.project__tag {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-on-cream-muted);
    display: block;
    margin-bottom: var(--space-sm);
}

.project__title {
    font-family: 'Moniqa', serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.project__desc {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-on-cream-muted);
    max-width: 260px;
    margin: 0 auto;
}

.project__arrow {
    margin-top: var(--space-md);
    color: var(--accent-warm);
    opacity: 0;
    transition: all var(--duration-fast) var(--ease-out);
}

.project__soon {
    margin-top: var(--space-md);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    background: rgba(10, 10, 10, 0.06);
    color: var(--text-on-cream-muted);
    border-radius: 100px;
}

.project--coming {
    opacity: 0.6;
    cursor: default;
}

/* ============================================
   STATS
   ============================================ */
.stats {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
    border-top: 1px solid rgba(242, 239, 232, 0.06);
}

.stats__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.stat__number {
    font-family: 'Nozhik', 'Instrument Serif', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    color: var(--accent-warm);
    display: inline;
}

.stat__suffix {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--accent-warm-light);
    display: inline;
    vertical-align: super;
    margin-left: 2px;
}

.stat__label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-on-dark-muted);
    margin-top: var(--space-sm);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-3xl);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.contact__content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact__heading {
    font-family: 'Nozhik', 'Instrument Serif', serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-3xl);
}

.contact__links {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

.contact__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(242, 239, 232, 0.1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.contact__link:first-child {
    border-top: 1px solid rgba(242, 239, 232, 0.1);
}

.contact__link:hover {
    padding-left: var(--space-md);
    border-bottom-color: var(--accent-warm);
}

.contact__link:hover .contact__link-text {
    color: var(--accent-warm);
}

.contact__link:hover svg {
    color: var(--accent-warm);
    transform: translate(3px, -3px);
}

.contact__link-text {
    font-family: 'Moniqa', serif;
    font-weight: 500;
    font-size: 1.6rem;
    transition: color var(--duration-fast) var(--ease-out);
}

.contact__link svg {
    color: var(--text-on-dark-muted);
    transition: all var(--duration-fast) var(--ease-out);
}

/* Footer */
.footer {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3xl);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-on-dark-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .projects__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 20px;
    }

    .hero__roles {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .hero__role-divider {
        display: none;
    }

    .hero__role {
        padding: 4px 12px;
        border: 1px solid rgba(242, 239, 232, 0.1);
        border-radius: 2px;
        font-size: 0.65rem;
    }

    .skill {
        grid-template-columns: 40px 1fr;
    }

    .skill__icon {
        display: none;
    }

    .projects__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .project__image-circle {
        width: 120px;
        height: 120px;
    }

    .stats__grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .contact__heading {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .contact__link-text {
        font-size: 1.2rem;
    }

    .footer {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .parallax-statement__line {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .parallax-statement__quote {
        font-size: 1.1rem;
        padding: 0 var(--space-md);
    }

    .parallax-statement {
        min-height: 40vh;
    }
}

@media (max-width: 375px) {
    .hero__name-line {
        font-size: 3.5rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 149, 108, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 149, 108, 0.5);
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .marquee__track {
        animation: none;
    }

    .hero__scroll-line {
        animation: none;
        opacity: 0.5;
    }
}
