/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

/* Text Selection */
::selection {
    background-color: #f5b946;
    color: #0a0a0a;
}

::-moz-selection {
    background-color: #f5b946;
    color: #0a0a0a;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100vh;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: fadeInBody 1s 0.1s forwards;
}

@keyframes fadeInBody {
    to {
        opacity: 1;
    }
}

/* ===========================
   Grain Overlay
   =========================== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="3.5" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    animation: grainAnimation 8s steps(10) infinite;
}

@keyframes grainAnimation {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

/* ===========================
   Custom Cursor
   =========================== */
.cursor,
.cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease;
}

.cursor {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.75, -0.5, 0.25, 1.5), 
                width 0.3s ease, 
                height 0.3s ease,
                border-color 0.3s ease;
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    border-color: rgba(99, 102, 241, 0.9);
}

/* Cursor visibility on dark overlays */
body:has(#contactOverlay.active) .cursor,
body:has(#workOverlay.active) .cursor {
    background-color: #6366f1;
    mix-blend-mode: normal;
}

body:has(#contactOverlay.active) .cursor-follower,
body:has(#workOverlay.active) .cursor-follower {
    border-color: rgba(99, 102, 241, 0.6);
    mix-blend-mode: normal;
}

/* Hide contact button and scale logo when contact overlay is active */
body:has(#contactOverlay.active) .nav-contact-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

body:has(#contactOverlay.active) .nav-left {
    padding: 0;
    justify-content: flex-start;
}

body:has(#contactOverlay.active) .nav-logo {
    height: 100vh;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

body:has(#contactOverlay.active) .logo-text-vertical {
    transform: none;
    height: 100%;
    justify-content: space-around;
    gap: 0;
    padding: 0;
}

body:has(#contactOverlay.active) .logo-line {
    font-size: 12vw;
}

body:has(#contactOverlay.active) .logo-subtitle {
    display: none;
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.container-fluid {
    padding: 0 60px;
}

@media (max-width: 768px) {
    .container,
    .container-fluid {
        padding: 0 20px;
    }
}

/* ===========================
   Navigation
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 60px;
    z-index: 10000;
    background-color: rgba(10, 10, 10, 0);
    transition: background-color 0.3s ease, 
                padding 0.3s ease,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav > * {
    pointer-events: all;
}

.nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 60px;
}

.nav-left {
    position: fixed;
    left: 30px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 30px;
    padding-bottom: 0;
    gap: 10px;
    z-index: 10001;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.3s ease;
    pointer-events: all;
    transform-origin: center center;
    flex-shrink: 0;
    flex-grow: 0;
    overflow: visible;
    position: relative;
}

.nav-logo:hover {
    transform: scale(1.02);
}

/* Vertical Text Logo */
.logo-text-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.logo-line {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeInLogo 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    transition: font-size 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-line:nth-child(1) {
    animation-delay: 0.2s;
}

.logo-line:nth-child(2) {
    animation-delay: 0.35s;
}

@keyframes fadeInLogo {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-logo:hover .logo-line {
    color: var(--color-accent);
}

/* Logo Subtitle - Creative Studio */
.logo-subtitle {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeInLogo 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: 0.5s;
    transition: color 0.3s ease;
    margin-top: 0;
    position: absolute;
    right: -26px;
    top: 14px;
    transform-origin: top;
}

.nav-logo:hover .logo-subtitle {
    color: rgba(99, 102, 241, 0.8);
}

/* Spacer to push contact button to bottom */
.nav-spacer {
    flex-grow: 1;
    min-height: 5px;
}

/* Responsive Logo Sizes */
/* 4K and Ultra-wide */
@media (min-width: 2560px) {
    .logo-line {
        font-size: 36px;
        letter-spacing: 3px;
    }
    
    .logo-text-vertical {
        gap: 40px;
    }
    
    .logo-subtitle {
        font-size: 22px;
        letter-spacing: 5.5px;
        right: -30px;
        top: 14px;
    }
    
    .nav-logo {
        gap: 14px;
    }
    
    .nav-spacer {
        min-height: 0px;
    }
}

/* QHD 2560x1440 */
@media (max-width: 2559px) and (min-width: 1920px) {
    .logo-line {
        font-size: 32px;
        letter-spacing: 2.5px;
    }
    
    .logo-text-vertical {
        gap: 35px;
    }
    
    .logo-subtitle {
        font-size: 21px;
        letter-spacing: 5px;
        right: -28px;
        top: 14px;
    }
    
    .nav-logo {
        gap: 12px;
    }
}

/* Full HD 1920x1080 */
@media (max-width: 1919px) and (min-width: 1440px) {
    .logo-line {
        font-size: 28px;
        letter-spacing: 2.5px;
    }
    
    .logo-text-vertical {
        gap: 30px;
    }
    
    .logo-subtitle {
        font-size: 20px;
        letter-spacing: 4.5px;
        right: -26px;
        top: 14px;
    }
    
    .nav-logo {
        gap: 10px;
    }
}

/* Laptop 1440-1600px */
@media (max-width: 1439px) and (min-width: 1200px) {
    .logo-line {
        font-size: 26px;
        letter-spacing: 2px;
    }
    
    .logo-text-vertical {
        gap: 28px;
    }
    
    .logo-subtitle {
        font-size: 19px;
        letter-spacing: 4px;
        right: -25px;
        top: 14px;
    }
    
    .nav-logo {
        gap: 10px;
    }
}

/* Small Laptop / Tablet Landscape 1200px */
@media (max-width: 1199px) and (min-width: 968px) {
    .logo-line {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .logo-text-vertical {
        gap: 25px;
    }
    
    .logo-subtitle {
        font-size: 18px;
        letter-spacing: 3.5px;
        right: -24px;
        top: 14px;
    }
    
    .nav-logo {
        gap: 8px;
    }
}

/* Tablet Portrait 968px */
@media (max-width: 967px) and (min-width: 769px) {
    .logo-line {
        font-size: 22px;
        letter-spacing: 1.5px;
    }
    
    .logo-text-vertical {
        gap: 22px;
    }
    
    .logo-subtitle {
        font-size: 17px;
        letter-spacing: 3px;
        right: -23px;
        top: 14px;
    }
    
    .nav-logo {
        gap: 8px;
    }
}

/* Mobile - already defined in main mobile media query at line 651 */

/* Navigation Contact Button */
.nav-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #0a0a0a;
    background-color: #f5b946;
    padding: 30px 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.5s ease,
                transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    flex-shrink: 0;
}

.nav-contact-btn span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-contact-btn svg {
    width: 20px;
    height: 20px;
    stroke: #0a0a0a;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.nav-contact-btn:hover {
    background-color: #f7c766;
    transform: translateX(-2px);
}

.nav-contact-btn:hover svg {
    transform: rotate(-90deg) translateX(-5px);
}

/* Side Navigation Buttons (Work & Studio) */
.nav-side-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-decoration: none;
    color: #0a0a0a;
    background-color: #f5b946;
    padding: 25px 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    pointer-events: all;
    cursor: pointer;
}

.nav-side-btn span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-side-btn svg {
    display: none;
}

.nav-work-btn {
    margin-top: 0;
}

.nav-studio-btn {
    margin-bottom: 0;
}

.nav-side-btn:hover {
    background-color: #f7c766;
    transform: translateX(-5px);
}

/* Hide side buttons when contact overlay is active */
body:has(#contactOverlay.active) .nav-side-btn {
    opacity: 0;
    pointer-events: none;
}

/* Hide side buttons and logo when work or studio overlay is active */
body:has(#workOverlay.active) .nav-side-btn,
body:has(#studioOverlay.active) .nav-side-btn {
    opacity: 0;
    pointer-events: none;
}

body:has(#workOverlay.active) .nav-logo,
body:has(#studioOverlay.active) .nav-logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body:has(#workOverlay.active) .nav-contact-btn,
body:has(#studioOverlay.active) .nav-contact-btn {
    opacity: 0;
    pointer-events: none;
}

.nav-menu {
    position: fixed;
    right: 50px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 9999;
    pointer-events: none;
    margin-top: 0;
}

/* Advanced Nav Link Styles */
.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-fast);
}

/* Navigation Link with Circle Indicator */
.n-l {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(-10px);
    animation: slideInNav 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.n-l:nth-child(1) { animation-delay: 0.5s; }
.n-l:nth-child(2) { animation-delay: 0.6s; }
.n-l:nth-child(3) { animation-delay: 0.7s; }
.n-l:nth-child(4) { animation-delay: 0.8s; }
.n-l:nth-child(5) { animation-delay: 0.9s; }

@keyframes slideInNav {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Circle Container */
.n-c_ {
    width: 42px;
    height: 42px;
    opacity: 0;
    transform: translate3d(-15px, 0px, 0px);
    transition: opacity 0.4s cubic-bezier(0.65, 0, 0.35, 1),
                transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Circle Inner */
.n-c {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.n-c svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Circle Stroke */
.n-c-s {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 113.0973;
    stroke-dashoffset: 113.0973;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.4s ease,
                stroke 0.3s ease;
    opacity: 0;
    will-change: stroke-dashoffset;
}

/* Text Container */
.y_ {
    overflow: hidden;
    position: relative;
}

.y {
    display: block;
    transform: translate3d(0%, 0%, 0px);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
    position: relative;
}

/* Hover States */
.n-l:hover .n-c_ {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px);
}

.n-l:hover .n-c {
    transform: rotate(0deg);
    opacity: 1;
}

.n-l:hover .n-c-s {
    stroke-dashoffset: 0;
    opacity: 1;
}

.n-l:hover .y {
    transform: translate3d(3px, 0%, 0px);
}

.n-l:hover {
    color: var(--color-accent);
}

/* Focus States for Accessibility */
.n-l:focus {
    outline: none;
}

.n-l:focus-visible .n-c_ {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px);
}

.n-l:focus-visible .n-c {
    transform: rotate(0deg);
    opacity: 1;
}

.n-l:focus-visible .n-c-s {
    stroke-dashoffset: 0;
    opacity: 1;
}

/* Active State */
.n-l.active .n-c_ {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px);
}

.n-l.active .n-c {
    transform: rotate(0deg);
    opacity: 1;
}

.n-l.active .n-c-s {
    stroke-dashoffset: 0;
    opacity: 1;
}

.n-l.active {
    color: var(--color-accent);
}

.n-l.active .y {
    transform: translate3d(3px, 0%, 0px);
}

.n-l.active .n-c-s {
    stroke: var(--color-accent-hover);
}

/* Work Overlay Navigation Theme */
body.work-overlay-active .nav-link,
body.work-overlay-active .logo-line {
    color: #333;
}

body.work-overlay-active .n-c-s {
    stroke: #333;
}

body.work-overlay-active .n-l:hover .n-c-s,
body.work-overlay-active .n-l.active .n-c-s {
    stroke: #555;
}

/* Remove old nav-link styles */
.nav-link::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .nav {
        padding: 20px;
    }

    .nav.scrolled {
        padding: 15px 20px;
    }
    
    .logo-text-vertical {
        gap: 20px;
    }
    
    .logo-line {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .logo-subtitle {
        font-size: 16px;
        letter-spacing: 3px;
        right: -21px;
        top: 14px;
    }
    
    .nav-logo {
        gap: 8px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding-left: 60px;
        gap: 30px;
        transition: right 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    }

    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile navigation links styling */
    .nav-menu .n-l {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        animation: none;
    }
    
    /* Show circle indicators on mobile */
    .nav-menu .n-l .n-c_ {
        opacity: 1;
        transform: translate3d(0px, 0px, 0px);
    }
    
    .nav-menu .n-l .n-c {
        opacity: 1;
        transform: rotate(0deg);
    }
    
    .nav-menu .n-l .n-c-s {
        opacity: 0.3;
        stroke-dashoffset: 0;
    }
    
    .nav-menu .n-l:hover .n-c-s,
    .nav-menu .n-l.active .n-c-s {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    padding-right: 100px;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 25%,
        transparent 50%
    );
    animation: gradientPulse 15s ease-in-out infinite;
    z-index: 2;
    transition: transform 0.3s ease-out;
    will-change: transform;
    display: none;
}

@keyframes gradientPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Anubis Image with Scroll Zoom */
.anubis-container {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50000;
    width: 800px;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.anubis-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    will-change: transform;
    filter: drop-shadow(0 0 50px rgba(99, 102, 241, 0.8));
    opacity: 0.85;
    pointer-events: auto;
    display: block;
    transform-origin: 50% 20%;
}

@media (max-width: 768px) {
    .anubis-container {
        width: 400px;
        height: 400px;
        left: 50%;
    }
}

.hero-content {
    position: fixed;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    z-index: 10000;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(50px, 10vw, 120px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    position: relative;
    z-index: 10001;
    color: #ffffff;
    clip-path: circle(2000px at -500px 250px);
}

.hero-title-outline {
    font-size: clamp(50px, 10vw, 120px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10003;
    color: #ffffff;
    -webkit-text-stroke: 3px #ffffff;
    text-stroke: 3px #ffffff;
    paint-order: stroke fill;
    clip-path: circle(500px at -500px 250px);
    pointer-events: none;
}

.hero-title-outline .line {
    display: block;
    overflow: hidden;
    padding: 10px 0;
}

.hero-title-outline .word {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding: 10px 0;
}

.hero-title .word {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
}

.hero-title .line:nth-child(1) .word {
    animation-delay: 0.2s;
}

.hero-title .line:nth-child(2) .word {
    animation-delay: 0.4s;
}

.hero-title .line:nth-child(3) .word {
    animation-delay: 0.6s;
}

@keyframes slideUpWord {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    opacity: 1;
    margin-bottom: 40px;
    position: relative;
    z-index: 10001;
}

/* Hero Contact Button */
.hero-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 18px 50px;
    background: linear-gradient(135deg, #f6c74d 0%, #ffb347 100%);
    color: #000;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
    position: fixed;
    bottom: 60px;
    right: 60px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(246, 199, 77, 0.3);
    z-index: 100;
}

.hero-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb347 0%, #f6c74d 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(246, 199, 77, 0.4);
}

.hero-contact-btn:hover::before {
    opacity: 1;
}

.hero-contact-btn span,
.hero-contact-btn svg {
    position: relative;
    z-index: 1;
}

.hero-contact-btn .btn-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-contact-btn:hover .btn-arrow {
    transform: translateX(5px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Button Responsive */
@media (max-width: 768px) {
    .hero-contact-btn {
        padding: 14px 35px;
        font-size: 14px;
        gap: 15px;
        bottom: 30px;
        right: 30px;
    }
    
    .hero-contact-btn .btn-arrow {
        width: 20px;
        height: 20px;
    }
}

/* ===========================
   Sections
   =========================== */
section {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 700;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

/* ===========================
   Services Section
   =========================== */
.services {
    background-color: var(--color-bg);
}

.service-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 60px;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1),
                transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-number {
    font-size: 60px;
    font-weight: 700;
    color: var(--color-text-secondary);
    opacity: 0.3;
}

.service-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.service-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    max-width: 800px;
}

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    .service-number {
        font-size: 40px;
    }
}

/* ===========================
   About Section
   =========================== */
.about {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.about-subtitle {
    font-size: 24px;
    color: var(--color-accent);
    margin-bottom: 30px;
    font-weight: 600;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.about-cta {
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary .btn-text {
    position: relative;
    z-index: 2;
}

.btn-primary .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-hover), #7c3aed);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}

.btn-primary:hover .btn-bg {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 60px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* ===========================
   Work Section
   =========================== */
.work {
    background-color: var(--color-bg);
    display: none;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.work-item.visible {
    opacity: 1;
    transform: scale(1);
}

.work-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover .work-image {
    transform: scale(1.1);
}

.work-overlay h4 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.work-overlay p {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Contact Section
   =========================== */
/* Contact Overlay */
#contactOverlay {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: fixed;
    top: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 9999;
    transform: translate3d(0, 100%, 0) !important;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1) !important;
}

#contactOverlay.active {
    transform: translate3d(0, 0, 0) !important;
    overflow-y: auto;
}

#contactOverlay .pa-close {
    position: absolute;
    top: 20px;
    right: 30px;
}

/* Studio and Work overlay close buttons inherit base .pa-close styles (position: fixed)
   and override z-index to ensure they stay above scrolling content */
#studioOverlay .pa-close,
#workOverlay .pa-close {
    z-index: 10002;
}

#contactOverlay .contact-container {
    padding: 0;
    height: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Parallax Background */
.pa-bg {
    display: block;
}

.pa-bg-2 {
    display: none;
}

.contact .container {
    position: relative;
    z-index: 2;
}

#contactOverlay .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 120px;
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Contact Info Section */
.contact-header {
    margin-bottom: 80px;
}

.contact-title {
    font-size: 72px;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -2px;
    margin: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 2px solid #f5b946;
    padding-left: 20px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f5b946;
}

.contact-detail p {
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

.contact-detail a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: #f5b946;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #f5b946;
}

.social-separator {
    color: #333;
    font-size: 13px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 25px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 18px;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 25px;
    color: #666;
    font-size: 18px;
    pointer-events: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 600;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f5b946;
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: transparent;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -5px;
    font-size: 10px;
    color: #f5b946;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Autocomplete/Autofill Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
}

textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-submit {
    padding: 20px 50px;
    background-color: #f5b946;
    color: #0a0a0a;
    border: none;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: #f7c766;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
}

/* ===========================
   Studio Page Overlay
   =========================== */
.pa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    z-index: 9000;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translate3d(0px, 100%, 0px);
    pointer-events: none;
}

/* Work Overlay - Enhanced with smooth background transitions */
#workOverlay {
    overflow: hidden;
    position: relative;
}

/* Removed pseudo-elements that might cause color distortion */

/* Animated Background Elements - Hidden to match Studio overlay */
/* #workOverlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 25%);
    animation: backgroundPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

#workOverlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: backgroundPulse2 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    animation-delay: 4s;
} */

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes backgroundPulse2 {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Floating Background Shapes - Enhanced and Enabled */
.work-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
    mix-blend-mode: multiply;
}

.pa.active .work-bg-shapes {
    opacity: 1;
}

.work-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 100, 100, 0.4) 0%, rgba(80, 80, 80, 0.25) 100%);
    filter: blur(80px);
    animation: floatShape 20s ease-in-out infinite, shapeGlow 8s ease-in-out infinite;
    will-change: transform, opacity;
}

.work-shape-1 {
    width: 600px;
    height: 600px;
    top: 10%;
    left: 5%;
    animation-delay: 0s, 0s;
    animation-duration: 18s, 8s;
}

.work-shape-2 {
    width: 550px;
    height: 550px;
    top: 60%;
    right: 10%;
    animation-delay: -5s, -2s;
    animation-duration: 20s, 10s;
}

.work-shape-3 {
    width: 500px;
    height: 500px;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s, -4s;
    animation-duration: 22s, 9s;
}

.work-shape-4 {
    width: 650px;
    height: 650px;
    top: 30%;
    right: 5%;
    animation-delay: -15s, -6s;
    animation-duration: 24s, 11s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(60px, -30px) scale(1.1) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(80px, -60px) scale(1.2) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translate(40px, -40px) scale(1.1) rotate(270deg);
        opacity: 0.5;
    }
}

@keyframes shapeGlow {
    0%, 100% {
        filter: blur(100px) brightness(1);
    }
    50% {
        filter: blur(120px) brightness(1.3);
    }
}

/* Floating Particles - Enhanced and More Visible */
.work-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease 0.8s;
}

.pa.active .work-particles {
    opacity: 1;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(40, 40, 40, 1) 0%, rgba(70, 70, 70, 0.6) 100%);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4),
                0 0 50px rgba(50, 50, 50, 0.3);
    animation: particleFloat 12s ease-in-out infinite, particleGlow 3s ease-in-out infinite;
    will-change: transform, opacity;
}

