:root {
    --cream: #FAF8F5;
    --milk: #F5F2ED;
    --sand: #E8E4DC;
    --stone: #C4BEB4;
    --graphite: #6B6560;
    --charcoal: #2D2926;
    --ink: #1A1816;
    --electric: #0066FF;
    --coral: #FF6B4A;
    --mint: #00D4AA;
    --violet: #8B5CF6;
    --sunrise: #FFB86C;
}

/* Dark Mode Color Scheme */
[data-theme="dark"] {
    --cream: #1A1816;
    --milk: #1E1C1A;
    --sand: #2D2926;
    --stone: #4A4540;
    --graphite: #9A958D;
    --charcoal: #C4BEB4;
    --ink: #FAF8F5;
}

/* Dark Mode Specific Overrides */
[data-theme="dark"] .gradient-mesh { opacity: 0.2; }
[data-theme="dark"] .loader { background: #0D0C0B; }
[data-theme="dark"] .loader-logo { filter: invert(1); }
[data-theme="dark"] .project-overlay { background: linear-gradient(to top, rgba(26, 24, 22, 0.98) 0%, rgba(26, 24, 22, 0.5) 50%, transparent 100%); }
[data-theme="dark"] .stats-section { background: #0D0C0B; }
[data-theme="dark"] .modal-content { background: #1E1C1A; }
[data-theme="dark"] .skill-pill { background: #2D2926; border-color: #3D3936; }
[data-theme="dark"] .tool-item:hover { background: #2D2926; }
[data-theme="dark"] .tools-section { background: #1E1C1A; }
[data-theme="dark"] .foyer-section { background: linear-gradient(180deg, rgba(30, 28, 26, 0.3) 0%, rgba(45, 41, 38, 0.3) 50%, rgba(30, 28, 26, 0.3) 100%); }
[data-theme="dark"] .marquee-container { border-color: #2D2926; }
[data-theme="dark"] footer { background: #0D0C0B; }
[data-theme="dark"] .cursor-blob { background: var(--cream); }
[data-theme="dark"] .filter-tab { border-color: #3D3936; }
[data-theme="dark"] .filter-tab:hover { border-color: var(--cream); }
[data-theme="dark"] .metric-item { background: #2D2926; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--electric);
    color: var(--cream);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--charcoal) var(--cream);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    cursor: none;
}

body.modal-open {
    overflow: hidden;
}

/* Liquid Cursor */
.cursor-blob {
    position: fixed;
    width: 24px;
    height: 24px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease;
}

.cursor-blob.expand {
    width: 60px;
    height: 60px;
}

/* Gradient Mesh Background */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: meshFloat 20s ease-in-out infinite;
}

.mesh-blob:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--coral);
    top: -200px;
    right: -100px;
}

.mesh-blob:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--electric);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.mesh-blob:nth-child(3) {
    width: 300px;
    height: 300px;
    background: var(--mint);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

.mesh-blob:nth-child(4) {
    width: 280px;
    height: 280px;
    background: var(--violet);
    top: 60%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* Loader - NEW DESIGN with Logo and Prism Gradient Bar */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ink);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.loader.done {
    animation: loaderExit 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes loaderExit {
    0% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

.loader-logo {
    width: 120px;
    height: 120px;
    animation: logoPulse 2s ease-in-out infinite, logoRotate 8s linear infinite;
    filter: drop-shadow(0 0 30px rgba(0, 102, 255, 0.5));
}

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

@keyframes logoRotate {
    0% { filter: drop-shadow(0 0 30px rgba(255, 107, 74, 0.6)) hue-rotate(0deg); }
    25% { filter: drop-shadow(0 0 30px rgba(0, 102, 255, 0.6)) hue-rotate(90deg); }
    50% { filter: drop-shadow(0 0 30px rgba(0, 212, 170, 0.6)) hue-rotate(180deg); }
    75% { filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.6)) hue-rotate(270deg); }
    100% { filter: drop-shadow(0 0 30px rgba(255, 107, 74, 0.6)) hue-rotate(360deg); }
}

.loader-progress-container {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-bar-bg {
    width: 100%;
    height: 4px;
    background: var(--charcoal);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, 
        var(--coral) 0%, 
        var(--sunrise) 20%, 
        var(--mint) 40%, 
        var(--electric) 60%, 
        var(--violet) 80%, 
        var(--coral) 100%);
    background-size: 200% 100%;
    animation: prismShift 2s linear infinite;
    transition: width 0.1s ease;
}

@keyframes prismShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.loader-percentage {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--stone);
    letter-spacing: 0.1em;
}

.loader-text {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--graphite);
    text-transform: uppercase;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.8rem;
    color: var(--cream);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cream);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-current {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cream);
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.lang-current:hover {
    border-color: var(--cream);
}

.lang-current svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.lang-selector.open .lang-current svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--ink);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    mix-blend-mode: normal;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    color: var(--stone);
    background: none;
    border: none;
    text-align: left;
    cursor: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: var(--charcoal);
    color: var(--cream);
}

.lang-option.active {
    color: var(--electric);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 3rem 3rem;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--graphite);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--graphite);
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(100%);
    animation: wordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) .word { animation-delay: 0.8s; }
