/* ============================================
   NAJAFOV DIGITAL - Main Stylesheet
   Version: 1.0.0
   ============================================ */

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colors */
    --color-bg: #FAFAF8;
    --color-bg-rgb: 250, 250, 248;
    --color-text: #0A0A0A;
    --color-text-rgb: 10, 10, 10;
    --color-accent: #0066FF;
    --color-accent-rgb: 0, 102, 255;
    --color-gray: #666666;

    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    --space-4xl: 12rem;

    /* Right rail offset */
    --rail-offset: clamp(2.5rem, 9vw, 9rem);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 50;
    --z-fixed: 100;
    --z-modal: 1000;
    --z-cursor: 9999;
    --z-preloader: 10000;
}

/* ============================================
   HTML & BODY
   ============================================ */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: var(--rail-offset);
    width: 1px;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(var(--color-text-rgb), 0),
        rgba(var(--color-text-rgb), 0.12),
        rgba(var(--color-text-rgb), 0)
    );
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 18%;
    right: calc(var(--rail-offset) - 7px);
    width: 14px;
    height: 14px;
    border: 1px solid rgba(var(--color-text-rgb), 0.2);
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Selection */
::selection {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

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

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    z-index: var(--z-preloader);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
}

.preloader__text {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
}

.preloader__counter {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    font-family: var(--font-mono);
}

.preloader__progress {
    width: 200px;
    height: 1px;
    background-color: rgba(var(--color-text-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.preloader__progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-text);
    transition: width 0.1s linear;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition:
        width 0.3s var(--ease-smooth),
        height 0.3s var(--ease-smooth),
        background-color 0.3s var(--ease-smooth),
        border-color 0.3s var(--ease-smooth),
        opacity 0.3s var(--ease-smooth);
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor.is-visible {
    opacity: 1;
}

.cursor__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-bg);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s var(--ease-smooth);
}

.cursor__dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: var(--color-text);
    border-radius: 50%;
    pointer-events: none;
    z-index: calc(var(--z-cursor) + 1);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor__dot.is-visible {
    opacity: 1;
}

.cursor.is-hovering {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    mix-blend-mode: normal;
}

.cursor.is-link {
    width: 80px;
    height: 80px;
    background-color: var(--color-text);
    border-color: var(--color-text);
    mix-blend-mode: normal;
}

.cursor.is-link .cursor__label {
    opacity: 1;
    transform: scale(1);
}

.cursor.is-hovering-text {
    width: 100px;
    height: 100px;
    background-color: transparent;
    border-color: var(--color-accent);
}

@media (hover: none), (pointer: coarse) {
    .cursor,
    .cursor__dot,
    .project-preview {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .cursor,
    .cursor__dot,
    .project-preview {
        display: none;
    }
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.main {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-smooth);
    position: relative;
    z-index: 1;
}

.main.is-loaded {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-fixed);
    background-color: rgba(var(--color-bg-rgb), 0.85);
    border-bottom: 1px solid rgba(var(--color-text-rgb), 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.nav.is-visible {
    transform: translateY(0);
}

.nav__logo {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav__logo-symbol {
    font-size: 0.75rem;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-10px) rotate(0deg);
    transition: all 0.4s var(--ease-smooth);
}

.nav__logo:hover .nav__logo-symbol {
    opacity: 1;
    transform: translateX(0) rotate(45deg);
}

.nav__contact {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: transform 0.3s var(--ease-smooth);
}

.nav__contact-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s var(--ease-smooth);
}

.nav__contact:hover {
    transform: translateX(5px);
}

.nav__contact:hover .nav__contact-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero__decoration {
    position: absolute;
    top: 15%;
    right: 8%;
    width: 300px;
    height: 300px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    opacity: 0.03;
    animation: rotate 40s linear infinite;
    pointer-events: none;
}

.hero__decoration-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    animation: rotate 30s linear infinite reverse;
}

.hero__content {
    position: relative;
    z-index: var(--z-base);
}

.hero__title {
    font-size: clamp(3.5rem, 12vw, 10.5rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-xl);
}

.hero__line {
    display: block;
    overflow: hidden;
}

.hero__line-inner {
    display: block;
    transform: translateY(120%);
}

.hero__line:nth-child(2) .hero__line-inner {
    font-style: italic;
    font-weight: 300;
}

.hero__subtitle {
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 300;
    line-height: 1.5;
    position: relative;
    padding-left: 40px;
    opacity: 0;
    transform: translateY(30px);
    width: 100%;
}

.hero__subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    width: 25px;
    height: 2px;
    background-color: var(--color-accent);
    transition: transform 0.6s var(--ease-out-expo);
}

.hero__subtitle.is-animated::before {
    transform: translateY(-50%) scaleX(1);
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--space-4xl) var(--space-xl);
}

.about__text {
    font-size: clamp(3.2rem, 7.2vw, 5.5rem);
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: -0.02em;
    max-width: none;
    width: 100%;
}

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

