/* ========================================
     VARIABLES
  ======================================== */
:root {
    --transition-smooth: cubic-bezier(0.24, 1, 0.36, 1);
    --transition-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snap: cubic-bezier(0.85, 0, 0.15, 1);
    --transition-third: cubic-bezier(0.22, 1, 0.36, 1);
    --blur-backdrop: 40px;
    --clr-dark: #1d1e21;
    --clr-off: #0a0a0a;
    --clr-text: #868686;
    --clr-light: #f0f0f0;
    --clr-border: #ddd;
    --clr-accent: #c4a265;
}

html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
}

/* ========================================
     PAGE TRANSITION OVERLAY
  ======================================== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-dark);
    z-index: 99999;
    animation: pageReveal 1s var(--transition-luxury) 0.2s forwards;
}
@keyframes pageReveal {
    0% {
        transform: scaleY(1);
        transform-origin: top;
    }
    100% {
        transform: scaleY(0);
        transform-origin: top;
    }
}

/* ========================================
   HERO — Cinematic with Ken Burns
======================================== */
.hero-cinematic {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    color: white;
}
.hero-cinematic .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenBurns 20s ease-in-out infinite alternate;
    /* GPU optimization without quality loss */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
@keyframes kenBurns {
    0% {
        transform: scale(1) translateY(0) translateZ(0);
    }
    100% {
        transform: scale(1.08) translateY(-1%) translateZ(0);
    }
}
.hero-cinematic::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 260px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 25%,
        rgba(0, 0, 0, 0.65) 55%,
        #000 100%
    );
    z-index: 1;
}
.hero-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 120px;
}
@media (max-width: 767px) {
    .hero-sticky-wrapper {
        padding-bottom: 80px;
    }
}
/* Hero Title — Split line reveal */
.hero-title-yodezeen {
    font-size: clamp(4rem, 12vw, 13rem);
    font-weight: 600;
    line-height: 0.78;
    letter-spacing: -0.052em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}
.hero-title-line {
    display: block;
    overflow: hidden;
}
.hero-title-line span {
    display: inline-block;
    transform: translateY(110%);
    animation: titleLineUp 1.2s var(--transition-luxury) forwards;
}
.hero-title-line:nth-child(1) span {
    animation-delay: 0.4s;
}
.hero-title-line:nth-child(2) span {
    animation-delay: 0.55s;
}
@keyframes titleLineUp {
    to {
        transform: translateY(0);
    }
}

/* Hero Subtitle */
.hero-subtitle-glass {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(var(--blur-backdrop));
    -webkit-backdrop-filter: blur(var(--blur-backdrop));
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 12px 28px;
    display: inline-block;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px) translateX(-10px);
    animation: subtitleReveal 1s var(--transition-luxury) 0.9s forwards;
}
@keyframes subtitleReveal {
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Hero scroll indicator */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: scrollHintIn 1s var(--transition-luxury) 1.4s forwards;
}
.hero-scroll-hint span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.hero-scroll-line::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 1px;
    height: 100%;
    background: var(--clr-accent);
    animation: scrollLinePulse 2s ease-in-out infinite;
}
@keyframes scrollLinePulse {
    0% {
        top: -100%;
    }
    50% {
        top: 100%;
    }
    100% {
        top: 100%;
    }
}
@keyframes scrollHintIn {
    to {
        opacity: 1;
    }
}
@media (max-width: 767px) {
    .hero-scroll-hint {
        display: none;
    }
}

/* ========================================
     SECTION SYSTEM
  ======================================== */
.section-header-modern {
    margin-bottom: 100px;
}

.section-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-text);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.section-tag::before {
    content: "";
    width: 0;
    height: 1px;
    background: var(--clr-accent);
    display: inline-block;
    transition: width 0.8s var(--transition-luxury);
}
.section-tag.active::before {
    width: 24px;
}
.section-dark-yodezeen .section-tag::before {
    background: var(--clr-accent);
}

.section-title-huge {
    font-size: clamp(3rem, 7vw, 8rem);
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.section-description-large {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.4;
    color: #868686;
    max-width: 800px;
}

/* ========================================
     GLASSMORPHISM CARDS
  ======================================== */
.glass-card {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    transition: all 0.6s var(--transition-luxury);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transition: left 0.8s;
}
.glass-card:hover::before {
    left: 100%;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========================================
     PHILOSOPHY GRID
  ======================================== */
.philosophy-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--clr-border);
    margin-top: 20px;
}
@media (max-width: 991px) {
    .philosophy-modern-grid {
        grid-template-columns: 1fr;
    }
}

