/* Windsurf AI / Modern Dark Theme Spesifikasyonları */
:root {
    --bg-primary: #020617;      /* Derin Siber Mavi (Arka Plan) */
    --bg-secondary: #0f172a;    /* Koyu Slate Mavi (Kartlar/Footer) */
    --text-header: #f1f5f9;     /* Başlıklar (Daha canlı, soğuk beyaz) */
    --text-desc: #94a3b8;       /* Açıklamalar (Mavi tonlu gri) */
    --accent-blue: #06b6d4;     /* Ana Vurgu (Siber Turkuaz - Butonlar) */
    --accent-purple: #3b82f6;   /* İkincil Vurgu (Elektrik Mavisi - İkonlar) */
    --border: #1e293b;          /* İnce kenarlıklar (Mavi tabanlı koyu gri) */
    --bg-primary: #e2e8f0;      /* Daha Belirgin Gri (Arka Plan) */
    --bg-secondary: #ffffff;    /* Tam Beyaz (Kartlar/Footer) */
    --text-header: #1e293b;     /* Koyu Lacivert/Gri (Başlıklar) */
    --text-desc: #64748b;       /* Orta Gri (Açıklamalar) */
    --accent-blue: #0ea5e9;     /* Canlı Gök Mavisi (Vurgu) */
    --accent-purple: #6366f1;   /* İndigo (İkincil Vurgu) */
    --border: #e2e8f0;          /* Açık Gri Kenarlıklar */
    --font-stack: 'Inter', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Yatay taşmayı engelle */
    width: 100%;
    overflow-y: scroll; /* Scrollbar her zaman yer kaplasın (Sayfa geçişinde zıplamayı önler) */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-desc);
    font-family: var(--font-stack);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sticky footer için daha modern yöntem */
    width: 100%;
    overflow-x: hidden; /* Çift koruma */
    position: relative;
}

/* 2. Header Yapısı */
header {
    background: transparent; /* Arkaplan tamamen şeffaf, elemanlar havada durur */
    border: none;
    box-shadow: none; /* 3D gölgeler ve parlamalar tamamen kaldırıldı */
    padding: 0 40px;
    height: 85px; /* Logonun büyümesi için header yüksekliği artırıldı */
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0; /* Tam genişlik, üstten ve kenarlardan boşluksuz */
    right: 0;
    z-index: 1000;
    border-radius: 0; /* Alt oval köşeler kaldırıldı */
    width: 100%;
    transition: all 0.4s ease;
    pointer-events: none; /* Menü aralarındaki boşluklardan sayfa tıklanabilsin */
}

/* Logo Alanı */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    perspective: 1000px; /* 3D derinlik hissi */
    pointer-events: auto; /* Logo tıklanabilir kalsın */
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 55px; /* Logo görseli büyütüldü */
    height: 55px;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-title {
    color: var(--accent-blue); /* Turkuaz Rengi */
    font-weight: 800;
    font-size: 1.5rem; /* Marka ismi büyütüldü */
    letter-spacing: 1px;
}

.logo-subtitle {
    color: var(--text-header);
    font-size: 0.85rem; /* Alt başlık büyütüldü */
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Orta Menü */
nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.03); /* Menü arkasına çok hafif bir zemin */
    background: rgba(0, 0, 0, 0.04); /* Menü arkasına çok hafif koyu zemin */
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: auto; /* Linklere tıklayabilmek için zorunlu */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px; /* Linkler arası boşluğu azalttık, padding ile halledeceğiz */
    position: relative;
    z-index: 2; /* Yazılar camın üstünde kalsın */
}

nav a {
    text-decoration: none;
    color: var(--text-desc); /* Pasifken biraz gri olsun */
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 20px; /* Tıklama alanını genişlet */
    display: block;
    border-radius: 30px;
}

nav a:hover, nav a.active {
    color: #fff; /* Aktif veya hover olunca beyaz */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.1); /* Üzerine gelince hafifçe büyüsün */
}

/* Hareketli 3D Cam Gösterge */
.nav-indicator {
    position: absolute;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); /* Renkli gradient */
    border-radius: 30px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3), /* Derinlik gölgesi */
        inset 0 1px 0 rgba(255, 255, 255, 0.2), /* Üst parlama */
        inset 0 -1px 0 rgba(255, 255, 255, 0.1), /* Alt parlama */
        0 4px 15px rgba(99, 102, 241, 0.3);
    z-index: 1; /* Yazının altında */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Apple tarzı yumuşak geçiş */
    opacity: 0; /* Başlangıçta gizli, JS ile görünecek */
    pointer-events: none;
}

/* Sepet İkonu (Glassmorphism) */
.cart-btn {
    margin-left: auto; /* En sağa yasla */
    margin-right: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-header);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: none; /* Sepet için düz ve sade görünüm */
    z-index: 1002; /* Hamburgerin yanında */
    pointer-events: auto; /* Sepet tıklanabilir kalsın */
}

.cart-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
    box-shadow: none;
    border-color: var(--accent-blue);
}

.cart-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

/* Hamburger Menü İkonu (Desktop'ta gizli) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Menünün üzerinde kalsın */
    pointer-events: auto; /* Hamburger tıklanabilir kalsın */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
    background-color: var(--text-header);
    border-radius: 3px;
}

/* Hamburger Animasyonu (X şekli) */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Header Giriş Animasyonları (Masaüstü Özel) --- */
@media (min-width: 769px) {
    .home-page .logo-container {
        opacity: 0;
        animation: slideInLogo 1.5s cubic-bezier(0.16, 1, 0.3, 1) both 0.3s;
        will-change: transform, opacity; /* Animasyon kasmasını engeller */
    }

    .home-page .cart-btn {
        opacity: 0;
        animation: slideInCart 1.5s cubic-bezier(0.16, 1, 0.3, 1) both 0.3s;
        will-change: transform, opacity;
    }

    body.home-page.visited-before .logo-container,
    body.home-page.visited-before .cart-btn {
        animation-delay: 0.1s !important; /* Hayalet beklemeyi siler */
    }

    /* Keyframes (Süzülme İşlemleri) */
    @keyframes slideInLogo { from { opacity: 0; transform: translateX(-100vw); } to { opacity: 1; transform: translateX(0); } }
    @keyframes slideInCart { from { opacity: 0; transform: translateX(100vw); } to { opacity: 1; transform: translateX(0); } }
}

/* Ana İçerik Alanı */
main {
    flex: 1 0 auto; /* İçerik azsa büyüsün, çoksa küçülmesin */
    padding: 125px 40px 60px 40px; /* Header boyu arttığı için içerik ezilmesin diye üst boşluk artırıldı */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;

    /* Sayfa Geçiş Animasyonu Sadece İçerik İçin */
    opacity: 0;
        transition: opacity 0.6s ease;
}

/* Sayfa Yüklendiğinde İçerik */
body.loaded main {
    opacity: 1;
    }

    /* Yeni Sayfalara Çok Yönlü Giriş (Sağ, Sol, Üst, Alt Kaya Kaya Gelme) */
    body.loaded:not(.home-page) main > h1 {
        animation: enterFromTop 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.1s;
    }

    body.loaded:not(.home-page) main > p {
        animation: enterFromBottom 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.3s;
}

