:root {
    /* Referans: soğuk mavi–yeşil palet */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #06b6d4;
    --accent: #10b981;
    --blue-deep: #0c4a6e;
    --green-soft: #d1fae5;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --light-dark: #cbd5e1;
    --section-light: #f1f5f9;
    --section-blue: #e0f2fe;
    --overlay: rgba(15, 23, 42, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #0c4a6e 100%);
}

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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar – animasyonlu giriş + glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease,
                background 0.4s ease,
                padding 0.4s ease,
                box-shadow 0.4s ease;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 14px 50px;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 8px 16px;
    border: 2px solid rgba(14, 165, 233, 0.35);
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item {
    opacity: 0;
    transform: translateY(-12px);
}

.navbar.navbar-visible .nav-item {
    animation: navItemIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    transition: left 0.5s;
}

.logo:hover::before {
    left: 100%;
}

.logo:hover {
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%; /* 300px yerine %80 daha iyi mobilde */
        max-width: 320px;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        gap: 32px;
        z-index: 1002;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        opacity: 1; /* Reset animation opacity override */
        transform: none;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.25rem;
        display: block;
        padding: 12px 0;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 16px !important;
    }

    /* Giriş paneli mobilde menü içinde */
    .quick-login-panel {
        position: static;
        width: 100%;
        min-width: unset;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        margin-top: 10px;
        display: none; /* Varsayılan kapalı, tıklayınca açılır */
    }
    
    .quick-login-panel.open {
        display: block; /* Basit toggle */
        animation: fadeIn 0.3s ease;
    }
}

.nav-cta {
    padding: 10px 20px !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: 10px;
    font-weight: 600;
    opacity: 1 !important;
}

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

.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.45);
    transform: translateY(-1px);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--primary-light);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Giriş Yap + hızlı giriş paneli */
.nav-auth-item {
    position: relative;
}

.nav-auth-wrap {
    position: relative;
}

.quick-login-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    min-width: 280px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
    z-index: 1001;
}

.quick-login-panel::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 24px;
    border: 8px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.quick-login-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.quick-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.quick-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.quick-login-error {
    font-size: 0.8rem;
    color: #fca5a5;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.quick-login-error.visible {
    opacity: 1;
}

.btn-quick-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-quick-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-quick-login:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.auth-link[aria-expanded="true"] {
    color: var(--primary-light);
}

/* Giriş yapıldığında net belli olsun */
.auth-link.logged-in {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 10px;
    color: #6ee7b7;
    font-weight: 600;
    opacity: 1;
}

.auth-link.logged-in::after {
    display: none;
}

.auth-link.logged-in:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: var(--accent);
    color: #a7f3d0;
}

.auth-link.logged-in i {
    font-size: 0.95rem;
    color: var(--accent);
}

/* Hoşgeldin – giriş sonrası estetik gösterim */
.welcome-item {
    opacity: 0;
    transform: translateY(-4px);
    animation: welcomeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.welcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.welcome-icon {
    font-size: 0.9rem;
    color: var(--primary-light);
    opacity: 0.95;
}

.welcome-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.welcome-email {
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .welcome-pill {
        padding: 8px 14px;
        gap: 8px;
    }
    .welcome-email {
        max-width: 120px;
    }
}

/* Giriş başarılı – saydam kartvizit, gülen personel ikonu */
.login-success-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #022c22;
    font-weight: 600;
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.login-success-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.login-success-toast i {
    font-size: 1.75rem;
    color: var(--accent);
}

/* Hero – resim alanı kullanışlı: hızlı linkler + kaydırma */
.hero-single {
    position: relative;
    width: 100%;
    min-height: 88vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 10%;
}

.hero-main {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 4;
}

.hero-utility {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 28px;
}

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.hero-scroll-hint:hover {
    color: white;
}

.hero-scroll-hint i {
    font-size: 1rem;
    animation: heroScrollBounce 2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Arka plan resmi – tasarım paleti ile uyumlu (mavi/teal ton) */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Resmi soğuk mavi palete yaklaştırır */
    filter: saturate(0.75) contrast(1.05) brightness(0.88);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Tasarım renkleriyle hafif renk katmanı (primary, secondary) */
    background: radial-gradient(ellipse 80% 60% at 30% 40%, rgba(14, 165, 233, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse 70% 50% at 75% 60%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mavi ton bindirme – palet ile tam uyum */
    background: linear-gradient(160deg,
        rgba(12, 74, 110, 0.82) 0%,
        rgba(15, 23, 42, 0.78) 35%,
        rgba(2, 132, 199, 0.25) 50%,
        rgba(30, 41, 59, 0.65) 100%);
    pointer-events: none;
}

.hero-single .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Koyu mavi gradient – blue-deep ve dark ile metin okunaklılığı */
    background: linear-gradient(135deg,
        rgba(12, 74, 110, 0.72) 0%,
        rgba(15, 23, 42, 0.8) 40%,
        rgba(30, 41, 59, 0.6) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-single .content {
    position: relative;
    max-width: 700px;
    padding: 40px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: heroTitleIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.5;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin-top: 20px;
    margin-bottom: 32px;
    animation: heroSubtitleIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: heroCtaIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-hero.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.btn-hero.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.45);
}

.btn-hero.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--light);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-hero.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ========== ORTA ALAN – Bento / Asimetrik Tasarım ========== */
.middle-zone {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 35%, #f1f5f9 70%, #e0f2fe 100%);
    padding: 0 0 1px;
    position: relative;
}

.middle-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
}

.middle-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 88px;
    color: var(--dark);
}

