/* =====================================================================
   LIANCHEZ — MODERN UI LAYER (style.css'ten SONRA yüklenir)
   Tech / Cyber / Glassmorphism. Mevcut CSS değişkenleri korunur.
   ===================================================================== */

:root {
    /* Mevcut değişkenler (style.css) korunur; yenileri eklenir */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-strong: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glow-red: rgba(253, 6, 6, 0.35);
    --glow-red-soft: rgba(253, 6, 6, 0.12);
    --gradient-primary: linear-gradient(135deg, #fd0606 0%, #ff5f56 100%);
    --font-display: 'Exo 2', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --logo-h: 69px;
    --header-h: calc(var(--logo-h) + 16px);
}

/* ---------- Temel ---------- */
html { scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    line-height: 1.75;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(253, 6, 6, 0.07), transparent 60%),
        radial-gradient(900px 500px at -10% 40%, rgba(253, 6, 6, 0.04), transparent 60%),
        var(--dark-bg);
    background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
h1, h2 { line-height: 1.12; }

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

a:focus-visible, button:focus-visible, .form-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.container { max-width: 1120px; }

.text-gradient {
    background: linear-gradient(100deg, #fff 0%, #ff8a84 40%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Bölüm başlıkları */
section h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3rem);
    position: relative;
    padding-bottom: 22px;
}
section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    box-shadow: 0 0 18px var(--glow-red);
}
#about, #portfolio, #pricing { background: transparent; }

/* ---------- Butonlar ---------- */
.button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--gradient-primary);
    border: 0;
    border-radius: 12px;
    padding: 14px 28px;
    min-height: 48px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px -8px var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.3s;
    -webkit-tap-highlight-color: transparent;
}
.button::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-out);
}
.button:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 34px -8px var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.button:hover::before { transform: translateX(120%); }
.button:active { transform: translateY(-1px) scale(0.98); }

.button-ghost {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.button-ghost:hover { border-color: var(--primary-color); box-shadow: 0 0 24px var(--glow-red-soft); }

/* ---------- Header & Navigasyon ---------- */
header {
    background: transparent;
    backdrop-filter: none;           /* fixed menüyü bozmaması için pseudo'ya taşındı */
    -webkit-backdrop-filter: none;
    padding: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s, box-shadow 0.4s;
}
header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(9, 8, 8, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    transition: background 0.4s;
}
header.is-scrolled { border-bottom-color: var(--glass-border); box-shadow: 0 10px 40px -20px rgba(253, 6, 6, 0.35); }
header.is-scrolled::before { background: rgba(9, 8, 8, 0.82); }
header .container { width: 100%; }

.logo { width: auto; height: auto; }
.header-logo { height: var(--logo-h); width: auto; max-width: 100%; object-fit: contain; display: block; }
header .logo { display: flex; align-items: center; }


.menu-toggle {
    width: 48px; height: 48px;           /* touch-friendly */
    padding: 12px 8px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-tap-highlight-color: transparent;
}
.menu-toggle .bar {
    width: 24px; height: 2px;
    transform-origin: center;
    transition: transform 0.4s var(--ease-out), opacity 0.25s;
}
.menu-toggle.active { border-color: var(--primary-color); box-shadow: 0 0 20px var(--glow-red-soft); }
.menu-toggle.active .bar:first-child { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active .bar:last-child { transform: translateY(-8px) rotate(-45deg); }

nav ul {
    height: 100vh;
    height: 100dvh;
    background:
        radial-gradient(600px 400px at 80% 10%, rgba(253, 6, 6, 0.18), transparent 60%),
        rgba(9, 8, 8, 0.96);
    transform: translateY(-12px) scale(1.02);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0.45s;
    gap: 8px;
    padding: var(--header-h) 24px 40px;
    overflow-y: auto;
}
nav ul.open { transform: none; }
nav ul li { opacity: 0; transform: translateY(18px); transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out); }
nav ul.open li { opacity: 1; transform: none; }
nav ul.open li:nth-child(1) { transition-delay: 0.08s; }
nav ul.open li:nth-child(2) { transition-delay: 0.14s; }
nav ul.open li:nth-child(3) { transition-delay: 0.20s; }
nav ul.open li:nth-child(4) { transition-delay: 0.26s; }
nav ul li a { display: block; padding: 14px 24px; font-size: clamp(1.7rem, 7vw, 2.2rem); }

@media (min-width: 768px) {
    nav ul {
        height: auto; padding: 0; background: transparent; overflow: visible;
        gap: 4px; transform: none; transition: none;
    }
    nav ul li { opacity: 1; transform: none; transition: none; }
    nav ul li a {
        padding: 10px 18px;
        border-radius: 999px;
        font-size: 0.95rem;
        font-family: var(--font-display);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        transition: color 0.3s, background 0.3s, box-shadow 0.3s;
    }
    nav ul li a:hover {
        color: #fff;
        background: var(--glass-bg-strong);
        box-shadow: inset 0 0 0 1px var(--glass-border);
    }
    nav ul li:last-child a {
        color: #fff;
        background: var(--gradient-primary);
        box-shadow: 0 6px 20px -6px var(--glow-red);
        margin-left: 8px;
    }
    nav ul li:last-child a:hover { transform: translateY(-2px); }
}

/* ---------- Ticker ---------- */
#blog-ticker-section { background: rgba(255, 255, 255, 0.02); padding: 10px 0; }
.ticker-label { background: var(--gradient-primary); box-shadow: 0 0 14px var(--glow-red); letter-spacing: 0.08em; }

/* ---------- HERO ---------- */
#hero {
    height: auto;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    margin: 0;
    padding: 80px 20px 110px;
    overflow: hidden;
    text-align: left;
    isolation: isolate;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    width: 100%;
    max-width: 1120px;
    padding: 0;
}
.hero-content { padding: 0; max-width: 640px; margin: 0; }