/* Sayfadan Çıkarken İçerik */
body.exiting main {
    opacity: 0;
    transform: translateX(-30px);
}

/* --- Sayfa Geçişlerinde Karanlık Tema Parlaması (Glow Wash) --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 85%); /* Çok daha hafif ve saydam renk geçişi */
    z-index: 9999; /* Her şeyin üstünde ama tıklamaları engellemez */
    pointer-events: none;
    opacity: 0;
}

/* Sayfadan Çıkarken Artan Parlama */
body.split-out::after {
    animation: glowFadeIn 0.25s ease-out forwards; /* Akıcı ve yumuşak geçiş */
}

/* Yeni Sayfaya Girildiğinde Yavaşça Sönen Parlama */
body.loaded:not(.split-out)::after {
    animation: glowFadeOut 0.8s ease-out forwards; /* Hızlı ama pürüzsüz sönme */
}

/* Diğer Sayfalar İçin Menüden Tıklanınca Yumuşak Çıkış Efekti */
body.split-out:not(.home-page) main {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.25s ease; /* Kasmayan, çok akıcı çıkış hızı */
}

@keyframes glowFadeOut {
    0% { opacity: 1; } 
    100% { opacity: 0; } /* Kasmayı ve ekran patlamalarını önlemek için filter ve display komutları silindi */
}

@keyframes glowFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; } 
}

    @keyframes enterFromTop {
        from { opacity: 0; transform: translateY(-50px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes enterFromBottom {
        from { opacity: 0; transform: translateY(50px); }
        to { opacity: 1; transform: translateY(0); }
    }

/* 3. Hero Section & Tipografi */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 60vh;
    position: relative; /* Arka plan objeleri için referans */
    width: 100%;
}

/* Hero Content Dinamik Kayma (Waterfall) Animasyonları */
.home-page .hero-content h1,
.home-page .hero-content p,
.home-page .hero-content .btn-primary,
.home-page .hero-visual {
    opacity: 0;
    will-change: transform, opacity; /* Sayfa değişimlerindeki kasıntıyı önler */
}

.home-page .hero-content h1 {
    animation: slideUpFade 1.5s cubic-bezier(0.16, 1, 0.3, 1) both 2.0s; 
}

.home-page .hero-content p {
    animation: slideUpFade 1.5s cubic-bezier(0.16, 1, 0.3, 1) both 2.2s;
}

.home-page .hero-content .btn-primary {
    animation: slideUpFade 1.5s cubic-bezier(0.16, 1, 0.3, 1) both 2.4s;
}

.home-page .hero-visual {
    animation: slideUpPanel 1.5s cubic-bezier(0.16, 1, 0.3, 1) both 2.0s; 
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); clip-path: inset(0 100% 0 0); } /* Soldan sağa dolarak gelir */
    to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}

@keyframes slideUpPanel {
    from { opacity: 0; transform: translateY(100px); } /* Siyah panel için daha güçlü alt süzülme (clip-path yok) */
    to { opacity: 1; transform: translateY(0); }
}
/* Standart Ana Sayfa Çıkış (Split Out) Animasyonları */
body.split-out:not(.blog-transition) .hero-content {
    animation: slideOutLeft 0.4s cubic-bezier(0.8, 0, 0.2, 1) forwards !important;
    animation-delay: 0s !important;
}

body.split-out:not(.blog-transition) .hero-visual {
    animation: slideOutRight 0.4s cubic-bezier(0.8, 0, 0.2, 1) forwards !important;
    animation-delay: 0s !important;
}

body.split-out:not(.blog-transition) .square-1,
body.home-page.visited-before.split-out:not(.blog-transition) .square-1 {
    animation: square1RollOutRight 0.6s cubic-bezier(0.5, 0, 0.2, 1) forwards !important;
    animation-delay: 0.1s !important;
}

body.split-out:not(.blog-transition) .square-2,
body.home-page.visited-before.split-out:not(.blog-transition) .square-2 {
    animation: square2RollOutLeft 0.6s cubic-bezier(0.5, 0, 0.2, 1) forwards !important; 
    animation-delay: 0.1s !important; 
}

/* SADECE BLOG'A TIKLANDIĞINDA ÇALIŞACAK HAFİF GEÇİŞ */
body.blog-transition .hero-content h1 {
    animation: slideOutUp 0.6s ease forwards !important;
    animation-delay: 0s !important;
}

body.blog-transition .hero-content p,
body.blog-transition .hero-content .btn-primary {
    animation: slideOutDown 0.6s ease forwards !important;
    animation-delay: 0s !important;
}

body.blog-transition .hero-visual {
    animation: panelSlideFadeRight 0.6s ease forwards !important; /* Panel sağa hafifçe süzülür */
    animation-delay: 0s !important;
}

body.blog-transition .square-1,
body.home-page.visited-before.blog-transition .square-1 {
    animation: squareRollOutLeft 0.6s ease forwards !important;
    animation-delay: 0s !important;
}

body.blog-transition .square-2,
body.home-page.visited-before.blog-transition .square-2 {
    animation: squareRollOutRight 0.6s ease forwards !important;
    animation-delay: 0s !important; 
}

@keyframes slideOutUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-150px); } /* Ani küçülmeyi silip daha ağır ve uzağa kaydırdık */
}

@keyframes slideOutDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(150px); } 
}

@keyframes panelExpandColor {
    0% { transform: scale(1); filter: hue-rotate(0deg); opacity: 1; }
    100% { transform: scale(15); filter: hue-rotate(280deg) brightness(1); opacity: 1; } /* Beyaz ekran patlamasını önlemek için parlaklık kaldırıldı, scale küçültüldü */
}

    from { opacity: 1; transform: translateX(0) rotate(-15deg); }
    to { opacity: 0; transform: translateX(-150vw) rotate(-705deg); }
}

@keyframes squareRollOutRight {
    from { opacity: 1; transform: translateX(0) rotate(10deg); }
    to { opacity: 0; transform: translateX(150vw) rotate(710deg); }
}

@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-200vw); } 
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(200vw); } 
}

@keyframes square1RollOutRight {
    from { opacity: 1; transform: translateX(0) rotate(-15deg); }
    to { opacity: 1; transform: translateX(150vw) rotate(705deg); }
}

@keyframes square2RollOutLeft {
    from { opacity: 1; transform: translateX(0) rotate(10deg); }
    to { opacity: 1; transform: translateX(-150vw) rotate(-710deg); } 
}

h1 {
    color: var(--text-header);
    margin-bottom: 20px;
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
}

/* --- Modern Animasyonlu Başlık Stili --- */
.modern-title {
    font-size: 3rem !important;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-header) 20%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 10px;
}

.highlight-blue {
    color: var(--accent-blue);
    display: block;
}

p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-desc);
    line-height: 1.6;
}

/* --- 3D Arka Plan Objeleri --- */
.bg-3d-obj {
    position: absolute;
    z-index: -1; /* İçeriğin arkasında kalsın */
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.15); /* Daha belirgin mavi */
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    opacity: 0.9;
    z-index: -2; /* En arkada */
    will-change: transform, opacity; /* GPU kasmasını kökünden çözer */
}

/* Sabit Kare 1 (Sol Üst - Mor) */
.square-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), transparent); /* Mor Renk */
    animation: comeInLeft 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) both 1.0s;
}