.about__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s var(--ease-out-expo);
}

.about__word.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.section-header__line {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

.section-header__text {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ============================================
   SECTION RAIL
   ============================================ */
.section-split {
    display: grid;
    grid-template-columns: clamp(6rem, 12vw, 11rem) 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
}

.section-rail {
    padding-top: 0.4rem;
}

.section-rail__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--space-2xl) var(--space-xl) var(--space-4xl);
}

.services__list {
    display: flex;
    flex-direction: column;
}

.service {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    align-items: start;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(var(--color-text-rgb), 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.5s var(--ease-out-expo);
}

.service:first-child {
    border-top: 1px solid rgba(var(--color-text-rgb), 0.1);
}

.service__index {
    font-size: 0.875rem;
    font-family: var(--font-mono);
    color: var(--color-accent);
    padding-top: 0.25rem;
    opacity: 0.5;
    transition: opacity 0.3s var(--ease-smooth);
}

.service:hover .service__index {
    opacity: 1;
}

.service__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service__title {
    font-size: clamp(2.8rem, 6.5vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: transform 0.5s var(--ease-out-expo);
}

.service:hover .service__title {
    transform: translateX(1rem);
}

.service__desc {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-gray);
    max-width: 500px;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.service:hover .service__desc {
    opacity: 1;
    max-height: 100px;
    margin-top: var(--space-xs);
}

@media (max-width: 768px) {
    .service {
        gap: var(--space-md);
    }

    .service__desc {
        opacity: 0.7;
        max-height: none;
    }
}

/* ============================================
   CRAWLING/MARQUEE SECTION
   ============================================ */
.marquee {
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.marquee__header {
    padding: 0 var(--space-xl) var(--space-2xl);
}

.marquee__header-line {
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.marquee__header-text {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.6;
}

.marquee__lines {
    display: flex;
    flex-direction: column;
}

.marquee__line {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.marquee__line:last-child {
    border-bottom: none;
}

.marquee__track {
    display: flex;
    animation: marquee-left 50s linear infinite;
    will-change: transform;
}

.marquee__line--reverse .marquee__track {
    animation: marquee-right 50s linear infinite;
}

.marquee__line:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes marquee-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.marquee__word {
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    padding: 0 var(--space-lg);
    display: inline-flex;
    align-items: center;
    transition: color 0.3s var(--ease-smooth);
}

/* ============================================
   CONTACT LEAD-IN
   ============================================ */
.contact-leadin {
    padding: var(--space-3xl) var(--space-xl) 0;
}

.contact-leadin__text {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -0.02em;
    max-width: 1100px;
}

.marquee__word::before {
    content: '—';
    margin-right: var(--space-lg);
    font-weight: 300;
    opacity: 0.2;
}

.marquee__word--italic {
    font-style: italic;
    font-weight: 300;
}

.marquee__line:hover .marquee__word {
    color: var(--color-accent);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: var(--space-3xl) var(--space-xl) var(--space-4xl);
    background-color: var(--color-text);
    color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.projects__header {
    margin-bottom: var(--space-3xl);
}

.projects__header-top {
    display: flex;
    align-items: baseline;
    gap: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.projects__label {
    font-size: 0.875rem;
    font-family: var(--font-mono);
    opacity: 0.4;
}

.projects__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.projects__subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.5;
    padding-left: 0;
}

.projects__list {
    display: flex;
    flex-direction: column;
}

.project {
    position: relative;
    overflow: hidden;
}

.project__link {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(var(--color-bg-rgb), 0.1);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.5s var(--ease-out-expo);
}

.project:first-child .project__link {
    border-top: 1px solid rgba(var(--color-bg-rgb), 0.1);
}

.project__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(var(--color-bg-rgb), 0.03);
    transition: width 0.6s var(--ease-out-expo);
    z-index: -1;
}

.project:hover .project__link::before {
    width: 100%;
}

.project:hover .project__link {
    padding-left: var(--space-lg);
    border-bottom-color: rgba(var(--color-bg-rgb), 0.3);
}

.project__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project__index {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    opacity: 0.4;
    transition: opacity 0.3s var(--ease-smooth);
}

.project:hover .project__index {
    opacity: 1;
}

.project__year {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    opacity: 0.4;
}

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

.project__name {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: transform 0.5s var(--ease-out-expo);
}

.project:hover .project__name {
    transform: translateX(1rem);
}

.project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out-expo);
}

.project:hover .project__tags {
    opacity: 0.6;
    transform: translateY(0);
}

.project__tags span {
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.project__tags span:not(:last-child)::after {
    content: ',';
}

.project__arrow {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s var(--ease-out-expo);
}

.project__arrow svg {
    width: 32px;
    height: 32px;
}

.projects .section-rail__label {
    color: var(--color-bg);
    opacity: 0.6;
}

.projects .section-rail .projects__label {
    display: block;
    margin-top: var(--space-md);
    opacity: 0.4;
}

.projects .section-rail .projects__subtitle {
    margin-top: var(--space-sm);
    max-width: 22ch;
    opacity: 0.5;
}

/* ============================================
   PROJECT PREVIEW
   ============================================ */
.project-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: clamp(220px, 25vw, 380px);
    aspect-ratio: 4 / 3;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.96);
    transition: opacity 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
    z-index: calc(var(--z-cursor) - 1);
}

.project-preview.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.project-preview__media {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background:
        radial-gradient(circle at top left, rgba(0, 102, 255, 0.55), transparent 55%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.6), transparent 60%),
        linear-gradient(135deg, rgba(250, 250, 248, 0.08), rgba(10, 10, 10, 0.6));
    border: 1px solid rgba(250, 250, 248, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.project-preview__title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 0.4rem 0.55rem;
    border-radius: 4px;
    background: rgba(10, 10, 10, 0.72);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    opacity: 1;
}

.project:hover .project__arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .projects__subtitle {
        padding-left: 0;
    }

    .project__link {
        grid-template-columns: 60px 1fr auto;
        gap: var(--space-md);
    }

    .project__tags {
        opacity: 0.4;
        transform: none;
    }

    .project__arrow {
        opacity: 0.5;
        transform: none;
    }

    .project__arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
}

.contact__title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-2xl);
    line-height: 1.1;
    max-width: 800px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    font-style: normal;
}