.bento-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Projeler – sayfa ortasında animasyonlu yatay kartlar (tümü görünsün) */
.projects-section-horizontal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.projects-horizontal-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.projects-section-horizontal .projects-horizontal-header {
    text-align: center;
    margin-bottom: 40px;
}

.bento-projects-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--blue-deep);
    letter-spacing: -0.02em;
}

.projects-cards-wrap {
    position: relative;
    padding: 0 52px;
}

.projects-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(12, 74, 110, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.projects-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
}

.projects-nav-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.projects-nav-prev {
    left: 0;
}

.projects-nav-next {
    right: 0;
}

.projects-cards-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 16px 0 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-cards-row:active {
    cursor: grabbing;
}

.projects-cards-row::-webkit-scrollbar {
    display: none;
}

.projects-cards-row.grabbing {
    cursor: grabbing;
}

.projects-cards-row.grabbing .project-card-h {
    pointer-events: none;
}

/* Giriş yapıldığında: tüm proje kartları hemen görünsün, tek tıkla uygulama açılsın */
body.user-logged-in .projects-cards-row {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
    gap: 24px;
    cursor: default;
    padding: 16px 0 24px;
}

body.user-logged-in .projects-cards-wrap {
    padding: 0 24px;
}

body.user-logged-in .projects-nav-prev,
body.user-logged-in .projects-nav-next {
    display: none;
}

body.user-logged-in .project-card-h {
    flex: 0 0 300px;
    cursor: pointer;
}

body.user-logged-in .project-card-h:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.18);
}

.project-card-h {
    flex: 0 0 320px;
    scroll-snap-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 10px 40px rgba(12, 74, 110, 0.08);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.projects-section-horizontal.in-view .project-card-h {
    opacity: 1;
    transform: translateY(0);
}

.project-card-h:nth-child(1) { transition-delay: 0.05s; }
.project-card-h:nth-child(2) { transition-delay: 0.12s; }
.project-card-h:nth-child(3) { transition-delay: 0.19s; }
.project-card-h:nth-child(4) { transition-delay: 0.26s; }
.project-card-h:nth-child(5) { transition-delay: 0.33s; }

.project-card-h:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.18);
}

.project-card-h .card-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    color: var(--primary);
}

.project-card-h .card-content {
    padding: 24px;
}

.project-card-h .card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 10px;
}

.project-card-h .card-content p {
    font-size: 0.9rem;
    color: var(--dark-light);
    line-height: 1.6;
    margin-bottom: 18px;
}

.section-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header .line {
    width: 80px;
    height: 5px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Proje kartları – açık bölümde okunaklı */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(14, 165, 233, 0.15);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 10px 40px rgba(12, 74, 110, 0.08);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 24px 48px rgba(14, 165, 233, 0.15);
}

.project-card:hover::before {
    opacity: 0.03;
}

.card-image {
    height: 220px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    transition: transform 0.6s ease;
    transform: scale(0);
}

.project-card:hover .card-image::before {
    transform: scale(1);
}

.project-card:hover .card-image {
    transform: scale(1.05);
    color: var(--primary-dark);
}

.card-image i {
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.project-card:hover .card-image i {
    transform: scale(1.15) rotate(3deg);
    filter: drop-shadow(0 6px 12px rgba(14, 165, 233, 0.3));
}

.card-content {
    padding: 32px;
    position: relative;
    z-index: 1;
}

.card-content h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-deep);
    transition: color 0.3s ease;
}