/* Sabit Kare 2 (Sağ Alt - Mavi) */
.square-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: -50px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.5), transparent); /* Mavi Renk */
    animation: comeInRight 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) both 1.2s;
}

/* Giriş Animasyonları */
@keyframes comeInLeft {
    from { opacity: 0; transform: translateX(-150px) rotate(-30deg); }
    to { opacity: 1; transform: translateX(0) rotate(-15deg); }
}

@keyframes comeInRight {
    from { opacity: 0; transform: translateX(150px) rotate(30deg); }
    to { opacity: 1; transform: translateX(0) rotate(10deg); }
}

/* Ziyaret Edilmiş Ana Sayfa: Hayalet Bekleme (Ghost Delay) Sürelerini Kısaltır */
body.home-page.visited-before .square-1 { animation-delay: 0.5s !important; }
body.home-page.visited-before .square-2 { animation-delay: 0.7s !important; }
body.home-page.visited-before .hero-content h1,
body.home-page.visited-before .hero-visual { animation-delay: 1.2s !important; }
body.home-page.visited-before .hero-content p { animation-delay: 1.4s !important; }
body.home-page.visited-before .hero-content .btn-primary { animation-delay: 1.6s !important; }

/* Yüzme (Floating) Animasyonu */
@keyframes floatImg {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* CTA Butonu */
.btn-primary {
    background-color: var(--accent-blue);
    color: #000;
    color: #fff; /* Beyaz yazı */
    padding: 14px 32px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(125, 235, 255, 0.4);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    transform: scale(1.05);
}

/* Buton Tıklanma Efekti (JS ile eklenir) */
.btn-primary.clicked {
    transform: scale(0.95);
}

/* Buton Yükleniyor (Loading) Durumu */
.btn-primary.loading {
    color: transparent !important;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(50% - 12px);
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinBtn 0.8s linear infinite;
}

@keyframes spinBtn {
    to { transform: rotate(360deg); }
}

/* IDE Görsel Sunumu (CSS Art) */
.ide-mockup {
    background-color: #020617;
    border: 1px solid #1e293b;
    background-color: #0f172a; /* IDE koyu kalmalı ki kodlar görünsün */
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
    aspect-ratio: 16/10;
}

.window-controls {
    background: #0f172a;
    background: #1e293b;
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #1e293b;
    border-bottom: 1px solid #334155;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.ide-body {
    display: flex;
    height: 100%;
}

.ide-sidebar {
    width: 50px;
    border-right: 1px solid #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
    gap: 15px;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    background: #1e293b;
    background: #334155;
    border-radius: 4px;
}

.ide-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #020617;
    background: #0f172a;
}

.chat-interface {
    width: 80%;
    background: #0f172a;
    border: 1px solid #1e293b;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 15px;
    color: var(--text-desc);
    color: #cbd5e1;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Responsive */
/* Dikey PC Ekranları ve Laptoplar için Ara Geçiş (Çakışmayı Önler) */
@media (max-width: 1250px) {
    header {
        padding: 0 20px; /* Genişlik tam olduğu için sadece padding düşürülür */
    }

    /* Menüyü ortadan sağa taşı (Dikey ekranda çakışmayı önler) */
    nav {
        position: relative; /* Absolute yerine akışa dahil et */
        left: auto; /* Ortalamayı iptal et */
        transform: none; /* Ortalamayı iptal et */
        margin-left: auto; /* Sağa yasla */
        margin-right: 60px; /* Çok sağa yapışmasın, biraz sola al */
    }
}

@media (max-width: 1024px) {
    nav a {
        padding: 8px 12px; /* Link aralarını biraz sıkılaştır */
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 115px 15px 40px 15px; /* Mobilde header payını yeniden ayarla */
        overflow-x: hidden; /* Mobilde taşmayı engelle */
    }

    h1 {
        font-size: 2.2rem; /* Başlıkları mobilde ideal boyuta getir */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding-top: 20px;
    }

    .hero-content p {
        padding: 0 15px;
        font-size: 1rem;
    }
    
    /* --- Ana Sayfa IDE Paneli (Terminal) Mobil Optimizasyonu --- */
    .ide-mockup {
        aspect-ratio: auto; /* Sabit oranı mobilde serbest bırak */
        min-height: 180px;
    }
    .window-controls {
        padding: 8px 12px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
    .ide-sidebar {
        width: 35px; /* Yan menüyü mobilde daralt ki yazılara yer kalsın */
        padding-top: 10px;
        gap: 12px;
    }
    .sidebar-icon {
        width: 16px;
        height: 16px;
    }
    .chat-interface {
        width: 95%; /* Yazı alanı daha geniş alana yayılsın */
        padding: 10px 12px;
        font-size: 0.75rem; /* Yazılar mobilde taşmasın diye küçültüldü */
        text-align: left; /* Ortalama bozulmasını önle */
    }
    
    header {
        /* Mobilde logo, sepet ve hamburgeri hizala */
        padding: 0 20px;
        left: 0; /* Boşlukları sıfırla, tam ekran */
        right: 0;
        height: 75px; /* Mobilde de bar yüksekliğini artır */
        justify-content: flex-start; /* Flex düzenini manuel ayarla */
        gap: 15px;
    }
    
    .logo-container {
        margin-right: auto; /* Logoyu sola yasla, diğerlerini sağa it */
    }

    .cart-btn {
        margin-left: 0; /* Auto'yu iptal et */
        width: 40px;
        height: 40px;
        display: none; /* Mobilde normalde gizle, menü açılınca göster */
    }

    .hamburger {
        display: block; /* Mobilde göster */
    }
    
    /* Menü açılınca Hamburger'i (Çarpıyı) menünün içine sabitle */
    .hamburger.active {
        position: fixed;
        top: 30px;
        right: 30px; /* Menünün içinde, sağ köşede */
        left: auto; /* Sol tarafa gitmesini engelle */
        z-index: 1002; /* Menünün (1001) de üzerinde olsun */
    }
    
    .hamburger.active .bar {
        background-color: #f1f5f9; /* Çarpı ikonu koyu menüde belirgin olsun */
    }

    nav {
        position: fixed;
        left: unset;
        right: -100%; /* Ekran dışına it */
        top: 0;
        width: 75%; /* Ekranın tamamını kaplamasın */
        max-width: 300px;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.95); /* Koyu siber lacivert menü */
        backdrop-filter: blur(15px);
        display: flex; /* Block yerine Flex yapıyoruz ki alt kısmı hizalayabilelim */
        flex-direction: column;
        padding-top: 100px; /* Üstten boşluk */
        box-shadow: -5px 0 20px rgba(0,0,0,0.5); /* Menüye derinlik kat */
        transition: 0.4s ease;
        transform: none; /* Desktop ortalamasını iptal et */
        z-index: 1001; /* Header'ın (1000) üzerine çık, tam blok görün */
        border-radius: 30px 0 0 30px; /* Sol taraf oval, sağ taraf düz (ekrana sıfır) */
        margin-right: 0; /* Desktop'tan gelen sağ boşluğu sıfırla */
    }

    nav.active {
        right: 0; /* Ekrana getir */
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Linkler arası boşluğu azalttık */
        text-align: center;
        margin-bottom: auto; /* Linkleri yukarı iter, footer'ı aşağı iter */
        width: 100%;
    }

    /* Linkler için başlangıç durumu (Gizli ve sağda) */
    nav ul li {
        opacity: 0;
        transform: translateX(50px);
    }

    nav a {
        font-size: 1.2rem; /* Mobilde daha kibar font */
        color: #f1f5f9; /* İsimlerin görünmesi için beyaz/açık renk */
        display: block;
        /* Mobilde Yatay Cam Blok Görünümü */
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 15px;
        width: 85%; /* Genişlik vererek yatay bar hissi */
        margin: 0 auto;
    }

    nav a:hover, nav a.active {
        background: var(--accent-blue);
        color: #fff;
        border-color: var(--accent-blue);
    }

    /* Menü açıldığında çalışacak animasyon */
    nav.active ul li {
        animation: slideInRight 0.5s ease forwards;
    }

    /* Sıralı Gecikmeler (Staggered Animation) */
    nav.active ul li:nth-child(1) { animation-delay: 0.1s; }
    nav.active ul li:nth-child(2) { animation-delay: 0.2s; }
    nav.active ul li:nth-child(3) { animation-delay: 0.3s; }
    nav.active ul li:nth-child(4) { animation-delay: 0.4s; }
    nav.active ul li:nth-child(5) { animation-delay: 0.5s; }

    /* PC'deki kayan göstergeyi mobilde gizle */
    .nav-indicator { display: none; }

    /* Mobil İçin Ek Düzenlemeler */
    #scrollTopBtn {
        width: 60px;
        height: 24px;
        top: -24px;
        background: var(--bg-secondary);
        box-shadow: none;
    }

    #scrollTopBtn::before {
        margin-top: 4px;
        width: 8px;
        height: 8px;
    }

    /* Mobilde dokunma/hover efektlerini iptal et */
    #scrollTopBtn:hover, #scrollTopBtn:active {
        background: var(--accent-blue) !important;
        height: 24px;
        top: -24px;
        box-shadow: none; /* Ekstra parlama olmasın */
    }

    .services-grid, .expertise-grid {
        grid-template-columns: 1fr 1fr; /* Mobilde 2 sütun yan yana */
        gap: 12px; /* Kartlar arası boşluk dengelendi */
    }

    .service-card {
        padding: 15px 8px; /* İçerik için daha fazla alan bırakıldı */
    }

    .service-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Uzmanlık Kartları Mobil Düzenlemesi */
    .expertise-card {
        padding: 15px 10px;
    }

    .exp-icon {
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .expertise-card h3 {
        font-size: 1rem;
    }

    .expertise-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Arka plan karelerini mobilde ortala ve düzenle */
    .square-1 {
        width: 120px;
        height: 120px;
        top: 20px;
        left: 50%;
        margin-left: -140px; /* Merkezden sola ofset */
        opacity: 0.4;
    }

    .square-2 {
        width: 140px;
        height: 140px;
        bottom: 25%;
        right: 50%;
        margin-right: -140px; /* Merkezden sağa ofset */
        opacity: 0.4;
    }
}

