/* ===========================
   MED YAPI - Premium Landing Page
   Design: Apple.com meets Adobe.com
   =========================== */

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

:root {
    /* Light Color Palette */
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #f1f5f9;
    --color-bg-tertiary: #e2e8f0;
    --color-surface: rgba(255, 255, 255, 0.8);
    --color-surface-hover: rgba(255, 255, 255, 0.95);

    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b;

    --color-accent-primary: #2196f3;
    --color-accent-secondary: #1976d2;
    --color-accent-blue: #42a5f5;
    --color-accent-dark: #0d47a1;

    --color-border: rgba(33, 150, 243, 0.12);
    --color-border-hover: rgba(33, 150, 243, 0.25);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-accent-primary);
    color: #ffffff;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.nav-brand:hover {
    transform: translateY(-2px);
}

.nav-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(33, 150, 243, 0.3));
    transition: filter var(--transition-fast);
}

.nav-logo:hover {
    filter: drop-shadow(0 4px 12px rgba(33, 150, 243, 0.5));
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-primary);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none;
}

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

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

@media (max-width: 768px) {
    .nav-logo {
        height: 32px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--spacing-md);
        border-top: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-normal);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg,
        #ffffff 0%,
        var(--color-bg-primary) 50%,
        var(--color-bg-secondary) 100%);
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(33, 150, 243, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(25, 118, 210, 0.06) 0%, transparent 50%);
    animation: parallaxFloat 20s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.architectural-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.1;
    animation: gridPulse 10s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.15; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    display: block;
    filter: drop-shadow(0 4px 24px rgba(33, 150, 243, 0.2));
    animation: fadeInUp 1s ease-out 0.1s backwards;
    transition: filter var(--transition-normal);
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-accent-primary);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg,
        var(--color-accent-primary) 0%,
        var(--color-accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-text-secondary);
    border-radius: 2px;
    animation: mouseScroll 1.5s ease-in-out infinite;
}

@keyframes mouseScroll {
    0%, 100% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0.5;
    }
}

.scroll-indicator p {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--color-accent-primary);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--color-accent-secondary);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.875rem;
    }

    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }

    .btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ===========================
   Section Styles
   =========================== */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

section.section-blur {
    filter: blur(6px) brightness(0.95);
    opacity: 0.6;
    transform: scale(0.98);
    pointer-events: none;
}

section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===========================
   Gallery Section - Premium Design
   =========================== */
.gallery {
    background: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-loader {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-sm);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-surface);
    border-top-color: var(--color-accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.gallery-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-bg-primary);
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.5s ease-out;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.3);
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.7) 70%,
        transparent 100%);
    color: white;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-overlay {
    padding-bottom: calc(var(--spacing-lg) + 8px);
}

.gallery-overlay h3 {
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-overlay p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-overlay .image-count {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(33, 150, 243, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* View Project Button (appears on hover) */
.gallery-card::after {
    content: 'Görüntüle →';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-accent-primary);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: var(--spacing-md);
    }

    .gallery-card {
        aspect-ratio: 3/4;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: var(--spacing-md);
        padding-bottom: var(--spacing-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--color-accent-primary) rgba(0, 0, 0, 0.1);
    }

    .gallery-grid::-webkit-scrollbar {
        height: 8px;
    }

    .gallery-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background: var(--color-accent-primary);
        border-radius: 10px;
    }

    .gallery-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        aspect-ratio: 3/4;
    }

    .gallery-card::after {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }

    .gallery-overlay h3 {
        font-size: 1.125rem;
    }

    .gallery-overlay p {
        font-size: 0.875rem;
    }
}

/* ===========================
   Services Section
   =========================== */
.services {
    background: #f8fafc;
}

.services-list {
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-item:hover .service-number {
    color: var(--color-accent-primary);
    transform: scale(1.05);
}

.service-number {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-tertiary);
    line-height: 1;
    opacity: 0.3;
    transition: all var(--transition-normal);
}

.service-content h3 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.service-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    max-width: 700px;
}

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
        gap: 0;
        padding: var(--spacing-lg);
        position: relative;
        margin-bottom: var(--spacing-md);
    }

    .service-number {
        position: absolute;
        top: var(--spacing-lg);
        right: var(--spacing-lg);
        font-size: 3rem;
        opacity: 0.1;
        color: var(--color-accent-primary);
    }

    .service-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .service-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

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

    .service-item:hover .service-number {
        transform: none;
    }
}

/* ===========================
   Service Areas Section
   =========================== */