.project-card:hover .card-content h3 {
    color: var(--primary-dark);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--dark-light);
    margin-bottom: 24px;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.project-card:hover .card-content p {
    color: var(--dark);
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

.btn-project::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-project:hover {
    color: var(--primary-dark);
    transform: translateX(8px);
}

.btn-project:hover::after {
    width: 100%;
}

.btn-project i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-project:hover i {
    transform: translateX(4px);
}

.project-card.empty .card-content {
    text-align: center;
    opacity: 0.5;
}

/* Yaklaşım – bento 3 hücre */
.bento-approach-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.9fr;
    gap: 24px;
}

.bento-approach-cell {
    padding: 32px;
    border-radius: 20px;
    min-height: 200px;
}

.bento-approach-quote {
    background: white;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 10px 40px rgba(12, 74, 110, 0.06);
}

.bento-quote-text {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--blue-deep);
}

.bento-quote-text strong {
    color: var(--primary);
}

.bento-approach-dark {
    background: var(--blue-deep);
    color: white;
}

.bento-approach-dark p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.95;
}

.bento-approach-icons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.bento-approach-icons i {
    font-size: 1.5rem;
    color: var(--primary-light);
    opacity: 0.9;
}

.bento-approach-tech {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bento-tech-main {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 6px;
}

.bento-tech-sub {
    font-size: 0.9rem;
    color: var(--dark-light);
}

/* Son CTA bandı – referans: Join Now (koyu, güçlü) */
.cta-band {
    position: relative;
    padding: 100px 10%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    overflow: hidden;
}

.cta-band-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-band-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-band-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-band-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.btn-cta-band {
    display: inline-block;
    padding: 18px 36px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-cta-band:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.45);
}

/* Footer */
footer.footer {
    padding: 32px 10% 24px;
    text-align: center;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-contact {
    margin-bottom: 12px;
}

.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
    color: var(--light);
}

/* Modern Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: auto;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    margin: 0;
    padding: 48px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid;
    border-image: var(--gradient-primary) 1;
    width: 90%;
    max-width: 450px;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 0 60px rgba(99, 102, 241, 0.1);
    position: relative;
    text-align: center;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

@keyframes slideDown {
    from {
        transform: translateY(-60px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-modal {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 24px;
    top: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* Anasayfa ortasında giriş modalı (çıkış sonrası) */
.modal.modal-centered {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content.modal-login-center {
    padding: 40px 36px;
    text-align: left;
}

.modal-content.modal-login-center .login-header {
    margin-bottom: 24px;
    text-align: center;
}

.modal-content.modal-login-center .login-header h2 {
    margin-bottom: 8px;
}

.modal-content.modal-login-center .form-group {
    margin-bottom: 20px;
}

.modal-content.modal-login-center .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light);
    font-weight: 600;
}

.modal-content.modal-quick-redirect {
    padding: 32px 28px;
}

.modal-content.modal-quick-redirect p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-open-quick-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-open-quick-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.login-header h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-weight: 700;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--light);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1),
                0 4px 12px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: none;
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    width: 2px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Retina ve Yüksek DPI Ekranlar için Optimizasyon */
.retina .hero-bg {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    .hero-bg {
        image-rendering: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 16px;
    }

    .quick-login-panel {
        right: -10px;
        left: auto;
        min-width: 260px;
        max-width: calc(100vw - 32px);
    }

    .nav-cta {
        padding: 8px 14px !important;
        font-size: 0.85rem;
    }

    .hero-single {
        min-height: 85vh;
        padding: 0 16px;
    }

    .hero-single .content {
        padding: 28px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        padding: 14px 24px;
    }

    .hero-utility {
        padding: 16px 0 24px;
    }

    .projects-section-horizontal {
        padding: 80px 16px 60px;
        min-height: 100vh;
    }

    .projects-cards-wrap {
        padding: 0 44px;
    }

    .projects-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .project-card-h {
        flex: 0 0 280px;
    }

    .projects-section-horizontal .projects-horizontal-header {
        margin-bottom: 28px;
    }

    .bento-projects-title {
        font-size: 1.75rem;
    }

    .project-card-h .card-image {
        height: 140px;
        font-size: 2.25rem;
    }

    .project-card-h .card-content {
        padding: 20px;
    }

    .bento-approach-grid {
        grid-template-columns: 1fr;
    }

    .bento-approach-cell {
        min-height: auto;
        padding: 28px;
    }

    .bento-quote-text {
        font-size: 1.2rem;
    }

    .cta-band {
        padding: 60px 5%;
        min-height: 280px;
    }

    .cta-band-title {
        font-size: 2rem;
    }

    .modal-content {
        padding: 36px 28px;
    }
}

/* Helper Class */
.hidden {
    display: none !important;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: var(--light);
}