.particle:nth-child(1) {
    left: 10%;
    top: 90%;
    animation-delay: 0s, 0s;
    animation-duration: 18s, 3s;
}

.particle:nth-child(2) {
    left: 25%;
    top: 95%;
    animation-delay: -3s, -0.5s;
    animation-duration: 20s, 3.5s;
}

.particle:nth-child(3) {
    left: 40%;
    top: 90%;
    animation-delay: -6s, -1s;
    animation-duration: 22s, 4s;
}

.particle:nth-child(4) {
    left: 60%;
    top: 92%;
    animation-delay: -2s, -1.5s;
    animation-duration: 19s, 3.2s;
}

.particle:nth-child(5) {
    left: 75%;
    top: 95%;
    animation-delay: -5s, -2s;
    animation-duration: 21s, 3.8s;
}

.particle:nth-child(6) {
    left: 15%;
    top: 88%;
    animation-delay: -8s, -0.8s;
    animation-duration: 17s, 3.3s;
}

.particle:nth-child(7) {
    left: 85%;
    top: 90%;
    animation-delay: -4s, -1.2s;
    animation-duration: 23s, 3.6s;
}

.particle:nth-child(8) {
    left: 50%;
    top: 93%;
    animation-delay: -10s, -1.8s;
    animation-duration: 18s, 4.2s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translateY(-20vh) translateX(30px) scale(1.2) rotate(180deg);
    }
    40% {
        transform: translateY(-40vh) translateX(-20px) scale(0.8) rotate(360deg);
    }
    60% {
        transform: translateY(-60vh) translateX(40px) scale(1.3) rotate(540deg);
    }
    80% {
        transform: translateY(-80vh) translateX(-10px) scale(0.9) rotate(720deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(20px) scale(0.5) rotate(900deg);
        opacity: 0;
    }
}