.philosophy-item-modern {
    background: white;
    padding: 80px 50px;
    position: relative;
    transition: all 0.6s var(--transition-luxury);
    overflow: hidden;
}
.philosophy-item-modern::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--clr-dark);
    transition: height 0.7s var(--transition-luxury);
    z-index: 0;
}
.philosophy-item-modern:hover::before {
    height: 100%;
}
.philosophy-item-modern > * {
    position: relative;
    z-index: 1;
}
.philosophy-item-modern:hover h4,
.philosophy-item-modern:hover p {
    color: white;
}

/* Gold shimmer on hover */
.philosophy-item-modern::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(196, 162, 101, 0.06),
        transparent
    );
    transition: left 0.8s var(--transition-luxury);
    z-index: 1;
}
.philosophy-item-modern:hover::after {
    left: 150%;
}

.philosophy-index {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--clr-accent);
    margin-bottom: 40px;
    transition: color 0.3s;
}
.philosophy-item-modern:hover .philosophy-index {
    color: var(--clr-accent);
}
.philosophy-item-modern h4 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    transition: color 0.5s;
}
.philosophy-item-modern p {
    font-size: 1rem;
    line-height: 1.6;
    color: #868686;
    transition: color 0.5s;
}

/* ========================================
     SERVICES — Large Format
  ======================================== */
.service-large-item {
    padding: 80px 0;
    border-top: 1px solid #ddd;
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    gap: 60px;
    align-items: center;
    transition: all 0.4s var(--transition-luxury);
    position: relative;
}
@media (max-width: 767px) {
    .service-large-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }
}
.service-large-item:last-child {
    border-bottom: 1px solid #ddd;
}
.service-large-item:hover {
    padding-left: 20px;
}
.service-number {
    font-size: 1rem;
    font-weight: 600;
    color: #ddd;
    transition: color 0.3s;
}
.service-large-item:hover .service-number {
    color: var(--clr-dark);
}
.service-content h3 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.service-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #868686;
    max-width: 600px;
}
.service-arrow {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--transition-luxury);
    align-self: start;
}
@media (max-width: 767px) {
    .service-arrow {
        display: none;
    }
}
.service-arrow i {
    font-size: 24px;
    transform: rotate(-45deg);
    transition: transform 0.4s var(--transition-luxury);
}
.service-large-item:hover .service-arrow {
    background: var(--clr-dark);
    border-color: var(--clr-dark);
    transform: translateX(10px);
}
.service-large-item:hover .service-arrow i {
    transform: rotate(0deg);
    color: white;
}

/* ========================================
     DARK SECTION
  ======================================== */
.section-dark-yodezeen {
    background: var(--clr-off);
    color: white;
}
@media (max-width: 767px) {
    .section-dark-yodezeen {
        padding: 80px 0;
    }
}
.section-dark-yodezeen .section-tag {
    color: rgba(255, 255, 255, 0.45);
}
.section-dark-yodezeen .section-description-large {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
     EXPERTISE GRID — Glow + line wipe
  ======================================== */
.expertise-minimal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #333;
    margin-top: 80px;
}
@media (max-width: 767px) {
    .expertise-minimal-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-minimal-item {
    background: var(--clr-dark);
    padding: 60px 40px;
    transition: all 0.6s var(--transition-luxury);
    position: relative;
    overflow: hidden;
}
.expertise-minimal-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: width 0.6s var(--transition-luxury);
}
.expertise-minimal-item:hover::after {
    width: 100%;
}
.expertise-minimal-item::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(196, 162, 101, 0.04) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}
.expertise-minimal-item:hover::before {
    opacity: 1;
}
.expertise-minimal-item:hover {
    background: #222326;
}
.expertise-minimal-item h4 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    transition: transform 0.5s var(--transition-luxury);
}
.expertise-minimal-item:hover h4 {
    transform: translateX(8px);
}
.expertise-minimal-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
     PROCESS TIMELINE
  ======================================== */
.process-timeline {
    margin-top: 100px;
}
.process-timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 80px;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}
@media (max-width: 767px) {
    .process-timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }
}
.process-timeline-item::before {
    content: "";
    position: absolute;
    left: 60px;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--clr-dark);
    transition: height 0.6s var(--transition-luxury);
}
@media (max-width: 767px) {
    .process-timeline-item::before {
        display: none;
    }
}
.process-timeline-item:hover::before {
    height: 100%;
}
.process-index-large {
    font-size: 5rem;
    font-weight: 300;
    line-height: 1;
    color: #f0f0f0;
    transition: color 0.3s;
}
.process-timeline-item:hover .process-index-large {
    color: var(--clr-dark);
}
.process-timeline-content h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.process-timeline-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #868686;
}

