/* =========================================================
   POSOFİS — Modern tek sayfa stil (açık + koyu mod)
   Ana renk: #00AEFF  |  Logo aksanı: #aabe36
   ========================================================= */

/* ---------- Tema değişkenleri ---------- */
:root {
    --brand: #00AEFF;
    --brand-600: #0091dd;
    --brand-700: #0077b8;
    --accent: #aabe36;

    --radius: 16px;
    --radius-sm: 10px;
    --container: 1200px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-head: 'Sora', 'Inter', system-ui, sans-serif;
}

/* Koyu mod (tek tema) */
:root,
[data-theme="dark"] {
    --bg: #0a0f1a;
    --bg-soft: #0e1524;
    --surface: #121a2b;
    --surface-2: #18223a;
    --border: #243049;
    --text: #eaf1fb;
    --text-soft: #a9b8d2;
    --muted: #6b7a96;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --nav-bg: rgba(14, 21, 36, 0.72);
    --glow: rgba(0, 174, 255, 0.22);
}

/* ---------- Temel ---------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

.grad {
    background: linear-gradient(120deg, var(--brand), #43c9ff 60%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    padding: 6px 14px;
    border-radius: 999px;
}

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
    white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-primary {
    background: linear-gradient(120deg, var(--brand), var(--brand-600));
    color: #fff;
    box-shadow: 0 12px 24px -10px var(--brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px var(--brand); }
.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

/* ---------- İlerleme çubuğu ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    z-index: 1000;
    transition: width 0.1s linear;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    background: transparent;
    transition: background 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 30px -18px rgba(0,0,0,0.35);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}
.brand-logo { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-soft);
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px; height: 42px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    width: 20px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 150px 0 90px;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: -200px; right: -100px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--glow), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.hero-copy h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.5rem);
    font-weight: 800;
    margin: 18px 0;
}
.lead { font-size: 1.1rem; color: var(--text-soft); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 38px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--text); }
.stat span { font-size: 0.85rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
    transition: transform 0.5s var(--ease);
}
.hero-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.hero-card img { border-radius: 10px; width: 100%; }

/* ---------- Genel section ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; margin: 14px 0 10px; }
.section-head p { color: var(--text-soft); }

/* ---------- Özellikler ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Galeri (ekranlar) ---------- */
.gallery {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}
.gallery-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand) transparent;
}
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 8px; }
.gallery-track::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 8px; }
.gallery-item {
    flex: 0 0 auto;
    width: 360px;
    scroll-snap-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; object-position: top; }

.gallery-nav {
    position: absolute;
    top: 42%;
    z-index: 5;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    color: var(--text);
    cursor: pointer;
    display: grid; place-items: center;
    font-size: 1.05rem;
    box-shadow: var(--shadow);
    transition: background 0.25s, transform 0.25s, color 0.25s;
}
.gallery-nav:hover { background: var(--brand); color: #fff; transform: scale(1.08); }
.gallery-nav.prev { left: -6px; }
.gallery-nav.next { right: -6px; }

/* ---------- Referans marquee ---------- */
.marquee {
    overflow: hidden;
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
/* Her öğenin sağında eşit boşluk (gap yerine) → -50% kayması kusursuz oturur */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ref-logo {
    flex: 0 0 auto;
    height: 110px;
    width: 210px;
    margin-right: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
}
.ref-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.3s, opacity 0.3s;
}
.ref-logo:hover img { filter: grayscale(0); opacity: 1; }
[data-theme="dark"] .ref-logo { background: #fff; }

/* ---------- İletişim ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: stretch;
}
/* Üst satır: bilgiler (sol) + harita (sağ) yan yana */
.contact-info { order: 1; display: flex; flex-direction: column; gap: 14px; }
.contact-map  { order: 2; }
/* Alt satır: form tam genişlik */
.contact-form-wrap { order: 3; grid-column: 1 / -1; }

/* Form */
.contact-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.form-title { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.form-title i { color: var(--brand); }
.form-sub { color: var(--text-soft); font-size: 0.95rem; margin: 8px 0 22px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.contact-form .field { display: flex; flex-direction: column; }
.contact-form .field.full,
.contact-form .form-submit,
.contact-form .form-status { grid-column: 1 / -1; }
.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 7px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 0.96rem;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form select { cursor: pointer; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.contact-form input.invalid,
.contact-form textarea.invalid { border-color: #ff5d6c; box-shadow: 0 0 0 3px rgba(255, 93, 108, 0.18); }
.form-submit { justify-self: center; min-width: 200px; justify-content: center; margin-top: 8px; }
.form-submit.loading { opacity: 0.75; cursor: progress; }
.form-submit.loading i { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #2ecc71; }
.form-status.err { color: #ff5d6c; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: transform 0.25s var(--ease), border-color 0.25s;
}
.contact-item:hover { transform: translateX(5px); border-color: var(--brand); }
.ci-icon {
    width: 44px; height: 44px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    font-size: 1.05rem;
}
.contact-item span { display: flex; flex-direction: column; font-weight: 600; }
.contact-item small { font-weight: 500; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-height: 380px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
[data-theme="dark"] .contact-map iframe { filter: invert(0.9) hue-rotate(180deg); }

/* ---------- Neden Sihirli Tuş ---------- */
.neden-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: center;
}
.neden-logo {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    display: grid; place-items: center;
    box-shadow: var(--shadow);
}
.neden-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 14px 0 16px; }
.neden-copy p { color: var(--text-soft); margin-bottom: 26px; font-size: 1.02rem; }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
.footer-logo { height: 40px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-soft); font-size: 0.95rem; max-width: 280px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--text-soft); font-size: 0.93rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand); }
.social { display: flex; gap: 10px; }
.social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: 0.25s var(--ease);
}
.social a:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-3px); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 22px;
    padding-bottom: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}
.footer-bottom span { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom img { width: 22px; height: 22px; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(5, 9, 17, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: grid; place-items: center;
    transition: background 0.2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--brand); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ---------- Yukarı çık ---------- */
.to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(120deg, var(--brand), var(--brand-600));
    color: #fff;
    cursor: pointer;
    font-size: 1.05rem;
    box-shadow: 0 12px 24px -8px var(--brand);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.35s var(--ease);
    z-index: 800;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .hero-card { transform: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .neden-inner { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--nav-bg);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        padding: 14px;
        gap: 4px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: 0.4s var(--ease);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-link { padding: 12px 16px; font-size: 1rem; }
    .hamburger { display: flex; }
    .nav-cta { display: none; }
    .hero { padding: 120px 0 70px; }
    .feature-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .gallery-item { width: 280px; }
    .gallery-item img { height: 190px; }
    .contact-form { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-stats { gap: 20px; }
    .hero-cta .btn { flex: 1; justify-content: center; }
}