.service-areas {
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.areas-map {
    position: relative;
    max-width: 900px;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.grid-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(33, 150, 243, 0.15) 2px, transparent 2px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.15) 2px, transparent 2px),
        linear-gradient(rgba(33, 150, 243, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.05) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 30px 30px, 30px 30px;
    background-position: center;
    transform: rotateX(60deg) rotateZ(0deg);
    transform-origin: center center;
    animation: gridFloat 8s ease-in-out infinite;
    opacity: 0.5;
    z-index: 0;
}

.grid-3d::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(33, 150, 243, 0.15) 0%, transparent 70%);
    animation: gridPulseGlow 4s ease-in-out infinite;
}

@keyframes gridPulseGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes gridFloat {
    0%, 100% {
        transform: rotateX(60deg) rotateZ(0deg) translateY(0);
    }
    50% {
        transform: rotateX(60deg) rotateZ(2deg) translateY(-10px);
    }
}

.area-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 2;
}

.area-marker:hover {
    z-index: 3;
}

.marker-pin {
    width: 12px;
    height: 12px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow:
        0 0 0 4px rgba(33, 150, 243, 0.2),
        0 0 20px rgba(33, 150, 243, 0.4),
        0 0 40px rgba(33, 150, 243, 0.2);
    transition: all var(--transition-normal);
    position: relative;
}

.marker-pin::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-accent-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.4;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

.area-marker.center .marker-pin {
    width: 16px;
    height: 16px;
    box-shadow:
        0 0 0 6px rgba(33, 150, 243, 0.25),
        0 0 25px rgba(33, 150, 243, 0.5),
        0 0 50px rgba(33, 150, 243, 0.3);
}

.area-marker:hover .marker-pin {
    transform: scale(1.3);
    box-shadow:
        0 0 0 6px rgba(33, 150, 243, 0.3),
        0 0 30px rgba(33, 150, 243, 0.6),
        0 0 60px rgba(33, 150, 243, 0.4);
}

.marker-name {
    text-align: center;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-top: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.marker-coords {
    text-align: center;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    color: var(--color-accent-primary);
    margin-top: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: rgba(33, 150, 243, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(5px);
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.15);
}

.marker-info {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.35rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all var(--transition-normal);
    max-width: 180px;
}

.area-marker:hover .marker-info {
    opacity: 1;
    transform: translateY(0);
}


/* Positioning based on real geography from GeoJSON */
/* Longitude: 26.37 (Çeşme) to 26.88 (Güzelbahçe) */
/* Latitude: 38.16 (Seferihisar) to 38.33 (Güzelbahçe) */

/* Çeşme: [26.3726441, 38.3173229] - En batıda */
.area-cesme {
    top: 15%;
    left: 5%;
}

/* Urla: [26.663271, 38.2862017] - Ortada, biraz altta */
.area-urla {
    top: 40%;
    left: 48%;
    transform: translateX(-50%);
}

/* Güzelbahçe: [26.881647, 38.335247] - En doğuda, en üstte */
.area-guzelbahce {
    top: 8%;
    left: 88%;
    transform: translateX(-50%);
}

/* Seferihisar: [26.8715913, 38.169669] - En doğuda, en altta */
.area-seferihisar {
    bottom: 10%;
    left: 86%;
    transform: translateX(-50%);
}


@media (max-width: 768px) {
    .areas-map {
        max-width: 100%;
        aspect-ratio: 4 / 3;
        perspective: 800px;
    }

    .grid-3d {
        background-size: 40px 40px;
        opacity: 0.3;
    }

    .area-marker {
        gap: 0.5rem;
    }

    .marker-pin {
        width: 10px;
        height: 10px;
    }

    .area-marker.center .marker-pin {
        width: 14px;
        height: 14px;
    }

    .marker-name {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }

    .marker-coords {
        display: none;
    }

    .marker-info {
        display: none;
    }

    /* Mobil için özel pozisyonlar - daha açık yerleştirme */
    .area-cesme {
        top: 12%;
        left: 8%;
        transform: none;
    }

    .area-urla {
        top: 38%;
        left: 35%;
        transform: translateX(-50%);
    }

    .area-guzelbahce {
        top: 5%;
        left: 75%;
        transform: translateX(-50%);
    }

    .area-seferihisar {
        bottom: 8%;
        left: 78%;
        transform: translateX(-50%);
    }

}

/* ===========================
   About Section - 2 Column Layout
   =========================== */
.about {
    background: #ffffff;
    padding: calc(var(--spacing-2xl) * 1.5) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: calc(var(--spacing-2xl) * 1.5);
    align-items: start;
}

.about-image {
}

.founder-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
}

.about-content {
}

.about-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-md);
}