@keyframes particleGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.4),
                    0 0 40px rgba(50, 50, 50, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.6),
                    0 0 80px rgba(50, 50, 50, 0.4),
                    0 0 120px rgba(80, 80, 80, 0.3);
    }
}

/* Dynamic Transition Elements */
.work-transition-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
    overflow: hidden;
}

.transition-element {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: transitionBurst 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.transition-circle {
    background: radial-gradient(circle, rgba(60, 60, 60, 0.6) 0%, rgba(80, 80, 80, 0.3) 50%, transparent 100%);
    box-shadow: 0 0 40px rgba(50, 50, 50, 0.5);
}

.transition-ring {
    border: 2px solid rgba(70, 70, 70, 0.5);
    background: transparent;
}

.transition-dot {
    background: rgba(40, 40, 40, 0.8);
    box-shadow: 0 0 20px rgba(50, 50, 50, 0.6);
}

@keyframes transitionBurst {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3) rotate(180deg);
        opacity: 0;
    }
}

@keyframes transitionExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes transitionFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Sliding Rectangles */
.transition-rect {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                inset 0 0 40px rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

@keyframes slideLeftToRight {
    0% {
        transform: translateX(0) rotate(-4deg) scale(0.9);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
        transform: translateX(10vw) rotate(-2deg) scale(1);
    }
    85% {
        opacity: 0.85;
        transform: translateX(90vw) rotate(2deg) scale(1);
    }
    100% {
        transform: translateX(110vw) rotate(4deg) scale(0.9);
        opacity: 0;
    }
}

@keyframes slideRightToLeft {
    0% {
        transform: translateX(0) rotate(4deg) scale(0.9);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
        transform: translateX(-10vw) rotate(2deg) scale(1);
    }
    85% {
        opacity: 0.85;
        transform: translateX(-90vw) rotate(-2deg) scale(1);
    }
    100% {
        transform: translateX(-110vw) rotate(-4deg) scale(0.9);
        opacity: 0;
    }
}

@keyframes slideTopToBottom {
    0% {
        transform: translateY(0) rotate(-3deg) scale(0.9);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
        transform: translateY(10vh) rotate(-2deg) scale(1);
    }
    85% {
        opacity: 0.85;
        transform: translateY(90vh) rotate(2deg) scale(1);
    }
    100% {
        transform: translateY(110vh) rotate(3deg) scale(0.9);
        opacity: 0;
    }
}

.pa.active {
    transform: translate3d(0px, 0px, 0px);
    pointer-events: all;
}

.pa .pa-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

/* Work Overlay - Clock-like rotating color animation */
#workOverlay .pa-bg {
    background: #3A5458;
    transition: background-color 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes colorClock {
    0% {
        background: #3A5458;
    }
    14.28% {
        background: #1F1F1F;
    }
    28.57% {
        background: #C9ADA7;
    }
    42.85% {
        background: #FDFDF9;
    }
    57.13% {
        background: #3A5458;
    }
    71.41% {
        background: #1F1F1F;
    }
    85.69% {
        background: #C9ADA7;
    }
    100% {
        background: #3A5458;
    }
}

@keyframes clockRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Work Overlay Background with Color Transition - Hidden to match Studio overlay */
/* #workOverlay .pa-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ccc5a8;
    transition: background-color 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: background-color;
    z-index: 0;
} */

.pa-close {
    position: fixed;
    top: 30px;
    right: 50px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.pa.active .pa-close {
    opacity: 1;
    pointer-events: all;
}

.pa-close:hover {
    /* No hover animation */
}

.pa-close svg {
    width: 30px;
    height: 30px;
}

.pa-close svg line {
    /* No transition */
}

/* Work Counter - Enhanced animation */
.work-counter {
    position: fixed;
    top: 60px;
    left: 60px;
    display: flex;
    align-items: baseline;
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    z-index: 1000;
    opacity: 1;
}

#workOverlay.active .work-counter {
    /* No animation */
}

.work-counter-current {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    transition: color 0.6s ease, transform 0.3s ease;
    display: inline-block;
}

.work-counter-separator {
    font-size: 18px;
    opacity: 0.6;
    margin: 0 8px;
    transition: opacity 0.3s ease;
}

.work-counter-total {
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.pa-m {
    padding: 0 100px;
    position: relative;
    z-index: 2;
}

.pa-tm {
    padding-top: 120px;
}

.pa-se {
    padding-bottom: 120px;
}

.pa-lr {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 150px;
    max-width: 1600px;
    margin: 0 auto;
}

.pa-lr h2 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f5b946;
    margin: 0;
}

.pa-li {
    width: 100%;
    height: 1px;
    background: rgba(245, 185, 70, 0.1);
    margin: 100px 0;
    overflow: hidden;
}

.pa-li div {
    width: 100%;
    height: 100%;
    background: #f5b946;
    transform: translate3d(-102%, 0%, 0px);
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.pa.active .pa-li div {
    transform: translate3d(0%, 0%, 0px);
}

.pa-ye {
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
    color: rgba(245, 185, 70, 0.05);
    margin-bottom: 40px;
    letter-spacing: -4px;
}

.pa-ts {
    font-size: 18px;
    line-height: 1.8;
    color: #a0a0a0;
}

.pa-txs {
    font-size: 16px;
    line-height: 1.8;
    color: #a0a0a0;
}

/* Text Reveal Animation Classes */
.y_ {
    overflow: hidden;
    display: block;
}

.y {
    display: block;
    transform: translate3d(0%, 102%, 0px);
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.pa.active .y {
    transform: translate3d(0%, 0%, 0px);
}

.z-y {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pa.active .z-y {
    opacity: 1;
    transform: translateY(0);
}

.z-o {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.pa.active .z-o {
    opacity: 1;
}

.z-s {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ab-cs_ {
    list-style: none;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

.ab-cs {
    border-top: 1px solid rgba(245, 185, 70, 0.15);
    padding: 60px 100px;
    transition: all 0.3s ease;
}

.ab-cs:last-child {
    border-bottom: 1px solid rgba(245, 185, 70, 0.15);
}

.ab-cs:hover {
    background: rgba(245, 185, 70, 0.02);
    padding-left: 120px;
}

.ab-cs-la {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ab-cs-la h3 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 0;
    color: #ffffff;
}

.ab-cs-p {
    max-width: 900px;
    font-size: 17px;
    line-height: 1.9;
    color: #a0a0a0;
}

.mo {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cu-z-s {
    cursor: pointer;
}

/* Contact Links in Overlay */
.pa-contact-link {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(245, 185, 70, 0.15);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.pa-contact-link:hover {
    padding-left: 20px;
    border-bottom-color: #f5b946;
}

.pa-contact-link .y_:first-child {
    color: #f5b946;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pa-contact-link .y_:last-child {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.5px;
}

#ab-co-em {
    margin-top: 60px;
}

/* Location Section */
.ab-lo {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.pa.active .ab-lo {
    opacity: 1;
    transform: translateY(0);
}

.ab-lo-xl {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.1;
}

.ab-lo-gr {
    color: #a0a0a0;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.ab-lo-ri {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
}

.ab-lo-ri-ti {
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Footer in Overlay */
#ab-fo {
    display: grid;
    grid-template-columns: 200px 200px 1fr;
    gap: 60px;
    padding: 80px 100px 60px;
    max-width: 1600px;
    margin: 0 auto;
    border-top: 1px solid rgba(245, 185, 70, 0.15);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.pa.active #ab-fo {
    opacity: 1;
    transform: translateY(0);
}

#ab-fo-0 {
    font-size: 14px;
    color: #a0a0a0;
}

.ab-fo-gr {
    color: #f5b946;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
}

#ab-fo-2 {
    line-height: 1.8;
    font-size: 15px;
    color: #a0a0a0;
}

/* Responsive Styles for Overlay */
@media (max-width: 968px) {
    .pa-lr {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pa-m {
        padding: 0 40px;
    }
    
    .pa-tm {
        padding-top: 80px;
    }
    
    .pa-se {
        padding-bottom: 80px;
    }
    
    .pa-ye {
        font-size: 100px;
    }
    
    .work-counter {
        top: 40px;
        left: 40px;
    }
    
    .work-counter-current {
        font-size: 36px;
    }
    
    .work-counter-separator,
    .work-counter-total {
        font-size: 16px;
    }
    
    .ab-cs {
        padding: 40px 40px;
    }
    
    .ab-cs:hover {
        padding-left: 50px;
    }
    
    .ab-cs-la h3 {
        font-size: 24px;
    }
    
    .pa-close {
        right: 30px;
    }
    
    #ab-fo {
        grid-template-columns: 1fr;
        padding: 80px 40px 40px;
        gap: 30px;
    }
    
    .pa-contact-link {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ab-lo-xl {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .pa-ye {
        font-size: 60px;
    }
    
    .pa-ts {
        font-size: 18px;
    }
    
    .pa-contact-link .y_:last-child {
        font-size: 18px;
    }
    
    .work-counter {
        top: 30px;
        left: 30px;
    }
    
    .work-counter-current {
        font-size: 32px;
    }
    
    .work-counter-separator,
    .work-counter-total {
        font-size: 14px;
    }
}

/* ===========================
   Work Page Overlay
   =========================== */
/* Work Carousel Section */
.work-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease 0.2s;
}

#workOverlay.active .work-carousel-section {
    opacity: 1;
}

/* Decorative SVG - Subtle parallax effect */
.work-deco-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.pa.active .work-deco-svg {
    opacity: 0.3;
}

.work-arc {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawArc 2s ease-out forwards;
    animation-delay: 0.8s;
}

.work-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 1.5s ease-out forwards;
    animation-delay: 1.1s;
}

.work-ticks line {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

@keyframes drawArc {
    to { stroke-dashoffset: 0; }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideEnter {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes imageReveal {
    0% {
        transform: scale(1.15);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3),
                     0 4px 40px rgba(0, 0, 0, 0.2);
    }
    50% {
        text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
                     0 8px 60px rgba(0, 0, 0, 0.3),
                     0 0 80px rgba(255, 255, 255, 0.1);
    }
}

.work-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    perspective: 2000px;
    z-index: 10;
}

.work-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.work-slide {
    position: absolute;
    width: 75vw;
    max-width: 1000px;
    height: 70vh;
    max-height: 700px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* Center slide - main focus with entrance animation */
.work-slide[data-position="center"] {
    transform: scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.work-slide[data-position="center"] .work-slide-image {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

/* Hide left and right slides completely */
.work-slide[data-position="left"],
.work-slide[data-position="right"] {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.work-slide-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.work-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-slide[data-position="center"]:hover .work-slide-img {
    /* No hover scale animation */
}

.work-slide-bg {
    width: 100%;
    height: 100%;
}

.work-slide[data-position="center"]:hover .work-slide-bg {
    /* No hover scale animation */
}

/* Project title overlay on center image */
.work-slide[data-position="center"] .work-slide-image::after {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3),
                 0 4px 40px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

/* Project Info - Left Side */
.work-project-info-left {
    position: fixed;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    text-align: left;
    opacity: 1;
}

#workOverlay.active .work-project-info-left {
    /* No animation */
}

.work-project-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #333;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

.work-project-subtitle {
    font-size: 20px;
    color: rgba(51, 51, 51, 0.6);
    font-weight: 400;
    transition: color 0.6s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Project Info - Right Side */
.work-project-info-right {
    position: fixed;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    text-align: right;
    opacity: 1;
}

#workOverlay.active .work-project-info-right {
    /* No animation */
}

.work-project-type-label {
    font-size: 20px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 400;
}

.work-project-year {
    font-size: 20px;
    color: rgba(51, 51, 51, 0.6);
    font-weight: 400;
}

/* Bottom HUD - Enhanced with entrance animation */
.work-hud {
    position: fixed;
    bottom: 40px;
    left: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.5px;
    z-index: 20;
    opacity: 1;
}

#workOverlay.active .work-hud {
    /* No animation */
}

.work-hud-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.work-date-label,
.work-date-copy,
.work-date,
.work-day {
    color: #333;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.6s ease;
}

.work-date-copy {
    font-size: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .work-slide {
        width: 40vw;
        max-width: 450px;
        height: 45vh;
        max-height: 320px;
    }
    
    .work-slide[data-position="left"] {
        transform: translateX(-35vw) scale(0.5) translateZ(-300px);
    }
    
    .work-slide[data-position="right"] {
        transform: translateX(35vw) scale(0.5) translateZ(-300px);
    }
    
    .work-project-title {
        font-size: 36px;
    }
    
    .work-project-info-left {
        left: 40px;
    }
    
    .work-project-info-right {
        right: 40px;
    }
}

@media (max-width: 968px) {
    .work-slide {
        width: 70vw;
        max-width: 350px;
        height: 40vh;
        max-height: 280px;
    }
    
    .work-slide[data-position="left"],
    .work-slide[data-position="right"] {
        transform: translateX(0) scale(0.3) translateZ(-400px);
        opacity: 0;
    }
    
    .work-project-title {
        font-size: 24px;
    }
    
    .work-project-subtitle {
        font-size: 14px;
    }
    
    .work-project-type-label,
    .work-project-year {
        font-size: 14px;
    }
    
    .work-project-info-left {
        left: 20px;
    }
    
    .work-project-info-right {
        right: 20px;
    }
    
    .work-hud {
        left: 20px;
        bottom: 20px;
        font-size: 9px;
    }
    
    .work-date-copy {
        font-size: 8px;
    }
}

@media (max-width: 768px) {
    .work-title {
        font-size: 48px;
    }
}

.btn-submit .btn-text {
    position: relative;
    z-index: 2;
}

.btn-submit .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-hover), #7c3aed);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}

.btn-submit:hover .btn-bg {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    #contactOverlay .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-title {
        font-size: 56px;
    }
    
    .contact-details {
        gap: 30px;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    #contactOverlay .contact-container {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 48px;
        margin-bottom: 40px;
    }
    
    .contact-header {
        margin-bottom: 50px;
    }
    
    .contact-details {
        margin-bottom: 40px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 20px 0;
    }
    
    .form-group label {
        font-size: 10px;
    }
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--color-bg);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.footer-logo:hover {
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-copy {
    color: var(--color-text-secondary);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

/* ===========================
   Animations
   =========================== */

/* Reveal Text Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1s 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .grain-overlay {
        animation: none;
    }
}