.hero-title .line:nth-child(2) .word { animation-delay: 0.9s; }
.hero-title .line:nth-child(3) .word { animation-delay: 1s; }

@keyframes wordReveal {
    to { transform: translateY(0); }
}

.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
    transition: all 0.4s ease;
    display: inline-block;
}

.hero-title .highlight:hover {
    color: var(--electric);
    -webkit-text-stroke: 2px var(--electric);
}

.scramble {
    display: inline-block;
    cursor: none;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

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

.hero-description {
    max-width: 380px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--graphite);
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--graphite);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--ink), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--electric);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* The Foyer - Art Gallery Marquee */
.foyer-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(245, 242, 237, 0.2) 0%, rgba(232, 226, 216, 0.2) 50%, rgba(245, 242, 237, 0.2) 100%);
    position: relative;
    overflow: hidden;
}

.foyer-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 3rem;
}

.foyer-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--graphite);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.foyer-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.foyer-marquee-container {
    overflow: hidden;
    padding: 2rem 0;
    cursor: grab;
}

.foyer-marquee-container:active {
    cursor: grabbing;
}

.foyer-marquee-container.dragging {
    cursor: grabbing;
}

.foyer-marquee {
    display: flex;
    gap: 2rem;
    will-change: transform;
}

.foyer-marquee.paused {
    animation-play-state: paused;
}

.easel-item {
    flex-shrink: 0;
    position: relative;
    width: 600px;
    cursor: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.easel-item:hover {
    transform: translateY(-15px) scale(1.05);
    z-index: 10;
}

.easel-frame {
    position: relative;
    z-index: 1;
    width: 100%;
}

.easel-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    pointer-events: none;
}

.artwork-container {
    position: absolute;
    top: 36%;
    left: 17%;
    width: 66%;
    height: 34%;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.15),
        0 4px 15px rgba(0,0,0,0.25);
    background: var(--sand);
    z-index: 10;
}

.artwork-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.easel-item:hover .artwork-container img {
    transform: scale(1.1);
}

.artwork-info {
    position: absolute;
    top: 23%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    text-align: center;
    width: 90%;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 11;
}