.about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.about-text {
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.about-quote {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    font-style: italic;
    margin: var(--spacing-lg) 0 var(--spacing-md);
    padding-left: var(--spacing-lg);
    border-left: 3px solid var(--color-accent-primary);
}

.quote-author {
    margin-bottom: var(--spacing-lg);
}

.author-name {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9375rem;
    color: var(--color-text-tertiary);
    font-weight: var(--font-weight-regular);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

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

.stat-value {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-accent-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-regular);
}

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .about {
        padding: var(--spacing-xl) 0;
    }

    .about-grid {
        gap: var(--spacing-lg);
    }

    .about-label {
        font-size: 0.6875rem;
        margin-bottom: var(--spacing-xs);
    }

    .about-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--spacing-md);
    }

    .about-text {
        margin-bottom: var(--spacing-md);
    }

    .about-text p {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: var(--spacing-md);
    }

    .about-quote {
        font-size: 1rem;
        padding-left: var(--spacing-md);
        margin: var(--spacing-md) 0 var(--spacing-sm);
    }

    .quote-author {
        margin-bottom: var(--spacing-md);
    }

    .author-name {
        font-size: 0.9375rem;
    }

    .author-title {
        font-size: 0.875rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }
}

/* ===========================
   Contact Section - Minimal Layout
   =========================== */
.contact {
    background: #f8fafc;
    padding: calc(var(--spacing-2xl) * 1.5) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.contact-info {
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.contact-subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.detail-item {
}

.detail-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
}

.detail-text {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text-primary);
}

.detail-text a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.detail-text a:hover {
    color: var(--color-accent-primary);
}

.contact-map {
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .contact-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: var(--spacing-xl) 0;
    }

    .contact-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--spacing-xs);
    }

    .contact-subtitle {
        font-size: 0.9375rem;
        margin-bottom: var(--spacing-lg);
    }

    .contact-details {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .detail-label {
        font-size: 0.6875rem;
    }

    .detail-text {
        font-size: 0.9375rem;
    }

    .contact-map {
        height: 300px;
    }
}

/* ===========================
   Footer - Minimal Apple Style
   =========================== */
.footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: calc(var(--spacing-xl) * 1.5);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-brand p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 300px;
    font-size: 0.9375rem;
}

.footer-links {
    display: contents;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-tertiary);
    font-size: 0.8125rem;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: var(--spacing-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-brand {
        padding-bottom: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        align-items: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-column {
        gap: 0.5rem;
        align-items: center;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* ===========================
   Scroll Animations
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* ===========================
   Gallery Image Counter Badge
   =========================== */
.gallery-overlay .image-count {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(33, 150, 243, 0.9);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    margin-top: 0.5rem;
}

/* ===========================
   Project Modal / Lightbox
   =========================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 var(--spacing-md);
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border);
}

.tab-button {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-tertiary);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.tab-button:hover {
    color: var(--color-text-primary);
}

.tab-button.active {
    color: var(--color-accent-primary);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent-primary);
}

.tab-content {
    display: none;
    padding: var(--spacing-md);
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* Content Tab */
.content-tab-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.modal-details {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: var(--spacing-md);
    border-left: 3px solid var(--color-accent-primary);
}

.details-heading {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.project-details-text {
    color: var(--color-text-secondary);
}

.detail-heading {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.detail-paragraph {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.no-details {
    color: var(--color-text-tertiary);
    font-style: italic;
}

/* Content Thumbnails */
.thumbnails-heading {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.content-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.content-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.content-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.modal-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin: 0;
}

.modal-gallery {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    min-height: 400px;
    overflow: hidden;
}

.gallery-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.gallery-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.gallery-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-prev {
    left: var(--spacing-md);
}

.gallery-next {
    right: var(--spacing-md);
}

.gallery-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    overflow-x: auto;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-primary) var(--color-surface);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--color-surface);
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-accent-primary);
    border-radius: 3px;
}

.gallery-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.gallery-thumb:hover {
    border-color: var(--color-accent-primary);
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.image-counter {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}

.image-counter .current-image {
    color: var(--color-accent-primary);
    font-weight: var(--font-weight-semibold);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        font-size: 1.25rem;
    }

    .modal-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .modal-title {
        font-size: 1.125rem;
    }

    .modal-description {
        font-size: 0.8125rem;
    }

    .modal-gallery {
        min-height: 300px;
    }

    .gallery-image {
        max-height: 350px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .gallery-prev {
        left: var(--spacing-sm);
    }

    .gallery-next {
        right: var(--spacing-sm);
    }

    .gallery-thumb {
        flex: 0 0 60px;
        height: 45px;
    }

    .modal-tabs {
        padding: 0 var(--spacing-sm);
        overflow-x: auto;
    }

    .tab-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .tab-content {
        padding: var(--spacing-sm);
        max-height: calc(90vh - 120px);
    }

    .content-thumbs-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: var(--spacing-sm);
    }

    .modal-details {
        padding: var(--spacing-sm);
    }

    .details-heading,
    .thumbnails-heading {
        font-size: 0.9375rem;
    }

    .detail-paragraph {
        font-size: 0.8125rem;
    }

    .content-tab-inner {
        gap: var(--spacing-md);
    }
}

/* ===========================
   Cinematic Slideshow
   =========================== */

.cinematic-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.cinematic-slideshow.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Play Button - Minimal Icon */
.modal-play-btn {
    position: absolute;
    top: 1.5rem;
    right: 5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 150, 243, 0.1);
    color: var(--color-accent-primary);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.modal-play-btn:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: var(--color-accent-primary);
    transform: scale(1.1);
}

.modal-play-btn svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.modal-play-btn span {
    display: none;
}

/* Slideshow Image Container */
.slideshow-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ken Burns Effects - Slow and Cinematic */
@keyframes kenBurnsZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

@keyframes kenBurnsZoomOut {
    0% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes kenBurnsPanLeft {
    0% {
        transform: scale(1.15) translateX(0);
    }
    100% {
        transform: scale(1.15) translateX(-5%);
    }
}

@keyframes kenBurnsPanRight {
    0% {
        transform: scale(1.15) translateX(0);
    }
    100% {
        transform: scale(1.15) translateX(5%);
    }
}

@keyframes kenBurnsPanUp {
    0% {
        transform: scale(1.15) translateY(0);
    }
    100% {
        transform: scale(1.15) translateY(-5%);
    }
}

@keyframes kenBurnsPanDown {
    0% {
        transform: scale(1.15) translateY(0);
    }
    100% {
        transform: scale(1.15) translateY(5%);
    }
}

@keyframes kenBurnsZoomPanLeft {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1.2) translateX(-4%);
    }
}