/* ========================================
     STATS — Counter + hover accent
  ======================================== */
.stats-minimal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 100px;
    border-top: 2px solid var(--clr-dark);
    border-bottom: 2px solid var(--clr-dark);
}
@media (max-width: 991px) {
    .stats-minimal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .stats-minimal-grid {
        grid-template-columns: 1fr;
    }
}
.stat-minimal-item {
    padding: 60px 40px;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.5s var(--transition-luxury);
    position: relative;
}
.stat-minimal-item:last-child {
    border-right: none;
}
.stat-minimal-item:hover {
    background: rgba(196, 162, 101, 0.04);
    transform: translateY(-8px);
}
.stat-minimal-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transform: translateX(-50%);
    transition: width 0.6s var(--transition-luxury);
}
.stat-minimal-item:hover::before {
    width: 40px;
}
.stat-number-huge {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 20px;
}
.stat-label-minimal {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #868686;
}

/* ========================================
     WHY FEATURES
  ======================================== */
.why-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 80px;
}
@media (max-width: 767px) {
    .why-features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.why-feature-item {
    position: relative;
    padding-left: 40px;
    transition: transform 0.4s var(--transition-luxury);
}
.why-feature-item:hover {
    transform: translateX(6px);
}
.why-feature-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 2px;
    background: var(--clr-accent);
    transition: width 0.4s var(--transition-luxury);
}
.why-feature-item:hover::before {
    width: 28px;
}
.why-feature-item h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.why-feature-item p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #868686;
}

/* ========================================
     SCROLL REVEAL — 4 animation types
  ======================================== */
.reveal-fade {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 1s var(--transition-luxury),
        transform 1s var(--transition-luxury);
}
.reveal-fade.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 1s var(--transition-luxury),
        transform 1s var(--transition-luxury);
}
.reveal-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 1s var(--transition-luxury),
        transform 1s var(--transition-luxury);
}
.reveal-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 1s var(--transition-luxury),
        transform 1s var(--transition-luxury);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.philosophy-modern-grid [class*="reveal-"]:nth-child(2) {
    transition-delay: 0.15s;
}
.philosophy-modern-grid [class*="reveal-"]:nth-child(3) {
    transition-delay: 0.3s;
}
.expertise-minimal-grid [class*="reveal-"]:nth-child(2) {
    transition-delay: 0.1s;
}
.expertise-minimal-grid [class*="reveal-"]:nth-child(3) {
    transition-delay: 0.2s;
}
.expertise-minimal-grid [class*="reveal-"]:nth-child(4) {
    transition-delay: 0.3s;
}
.why-features-grid [class*="reveal-"]:nth-child(2) {
    transition-delay: 0.08s;
}
.why-features-grid [class*="reveal-"]:nth-child(3) {
    transition-delay: 0.16s;
}
.why-features-grid [class*="reveal-"]:nth-child(4) {
    transition-delay: 0.24s;
}
.why-features-grid [class*="reveal-"]:nth-child(5) {
    transition-delay: 0.32s;
}
.why-features-grid [class*="reveal-"]:nth-child(6) {
    transition-delay: 0.4s;
}

/* ========================================
     ANIMATED DIVIDER LINE
  ======================================== */
.divider-line {
    width: 100%;
    height: 1px;
    background: var(--clr-border);
    position: relative;
    overflow: hidden;
    margin: 0;
}
.divider-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-accent);
    transition: width 1.5s var(--transition-luxury);
}
.divider-line.active::after {
    width: 100%;
}

/* ========================================
     CTA ENHANCED
  ======================================== */
.cta-img-area h2 {
    transition: letter-spacing 0.6s var(--transition-luxury);
}
.cta-img-area:hover h2 {
    letter-spacing: 2px;
}

/* ========================================
     IMAGE FULL BLEED
  ======================================== */
.image-full-bleed {
    width: 100%;
    height: 600px;
    object-fit: cover;
    margin: 100px 0;
}
@media (max-width: 767px) {
    .image-full-bleed {
        height: 400px;
        margin: 60px 0;
    }
}

/* ========================================
     SPACING
  ======================================== */
.spacer-xl {
    height: 50px;
}
.spacer-lg {
    height: 100px;
}
.spacer-md {
    height: 60px;
}
@media (max-width: 767px) {
    .spacer-xl {
        height: 50px;
    }
    .spacer-lg {
        height: 60px;
    }
    .spacer-md {
        height: 40px;
    }
}

/* ========================================
     REDUCED MOTION
  ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