.easel-item:hover .artwork-info {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.artwork-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    text-shadow: 0 1px 3px rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artwork-medium {
    font-size: 0.9rem;
    color: var(--graphite);
    font-style: italic;
}

.artwork-plaque {
    position: absolute;
    top: 73%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D4AF37 0%, #F5E7A3 30%, #D4AF37 50%, #B8962E 100%);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
    z-index: 11;
}

.easel-item:hover .artwork-plaque {
    opacity: 1;
}

.plaque-text {
    font-family: 'DM Sans', serif;
    font-size: 0.8rem;
    color: #2D2926;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Marquee */
.marquee-container {
    padding: 1.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
}

.marquee {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.marquee-item {
    font-family: 'Syne', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    padding: 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.marquee-item .dot {
    width: 6px;
    height: 6px;
    background: var(--electric);
    border-radius: 50%;
    flex-shrink: 0;
}

.marquee-item:nth-child(even) {
    color: transparent;
    -webkit-text-stroke: 1px var(--ink);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--ink);
    color: var(--cream);
    border: none;
    border-radius: 50%;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--electric);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* Filter Tabs - 3 Layer Identity */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-tab {
    padding: 0.8rem 1.8rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: transparent;
    color: var(--graphite);
    border: 1px solid var(--sand);
    border-radius: 30px;
    cursor: none;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.filter-tab.active {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

/* Project Filter Animation */
.project-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-item.hidden {
    display: none;
}

/* Project Metrics - Studio Grade Details */
.modal-metrics {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sand);
}

.metrics-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--graphite);
    margin-bottom: 1rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric-item {
    padding: 1rem;
    background: var(--milk);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-2px);
}

.metric-label {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--graphite);
    margin-bottom: 0.4rem;
}

.metric-value {
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .filter-tabs {
        gap: 0.4rem;
    }
    .filter-tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.6rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--ink);
    color: var(--cream);
    border: none;
    border-radius: 50%;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--electric);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Work Section */
.work-section {
    padding: 5rem 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.section-count {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    color: var(--graphite);
}

/* Masonry Project Grid - 20 Projects */
.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sand);
    cursor: none;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Masonry variations */
.project-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.project-item:nth-child(5) { grid-column: span 2; }
.project-item:nth-child(8) { grid-row: span 2; }
.project-item:nth-child(11) { grid-column: span 2; }
.project-item:nth-child(14) { grid-column: span 2; grid-row: span 2; }
.project-item:nth-child(17) { grid-column: span 2; }

.project-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
}

.project-item:nth-child(1) .project-visual,
.project-item:nth-child(14) .project-visual { min-height: 460px; }
.project-item:nth-child(8) .project-visual { min-height: 460px; }

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover .project-visual img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.project-number {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cream);
    background: var(--ink);
    padding: 0.3rem 0.6rem;
    border-radius: 100px;
    z-index: 2;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.project-item:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-category {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--electric);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.project-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.3rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    transition: all 0.3s ease;
    background: none;
    cursor: none;
}

.project-link:hover {
    background: var(--cream);
    color: var(--ink);
    border-color: var(--cream);
}

.project-link svg {
    width: 12px;
    height: 12px;
}

/* Stats Section */
.stats-section {
    padding: 5rem 3rem;
    background: rgba(26, 24, 22, 0.7);
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number span {
    color: var(--electric);
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--stone);
    text-transform: uppercase;
}

/* About Section */
.about-section {
    padding: 8rem 3rem;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 200px 200px 16px 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--electric);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateBadge 20s linear infinite;
}

@keyframes rotateBadge {
    to { transform: rotate(360deg); }
}

.about-image-badge svg {
    width: 85px;
    height: 85px;
}

.about-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--electric);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--graphite);
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--ink);
    font-weight: 500;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.skill-pill {
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: var(--milk);
    color: var(--ink);
    transition: all 0.3s ease;
}

.skill-pill:hover {
    background: var(--ink);
    color: var(--cream);
    transform: translateY(-2px);
}

/* Tools Section */
.tools-section {
    padding: 4rem 3rem;
    background: var(--milk);
}

.tools-container {
    max-width: 1400px;
    margin: 0 auto;
}

.tools-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--graphite);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.tool-item:hover {
    background: var(--cream);
    transform: translateY(-4px);
}

.tool-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.tool-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.tool-item span {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--graphite);
    text-align: center;
}

/* Contact Section */
.contact-section {
    padding: 8rem 3rem;
    text-align: center;
}

.contact-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--graphite);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.contact-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 2rem;
}

.contact-title a {
    color: var(--ink);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.4s ease;
}

.contact-title a::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.08em;
    background: var(--electric);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-title a:hover {
    color: var(--electric);
}