.contact__email {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-family: var(--font-mono);
    color: var(--color-text);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s var(--ease-smooth);
}

.contact__email:hover {
    transform: translateX(1rem);
    color: var(--color-accent);
}

.contact__location {
    font-size: 1rem;
    font-family: var(--font-mono);
    opacity: 0.5;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(var(--color-text-rgb), 0.08);
}

.footer__copy {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    opacity: 0.4;
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__link {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--color-text);
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.3s var(--ease-smooth);
}

.footer__link:hover {
    opacity: 1;
}

/* ============================================
   YEAR BADGE
   ============================================ */
.year-badge {
    position: fixed;
    top: 50%;
    right: var(--space-lg);
    transform: translateY(-50%) rotate(90deg);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    color: var(--color-gray);
    opacity: 0;
    z-index: var(--z-dropdown);
    transition: opacity 0.5s var(--ease-smooth);
}

.year-badge.is-visible {
    opacity: 0.4;
}

/* ============================================
   GLOBAL ANIMATIONS
   ============================================ */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .year-badge {
        display: none;
    }

    body::before,
    body::after {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-xl: 1.5rem;
    }

    .section-split {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .section-rail {
        padding-top: 0;
    }

    .nav,
    .hero,
    .about,
    .services,
    .projects,
    .contact,
    .footer {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

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

    .hero__decoration {
        display: none;
    }

    .hero__subtitle {
        padding-left: 0;
    }

    .hero__subtitle::before {
        display: none;
    }

    .hero__scroll {
        bottom: var(--space-lg);
    }

    .marquee__word {
        padding: 0 var(--space-sm);
    }

    .marquee__word::before {
        margin-right: var(--space-sm);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 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;
    }
}

/* ============================================
   ENHANCED FOOTER
   ============================================ */
.footer--enhanced {
    flex-direction: column;
    gap: var(--space-2xl);
    padding: var(--space-3xl) var(--space-xl);
    border-top: 1px solid rgba(10, 10, 10, 0.1);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer__logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer__since {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

.footer__location {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.footer__location-city {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.footer__location-time {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(10, 10, 10, 0.05);
}

.footer__status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .footer--enhanced {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .footer__top {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .footer__location {
        align-items: flex-start;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
}

/* ============================================
   ENHANCED CONTACT SECTION V2
   ============================================ */
.contact--v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3xl);
    padding: var(--space-4xl) var(--space-xl);
}

.contact__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
}

.contact--v2 .contact__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
    text-transform: uppercase;
}

.contact--v2 .contact__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: left;
}

.contact--v2 .contact__title em {
    font-style: italic;
    font-weight: 400;
}

.contact__cta {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.contact__button {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 2.75rem 5rem;
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 0;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__button:hover {
    gap: 2.5rem;
    background: var(--color-accent);
}

.contact__button-arrow {
    font-size: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__button:hover .contact__button-arrow {
    transform: translateX(5px);
}

.contact__details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    width: 100%;
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(10, 10, 10, 0.1);
}

.contact__detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact__detail-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    opacity: 0.4;
    text-transform: uppercase;
}

.contact__detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact__email-trigger {
    align-self: flex-start;
    cursor: pointer;
}

.contact__email-trigger:hover {
    color: var(--color-accent);
}

.contact__button:focus-visible,
.contact__email-trigger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .contact--v2 {
        padding: var(--space-3xl) var(--space-md);
    }
    
    .contact__details {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}