/* Aşağıdan Yukarı Menü Geliş Animasyonu */
@keyframes slideInUpMenu {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobil Menü Açıkken Arka Planı Gizle (Blur performansı çok yorduğu için) */
body.menu-active main,
body.menu-active header .logo-container {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Menü Açıkken Sepeti Yan Menüde Çarpının Soluna Taşı */
body.menu-active .cart-btn {
    display: flex;
    position: fixed;
    top: 20px; /* Çarpı (Hamburger) ile aynı dikey hizaya al */
    bottom: auto;
    right: 75px; /* Çarpının hemen soluna yerleştir */
    transform: none; /* Alt merkezleme hizasını iptal et */
    z-index: 1002;
    width: 40px; /* Kibar boyutuna geri döndür */
    height: 40px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Mobil Menü Footer (JS ile eklenir) */
.mobile-nav-footer {
    display: none; /* Desktopta gizli */
}

@media (max-width: 768px) {
    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-bottom: 40px;
        width: 100%;
        opacity: 0;
        animation: slideInUp 0.5s ease forwards 0.3s;
    }
    .footer-divider {
        width: 80%;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
    }
    .mobile-footer-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .footer-brand {
        color: #fff;
        font-weight: 600;
        font-size: 1.1rem; /* Logo ile uyumlu boyut */
    }
    /* Mobildeki footer logosunu yazı ile aynı boyuta getir */
    .mobile-footer-row .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border-radius: 8px;
        background: rgba(168, 85, 247, 0.1);
    }
    /* Logo kutusu için mevcut .logo-icon stilini kullanacağız veya JS'de class vereceğiz */
}

/* Yukarı Çık Butonu */
#scrollTopBtn {
    position: absolute;
    top: -28px; /* Footer üst çizgisinin hemen üstüne oturur */
    bottom: auto;
    left: 50%; /* Ortala */
    width: 80px;
    height: 28px;
    background: var(--bg-secondary);
    backdrop-filter: none;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 30px 30px 0 0; /* Tam oval şık yapı */
    cursor: pointer;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.02);
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover efekti (Yukarı hafif büyüme ve renklenme) */
#scrollTopBtn:hover {
    height: 35px;
    top: -35px;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 -5px 20px rgba(14, 165, 233, 0.3);
}

/* Ok Ucu (Chevron) */
#scrollTopBtn::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--accent-blue);
    border-left: 2px solid var(--accent-blue);
    transform: rotate(45deg); /* Yukarı bakan ok ucu */
    margin-top: 6px; /* Görsel ortalama */
    transition: border-color 0.3s ease;
}

#scrollTopBtn:hover::before {
    border-color: #fff;
}