.contact-title a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-email {
    font-size: 0.95rem;
    color: var(--graphite);
    margin-bottom: 2rem;
}

.contact-email a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--sand);
    padding-bottom: 0.2em;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    color: var(--electric);
    border-color: var(--electric);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--graphite);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a::after {
    content: '↗';
    margin-left: 0.3em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    color: var(--ink);
}

.social-links a:hover::after {
    opacity: 1;
}

/* Footer */
footer {
    padding: 1.5rem 3rem;
    border-top: 1px solid var(--sand);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-size: 0.7rem;
    color: var(--graphite);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--graphite);
}

.footer-right .heart {
    color: var(--coral);
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.project-modal.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: none;
}

.project-modal.active .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 800px;
    height: 100%;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    cursor: none;
}

.project-modal.active .modal-content {
    transform: translateX(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--ink);
    border: none;
    border-radius: 50%;
    color: var(--cream);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.1);
    background: var(--electric);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-hero-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.modal-body {
    padding: 2rem;
}

.modal-category {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--electric);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
    margin-bottom: 1.5rem;
}

.modal-meta-item h4 {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--graphite);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.modal-meta-item p {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.modal-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--graphite);
    margin-bottom: 1.5rem;
}

.modal-gallery {
    display: grid;
    gap: 0.75rem;
}

.modal-gallery img {
    width: 100%;
    border-radius: 10px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.modal-tag {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    background: var(--milk);
    border-radius: 100px;
    color: var(--graphite);
}

/* Responsive */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .project-item:nth-child(1),
    .project-item:nth-child(14) { grid-column: span 2; grid-row: span 1; }
    .project-item:nth-child(1) .project-visual,
    .project-item:nth-child(14) .project-visual { min-height: 280px; }
    .project-item:nth-child(8) { grid-row: span 1; }
    .project-item:nth-child(8) .project-visual { min-height: 220px; }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-item:nth-child(1),
    .project-item:nth-child(5),
    .project-item:nth-child(8),
    .project-item:nth-child(11),
    .project-item:nth-child(14),
    .project-item:nth-child(17) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .project-item .project-visual { min-height: 220px !important; }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 5rem 1.5rem 2rem;
    }
    
    .work-section,
    .about-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }
    
    .tools-section,
    .stats-section {
        padding: 3rem 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .cursor-blob {
        display: none;
    }
    
    body {
        cursor: auto;
    }

    .loader-logo {
        width: 80px;
        height: 80px;
    }

    .loader-progress-container {
        width: 200px;
    }
}

/* Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Disable text selection for cleaner aesthetics */
body, img, .project-item, .easel, .foyer-marquee, .stat-number, .hero-title, .loader {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection in content areas */
.about-text, .modal-description, .contact-email, p, article {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Foyer mouse-reactive marquee */
.foyer-marquee-container {
    cursor: ew-resize;
}

.foyer-direction-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--electric);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.foyer-direction-indicator.left { left: 2rem; }
.foyer-direction-indicator.right { right: 2rem; }

.foyer-marquee-container:hover .foyer-direction-indicator {
    opacity: 0.5;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Başlangıçta gizli */
    width: 90%;
    max-width: 500px;
    background: var(--ink);
    color: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 2147483647;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--sand);
}

    .cookie-banner.visible {
        transform: translateX(-50%) translateY(0);
    }

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--stone);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer; /* Masaüstü için */
    border-radius: 100px;
    transition: all 0.3s ease;
}

    /* Reddet butonu */
    .cookie-btn.outline {
        background: transparent;
        border: 1px solid var(--stone);
        color: var(--stone);
    }

        .cookie-btn.outline:hover {
            border-color: var(--cream);
            color: var(--cream);
        }

    /* Kabul et butonu */
    .cookie-btn.filled {
        background: var(--electric);
        border: 1px solid var(--electric);
        color: var(--cream);
    }

        .cookie-btn.filled:hover {
            background: var(--coral);
            border-color: var(--coral);
        }