html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
section[id] { scroll-margin-top: 80px; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Arka plan desenleri ---------- */
.blueprint-grid {
    background-image: radial-gradient(circle, #c2c6d2 1px, transparent 1px);
    background-size: 32px 32px;
}

.line-grid {
    background-image:
        linear-gradient(rgba(73, 224, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73, 224, 255, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}

.hero-bg {
    background:
        radial-gradient(circle at 78% 30%, rgba(73, 224, 255, 0.18), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(0, 67, 131, 0.55), transparent 50%),
        linear-gradient(160deg, #000f22 0%, #001b3c 55%, #002c5a 100%);
}

.text-gradient {
    background: linear-gradient(90deg, #49e0ff 0%, #8fb8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Üst bar ---------- */
#scrollProgress {
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.site-nav.is-scrolled {
    box-shadow: 0 8px 30px -12px rgba(0, 27, 60, 0.25);
}

.nav-link { position: relative; }
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #004383;
    transform: scaleX(0);
    transition: transform .3s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #004383; }

/* ---------- Hero ---------- */
.hero-visual {
    animation: float 7s ease-in-out infinite;
}
.hero-glow {
    background: radial-gradient(circle, rgba(73, 224, 255, 0.35), transparent 65%);
    filter: blur(30px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---------- Kalite bölümü ---------- */
.network-circle {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.orbit {
    position: absolute;
    inset: 0;
    border: 1px dashed #004383;
    border-radius: 50%;
    opacity: 0.35;
    animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Süreç zaman çizelgesi ---------- */
.process-line-fill {
    transform-origin: 0 50%;
    transform: scaleX(0);
    transition: transform 1.6s cubic-bezier(.2, .7, .2, 1) .2s;
}
.is-visible .process-line-fill { transform: scaleX(1); }

/* ---------- Tam sayfa geçiş ----------
   Her kaydırma hareketi bir sonraki bölüme oturur. Yalnızca içeriğin tek ekrana
   sığdığı ekranlarda açık; koşul tailwind.config.js'teki "snap" ekranıyla aynı olmalı. */
@media (min-width: 1024px) and (min-height: 760px) {
    html { scroll-snap-type: y mandatory; }
    .snap-page {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        scroll-snap-align: start;
        /* Hızlı bir hareketin birden fazla bölümü atlamasını engeller. */
        scroll-snap-stop: always;
    }
    /* Bölümler üst menü payını kendi iç boşluğunda taşıdığı için ek kaydırma payı gerekmez. */
    section[id].snap-page { scroll-margin-top: 0; }
    /* İllüstrasyon kare olduğu için genişliği sınırlamak yüksekliğini de ekrana sığdırır. */
    .hero-visual { max-width: min(100%, calc(100svh - 320px)); margin-inline: auto; }
    .network-circle { max-width: 300px; }
}

/* ---------- Kaydırma ile beliren içerik ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* JS çalışmazsa içerik gizli kalmasın. */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-visual, .orbit { animation: none; }
    .process-line-fill { transform: scaleX(1); transition: none; }
}

/* ---------- Form ---------- */
input:focus, select:focus, textarea:focus {
    border-color: #004383 !important;
    box-shadow: none !important;
}
