/**
 * Hızlı Tasarım - Kalıpların Dışında Özgün Tasarım Sistemi
 * Ahmet Altınkaynak | Bağımsız Web Tasarım & Yazılım Geliştirici
 * Neo-Brutalist & Swiss Editorial Dark Architecture
 */

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(26, 36, 61, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(56, 189, 248, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #38bdf8;
    --accent-emerald: #10b981;
    --accent-purple: #a855f7;
    --accent-amber: #f59e0b;
    --gradient-glow: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #a855f7 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 10%, #e2e8f0 60%, #94a3b8 100%);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 35px -5px rgba(56, 189, 248, 0.25);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* Temel Sıfırlama ve Gövde */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-dark);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arka Plan Mesh / Grid Dokusu */
.bg-mesh {
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(168, 85, 247, 0.07) 0%, transparent 45%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
    background-position: 0 0, 0 0, 0 0, 0 0;
}

/* Tipografi & Gradient Başlıklar */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.font-mono-tag {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Rozetler */
.ht-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.8);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.12);
}

.ht-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Glassmorphic Kart */
.ht-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ht-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* Navbar */
.ht-navbar {
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    z-index: 1050;
}

.ht-brand {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ht-brand span.author-tag {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.nav-link.ht-link {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link.ht-link:hover, .nav-link.ht-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Butonlar */
.btn-ht-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.35);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ht-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: #fff;
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.btn-ht-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ht-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-ht-whatsapp {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ht-whatsapp:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

/* Canlı Skorlar Barı (100/100 Bar) */
.ht-stats-bar {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(12px);
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Karşılaştırma Matrisi (Ajans vs. Ahmet Altınkaynak) */
.comparison-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.5);
}

.comp-header {
    padding: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-header.agency {
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.comp-header.solo {
    background: rgba(56, 189, 248, 0.12);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-cyan);
}

.comp-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
}

.comp-item:last-child {
    border-bottom: none;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 991px) {
    .bento-col-4, .bento-col-6, .bento-col-8 {
        grid-column: span 12;
    }
}

/* Canlı Proje & Portfolyo Kartı */
.project-card {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px -10px rgba(56, 189, 248, 0.25);
}

.project-thumb {
    position: relative;
    height: 220px;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-badge-top {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 700;
}

.project-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* İnteraktif Hesaplayıcı */
.calc-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calc-option:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.05);
}

.calc-option.active {
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

/* Akordeon SSS */
.ht-accordion .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.ht-accordion .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 18px 22px;
    box-shadow: none;
}

.ht-accordion .accordion-button:not(.collapsed) {
    background: rgba(56, 189, 248, 0.08);
    color: var(--accent-cyan);
}

.ht-accordion .accordion-button::after {
    filter: invert(1);
}

.ht-accordion .accordion-body {
    padding: 20px 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid var(--border-subtle);
}

/* Süreç Zaman Çizelgesi */
.process-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 36px;
    bottom: -30px;
    width: 2px;
    background: var(--border-subtle);
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Yüzen Hızlı WhatsApp Butonu */
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-wa-btn:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* Footer */
.ht-footer {
    background: #040609;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
}

/* Form Kontrolleri */
.ht-input {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid var(--border-subtle) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
}

.ht-input:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25) !important;
    background: rgba(15, 23, 42, 0.95) !important;
}

.ht-input::placeholder {
    color: #64748b !important;
}

/* Mobil 0 Taşma Güvencesi */
@media (max-width: 576px) {
    .ht-card {
        padding: 18px;
    }
    .stat-value {
        font-size: 1.7rem;
    }
    .floating-wa-btn {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
}