.hero-glow { position: absolute; border-radius: 50%; filter: blur(110px); z-index: -1; pointer-events: none; }
.hero-glow--a { width: 560px; height: 560px; top: -160px; right: -120px; background: rgba(253, 6, 6, 0.35); animation: glow-drift 14s ease-in-out infinite alternate; }
.hero-glow--b { width: 440px; height: 440px; bottom: -160px; left: -120px; background: rgba(255, 95, 86, 0.18); animation: glow-drift 18s ease-in-out infinite alternate-reverse; }
.hero-grid-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
@keyframes glow-drift { to { transform: translate(-50px, 40px) scale(1.15); } }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    margin-bottom: 26px;
    font-family: var(--font-display);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 12px var(--primary-color); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 50% { opacity: 0.35; transform: scale(0.75); } }

.hero-title {
    color: #fff;
    font-weight: 900;
    font-size: clamp(2.6rem, 7.2vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}
.hero-slogan { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.65; color: rgba(255, 255, 255, 0.85); max-width: 560px; margin-bottom: 14px; }
.hero-subtext { font-family: 'Courier New', monospace; font-size: 1rem; font-style: normal; color: var(--primary-hover-color); min-height: 1.8em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .button { margin: 0; }

/* 3D kartlar */
.hero-visual { position: relative; min-height: 360px; perspective: 1200px; }
.hero-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 60px -20px var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.hero-card--main {
    position: relative;
    transform: rotateY(-14deg) rotateX(8deg);
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out;
    padding: 18px 22px 22px;
    animation: card-float 7s ease-in-out infinite;
}
.hero-card--main[data-tilt].is-tilting { animation: none; }
.hero-card-bar { display: flex; gap: 7px; margin-bottom: 14px; }
.hero-card-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.hero-card-bar i:first-child { background: var(--primary-color); }
.hero-card pre { margin: 0; overflow: hidden; }
.hero-card code { font-family: 'Courier New', ui-monospace, monospace; font-size: clamp(0.78rem, 1.5vw, 0.95rem); line-height: 1.7; color: #d6d6d6; white-space: pre; }
.c-k { color: #ff6b66; } .c-v { color: #fff; } .c-f { color: #ffb4b0; } .c-s { color: #9be08a; }

.hero-card--float {
    position: absolute;
    display: flex; flex-direction: column;
    padding: 14px 20px;
    min-width: 120px;
}
.hero-card--float strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-card--float span { font-size: 0.78rem; color: var(--text-muted-color); }
.hero-card--a { right: -4%; bottom: 6%; transform: translateZ(60px); animation: card-float 6s ease-in-out -2s infinite; }
.hero-card--b { left: -3%; top: -4%; animation: card-float 8s ease-in-out -4s infinite; }
@keyframes card-float { 50% { translate: 0 -14px; } }

.scroll-indicator {
    border-color: rgba(255, 255, 255, 0.35);
    width: 30px; height: 48px; bottom: 12px;
    transition: border-color 0.3s;
}
.scroll-indicator:hover { border-color: var(--primary-color); }
.scroll-indicator::after { border-color: var(--primary-color); top: 14px; }

@media (max-width: 900px) {
    #hero { padding: 48px 20px 100px; min-height: auto; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { min-height: 260px; max-width: 460px; margin: 0 auto; width: 100%; }
    .hero-card--main { transform: rotateY(-8deg) rotateX(4deg); }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-slogan { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
}
@media (max-width: 480px) {
    .hero-actions .button { width: 100%; text-align: center; }
    .hero-card--a { right: 0; } .hero-card--b { left: 0; }
}
/* Eski hero medya sorgularının ezilmesi */
@media (max-width: 768px) { #hero { height: auto; } }

/* ---------- Kartlar: Hizmetler / Fiyatlandırma / Yorumlar / Portfolyo ---------- */
.service-item, .pricing-card, .testimonial-card, .portfolio-card, .contact-info {
    position: relative;
    isolation: isolate;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
    will-change: transform;
}
/* İç border parlaması (gradient border) */
.service-item::before, .pricing-card::before, .testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(253, 6, 6, 0.9), transparent 45%, rgba(255, 95, 86, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.45s;
}
/* Spot ışık (imleci takip eder; --mx/--my JS ile) */
.service-item::after, .pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(253, 6, 6, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
}
@media (hover: hover) {
    .service-item:hover, .pricing-card:hover, .testimonial-card:hover, .portfolio-card:hover {
        transform: translateY(-10px) perspective(900px) rotateX(2deg);
        border-color: rgba(253, 6, 6, 0.35);
        box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.9), 0 0 50px -18px var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
    .service-item:hover::before, .pricing-card:hover::before, .testimonial-card:hover::before,
    .service-item:hover::after, .pricing-card:hover::after { opacity: 1; }
}

.service-item { padding: 34px 28px; text-align: left; }
.service-item h3 { font-weight: 800; color: #fff; font-size: 1.35rem; margin: 0 0 12px; }
.service-item h3::before {
    content: '';
    display: block;
    width: 44px; height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--glow-red-soft) radial-gradient(circle at 30% 30%, rgba(253, 6, 6, 0.6), transparent 70%);
    border: 1px solid rgba(253, 6, 6, 0.4);
    box-shadow: 0 0 24px -4px var(--glow-red);
}
.service-item p { color: var(--text-muted-color); margin: 0; }

/* Fiyatlandırma */
.pricing-card { padding: 36px 28px; display: flex; flex-direction: column; text-align: left; }
.pricing-card h3 { color: #fff; font-weight: 800; font-size: 1.3rem; }
.pricing-card .price {
    font-size: 1.15rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.pricing-card ul { flex: 1; }
.pricing-card li { border-bottom: 1px solid var(--glass-border); }
.pricing-card li:last-child { border-bottom: 0; }
.pricing-card li::before { color: var(--primary-color); text-shadow: 0 0 10px var(--glow-red); }
.pricing-card .button { margin: 0; }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pricing-disclaimer { margin: 0 auto 48px; max-width: 640px; }

/* Yorumlar */
.testimonial-card { text-align: left; background-color: transparent; }
.testimonial-text { position: relative; font-style: normal; color: rgba(255, 255, 255, 0.88); }
.testimonial-author img { box-shadow: 0 0 0 4px var(--glow-red-soft); }
#testimonials { background: rgba(255, 255, 255, 0.02) !important; }

/* Portfolyo & slider */
.slider-section { border-bottom: 1px solid var(--glass-border); border-top: 1px solid var(--glass-border); }
.slide-cat { background: var(--gradient-primary); border-radius: 999px; box-shadow: 0 0 18px var(--glow-red); }
.slide-title { font-weight: 900; letter-spacing: -0.02em; }
.slide-btn { border-radius: 999px; backdrop-filter: blur(6px); min-height: 48px; }
.slider-nav-btn { width: 52px; height: 52px; background: var(--glass-bg-strong); border-color: var(--glass-border); }
.slider-nav-btn:hover { box-shadow: 0 0 24px var(--glow-red); }
.dot { position: relative; transition: width 0.4s var(--ease-out), background 0.3s; }
.dot::after { content: ''; position: absolute; inset: -14px -6px; }   /* büyük dokunma alanı */
.dot.active { width: 34px; border-radius: 10px; transform: none; box-shadow: 0 0 14px var(--glow-red); }

/* About & CTA */
#about .container { max-width: 820px; text-align: center; }
#about p { color: rgba(255, 255, 255, 0.78); font-size: 1.08rem; line-height: 1.9; }
.cta-card {
    background: linear-gradient(135deg, rgba(253, 6, 6, 0.14), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(253, 6, 6, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 70px -30px var(--glow-red);
}
.cta-card::after { width: 420px; height: 420px; background: radial-gradient(circle, rgba(253, 6, 6, 0.25), transparent 70%); animation: glow-drift 12s ease-in-out infinite alternate; }
.cta-text h3 { font-weight: 800; }

/* ---------- İLETİŞİM FORMU & FLOAT LABEL (placeholder-shown tabanlı) ---------- */
.contact-form {
    max-width: 560px;
    padding: clamp(26px, 5vw, 46px);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 80px -40px var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.form-title { color: #fff; font-weight: 800; letter-spacing: -0.01em; margin-top: 0; }

.form-group { margin-bottom: 22px; }

.form-input {
    font-family: var(--font-body);
    font-size: 1rem;                       /* iOS zoom'u engeller (>=16px) */
    min-height: 56px;
    padding: 22px 16px 8px 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form-input:hover { border-color: rgba(255, 255, 255, 0.22); }
.form-input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--glow-red-soft), 0 0 24px -6px var(--glow-red);
}
.form-label {
    left: 48px; top: 18px;
    font-family: var(--font-body);
    transform-origin: left top;
    transition: transform 0.3s var(--ease-out), color 0.3s, top 0.3s var(--ease-out), font-size 0.3s var(--ease-out);
}
/* Floating state: odak, dolu (placeholder yok) veya JS .has-value */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-input.has-value + .form-label,
textarea.form-input:focus + .form-label,
textarea.form-input:not(:placeholder-shown) + .form-label,
textarea.form-input.has-value + .form-label {
    top: 7px; left: 48px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary-hover-color);
}
.form-icon { left: 16px; top: 28px; transform: translateY(-50%); width: 20px; height: 20px; }
textarea.form-input ~ .form-icon { top: 28px; }
.form-input:focus ~ .form-icon, .form-group.focused .form-icon { color: var(--primary-color); }
.form-input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px #1a1010 inset;
    caret-color: #fff;
}
textarea.form-input { min-height: 120px; padding-top: 26px; resize: vertical; line-height: 1.6; }

/* Select (satır içi stilleri ezmek için !important gerekli) */
select.form-input {
    padding: 8px 40px 8px 48px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    color: #fff;
}
select.form-input:focus { border-color: var(--primary-color) !important; }
select.form-input:invalid { color: rgba(255, 255, 255, 0.5); }
.form-group > span[style*="position: absolute"] { right: 16px !important; }

/* Gönder butonu */
.form-submit-button {
    min-height: 54px;
    border-radius: 12px;
    background: var(--gradient-primary);
    font-family: var(--font-display);
    margin: 8px 0 0;
}
.form-submit-button.success { background: linear-gradient(45deg, #16a34a, #22c55e); box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4); }
.form-submit-button:disabled { cursor: progress; opacity: 0.85; }

/* ---------- MODAL: Çarkıfelek ---------- */
.wheel-overlay {
    background: radial-gradient(800px 500px at 50% 30%, rgba(253, 6, 6, 0.18), transparent 70%), rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
}
/* JS display:flex yaptığında otomatik oynar */
.wheel-overlay { animation: overlay-in 0.35s ease-out both; }
.wheel-modal {
    background: linear-gradient(160deg, rgba(34, 24, 24, 0.9), rgba(14, 12, 12, 0.92));
    border: 1px solid rgba(253, 6, 6, 0.28);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px -20px #000, 0 0 80px -30px var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 52px 28px 28px;
    animation: modal-in 0.55s var(--ease-out) both;
}
@keyframes overlay-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.94); } }
.wheel-close {
    top: 12px; right: 12px;
    width: 44px; height: 44px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    transition: background 0.3s, transform 0.4s var(--ease-out), border-color 0.3s;
}
.wheel-close:hover { background: var(--primary-color); transform: rotate(90deg); }
.wheel-form-side h3 { font-weight: 800; font-size: 1.7rem; line-height: 1.15; }
.wheel-form-side p { color: var(--text-muted-color); font-size: 0.95rem; }
.wheel-form-side .form-group { margin-bottom: 14px; text-align: left; }
.wheel-form-side .form-input { padding-left: 16px; }
.wheel-form-side .form-label { left: 16px; }
.wheel-form-side .form-input:focus + .form-label,
.wheel-form-side .form-input:not(:placeholder-shown) + .form-label { left: 16px; }
.wheel-form-side .button { width: 100%; margin: 0; }
.wheel-disclaimer { font-size: 0.78rem; margin-top: 12px; }
#wheel-canvas { filter: drop-shadow(0 0 30px rgba(253, 6, 6, 0.35)); }

/* ---------- Footer & Status ---------- */
.site-footer { background: linear-gradient(180deg, transparent, rgba(253, 6, 6, 0.05)), #050505; position: relative; }
.site-footer::before {
    content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 20px var(--glow-red);
}
.social-btn { width: 46px; height: 46px; border-radius: 12px; backdrop-filter: blur(8px); }
.footer-links a { padding: 4px 0; }
.status-capsule { bottom: max(20px, env(safe-area-inset-bottom)); }

/* ---------- Scroll reveal (JS .reveal ekler; JS yoksa içerik görünür kalır) ---------- */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
    section { padding: 56px 16px; }
    .service-item, .pricing-card, .testimonial-card { padding: 26px 22px; }
    .slider-section { height: 520px; }
    .contact-form { margin: 24px auto; }
    .footer-links a, .footer-contact-item a { display: inline-block; padding: 6px 0; }
}

/* ---------- Erişilebilirlik: hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .js-reveal .reveal { opacity: 1; transform: none; }
}


/* =====================================================================
   v2 — DÜZELTMELER & MİKRO-ETKİLEŞİMLER
   ===================================================================== */

/* Hamburger: sağ köşeye tam yasla */
header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { flex: 0 1 auto; min-width: 0; }
.menu-toggle { margin-left: auto; flex: 0 0 auto; position: relative; z-index: 2000; }
@media (min-width: 768px) { .menu-toggle { display: none; } nav { margin-left: auto; } }
header .container { padding-right: max(20px, env(safe-area-inset-right)); padding-left: max(20px, env(safe-area-inset-left)); }

/* Tipografi hiyerarşisi */
.hero-title { font-weight: 900; }
.hero-slogan { font-weight: 400; }
section h2 { font-weight: 800; letter-spacing: -0.02em; }
.service-item h3, .pricing-card h3 { font-weight: 800; letter-spacing: -0.01em; }
.service-item p, .pricing-card li, .testimonial-text { font-size: 0.98rem; line-height: 1.7; }
.hero-badge, .ticker-label, .slide-cat, .form-label { font-family: var(--font-display); }

/* Buton: ripple + glow + derinlik */
.button, .form-submit-button, .slide-btn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.button:hover, .form-submit-button:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 16px 38px -10px var(--glow-red), 0 0 36px -8px var(--glow-red);
}
.button:active, .form-submit-button:active { transform: translateY(0) scale(0.97); transition-duration: 0.12s; }
.button:focus-visible { box-shadow: 0 0 0 4px var(--glow-red-soft), 0 10px 30px -8px var(--glow-red); }
.ripple {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0); opacity: 1;
    animation: ripple 0.65s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(26); opacity: 0; } }

/* Kart: hover'da yumuşak glow + derinlik katmanları */
@media (hover: hover) {
    .service-item:hover, .pricing-card:hover, .testimonial-card:hover, .portfolio-card:hover {
        box-shadow:
            0 2px 0 rgba(255, 255, 255, 0.06) inset,
            0 18px 30px -18px rgba(0, 0, 0, 0.9),
            0 40px 70px -30px rgba(0, 0, 0, 0.9),
            0 0 60px -14px var(--glow-red);
    }
    .service-item:hover h3, .pricing-card:hover h3 { text-shadow: 0 0 22px rgba(253, 6, 6, 0.45); }
    .social-btn:hover, .slider-nav-btn:hover { box-shadow: 0 8px 24px -6px var(--glow-red); }
}
.service-item h3::before { transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.service-item:hover h3::before { transform: translateY(-3px) scale(1.08); box-shadow: 0 0 34px -2px var(--glow-red); }
.service-item, .pricing-card, .testimonial-card, .portfolio-card { touch-action: manipulation; }
.service-item:active, .pricing-card:active { transform: scale(0.99); }

/* Mobil menü: arka plan kararması + ease-out geçişler + geniş dokunma alanları */
body.menu-open::after {
    content: ''; position: fixed; inset: 0; z-index: 1400;
    background: rgba(0, 0, 0, 0.6);
    animation: overlay-in 0.4s ease-out both;
    pointer-events: none;
}
@media (max-width: 767px) {
    nav ul {
        opacity: 0; visibility: hidden;
        transform: translateY(-16px) scale(1.01);
        transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.5s;
        backdrop-filter: blur(22px) saturate(140%);
        -webkit-backdrop-filter: blur(22px) saturate(140%);
        background: radial-gradient(520px 360px at 85% 8%, rgba(253, 6, 6, 0.2), transparent 65%), rgba(6, 5, 5, 0.9);
        overscroll-behavior: contain;
    }
    nav ul.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    nav ul li { width: 100%; max-width: 360px; }
    nav ul li a {
        min-height: 60px; display: flex; align-items: center; justify-content: center;
        padding: 12px 24px; border-radius: 16px;
        background: var(--glass-bg); border: 1px solid var(--glass-border);
        -webkit-tap-highlight-color: transparent;
        transition: background 0.25s, border-color 0.25s, transform 0.2s;
    }
    nav ul li a:active { transform: scale(0.97); background: var(--glow-red-soft); border-color: var(--primary-color); }
    nav ul li a::after { display: none; }
    .menu-toggle { width: 52px; height: 52px; }
    .footer-links a, .footer-contact-item a { min-height: 44px; display: inline-flex; align-items: center; }
    .form-input { min-height: 58px; }
}

/* Hero performans: yalnızca transform/opacity, mobilde hafifletilmiş */
.hero-card--main, .hero-card--float, .hero-glow { will-change: transform; backface-visibility: hidden; }
#hero.is-paused .hero-card, #hero.is-paused .hero-glow, #hero.is-paused .hero-badge-dot { animation-play-state: paused; }
@media (max-width: 900px) {
    .hero-glow { filter: blur(70px); }
    .hero-glow--a { width: 340px; height: 340px; }
    .hero-glow--b { width: 280px; height: 280px; }
    .hero-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(145deg, rgba(40, 20, 20, 0.85), rgba(18, 14, 14, 0.9)); }
    .hero-card--float { animation-duration: 10s; }
    .hero-card--main { animation: none; }
}
@media (max-width: 480px) {
    .hero-glow--b, .hero-card--b { display: none; }
    .hero-visual { min-height: 220px; }
}

/* Logo: her ekranda aynı boyut, üst/alt boşluklu */
@media (max-width: 768px) { :root { --logo-h: 59px; } }
@media (max-width: 380px) { :root { --logo-h: 52px; } }