/* Ana Sayfa ve Alt Sayfalar İçin Ortak Başlık Animasyonu */
.section-title-wrapper {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title-wrapper.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- İletişim Sayfası Yeni Tasarım --- */
.contact-wrapper {
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

/* İletişim Başlığı Sayfa Yüklenirken Gelsin */
body.loaded:not(.home-page) .contact-title-wrapper {
    animation: enterFromTop 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.1s;
}

body.loaded:not(.home-page) .contact-subtitle {
    animation: enterFromBottom 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.3s;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Genişlikler eşitlendi */
    gap: 40px;
    align-items: stretch; /* Yükseklikler eşitlendi */
}

/* Sol Taraf: Bilgi Kartları */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between; /* Kartları form yüksekliğine göre yay */
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateX(-100px) scale(0.9); /* Akıcılık için küçülerek gelme eklendi */
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:nth-child(1) { transition-delay: 0.1s; }
.info-card:nth-child(2) { transition-delay: 0.3s; }
.info-card:nth-child(3) { transition-delay: 0.5s; }

.info-card:hover {
    border-color: var(--accent-purple);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.1);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

.info-card.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* JS ile eklenecek aktif parlama sınıfı */
.info-card.active-highlight {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(125, 235, 255, 0.2);
    transform: translateX(10px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(168, 85, 247, 0.1);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.info-content h3 {
    color: #fff;
    color: var(--text-header);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-desc);
    font-size: 0.95rem;
    margin: 0;
}

/* Sağ Taraf: Form */
.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(100px) scale(0.95); /* Tok bir açılış için scale efekti eklendi */
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form-wrapper.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Form İçin Özel Keyframe (Inputs için Clip-Path sorunlarını önler) */
@keyframes slideUpFadeForm {
    from { opacity: 0; transform: translateY(60px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* İletişim Form Elemanları Şelale (Waterfall) Animasyonu */
.contact-form-wrapper .form-group,
.contact-form-wrapper .btn-primary {
    opacity: 0;
    transform: translateY(30px);
}

.contact-form-wrapper.show .form-group,
.contact-form-wrapper.show .btn-primary {
    animation: slideUpFadeForm 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-form-wrapper.show .form-group:nth-child(1) { animation-delay: 0.2s; }
.contact-form-wrapper.show .form-group:nth-child(2) { animation-delay: 0.4s; }
.contact-form-wrapper.show .form-group:nth-child(3) { animation-delay: 0.6s; }
.contact-form-wrapper.show .form-group:nth-child(4) { animation-delay: 0.8s; }
.contact-form-wrapper.show .btn-primary { animation-delay: 1.0s; }

/* Formun Gidiş Animasyonu */
.contact-form {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form.fade-out {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
    pointer-events: none;
}

/* Başarı Mesajı Stili */
.success-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Form ile aynı yüksekliği kaplasın */
    opacity: 0;
}

.success-message.active-success {
    display: flex !important;
    animation: popInSuccess 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popInSuccess {
    0% { opacity: 0; transform: scale(0.8) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.15); /* Lunor Mavisi Arka Plan */
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    border: 1px solid var(--accent-blue);
    transform: scale(0) rotate(-180deg);
    position: relative; /* Konfetilerin merkezden fırlaması için */
}

.success-message.active-success .success-icon {
    animation: successSpin 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

@keyframes successSpin {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0); }
}

.success-message h3 { color: #fff; margin-bottom: 10px; }
.success-message p { color: var(--text-desc); }

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 25px; /* İç boşluk artırıldı */
    background: rgba(255, 255, 255, 0.02); /* Hafif dolgu */
    background: #f1f5f9; /* Hafif gri dolgu */
    border: 1px solid var(--border); /* Tam çerçeve */
    border-radius: 50px; /* Tam yuvarlak (Elips) */
    color: #fff;
    color: var(--text-header);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-stack);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    border-radius: 25px; /* Textarea için hafif köşe */
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 25px; /* Yazı hizası */
    color: var(--text-desc);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: transparent;
}

/* Input Focus & Dolu Durumu Animasyonu */
.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(125, 235, 255, 0.1);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 20px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    background: var(--bg-secondary); /* Çizginin üstüne gelince arka planı kapat */
    padding: 0 8px;
    border-radius: 10px;
}

/* Chrome/Opera/Safari Otomatik Doldurma (Autofill) Rengi Düzeltmesi */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-secondary) inset !important;
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0 30px #f1f5f9 inset !important;
    -webkit-text-fill-color: var(--text-header) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: white;
}

/* Animasyonlar */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* Harita Bölümü */
.map-container {
    width: 100%;
    height: 250px; /* Şık ve kompakt */
    margin-top: 40px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    /* Haritayı koyu temaya uydurmak için filtre */
    filter: invert(90%) hue-rotate(180deg) contrast(90%);
    opacity: 0;
    transform: translateY(100px); /* Geliş mesafesi artırıldı */
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-container.show {
    opacity: 1;
    transform: translateY(0);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Sıkça Sorulan Sorular (SSS) --- */
.faq-section {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-section.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    color: var(--text-header);
}

.faq-grid {
    display: grid;
    gap: 15px;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    color: var(--text-header);
    transition: color 0.3s ease;
}

/* Varsayılan ok işaretini gizle */
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question {
    list-style: none;
}

/* Kendi '+' ikonumuzu oluştur */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s ease-in-out;
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--text-desc);
    transition: all 0.3s ease;
}

/* JS'deki .active sınıfı yerine [open] seçicisini kullan */
.faq-item[open] > .faq-answer {
    max-height: 200px; /* İçeriğe göre açılır */
    padding-bottom: 20px;
}

/* Soru açıkken '+' ikonunu 'x' e dönüştür */
.faq-item[open] > .faq-question::after {
    transform: rotate(45deg);
}

/* Responsive İletişim */
@media (max-width: 768px) {
    .contact-container { 
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-form-wrapper { 
        padding: 20px 15px;
        order: -1; /* Formu en üste taşı */
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 18px; /* Form boyunu dikeyde daralttık */
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 20px; /* İç boşlukları kibarlaştırdık */
    }

    .form-group label {
        top: 12px;
        left: 20px;
        font-size: 0.9rem;
    }

    /* İletişim Kartları Grid Düzeni (Footer Gibi) */
    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .info-card {
        padding: 15px 10px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    /* 1: Adres, 2: Telefon, 3: Email */
    .info-card:nth-child(2) { grid-column: 1 / 2; grid-row: 1 / 2; } /* Telefon Solda */
    .info-card:nth-child(3) { grid-column: 2 / 3; grid-row: 1 / 2; } /* Email Sağda */
    .info-card:nth-child(1) { 
        grid-column: 1 / 3; 
        grid-row: 2 / 3; 
        flex-direction: row; 
        text-align: left;
        padding: 15px;
    }

    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .info-content h3 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .info-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .map-container {
        height: 220px;
        margin-top: 15px;
    }
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #312e81 100%); /* Çok koyu yerine daha modern ve açık bir degrade */
    border-top: none; /* Klasik düz çizgiyi kaldır */
    padding: 60px 40px 20px 40px; /* Üst kavis için iç boşluğu artırdık */
    flex-shrink: 0; /* Footer'ın büzülmesini engelle */
    display: flex;
    flex-direction: column;
    gap: 30px; /* Elemanlar arası ferahlık */
    position: relative;
    overflow: visible; /* Yukarı çık butonunun dışa taşabilmesi için zorunlu */
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02); /* Üste doğru çok yumuşak bir derinlik */
}

/* Footer dalgalı zemin (Wavy background) */
footer::before {
    content: '';
    position: absolute;
    top: -24px; /* Dalganın yüksekliği kadar yukarı */
    left: 0;
    width: 100%;
    height: 25px; /* Dalga yüksekliği */
    background: #1e293b; /* Arka plana uyması için biraz açıldı */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q150,90 300,30 T600,30 T900,30 T1200,30 L1200,120 L0,120 Z' /%3E%3C/svg%3E") no-repeat center / 100% 100%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q150,90 300,30 T600,30 T900,30 T1200,30 L1200,120 L0,120 Z' /%3E%3C/svg%3E") no-repeat center / 100% 100%;
    z-index: 2;
    clip-path: inset(0 50% 0 50%); /* Ortadan başlama maskesi */
    transition: clip-path 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Footer üstü dalgalı parlayan çizgi (Glowing wavy line) */
footer::after {
    content: '';
    position: absolute;
    top: -26px; /* Zeminden 2px daha yukarıda kalarak ince bir parlayan çizgi oluşturur */
    left: 0;
    width: 100%;
    height: 25px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-purple), transparent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q150,90 300,30 T600,30 T900,30 T1200,30 L1200,120 L0,120 Z' /%3E%3C/svg%3E") no-repeat center / 100% 100%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q150,90 300,30 T600,30 T900,30 T1200,30 L1200,120 L0,120 Z' /%3E%3C/svg%3E") no-repeat center / 100% 100%;
    z-index: 1; /* Asıl zemin dalgasının arkasında dursun */
    opacity: 0.8;
    clip-path: inset(0 50% 0 50%); /* Ortadan başlama maskesi */
    transition: clip-path 2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; /* Hafif gecikmeli açılış */
}

footer.show::before, footer.show::after {
    clip-path: inset(0 0 0 0); /* Tam ekrana yayılma */
}

.footer-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-40px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

footer.show .footer-logo-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.footer-logo-img {
    width: 70px; /* Büyükçe logo */
    height: 70px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.footer-logo-text .logo-title {
    color: var(--accent-blue);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.footer-logo-text .logo-subtitle {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-middle {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-bottom: 30px;
}

.footer-contact-boxes {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    width: 100%;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

footer.show .contact-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

footer.show .contact-box:nth-child(1) { transition-delay: 0.3s; }
footer.show .contact-box:nth-child(2) { transition-delay: 0.5s; }
footer.show .contact-box:nth-child(3) { transition-delay: 0.7s; }

.contact-box:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-box:hover .contact-icon {
    transform: scale(1.15) rotate(-10deg);
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-detail {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-bottom {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    border-top: 1px dashed rgba(255, 255, 255, 0.15); /* Sıkıcı düz çizgi yerine enerjik kesik sınır */
    padding-top: 10px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* İçerik filigranın üstünde kalsın */
.footer-top, .footer-bottom, .footer-middle {
    position: relative;
    z-index: 1;
}

footer.show .footer-bottom {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition-delay: 0.3s;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 15px 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .footer-top {
        margin-bottom: 0;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .footer-middle {
        margin-bottom: 0;
        width: 100%;
    }
    .footer-logo-container {
        flex-direction: row; /* Logoyu sola, yazıyı sağa alır */
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    .footer-logo-img {
        width: 60px;
        height: 60px;
    }
    .footer-logo-text .logo-title {
        font-size: 1.3rem; /* Yan yana dizilimde daha şık durması için biraz büyüttük */
    }
    .footer-logo-text .logo-subtitle {
        font-size: 0.75rem;
        display: block;
    }
    .footer-contact-boxes {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Mobilde Yarı Yarıya (Email ve Telefon İçin) */
        gap: 12px;
        width: 100%;
    }
    .contact-box:nth-child(1) { grid-column: 1 / 2; }
    .contact-box:nth-child(2) { grid-column: 2 / 3; }
    .contact-box:nth-child(3) { 
        grid-column: 1 / 3; /* Adres için tam genişlik */
    }
    .contact-box {
        width: 100%;
        padding: 12px 10px;
        gap: 10px;
        flex-direction: row; /* İkon sola, yazılar sağa */
        text-align: left;
        align-items: center;
    }
    .contact-info-text {
        align-items: flex-start;
    }
    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
        border-radius: 10px;
    }
    .contact-title {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
    .contact-detail {
        font-size: 0.75rem;
        line-height: 1.3;
        word-break: break-word;
    }
    .footer-bottom {
        margin-top: 15px;
        padding-top: 15px;
        font-size: 0.85rem;
        color: #e2e8f0; /* Yazıyı çok daha belirgin beyaz/gri yapar */
        border-top: 1px solid rgba(255, 255, 255, 0.3); /* Çizgiyi daha görünür kılar */
        width: 100%;
        text-align: center;
    }
}

/* --- Yeni Ürünler Sayfası Tasarımı --- */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 40px 0;
    overflow-x: hidden; /* Animasyonla gelenlerin taşmasını engelle */
}

.product-row {
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0; /* JS ile görünür olacak */
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Çift numaralı ürünler (2, 4, 6...) ters dursun */
.product-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Scroll Animasyon Sınıfları */
.product-row.hidden-left {
    transform: translateX(-100px);
}

.product-row.hidden-right {
    transform: translateX(100px);
}

.product-row.show {
    opacity: 1;
    transform: translateX(0);
}

.product-visual {
    flex: 1;
    position: relative;
}

.product-visual img {
    width: 100%;
    height: 300px; /* Görsellerin yüksekliğini sabitledik */
    object-fit: cover; /* Görselin oranını bozmadan kutuya sığdırır */
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-visual img:hover {
    transform: scale(1.02);
    border-color: var(--accent-blue);
}

.product-details {
    flex: 1;
}

.product-row:nth-child(even) .product-details {
    text-align: right;
}

.product-details h2 {
    font-size: 2rem;
    color: #fff;
    color: var(--text-header);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.product-details h2, .product-details p {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-row:nth-child(even) .product-details h2,
.product-row:nth-child(even) .product-details p {
    clip-path: inset(0 0 0 100%);
}

.product-row.show .product-details h2 { clip-path: inset(0 0 0 0); transition-delay: 0.6s; }
.product-row.show .product-details p { clip-path: inset(0 0 0 0); transition-delay: 0.9s; }

.product-details h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-purple);
}

.product-row:nth-child(even) .product-details h2::after {
    left: auto;
    right: 0;
    background: var(--accent-blue);
}

@media (max-width: 768px) {
    .product-row {
        gap: 15px; /* Mobilde boşluğu azalt */
    }
    
    /* Görsel boyutunu küçült ve sabitle */
    .product-visual {
        flex: 0 0 30%; /* Genişliğin %30'u - Daha kompakt */
    }

    .product-visual img {
        height: 80px; /* Yükseklik daha da küçüldü */
    }

    /* Yazıları küçült */
    .product-details h2 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .product-details h2::after,
    .product-row:nth-child(even) .product-details h2::after {
        display: none; /* Mobilde alt çizgiyi kaldır */
    }

    .product-details p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* --- Hizmetler Sayfası Tasarımı --- */
.services-section {
    padding: 40px 0;
}

/* --- Hizmetler Sayfası Slider (Carousel) --- */
.carousel-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
}

.services-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 5px; /* Kart gölgeleri kesilmesin diye pay */
    -ms-overflow-style: none; /* IE ve Edge scrollbar gizleme */
    scrollbar-width: none; /* Firefox scrollbar gizleme */
    flex: 1;
}

.services-carousel::-webkit-scrollbar {
    display: none; /* Chrome ve Safari scrollbar gizleme */
}

.services-carousel .service-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: center;
}

.carousel-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-header);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.carousel-control:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: scale(1.1);
}

/* --- Ana Sayfa 3D Hizmetler Carousel (Coverflow) --- */
.home-3d-carousel {
    position: relative;
    width: 100vw; /* Ekranın TAMAMINI kaplayan konteyner */
    margin-left: calc(-50vw + 50%); /* <main> kısıtlamasını yıkar, tam ortalar */
    height: 550px; /* Animasyonlar için devasa alan */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    overflow: hidden; /* Yanlara taşan kısımları temizler */
    perspective: 2000px; /* Çark hissi için ideal açı */
}

/* Çakışmayı kökünden çözen ve ezilmeyi önleyen yüksek öncelikli seçici */
article.service-card.home-3d-card {
    position: absolute !important; /* Standart karttaki yan yana dizilimi ezer, üst üste bindirir */
    width: 78vw; /* Kenarlardan kısıldı, diğer kartlara yer açıldı */
    max-width: 1400px; /* Dolgunluk korundu ama sağ ve soldan boşluk bırakıldı */
    height: 450px; 
    display: flex;
    align-items: center;
    text-align: left; /* Yazılar sağda hizalı */
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6); /* Temayla bütünleşen cam zemin */
    backdrop-filter: blur(25px); /* Güçlü cam efekti */
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.9); /* Premium parlak sınır */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    padding: 0 !important; /* Standart kartın kalın boşluklarını sıfırlar */
    margin: 0 !important;
    overflow: hidden; /* İçerikler dışarı taşmasın */
}

article.service-card.home-3d-card::before {
    display: none; /* Üstteki standart animasyon çizgisini iptal edip Glow kullanıyoruz */
}

/* Sol Taraf: Animasyonlu Görsel Alanı */
.home-3d-card .card-visual {
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%); /* Şeffaf hisli zemin */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

/* Sağ Taraf: Metin Alanı */
.home-3d-card .card-text {
    width: 55%;
    padding: 60px 80px;
}

.home-3d-card .card-text h3 {
    font-size: 3.5rem; 
    margin-bottom: 20px;
    color: var(--text-header);
    font-weight: 800;
    line-height: 1.1;
}

.home-3d-card .card-text p {
    font-size: 1.25rem; 
    margin-bottom: 0;
    line-height: 1.7;
    color: var(--text-desc);
}

/* ----- Profesyonel Animasyonlu İkonlar (CSS Art) ----- */
.anim-icon {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ürün Geliştirme: Kesişen Dönen Halkalar */
.icon-rings .ring {
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--accent-blue);
    border-bottom-color: var(--accent-purple);
    transition: all 1s ease;
}
.icon-rings .ring:nth-child(1) { width: 100%; height: 100%; animation: spinRing 6s linear infinite; }
.icon-rings .ring:nth-child(2) { width: 75%; height: 75%; animation: spinRing 4s linear infinite reverse; border-top-color: var(--accent-purple); border-bottom-color: var(--accent-blue); }
.icon-rings .ring:nth-child(3) { width: 50%; height: 50%; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); animation: pulseCore 3s ease-in-out infinite; box-shadow: 0 0 30px rgba(14, 165, 233, 0.5); border: none; }

@keyframes spinRing { 100% { transform: rotate(360deg); } }
@keyframes pulseCore { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 50px rgba(99, 102, 241, 0.6); } }

/* Teknoloji Üretimi: Atan Çekirdek ve Düğümler */
.icon-core .core-center {
    width: 60px; height: 60px;
    background: var(--text-header);
    border-radius: 15px;
    transform: rotate(45deg);
    position: absolute;
    animation: coreBeat 2s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}
.icon-core .node {
    position: absolute; width: 15px; height: 15px; background: var(--accent-blue); border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-blue);
}
.icon-core .node:nth-child(2) { top: 10%; left: 50%; transform: translateX(-50%); animation: orbitNode 4s linear infinite; transform-origin: 50px 90px; }
.icon-core .node:nth-child(3) { bottom: 10%; left: 50%; transform: translateX(-50%); animation: orbitNode 4s linear infinite reverse; transform-origin: 50px -75px; background: var(--accent-purple); box-shadow: 0 0 15px var(--accent-purple); }

@keyframes coreBeat { 0%, 100% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(135deg) scale(1.3); border-radius: 50%; } }
@keyframes orbitNode { 100% { transform: translateX(-50%) rotate(360deg); } }

/* Yazılım Mühendisliği: Yüzen Kod Blokları */
.icon-code { flex-direction: column; gap: 15px; }
.code-line {
    height: 12px;
    background: rgba(14, 165, 233, 0.2);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.code-line::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    animation: codeScan 2s ease-in-out infinite;
}
.code-line:nth-child(1) { width: 140px; animation-delay: 0.1s; }
.code-line:nth-child(2) { width: 100px; margin-left: -40px; }
.code-line:nth-child(2)::after { animation-delay: 0.5s; background: linear-gradient(90deg, transparent, var(--accent-purple), transparent); }
.code-line:nth-child(3) { width: 160px; margin-left: 20px; }
.code-line:nth-child(3)::after { animation-delay: 1s; }

@keyframes codeScan { 100% { left: 200%; } }

/* ----- Akıcı, Dolgun, Ağır Geçiş Sınıfları (JS ile değişir) ----- */
article.service-card.home-3d-card {
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 1s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 1s ease,
                filter 1s ease !important; /* Buğulanma geçişini pürüzsüzleştirir */
}


/* --- Aktif Kart (Merkez) --- */
.home-3d-card.show.active {
    transform: translateX(0) translateZ(80px) scale(1) !important; /* Hafif öne fırlar */
    opacity: 1 !important;
    z-index: 3;
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.08), 
        0 10px 20px rgba(14, 165, 233, 0.1) !important;
    filter: blur(0px) brightness(100%); /* Odakta ve net */
    cursor: default;
}

/* --- Sol Kart (Silindir/Çark Üzerinde Arkaya Dönerek Giden) --- */
.home-3d-card.show.prev {
    transform: translateX(-68%) translateZ(-250px) scale(0.8) rotateY(15deg) !important; 
    opacity: 0.6 !important; 
    z-index: 1;
    filter: blur(6px) brightness(80%); /* Derinlik hissi için buğulu ve soluk */
}

/* --- Sağ Kart (Silindir/Çark Üzerinde Arkaya Dönerek Giden) --- */
.home-3d-card.show.next {
    transform: translateX(68%) translateZ(-250px) scale(0.8) rotateY(-15deg) !important; 
    opacity: 0.6 !important;
    z-index: 1;
    filter: blur(6px) brightness(80%); /* Derinlik hissi için buğulu ve soluk */
}

/* --- Hover (Tıklamaya Teşvik İçin) --- */
.home-3d-card.show.prev:hover {
    opacity: 0.9 !important;
    transform: translateX(-63%) translateZ(-200px) scale(0.85) rotateY(10deg) !important; 
    filter: blur(2px) brightness(95%); /* Tıklamadan önce hafifçe netleşir */
}

.home-3d-card.show.next:hover {
    opacity: 0.9 !important;
    transform: translateX(63%) translateZ(-200px) scale(0.85) rotateY(-10deg) !important;
    filter: blur(2px) brightness(95%);
}

/* Sadece Aktif Kartın Animasyonları Çalışsın (Performans ve Odak İçin) */
.home-3d-card:not(.active) .ring,
.home-3d-card:not(.active) .core-center,
.home-3d-card:not(.active) .node,
.home-3d-card:not(.active) .code-line::after {
    animation-play-state: paused;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0; /* JS ile açılacak */
    transform: translateY(50px); /* Aşağıdan yukarı premium süzülme */
}

/* Neler Yapıyoruz Kartlarının Sıralı Gelmesi (Staggered Animation) */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.3s; }
.service-card:nth-child(3) { transition-delay: 0.5s; }
.service-card:nth-child(4) { transition-delay: 0.7s; }
.service-card:nth-child(5) { transition-delay: 0.9s; }
.service-card:nth-child(6) { transition-delay: 1.1s; }

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    background: rgba(14, 165, 233, 0.08); /* İkon arkası elit kare kutu (Squircle) */
    border-radius: 22px; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg) translateY(-5px);
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
}