@keyframes kenBurnsZoomPanRight {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1.2) translateX(4%);
    }
}

/* Apply Ken Burns Effects */
.ken-burns-zoomIn {
    animation: kenBurnsZoomIn 10s ease-out forwards;
}

.ken-burns-zoomOut {
    animation: kenBurnsZoomOut 10s ease-out forwards;
}

.ken-burns-panLeft {
    animation: kenBurnsPanLeft 12s ease-in-out forwards;
}

.ken-burns-panRight {
    animation: kenBurnsPanRight 12s ease-in-out forwards;
}

.ken-burns-panUp {
    animation: kenBurnsPanUp 12s ease-in-out forwards;
}

.ken-burns-panDown {
    animation: kenBurnsPanDown 12s ease-in-out forwards;
}

.ken-burns-zoomPanLeft {
    animation: kenBurnsZoomPanLeft 11s ease-in-out forwards;
}

.ken-burns-zoomPanRight {
    animation: kenBurnsZoomPanRight 11s ease-in-out forwards;
}

/* Close Button */
.slideshow-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10002;
    transition: all var(--transition-normal);
    opacity: 0.6;
}

.slideshow-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.05);
}

.slideshow-close svg {
    width: 20px;
    height: 20px;
}

/* Project Info Overlay */
.slideshow-info {
    position: fixed;
    bottom: 4rem;
    left: 4rem;
    max-width: 600px;
    color: white;
    z-index: 10001;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
}

.slideshow-project-name {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.slideshow-project-description {
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    opacity: 0.9;
    line-height: 1.5;
}

/* Project Transition - Full Screen Title */
.cinematic-slideshow.show-project-info .slideshow-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 80%;
    opacity: 1;
}

.cinematic-slideshow.show-project-info .slideshow-project-name {
    font-size: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.cinematic-slideshow.show-project-info .slideshow-project-description {
    font-size: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.slideshow-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10001;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent-primary), #42a5f5);
    box-shadow: 0 0 10px var(--color-accent-primary);
    transition: width 1s linear;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slideshow-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

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

    .slideshow-info {
        bottom: 2rem;
        left: 2rem;
        right: 2rem;
        max-width: calc(100% - 4rem);
    }

    .slideshow-project-name {
        font-size: 1.75rem;
    }

    .slideshow-project-description {
        font-size: 0.9375rem;
    }

    .cinematic-slideshow.show-project-info .slideshow-project-name {
        font-size: 2.5rem;
    }

    .cinematic-slideshow.show-project-info .slideshow-project-description {
        font-size: 1.125rem;
    }

    .modal-play-btn {
        top: 1rem;
        right: 4rem;
        width: 36px;
        height: 36px;
    }

    .modal-play-btn svg {
        width: 16px;
        height: 16px;
    }
}
