/* ========================================
   FOOTER MINIMAL - Tüm Sayfalar İçin Tutarlı
   ======================================== */
.footer-minimal {
    max-width: 1200px !important;
    margin: 100px auto 0 !important;
    padding: 40px 2rem 60px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.index-page .footer-minimal,
.index-page .footer-minimal,
html body .footer-minimal {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.footer-minimal-content {
    display: flex !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
    margin-bottom: 30px !important;
    flex-direction: row !important;
}

.footer-minimal .footer-link {
    font-family: 'ABCMonumentGroteskMono', monospace !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.footer-minimal .footer-link:hover {
    opacity: 0.5 !important;
    text-decoration: underline !important;
}

.footer-minimal-copyright {
    font-family: 'ABCMonumentGroteskMono', monospace !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: left !important;
    line-height: 1.5 !important;
}

@media (max-width: 1024px) {
    .footer-minimal {
        padding: 0 30px 50px !important;
        padding-top: 35px !important;
        margin-top: 80px !important;
    }
    
    .footer-minimal-content {
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .footer-minimal {
        padding: 0 20px 40px !important;
        padding-top: 30px !important;
        margin-top: 60px !important;
    }
    
    .footer-minimal-content {
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .footer-minimal {
        padding: 0 15px 30px !important;
        padding-top: 25px !important;
        margin-top: 50px !important;
    }

    .footer-minimal-content {
        gap: 25px !important;
        flex-direction: column !important;
    }
}

/* CSS Variables */
:root {
    /* Colors */
    --primary-blue: #000000;
    --primary-black: #000000;
    --primary-white: #ffffff;
    --black: #000000;
    --white: #ffffff;
    --text-dark: rgb(62, 57, 57);
    --text-light: rgba(62, 57, 57, 0.7);
    --text-lighter: rgba(62, 57, 57, 0.3);
    --white: #ffffff;
    --black: #000000;
    
    /* Easing Functions */
    --easing-smooth: cubic-bezier(0.04, 0.72, 0.165, 1);
    --easing-standard: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --easing-ease: ease;
    
    /* Transitions */
    --transition-fast: 0.3s;
    --transition-medium: 0.6s;
    --transition-slow: 0.8s;
    
    /* Spacing - 8px grid system */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 48px;
    --spacing-4xl: 64px;
    --spacing-5xl: 80px;
    
    /* Typography Scale - Fluid */
    --font-size-xs: clamp(10px, 0.8vw, 12px);
    --font-size-sm: clamp(12px, 1vw, 14px);
    --font-size-base: clamp(14px, 1.2vw, 16px);
    --font-size-md: clamp(16px, 1.4vw, 18px);
    --font-size-lg: clamp(18px, 1.6vw, 20px);
    --font-size-xl: clamp(20px, 2vw, 24px);
    --font-size-2xl: clamp(24px, 2.5vw, 32px);
    --font-size-3xl: clamp(32px, 3.5vw, 48px);
    --font-size-4xl: clamp(48px, 5vw, 64px);
    --font-size-5xl: clamp(64px, 7vw, 80px);
    
    /* Cursor */
    --cursor-size: 20px;
    --cursor-size-hover: 40px;
}

@font-face {
    font-family: 'UfficioDisplay';
    src: url('../assets/site/UfficioDisplay-400.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-10FFFF;
}

@font-face {
    font-family: 'UfficioDisplay';
    src: url('../assets/site/UfficioDisplay-400.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'UfficioDisplay', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body, p, h1, h2, h3, h4, h5, h6, span, div {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a, button, input, textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.menu-text {
    -webkit-user-select: none !important;
    user-select: none !important;
    pointer-events: auto !important;
}


body {
    font-family: 'ABCMonumentGroteskMono', monospace !important;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 1px solid #000000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--easing-smooth),
                height 0.3s var(--easing-smooth),
                border-color 0.3s var(--easing-smooth),
                background-color 0.3s var(--easing-smooth);
    mix-blend-mode: normal;
    will-change: transform;
    opacity: 1;
    display: block;
}

.custom-cursor.hover {
    width: var(--cursor-size-hover);
    height: var(--cursor-size-hover);
    background-color: rgba(0, 0, 0, 0.1);
    border-color: #000000;
}

.custom-cursor.link-hover {
    width: calc(var(--cursor-size) * 1.5);
    height: calc(var(--cursor-size) * 1.5);
    background-color: #000000;
    border-color: #000000;
    opacity: 0.3;
}

.custom-cursor.hidden {
    opacity: 0;
}

/* Hide default cursor on desktop - show custom cursor */
@media (min-width: 1025px) and (pointer: fine) {
    * {
        cursor: none !important;
    }
    
    a, button, input, textarea, [role="button"] {
        cursor: none !important;
    }
    
    .custom-cursor {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Show default cursor on mobile/touch devices */
@media (max-width: 1024px), (pointer: coarse) {
    body {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none !important;
    }
}

/* Desktop - show custom cursor */
@media (min-width: 1025px) and (pointer: fine) {
    .custom-cursor {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s var(--easing-smooth);
    pointer-events: none;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-greeting {
    font-family: 'ABCMonumentGroteskMono', monospace;
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 400;
    color: #000000;
    text-align: center;
    position: absolute;
    opacity: 0;
    animation: greetingFadeInOut 0.15s ease-in-out forwards;
    will-change: opacity, transform;
    text-transform: lowercase;
    letter-spacing: -0.01em;
}

.loading-greeting:nth-child(1) { animation-delay: 0s; }
.loading-greeting:nth-child(2) { animation-delay: 0.15s; }
.loading-greeting:nth-child(3) { animation-delay: 0.3s; }
.loading-greeting:nth-child(4) { animation-delay: 0.45s; }
.loading-greeting:nth-child(5) { animation-delay: 0.6s; }
.loading-greeting:nth-child(6) { animation-delay: 0.75s; }
.loading-greeting:nth-child(7) { animation-delay: 0.9s; }
.loading-greeting:nth-child(8) { animation-delay: 1.05s; }
.loading-greeting:nth-child(9) { animation-delay: 1.2s; }
.loading-greeting:nth-child(10) { animation-delay: 1.35s; }

@keyframes greetingFadeInOut {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-greeting {
        animation: none;
        opacity: 1;
    }
}

/* Page Transitions */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.5s;
    animation-timing-function: var(--easing-smooth);
}

.page-transition {
    animation: fadeIn 0.5s var(--easing-smooth);
}

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

/* Fallback for browsers without View Transitions API */
@supports not (view-transition-name: none) {
    body {
        animation: fadeIn 0.5s var(--easing-smooth);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .page-transition {
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
    }
    
    .custom-cursor {
        transition: none !important;
    }
}

/* Focus States & Accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
    border-radius: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    z-index: 10001;
    font-size: var(--font-size-base);
}

.skip-to-content:focus {
    top: 0;
}

/* Performance Optimizations */
.projects-grid {
    contain: layout style paint;
    transform: translateZ(0);
}

.grid-item {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
    contain: layout style paint;
    transform: translateZ(0);
}

.grid-image {
    will-change: transform;
    transform: translateZ(0);
}

.gallery-item {
    content-visibility: auto;
    contain-intrinsic-size: 400px;
    contain: layout style paint;
    transform: translateZ(0);
}

/* Color System - Semantic Tokens */
:root {
    /* Background Colors */
    --bg-primary: var(--white);
    --bg-secondary: rgba(62, 57, 57, 0.05);
    
    /* Text Colors */
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-light);
    --text-tertiary: var(--text-lighter);
    --text-inverse: var(--white);
    
    /* Border Colors */
    --border-primary: rgba(62, 57, 57, 0.1);
    --border-secondary: rgba(62, 57, 57, 0.2);
    --border-accent: var(--primary-blue);
    
    /* Interactive Colors */
    --interactive-primary: var(--primary-blue);
    --interactive-hover: rgba(55, 0, 252, 0.8);
    --interactive-active: rgba(55, 0, 252, 0.6);
    
    /* Opacity Variations */
    --opacity-disabled: 0.5;
    --opacity-hover: 0.7;
    --opacity-active: 0.9;
}

body.index-page {
    background-color: #ffffff;
    background-image: none;
    min-height: 100vh;
    width: 100%;
    height: 100%;
}

/* Show header on minimal index */
body.index-page .header {
    display: block !important;
    margin-bottom: 60px;
}

html {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    margin-top: 0;
    background-color: #ffffff;
    box-sizing: border-box;
    width: 100%;
}

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

body.index-page .container {
    background-color: #ffffff;
}

.scrolling-text-container {
    max-width: 100% !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Header Styles */
.header {
    padding: 10px;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #ffffff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1420px;
    margin: 0 auto;
    height: 55px;
}

body.index-page .header-content {
    justify-content: flex-end;
}

/* Diğer sayfalarda logo sola hizalı */
body:not(.index-page) .header-content {
    justify-content: space-between;
}

body:not(.index-page) .logo-link {
    margin-right: auto;
}

body:not(.index-page) .logo {
    text-align: left !important;
    margin-left: 0 !important;
}


@media (max-width: 768px) {
    .header {
        padding: 5px 10px !important;
        margin-bottom: 0;
    }
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease !important;
    display: block;
    cursor: pointer;
    text-align: left;
}

/* Diğer sayfalarda logo-link sola hizalı */
body:not(.index-page) .logo-link {
    text-align: left !important;
    margin-right: auto !important;
    order: -1;
}

.logo-link:hover,
.logo-link:hover .logo,
.header .logo-link:hover,
.header .logo-link:hover .logo {
    opacity: 0.6 !important;
}

.logo {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: clamp(18px, 2vw, 24px) !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    transition: opacity var(--transition-fast) var(--easing-ease) !important;
    pointer-events: auto !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

/* Logo diğer sayfalarda - index-title stili ama eski font (UfficioDisplay) */
body:not(.index-page) .logo,
.about-page .logo,
.contact-page .logo,
.playground-page .logo,
.case-study-page .logo {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: clamp(32px, 6vw, 64px) !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    text-transform: lowercase !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
}

.logo-link:hover .logo {
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 42px;
    align-items: center;
}

.nav-link {
    font-family: 'ABCMonumentGroteskMono', monospace !important;
    font-size: 11px;
    color: #000000;
    text-decoration: none;
    transition: opacity var(--transition-fast) var(--easing-ease);
    line-height: 1.3;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Desktop menü size büyütüldü */
@media (min-width: 769px) {
    .nav-link {
        font-size: 13px !important;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    right: 0;
    background-color: #000000;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow) var(--easing-smooth);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Override desktop font-size for mobile menu */
@media (max-width: 768px) {
    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 42px !important;
    }
}

@media (max-width: 480px) {
    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 36px !important;
    }
}

@media (max-width: 360px) {
    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 68px !important;
    }
}

@media (max-width: 320px) {
    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 36px !important;
    }
}

.nav-link:hover {
    opacity: 0.7;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    z-index: 1001;
    position: relative;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    box-sizing: border-box;
}

.menu-text {
    font-family: 'ABCMonumentGroteskMono', monospace !important;
    font-size: 11px;
    color: #000000 !important;
    font-weight: 400;
    line-height: 1;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hamburger-menu:hover .menu-text {
    color: #000000 !important;
    opacity: 0.7;
}

.hamburger-menu:active .menu-text,
.hamburger-menu.menu-active .menu-text {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

.hamburger-menu:focus {
    outline: none;
}

.hamburger-menu:focus-visible {
    outline: 2px solid rgba(55, 0, 252, 0.5);
    outline-offset: 2px;
}

.menu-icon {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    image-rendering: auto !important;
    -webkit-image-rendering: auto !important;
    max-width: 28px !important;
    max-height: 28px !important;
    content: '';
}

.hamburger-menu img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    image-rendering: auto !important;
    -webkit-image-rendering: auto !important;
    box-sizing: border-box !important;
    content: '';
}

/* Mobile Menu Styles */

.nav-link.active {
    opacity: 1;
    font-weight: 600;
}

/* 3D Model Section */
/* Services Animation Section */
.services-animation-section {
    padding: 0 20px;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 0;
    max-width: 1440px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 40px;
    box-sizing: border-box;
    min-height: 100px;
    position: relative;
}

.services-animation-container {
    position: relative;
    flex: 1;
    height: 100px;
}

/* 3D Model Section */
.model-section {
    padding: 0 20px;
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 0;
    max-width: 1440px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.model-container {
    width: 100px;
    height: 115px;
    min-height: 115px;
    position: relative;
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.model-container canvas {
    width: 100px !important;
    height: 115px !important;
    min-width: 100px !important;
    min-height: 115px !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

.service-item {
    font-family: 'UfficioDisplay', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: #000000;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInOut 20s ease-in-out infinite;
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 0;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    visibility: hidden;
    pointer-events: none;
}

.service-item:nth-child(1) {
    animation-delay: 0s;
}

.service-item:nth-child(2) {
    animation-delay: 4s;
}

.service-item:nth-child(3) {
    animation-delay: 8s;
}

.service-item:nth-child(4) {
    animation-delay: 12s;
}

.service-item:nth-child(5) {
    animation-delay: 16s;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-30px);
        visibility: hidden;
    }
    2% {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }
    18% {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }
    20% {
        opacity: 0;
        transform: translateX(-30px);
        visibility: hidden;
    }
    100% {
        opacity: 0;
        transform: translateX(-30px);
        visibility: hidden;
    }
}



/* Main Section - Desktop Grid (2 rows x 3 columns) */
.main-section {
    padding: 0 var(--spacing-md);
    max-width: 1440px;
    margin: 0 auto;
    margin-bottom: var(--spacing-4xl);
    margin-top: 0;
    box-sizing: border-box;
}

.projects-grid {
    columns: 3;
    column-count: 3;
    column-gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    contain: layout style;
    transform: translateZ(0);
}

.grid-item {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity var(--transition-fast) var(--easing-ease);
    position: relative;
    border: none;
    break-inside: avoid;
    -moz-column-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 30px;
    vertical-align: top;
    will-change: opacity;
}

.grid-item::before {
    content: '001';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: clamp(9px, 1vw, 11px);
    font-weight: 300;
    color: var(--text-lighter);
    z-index: 3;
    font-family: 'UfficioDisplay', monospace;
    letter-spacing: 1px;
    pointer-events: none;
    opacity: 0.5;
}

.grid-item:nth-child(1)::before { content: '001'; }
.grid-item:nth-child(2)::before { content: '002'; }
.grid-item:nth-child(3)::before { content: '003'; }
.grid-item:nth-child(4)::before { content: '004'; }
.grid-item:nth-child(5)::before { content: '005'; }
.grid-item:nth-child(6)::before { content: '006'; }

.grid-item:hover {
    opacity: 0.95;
}

.grid-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.grid-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.grid-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(55, 0, 252, 0);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
    will-change: background;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.grid-item:hover .grid-image-wrapper::after {
    background: rgba(55, 0, 252, 0.03);
}

.grid-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(55, 0, 252, 0.85), rgba(55, 0, 252, 0.75));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    z-index: 2;
    padding: 24px;
    text-align: center;
    pointer-events: none;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.grid-hover-overlay .grid-description {
    font-family: 'UfficioDisplay', sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
}

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

.grid-item:hover .grid-image {
    opacity: 0.98;
}


.grid-info {
    display: block;
    margin-top: 12px;
}

.grid-title {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
    transition: color var(--transition-medium) var(--easing-smooth);
}

.grid-item:hover .grid-title {
    color: var(--primary-blue);
}

.grid-category {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
    text-transform: capitalize;
    transition: opacity var(--transition-medium) var(--easing-smooth);
}

.grid-item:hover .grid-category {
    opacity: 0.7;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    body.index-page {
        background-color: #ffffff;
        background-image: none;
        min-height: 100vh;
        width: 100%;
        height: 100%;
    }
    .services-animation-section {
        padding: 0 15px;
        margin-top: -110px;
        margin-bottom: 20px;
        min-height: 350px;
        display: flex !important;
        justify-content: flex-end !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .services-animation-container {
        height: 90px;
        position: relative !important;
        width: 100% !important;
    }
    
    .model-section {
        margin-top: -150px !important;
    }
    
    .model-container {
        width: 500px !important;
        height: 565px !important;
        min-height: 565px !important;
    }
    
    .model-container canvas {
        width: 500px !important;
        height: 565px !important;
        min-width: 500px !important;
        min-height: 565px !important;
    }
    
    .service-item {
        font-size: 42px;
        opacity: 0;
        transform: translateX(-20px);
        animation: fadeInOut 20s ease-in-out infinite !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        will-change: opacity, transform !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .service-item:nth-child(1) {
        animation-delay: 0s !important;
    }
    
    .service-item:nth-child(2) {
        animation-delay: 4s !important;
    }
    
    .service-item:nth-child(3) {
        animation-delay: 8s !important;
    }
    
    .service-item:nth-child(4) {
        animation-delay: 12s !important;
    }
    
    .service-item:nth-child(5) {
        animation-delay: 16s !important;
    }

    .main-section {
        padding: 0 15px;
        margin-bottom: 60px;
        margin-top: 100px !important;
    }

    .projects-grid {
        column-count: 2;
        column-gap: 35px;
    }
    
    .grid-item {
        margin-bottom: 35px;
    }
    

    .grid-image {
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .grid-title {
        font-size: 24px;
    }

    .grid-category {
        font-size: 14px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    body.index-page {
        background-color: #ffffff;
        background-image: none;
        min-height: 100vh;
        width: 100%;
        height: 100%;
    }
    
    .services-animation-section {
        padding: 0 10px;
        margin-top: -90px;
        margin-bottom: 20px;
        min-height: 300px;
        display: flex !important;
        justify-content: flex-end !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .services-animation-container {
        height: 80px;
        position: relative !important;
        width: 100% !important;
    }
    
    .model-section {
        margin-top: -140px !important;
    }
    
    .model-container {
        width: 480px !important;
        height: 545px !important;
        min-height: 545px !important;
    }
    
    .model-container canvas {
        width: 480px !important;
        height: 545px !important;
        min-width: 480px !important;
        min-height: 545px !important;
    }
    
    .service-item {
        font-size: 36px;
        opacity: 0;
        transform: translateX(-20px);
        animation: fadeInOut 20s ease-in-out infinite !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        will-change: opacity, transform !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .service-item:nth-child(1) {
        animation-delay: 0s !important;
    }
    
    .service-item:nth-child(2) {
        animation-delay: 4s !important;
    }
    
    .service-item:nth-child(3) {
        animation-delay: 8s !important;
    }
    
    .service-item:nth-child(4) {
        animation-delay: 12s !important;
    }
    
    .service-item:nth-child(5) {
        animation-delay: 16s !important;
    }

    .main-section {
        padding: 0 var(--spacing-sm);
        margin-bottom: var(--spacing-2xl);
        margin-top: 0;
    }

    .projects-grid {
        column-count: 2;
        column-gap: 20px;
    }
    
    .grid-item {
        margin-bottom: 20px;
    }

    .grid-image {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .grid-title {
        font-size: 22px;
    }

    .grid-category {
        font-size: 13px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    body.index-page {
        background-color: #ffffff;
        background-image: none;
        min-height: 100vh;
        width: 100%;
        height: 100%;
    }
    
    .services-animation-section {
        padding: 0 10px;
        margin-top: -70px;
        margin-bottom: 20px;
        min-height: 280px;
        display: flex !important;
        justify-content: flex-end !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .services-animation-container {
        height: 70px;
        position: relative !important;
        width: 100% !important;
    }
    
    .model-section {
        margin-top: -130px !important;
    }
    
    .model-container {
        width: 460px !important;
        height: 525px !important;
        min-height: 525px !important;
    }
    
    .model-container canvas {
        width: 460px !important;
        height: 525px !important;
        min-width: 460px !important;
        min-height: 525px !important;
    }
    
    .service-item {
        font-size: 32px;
        opacity: 0;
        transform: translateX(-20px);
        animation: fadeInOut 20s ease-in-out infinite !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        will-change: opacity, transform !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .service-item:nth-child(1) {
        animation-delay: 0s !important;
    }
    
    .service-item:nth-child(2) {
        animation-delay: 4s !important;
    }
    
    .service-item:nth-child(3) {
        animation-delay: 8s !important;
    }
    
    .service-item:nth-child(4) {
        animation-delay: 12s !important;
    }
    
    .service-item:nth-child(5) {
        animation-delay: 16s !important;
    }

    .main-section {
        padding: 0 var(--spacing-sm);
        margin-bottom: var(--spacing-xl);
        margin-top: 0;
    }

    .projects-grid {
        column-count: 2;
        column-gap: 15px;
    }
    
    .grid-item {
        margin-bottom: 15px;
    }
    

    .grid-image {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .grid-title {
        font-size: 20px;
    }

    .grid-category {
        font-size: 12px;
    }
}

.works-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    margin-bottom: 0;
    margin-top: -40px;
    margin-left: -74px;
    padding: 0;
    align-self: flex-start;
    line-height: 0;
}

.works-arrow-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
}

.works-title {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 45px;
    font-weight: bold !important;
    color: rgb(62, 57, 57);
    margin: 0;
    margin-bottom: 0 !important;
    margin-top: 0;
    padding: 0;
    padding-bottom: 10px !important;
    line-height: 1.1 !important;
    padding-left: 0 !important;
}

.work-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.work-item:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

.works-list > .work-item:first-child {
    margin-top: 0 !important;
}

.work-item:hover {
    transform: translateX(5px);
}

.work-item-preview {
    position: absolute;
    left: 50%;
    top: -220px;
    transform: translateX(-50%) translateY(20px) scale(0.5) rotate(-10deg);
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block !important;
    visibility: visible !important;
    filter: blur(5px);
}

.work-item:hover .work-item-preview {
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    animation: previewSlideRotate 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(55, 0, 252, 0.2);
}

@keyframes previewSlideRotate {
    0% {
        transform: translateX(-50%) translateY(20px) scale(0.5) rotate(-10deg);
        opacity: 0;
        filter: blur(5px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px) scale(1.1) rotate(2deg);
        opacity: 0.8;
        filter: blur(2px);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

/* Dynamic preview images for all work items */
.work-item[data-image] .work-item-preview {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Fallback for data-bg-image attribute */
.work-item-preview[data-bg-image] {
    background-image: var(--bg-image, url('')) !important;
}

.work-item[data-image="egegunesiwork/optimized/egegunesi.jpg"] .work-item-preview {
    background-image: url('egegunesiwork/optimized/egegunesi.jpg') !important;
}

.work-item[data-image="asset/picniclogo.webp"] .work-item-preview {
    background-image: url('asset/picniclogo.webp') !important;
}

.work-item[data-image="asset/7a.jpg"] .work-item-preview {
    background-image: url('asset/7a.jpg') !important;
}

.work-item[data-image="asset/9a.jpg"] .work-item-preview {
    background-image: url('asset/9a.jpg') !important;
}

.work-item[data-image="asset/1a.webp"] .work-item-preview {
    background-image: url('asset/1a.webp') !important;
}

.arrow-icon {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    display: block;
}

.work-name {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 48px;
    font-weight: 400;
    color: rgb(62, 57, 57);
    line-height: 80px;
}

/* Hero Image Section */
.hero-image {
    flex: 0 1 50%;
    background-color: #ffffff;
    max-width: 705px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 !important;
    position: relative;
    overflow: visible;
    align-self: flex-start;
    margin: 0;
    margin-top: -30px;
    padding-top: 0 !important;
}

.skills-tags {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    margin-top: -80px;
    padding: 0 20px;
    max-width: 100%;
    position: relative;
    z-index: 100;
    width: 100%;
    pointer-events: none;
}

.skills-tags .skill-tag {
    pointer-events: auto;
}

.skills-tags-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    position: relative;
    z-index: 100;
}

.skills-tags-column:first-child {
    padding-top: 0;
}

.skills-tags-column:last-child {
    padding-top: 20px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 12px;
    border: 2px solid rgb(62, 57, 57);
    border-radius: 16px;
    background-color: transparent;
    color: rgb(62, 57, 57);
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

body.index-page .hero-image {
    background-color: transparent;
}

.image-placeholder {
    width: 601px;
    height: 667px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}

.model-container {
    width: 601px;
    height: 667px;
    min-height: 667px;
    position: relative;
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    margin-top: 0;
    z-index: 1;
    align-self: flex-start;
}

.model-container canvas {
    width: 601px !important;
    height: 667px !important;
    min-width: 601px !important;
    min-height: 667px !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

.image-overlay {
    text-align: center;
    color: #000000;
    position: relative;
    z-index: 10 !important;
    pointer-events: none;
    width: 100%;
}

.overlay-text {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 64px;
    font-weight: 600;
    line-height: 74px;
    margin: 0;
}

.overlay-amp {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 64px;
    font-weight: 400;
    line-height: 74px;
    display: block;
    margin: 8px 0;
}

/* Project Sections */
.project-section {
    padding: 0 10px;
    margin-bottom: 10px;
    margin-top: 0;
    max-width: 1420px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.project-image {
    background-color: #ffffff;
    width: 100%;
    height: 941px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 18px;
}

body.index-page .project-image {
    background-color: transparent;
}

.image-placeholder-large {
    font-family: 'UfficioDisplay', sans-serif !important;
    width: 100%;
    height: 100%;
    max-width: 1383px;
    max-height: 790px;
    background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    font-weight: 300;
}

.project-image-content {
    width: 100%;
    height: 100%;
    max-width: 1383px;
    max-height: 790px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    cursor: pointer;
    will-change: transform;
    position: relative;
}

.project-image:hover .project-image-content {
    transform: translateY(calc(var(--scroll-y, 0px) - 20px));
}

/* Responsive Design */
@media (max-width: 1440px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    /* Index page sadece projects-grid kullanıyor, flex kuralları gereksiz */
    body.index-page .main-section {
        display: block;
        flex-direction: initial !important;
        gap: 0;
        align-items: initial;
        justify-content: initial;
    }

    .model-container {
        margin-top: 0 !important;
    }

    .works-title-wrapper {
        margin-top: -40px;
    }

    .skill-tag {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 16px;
    }

    .image-placeholder,
    .model-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 601 / 667;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        align-self: flex-start;
    }

    .model-container canvas {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .logo {
        font-size: 30px;
    }

    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 80px !important;
        font-weight: 500 !important;
    }

    .works-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: -40px !important;
        margin-left: -20px !important;
    }

    .works-arrow-icon {
        width: 60px;
        height: 60px;
    }

    .works-title {
        font-size: 52px;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-bottom: 5px !important;
    }

    .work-name,
    .overlay-text,
    .overlay-amp {
        font-size: 48px;
    }

    .work-name {
        line-height: 1.2 !important;
    }

    .work-item {
        margin-bottom: 0px !important;
        gap: 8px;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .work-item-preview {
        width: 150px;
        height: 150px;
        left: 50%;
        top: -170px;
        transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
        opacity: 1 !important;
        filter: blur(0px);
        display: block !important;
        visibility: visible !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .work-item:hover .work-item-preview {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .arrow-icon {
        width: 55px;
        height: 55px;
        flex-shrink: 0 !important;
    }

    .project-image {
        height: 941px !important;
        min-height: 941px !important;
        padding: 0 18px !important;
        align-items: flex-start !important;
        padding-top: 0 !important;
    }

    .main-section {
        margin-bottom: -50px !important;
    }

    .project-section:first-of-type {
        margin-top: -50px !important;
    }

    .project-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .project-image {
        height: 400px !important;
        min-height: 400px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        align-items: flex-start !important;
    }

    .project-image-content {
        margin-top: 0 !important;
        max-height: 350px !important;
        width: auto !important;
        /* JavaScript will handle additional transform */
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        height: auto !important;
        min-height: 40px !important;
        gap: 5px !important;
        padding: 5px 10px !important;
        position: relative;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .logo {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .hamburger-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        flex-shrink: 0;
        margin: 0 !important;
        padding: 0 !important;
        order: 2;
        position: relative;
        z-index: 1001;
        background: transparent !important;
        border: none !important;
        align-items: center;
        justify-content: center;
    }

    .menu-text {
        font-family: 'UfficioDisplay', sans-serif !important;
        font-size: 24px !important;
        color: #000000 !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }

    .hamburger-menu:hover .menu-text {
        color: #000000 !important;
        opacity: 0.7;
    }

    .hamburger-menu:active .menu-text,
    .hamburger-menu.menu-active .menu-text {
        color: #000000 !important;
        opacity: 1 !important;
        font-weight: 500 !important;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        display: none !important;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%) scale(0.95);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0) scale(1);
        animation: slideInFromTop 0.5s cubic-bezier(0.04, 0.72, 0.165, 1);
    }

    @keyframes slideInFromTop {
        from {
            opacity: 0;
            transform: translateY(-100%) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        max-width: 400px;
        display: none !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    }

    .nav-links.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link,
    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 80px !important;
        font-weight: 500 !important;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        color: #ffffff !important;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
        color: #ffffff !important;
    }

    .nav-link:active {
        transform: translateX(5px) scale(0.98);
    }

    body.index-page .main-section {
        display: block;
        flex-direction: initial !important;
        gap: 0;
        margin-bottom: var(--spacing-2xl) !important;
        align-items: initial;
        justify-content: initial;
    }

    .model-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 601 / 667;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        align-self: flex-start;
    }

    .model-container canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .works-title-wrapper {
        margin-top: -35px;
    }

    .skill-tag {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 14px;
    }

    .work-item {
        gap: 8px;
        flex-wrap: nowrap !important;
        margin-bottom: 0px !important;
        align-items: center !important;
    }

    .work-item-preview {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .work-item:hover .work-item-preview {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .arrow-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0 !important;
    }

    .logo {
        font-size: 32px;
    }

    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 48px !important;
        font-weight: 500 !important;
    }

    .works-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-left: -15px !important;
        margin-top: -35px !important;
    }

    .works-arrow-icon {
        width: 55px;
        height: 55px;
    }

    .works-title,
    .work-name,
    .overlay-text,
    .overlay-amp {
        font-size: 36px;
    }

    .works-title {
        margin-top: 0 !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 5px !important;
        padding-bottom: 5px !important;
    }

    .work-name {
        line-height: 1.2 !important;
    }

    .project-image {
        height: 941px !important;
        min-height: 941px !important;
        padding: 0 18px !important;
        align-items: flex-start !important;
        padding-top: 0 !important;
    }

    .main-section {
        margin-bottom: -50px !important;
    }

    .project-section:first-of-type {
        margin-top: -50px !important;
    }

    .project-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .project-image {
        height: 400px !important;
        min-height: 400px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        align-items: flex-start !important;
    }

    .project-image-content {
        margin-top: 0 !important;
        max-height: 350px !important;
        width: auto !important;
        /* JavaScript will handle additional transform */
    }

    .image-placeholder-large {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 3px 8px !important;
    }
    
    .header-content {
        padding: 3px 8px !important;
        min-height: 35px !important;
        height: auto !important;
        gap: 5px !important;
        position: relative;
    }
    
    .logo {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
    
    .hamburger-menu {
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .menu-text {
        font-family: 'UfficioDisplay', sans-serif !important;
        font-size: 22px !important;
        color: #000000 !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }
    
    .hamburger-menu:hover .menu-text {
        color: #000000 !important;
        opacity: 0.7;
    }

    .hamburger-menu:active .menu-text,
    .hamburger-menu.menu-active .menu-text {
        color: #000000 !important;
        opacity: 1 !important;
        font-weight: 500 !important;
    }


    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        display: none !important;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%) scale(0.95);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        max-width: 400px;
        display: none !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    }

    .nav-links.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link,
    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 36px !important;
        font-weight: 500 !important;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        color: #000000 !important;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
        transform: translateX(5px);
        color: #000000 !important;
    }

    .nav-link:active {
        transform: translateX(5px) scale(0.98);
    }

    body.index-page .main-section {
        display: block;
        flex-direction: initial !important;
        gap: 0;
        margin-top: 0 !important;
        align-items: initial;
        justify-content: initial;
    }

    .model-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 601 / 667;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        align-self: flex-start;
    }

    .model-container canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .works-title-wrapper {
        margin-top: -30px;
    }

    .logo {
        font-size: 28px;
    }

    .header-content {
        padding: 10px;
    }

    .hamburger-menu {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        display: none !important;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%) scale(0.95);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        max-width: 400px;
        display: none !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    }

    .nav-links.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link,
    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 36px !important;
        font-weight: 500 !important;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        color: #000000 !important;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
        transform: translateX(5px);
        color: #000000 !important;
    }

    .nav-link:active {
        transform: translateX(5px) scale(0.98);
    }

    .works-title,
    .work-name,
    .overlay-text,
    .overlay-amp {
        font-size: 28px;
    }

    .works-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-left: -5px !important;
        margin-top: -30px !important;
    }

    .works-arrow-icon {
        width: 50px;
        height: 50px;
    }

    .works-title {
        margin-top: 0 !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 5px !important;
        padding-bottom: 5px !important;
    }

    .work-name {
        line-height: 1.2 !important;
    }

    .work-item {
        gap: 8px;
        flex-wrap: nowrap !important;
        margin-bottom: 0px !important;
        align-items: center !important;
    }

    .work-item-preview {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .work-item:hover .work-item-preview {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .arrow-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0 !important;
    }

    .project-image {
        padding: 0 18px !important;
        align-items: flex-start !important;
        padding-top: 0 !important;
    }

    .main-section {
        margin-bottom: -50px !important;
    }

    .project-section:first-of-type {
        margin-top: -50px !important;
    }

    .project-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .project-image {
        height: 400px !important;
        min-height: 400px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        align-items: flex-start !important;
    }

    .project-image-content {
        margin-top: 0 !important;
        max-height: 350px !important;
        width: auto !important;
        /* JavaScript will handle additional transform */
    }
}

/* iPhone 11, 12, 13, 14 specific styles */
@media (max-width: 414px) {
    .header {
        padding: 3px 8px !important;
    }
    
    .header-content {
        padding: 3px 8px !important;
        min-height: 35px !important;
        height: auto !important;
        gap: 5px !important;
        position: relative;
    }
    
    .logo {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
    
    .hamburger-menu {
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .menu-text {
        font-family: 'UfficioDisplay', sans-serif !important;
        font-size: 22px !important;
        color: #000000 !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }
    
    .hamburger-menu:hover .menu-text {
        color: #000000 !important;
        opacity: 0.7;
    }

    .hamburger-menu:active .menu-text,
    .hamburger-menu.menu-active .menu-text {
        color: #000000 !important;
        opacity: 1 !important;
        font-weight: 500 !important;
    }


    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        display: none !important;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%) scale(0.95);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        max-width: 400px;
        display: none !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    }

    .nav-links.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link,
    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 36px !important;
        font-weight: 500 !important;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        color: #000000 !important;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
        transform: translateX(5px);
        color: #000000 !important;
    }

    .nav-link:active {
        transform: translateX(5px) scale(0.98);
    }

    body.index-page .main-section {
        display: block;
        flex-direction: initial !important;
        gap: 0;
        margin-bottom: var(--spacing-lg) !important;
        align-items: initial;
        justify-content: initial;
    }

    .model-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 601 / 667;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        align-self: flex-start;
    }

    .model-container canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .works-title-wrapper {
        margin-top: -30px !important;
        margin-left: -4px !important;
    }

    .project-section:first-of-type {
        margin-top: -30px !important;
    }

    .project-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .project-image {
        height: 300px !important;
        min-height: 300px !important;
        padding: 0 12px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .project-image-content {
        margin-top: 0 !important;
        max-height: 250px !important;
    }
}

@media (max-width: 390px) {
    .header {
        padding: 3px 8px !important;
    }
    
    .header-content {
        padding: 3px 8px !important;
        min-height: 35px !important;
        height: auto !important;
        gap: 5px !important;
        position: relative;
    }
    
    .logo {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
    
    body.index-page .footer-minimal {
        margin-top: 80px !important;
    }
    
    .hamburger-menu {
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .menu-text {
        font-family: 'UfficioDisplay', sans-serif !important;
        font-size: 22px !important;
        color: #000000 !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }
    
    .hamburger-menu:hover .menu-text {
        color: #000000 !important;
        opacity: 0.7;
    }

    .hamburger-menu:active .menu-text,
    .hamburger-menu.menu-active .menu-text {
        color: #000000 !important;
        opacity: 1 !important;
        font-weight: 500 !important;
    }


    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        display: none !important;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%) scale(0.95);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        max-width: 400px;
        display: none !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    }

    .nav-links.mobile-menu-open {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link,
    .nav.mobile-menu-open .nav-link,
    .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open .nav-link,
    .nav.mobile-menu-open .nav-links.mobile-menu-open a.nav-link {
        font-size: 36px !important;
        font-weight: 500 !important;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        color: #000000 !important;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
        transform: translateX(5px);
        color: #000000 !important;
    }

    .nav-link:active {
        transform: translateX(5px) scale(0.98);
    }

    body.index-page .main-section {
        display: block;
        flex-direction: initial !important;
        gap: 0;
        margin-bottom: var(--spacing-md) !important;
        align-items: initial;
        justify-content: initial;
    }

    .works-list {
        flex: 0 1 48%;
        padding: 0 3px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        min-width: 0;
        align-self: flex-start;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-image {
        flex: 0 1 48%;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: -50px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        align-self: flex-start;
    }

    .model-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 601 / 667;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        align-self: flex-start;
    }

    .model-container canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .works-title-wrapper {
        margin-top: -30px !important;
        margin-left: -3px !important;
    }

    .project-section:first-of-type {
        margin-top: -30px !important;
    }

    .project-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .project-image {
        height: 250px !important;
        min-height: 250px !important;
        padding: 0 12px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .project-image-content {
        margin-top: 0 !important;
        max-height: 200px !important;
    }
}

/* Old intro text section - hidden for minimal index */
body.index-page .intro-text-section {
    display: none !important;
}

/* Footer CTA Section */
.footer-cta-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0px 20px 20px 20px;
    overflow: hidden;
    background-color: transparent;
    position: relative;
    margin-top: -50px;
}

.footer-cta-link {
    display: block;
    text-decoration: none;
    color: var(--black);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.footer-cta-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    right: 0;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow) var(--easing-smooth);
}

.footer-cta-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-cta-text-wrapper {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-text 30s linear infinite;
    will-change: transform;
    width: max-content;
}

.footer-cta-text {
    display: inline-block;
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 32px;
    font-weight: 400;
    color: #000000;
    line-height: 1.2;
    padding-right: 50px;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-cta-link:hover .footer-cta-text-wrapper {
    animation-play-state: paused;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-20%);
    }
}

@media (max-width: 1024px) {
    .footer-cta-section {
        padding: 20px 15px 20px 15px;
    }

    .footer-cta-text {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .footer-cta-section {
        padding: 20px 12px 20px 12px;
    }

    .footer-cta-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .footer-cta-section {
        padding: 20px 10px 20px 10px;
    }

    .footer-cta-text {
        font-size: 18px;
    }
}

/* Footer Styles */
.footer:not(.footer-minimal) {
    width: 100%;
    max-width: 1440px;
    margin: 100px auto 0;
    padding: 5px;
    background-color: #ffffff;
}

body.index-page .footer-minimal {
    background-color: #ffffff !important;
    margin-top: 100px !important;
}

.footer:not(.footer-minimal) .footer-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-logo-section {
    padding: 5px;
}

.footer-logo {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 32px;
    font-weight: bold !important;
    color: #000000;
    margin: 0;
    line-height: 32px;
}

.footer-links-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding: 20px 5px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    align-items: start;
    justify-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px;
    background-color: #ffffff;
}

.footer-column:first-child {
    /* Work links - left aligned */
    align-items: flex-start;
    justify-self: start;
}

.footer-column:nth-child(2) {
    /* Menu links - center aligned */
    align-items: center;
    justify-self: center;
}

body.index-page .footer-column {
    background-color: transparent;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    padding: 2px;
    transition: opacity var(--transition-fast) var(--easing-ease);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.5px;
    bottom: 2px;
    right: 0;
    background-color: var(--text-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow) var(--easing-smooth);
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-arrow-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform var(--transition-medium) var(--easing-smooth);
}

.footer-link:hover .footer-arrow-icon {
    transform: translate(4px, -4px);
}

.footer-social-section {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2px;
    background-color: #ffffff;
    min-width: 0;
    flex-basis: auto;
    grid-column: 3;
    justify-self: end;
}

body.index-page .footer-social-section {
    background-color: transparent;
}

.footer-social-item {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: 0;
}

.footer-social-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 0;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
}

.footer-social-arrow-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.footer-social-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    justify-content: center;
    align-self: center;
    padding-top: 0;
    margin-top: 0;
}

.footer-social-link {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 16px;
    transition: opacity var(--transition-fast) var(--easing-ease);
    height: 16px;
    display: flex;
    align-items: center;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    position: relative;
}

.footer-social-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    right: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow) var(--easing-smooth);
}

.footer-social-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-social-link:hover {
    opacity: 0.7;
}

.footer-copyright {
    padding: 3px;
}

.footer-copyright p {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 11px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 11px;
}

@media (max-width: 1024px) {
    .footer:not(.footer-minimal) {
        margin-top: 60px;
    }

    body.index-page .footer:not(.footer-minimal) {
        margin-top: 60px !important;
    }
    
    body.index-page .footer-minimal {
        margin-top: 80px !important;
    }

    .footer-logo {
        font-size: 28px;
        line-height: 28px;
    }

    .footer-links-section {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
        padding: 20px 5px;
        justify-items: start;
    }

    .footer-column:first-child {
        align-items: flex-start;
        justify-self: start;
    }

    .footer-column:nth-child(2) {
        align-items: center;
        justify-self: center;
    }

    .footer-social-section {
        justify-content: flex-end;
        grid-column: 3;
        justify-self: end;
    }

    .footer-link {
        font-size: 14px;
        line-height: 14px;
    }

    .footer-arrow-icon {
        width: 12px;
        height: 12px;
    }

    .footer-social-item {
        gap: 4px;
    }

    .footer-social-arrows {
        gap: 2px;
    }

    .footer-social-arrow-icon {
        width: 12px;
        height: 12px;
    }

    .footer-social-names {
        gap: 2px;
    }

    .footer-social-link {
        font-size: 14px;
        line-height: 14px;
        height: 14px;
    }

    .footer-copyright p {
        font-size: 10px;
        line-height: 10px;
    }
}

@media (max-width: 768px) {
    .footer:not(.footer-minimal) {
        margin-top: 50px;
    }

    body.index-page .footer:not(.footer-minimal) {
        margin-top: 50px !important;
    }
    
    body.index-page .footer-minimal {
        margin-top: 60px !important;
    }

    .footer-logo {
        font-size: 24px;
        line-height: 24px;
    }

    .footer-links-section {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
        padding: 20px 5px;
        justify-items: start;
    }

    .footer-column {
        width: auto;
    }

    .footer-column:first-child {
        align-items: flex-start;
        justify-self: start;
    }

    .footer-column:nth-child(2) {
        align-items: center;
        justify-self: center;
    }

    .footer-social-section {
        grid-column: 3;
        justify-self: end;
        width: auto;
    }

    .footer-link {
        font-size: 13px;
        line-height: 13px;
    }

    .footer-arrow-icon {
        width: 11px;
        height: 11px;
    }

    .footer-social-item {
        gap: 4px;
    }

    .footer-social-arrows {
        gap: 2px;
    }

    .footer-social-arrow-icon {
        width: 11px;
        height: 11px;
    }

    .footer-social-names {
        gap: 2px;
    }

    .footer-social-link {
        font-size: 13px;
        line-height: 13px;
        height: 13px;
    }

    .footer-copyright p {
        font-size: 9px;
        line-height: 9px;
    }
}

@media (max-width: 480px) {
    .footer:not(.footer-minimal) {
        margin-top: 40px;
    }

    body.index-page .footer:not(.footer-minimal) {
        margin-top: 40px !important;
    }
    
    body.index-page .footer-minimal {
        margin-top: 50px !important;
    }

    .footer-logo {
        font-size: 20px;
        line-height: 20px;
    }

    .footer-links-section {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        padding: 20px 5px;
        justify-items: start;
    }

    .footer-column {
        width: auto;
    }

    .footer-column:first-child {
        align-items: flex-start;
        justify-self: start;
    }

    .footer-column:nth-child(2) {
        align-items: center;
        justify-self: center;
    }

    .footer-social-section {
        grid-column: 3;
        justify-self: end;
        width: auto;
    }

    .footer-link {
        font-size: 12px;
        line-height: 12px;
    }

    .footer-arrow-icon {
        width: 10px;
        height: 10px;
    }

    .footer-social-item {
        gap: 4px;
    }

    .footer-social-arrows {
        gap: 2px;
    }

    .footer-social-arrow-icon {
        width: 10px;
        height: 10px;
    }

    .footer-social-names {
        gap: 2px;
    }

    .footer-social-link {
        font-size: 12px;
        line-height: 12px;
        height: 12px;
    }

    .footer-copyright p {
        font-size: 8px;
        line-height: 8px;
    }
}

/* === Unified footer layout override === */
.footer {
    width: 100%;
    max-width: 1440px;
    margin: 120px auto 0;
    padding: 32px 20px;
    border-top: 1px solid rgba(62, 57, 57, 0.08);
    background: #ffffff;
}

body.index-page .footer:not(.footer-minimal) {
    margin-top: 120px !important;
    background: #ffffff;
}

.footer:not(.footer-minimal) .footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo-section {
    padding: 0;
}

.footer-logo {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 30px;
    font-weight: 700 !important;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.1;
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: flex-start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column:first-child {
    align-items: flex-start;
}

.footer-column:nth-child(2) {
    align-items: flex-start;
}

.footer-social-section {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    padding: 4px 0;
    transition: opacity var(--transition-fast) var(--easing-ease);
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-arrow-icon,
.footer-social-arrow-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.footer-social-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-social-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-social-names {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-social-link {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 15px;
    line-height: 1.2;
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity var(--transition-fast) var(--easing-ease);
}

.footer-social-link:hover {
    opacity: 0.7;
}

.footer-copyright {
    padding: 0;
}

.footer-copyright p {
    font-family: 'UfficioDisplay', sans-serif !important;
    font-size: 12px;
    font-weight: 400;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .footer:not(.footer-minimal) {
        margin-top: 90px;
        padding: 28px 16px;
    }

    .footer-links-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .footer-social-section {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .footer:not(.footer-minimal) {
        margin-top: 70px;
        padding: 24px 14px;
    }

    .footer-content {
        gap: 18px;
    }

    .footer-logo {
        font-size: 26px;
    }

    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-link,
    .footer-social-link {
        font-size: 14px;
    }
}

/* ========================================
   MINIMAL INDEX STYLES (tunahanpehlivan.com inspired)
   ======================================== */

.container.index-minimal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: #ffffff;
}

/* Hero Section */
.index-hero {
    margin-bottom: 80px;
    margin-top: 0;
}

.index-title {
    font-family: 'ABCMonumentGroteskMono', monospace;
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 400;
    color: #000000;
    line-height: 1.1;
    margin: 0 0 30px 0;
    text-transform: lowercase;
    letter-spacing: -0.01em;
}

.index-description {
    font-family: 'ABCMonumentGroteskMono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
    margin: 0 0 25px 0;
    max-width: 700px;
}

.index-contact {
    font-family: 'ABCMonumentGroteskMono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #000000;
    line-height: 1.8;
    margin: 0;
}

.contact-link {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.6;
    text-decoration: underline;
}

/* Info Sections - 3 Column Layout like image */
.index-info {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px 60px;
    align-items: start;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item:nth-child(4) {
    /* AWARDS - spans first column only, positioned below CV */
    grid-column: 1;
    grid-row: 2;
}

.info-label {
    font-family: 'ABCMonumentGroteskMono', monospace;
    font-size: 10px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.info-link {
    font-family: 'ABCMonumentGroteskMono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.info-link:hover {
    opacity: 0.5;
    text-decoration: underline;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-list li {
    font-family: 'ABCMonumentGroteskMono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #000000;
    line-height: 1.5;
}

.info-text {
    font-family: 'ABCMonumentGroteskMono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #000000;
    line-height: 1.5;
    margin: 0;
}

/* Projects Section */
.index-projects {
    margin-bottom: 100px;
}

.index-projects .projects-grid {
    columns: 3;
    column-count: 3;
    column-gap: 30px;
}

.index-projects .grid-item {
    margin-bottom: 30px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

/* Hide old footer on minimal index */
body.index-page .footer:not(.footer-minimal) {
    display: none !important;
}

/* Responsive - Minimal Index */
@media (max-width: 1024px) {
    .container.index-minimal {
        padding: 50px 30px;
    }

    .index-hero {
        margin-bottom: 80px;
    }

    .index-info {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 35px 50px;
        margin-bottom: 70px;
    }
    
    .info-item:nth-child(4) {
        grid-column: 1;
        grid-row: 2;
    }

    .index-projects .projects-grid {
        column-count: 2;
        column-gap: 25px;
    }

    .index-projects .grid-item {
        margin-bottom: 25px;
    }

    .footer-minimal {
        padding: 0 30px 50px !important;
        padding-top: 35px !important;
        margin-top: 80px !important;
    }
    
    .footer-minimal-content {
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .container.index-minimal {
        padding: 40px 20px;
    }

    .index-title {
        margin-bottom: 30px;
    }

    .index-hero {
        margin-bottom: 60px;
    }

    .index-description {
        margin-bottom: 25px;
    }

    .index-info {
        grid-template-columns: 1fr 1fr;
        gap: 30px 40px;
        margin-bottom: 60px;
    }
    
    .info-item:nth-child(3),
    .info-item:nth-child(4) {
        grid-column: span 1;
    }
    
    .info-item:nth-child(4) {
        grid-row: auto;
    }

    .index-projects {
        margin-bottom: 60px;
    }

    .index-projects .projects-grid {
        column-count: 2;
        column-gap: 20px;
    }

    .index-projects .grid-item {
        margin-bottom: 20px;
    }

}

@media (max-width: 480px) {
    .container.index-minimal {
        padding: 30px 15px;
    }

    .index-title {
        margin-bottom: 25px;
        font-size: 36px;
    }

    .index-hero {
        margin-bottom: 50px;
    }

    .index-info {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .info-item:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }

    .index-projects {
        margin-bottom: 50px;
    }

    .index-projects .projects-grid {
        column-count: 2;
        column-gap: 15px;
    }

    .index-projects .grid-item {
        margin-bottom: 15px;
    }

    .footer-minimal {
        padding: 0 15px 30px !important;
        padding-top: 25px !important;
        margin-top: 50px !important;
    }

    .footer-minimal-content {
        gap: 25px !important;
        flex-direction: column !important;
    }
}