.service-card h3 {
    color: #fff;
    color: var(--text-header);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-desc);
    font-size: 0.95rem;
}

/* Kart Yazılarının Yönlü Dolarak Gelmesi */
.service-card:not(.home-3d-card) h3, .service-card:not(.home-3d-card) p {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card.show:not(.home-3d-card) h3 { clip-path: inset(0 0 0 0); transition-delay: 0.5s; }
.service-card.show:not(.home-3d-card) p { clip-path: inset(0 0 0 0); transition-delay: 0.8s; }

/* Header Slide Down Animasyonu (Sadece Ana Sayfa için) */
.header-animate {
    animation: headerSlideDown 0.8s ease-out forwards;
}

@keyframes headerSlideDown {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Hakkımızda Sayfası Stilleri --- */
.about-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.about-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-desc);
}

.about-intro {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.05));
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05));
    pointer-events: none;
}

.intro-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro-content p {
    margin-bottom: 20px;
    color: var(--text-desc);
}

.intro-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    opacity: 0; /* Başlangıçta gizli */
    transform: translateY(50px);
}

.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.3s; }
.stat-card:nth-child(3) { transition-delay: 0.5s; }
.stat-card:nth-child(4) { transition-delay: 0.7s; }

.stat-card.show {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-desc);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.mv-card {
    background: linear-gradient(145deg, var(--bg-secondary), rgba(20, 20, 20, 0.8));
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--accent-purple);
}

.mv-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.mv-card h3 {
    color: #fff;
    color: var(--text-header);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.expertise-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
    color: var(--text-header);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.expertise-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(50px);
}

.expertise-card:nth-child(1) { transition-delay: 0.1s; }
.expertise-card:nth-child(2) { transition-delay: 0.2s; }
.expertise-card:nth-child(3) { transition-delay: 0.3s; }
.expertise-card:nth-child(4) { transition-delay: 0.4s; }
.expertise-card:nth-child(5) { transition-delay: 0.5s; }
.expertise-card:nth-child(6) { transition-delay: 0.6s; }

.expertise-card.show {
    opacity: 1;
    transform: translateY(0);
}

.expertise-card:hover {
    background: rgba(255, 255, 255, 0.03);
    background: #f8fafc;
    border-color: var(--accent-blue);
    transform: scale(1.02);
}

.exp-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    background: rgba(168, 85, 247, 0.1);
    background: rgba(99, 102, 241, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--accent-purple);
}

.expertise-card h3 {
    color: #fff;
    color: var(--text-header);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.expertise-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Uzmanlık ve İstatistik Kartlarındaki Yazıların Dolması */
.expertise-card h3, .expertise-card p,
.stat-card .stat-number, .stat-card .stat-label {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-card.show h3, .stat-card.show .stat-number { clip-path: inset(0 0 0 0); transition-delay: 0.5s; }
.expertise-card.show p, .stat-card.show .stat-label { clip-path: inset(0 0 0 0); transition-delay: 0.8s; }

@media (max-width: 768px) {
    .about-header h1 {
        font-size: 2.2rem;
    }

    .modern-title {
        font-size: 2.2rem !important; /* Mobilde daha kibar dursun */
    }

    .about-intro {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }

    .intro-content h2 {
        font-size: 1.8rem;
    }

    .intro-visual {
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .mv-card {
        text-align: center;
        padding: 25px;
    }

    /* Hizmetler - Mobilde 2'li Görünüm ve Küçültme */
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Mobilde Slider Görünümü */
    .carousel-container {
        width: 100vw;
        margin-left: -15px; /* Mobilde ekranı tam uçtan uca kaplaması için sağ/sol boşluk payını ezer */
    }
    .services-carousel {
        padding: 10px 10vw 20px 10vw; /* Kartın tam ortada durması için yanlardan 10vw boşluk */
        gap: 15px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 10vw; /* Kaydırma bittiğinde merkeze hatasız kilitlenmesini sağlar */
    }
    .services-carousel .service-card {
        flex: 0 0 80vw; /* Kart tam %80 genişliğinde olur, kalan %20 yanlara dağılır (10+10) */
        scroll-snap-align: center; /* Kartı zorla ekranın tam ortasına hizalar */
        scroll-snap-stop: always; /* Kullanıcı sert kaydırsa bile sadece 1 kart atlayıp ortada dursun */
    }
    .carousel-control {
        display: none; /* Mobilde oklara gerek yok, tamamen gizle */
    }

    /* Mobilde 3D Carousel Görünümü */
    .home-3d-carousel { 
        height: 360px; /* Mobilde dikey alanı çok kaplamaması için boydan kısıldı */
        perspective: 1000px; 
        width: 100vw; 
        margin-left: calc(-50vw + 50%); /* Mobilde de ortalamayı koru */
    }
    article.service-card.home-3d-card { 
        width: 75vw; /* Sağdan soldan diğer kartların görünmesi için kenarlardan kısıldı */
        height: 310px; /* Boydan kısıldı */
        padding: 20px 15px !important;
        gap: 10px;
        flex-direction: column; 
        text-align: center;
        justify-content: flex-start; /* İçerik yukarıdan başlasın */
    }
    .home-3d-card .card-visual {
        width: 100%;
        height: 100px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }
    .home-3d-card .card-visual .anim-icon {
        transform: scale(0.6); /* 200px'lik devasa PC animasyonunu mobilde ufaltır ve sığdırır */
    }
    .home-3d-card .card-text {
        width: 100%;
        padding: 10px 5px 0 5px;
    }
    .home-3d-card .card-text h3 {
        font-size: 1.25rem; /* Yeni boyuta göre kibarlaştırıldı */
        margin-bottom: 5px;
    }
    .home-3d-card .card-text p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .home-3d-card.show.prev { transform: translateX(-60%) translateZ(-200px) scale(0.75) rotateY(10deg) !important; opacity: 0.5 !important; filter: blur(4px) brightness(85%); }
    .home-3d-card.show.next { transform: translateX(60%) translateZ(-200px) scale(0.75) rotateY(-10deg) !important; opacity: 0.5 !important; filter: blur(4px) brightness(85%); }
    .home-3d-card.show.prev:hover { transform: translateX(-55%) translateZ(-200px) scale(0.8) rotateY(5deg) !important; opacity: 0.8 !important; filter: blur(2px) brightness(95%); }
    .home-3d-card.show.next:hover { transform: translateX(55%) translateZ(-200px) scale(0.8) rotateY(-5deg) !important; opacity: 0.8 !important; filter: blur(2px) brightness(95%); }

    .service-card {
        padding: 15px; /* Mobilde kart boyunu çok daha kompakt (kısa) yaptık */
        border-radius: 16px;
    }

    .service-icon {
        font-size: 1.6rem;
        width: 55px; /* Mobilde elit kutu biraz küçüldü */
        height: 55px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .service-card h3 {
        font-size: 1.05rem; /* Başlık kibarlaştırıldı */
        margin-bottom: 5px;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.3; /* Yazı arası boşluk kısılarak dikey uzunluk azaltıldı */
    }

    /* Uzmanlık Alanları - Mobilde 2'li ve Ortalı */
    .expertise-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .expertise-card {
        padding: 15px 10px;
        align-items: center;
        text-align: center;
    }

    .expertise-card h3 {
        font-size: 0.9rem;
    }

    .expertise-card p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .exp-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
}