/* === GENEL FLEX YAPI (Footer her zaman altta) === */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* === DEĞİŞKENLER === */
:root {
    --bg: #ffffff;
    --ink: #0f172a;
    --muted: #6b7280;
    --card: #f8fafc;
    --line: #e5e7eb;
    --brand: #0077cc;
    --brand-2: #66a6ff;
    --shadow: 0 10px 25px rgba(2, 6, 23, .06);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(6px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    opacity: .85;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--brand);
}

/* Mobil Menü */
.nav-toggle {
    display: none;
    width: 44px;
    height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 6px 0;
    transition: .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-drawer {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.mobile-drawer a {
    padding: 10px 6px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
}

.mobile-drawer a.active,
.mobile-drawer a:hover {
    background: var(--card);
    color: var(--brand);
}

@media (max-width:860px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .mobile-drawer[hidden] {
        display: none;
    }

    .mobile-drawer {
        display: flex;
    }
}

/* === HERO SLIDER === */
.hero-slider {
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.swiper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slide 1 */
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
    width: min(1120px, 92vw);
    margin-inline: auto;
    padding: 60px 0;
}

.hero-text h1 {
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.15;
    margin: 0 0 12px;
}

.hero-text p {
    color: var(--muted);
    margin: 0 0 22px;
}

.accent {
    color: var(--brand);
}

.hero-art img {
    max-width: 320px;
    width: 100%;
    height: auto;
}

/* Backgroundlı slide'lar */
.bg-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-content {
    background: rgba(255, 255, 255, .75);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 700px;
}

.bg-content h1 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 12px;
}

/* Swiper Controls */
.swiper-button-next,
.swiper-button-prev {
    color: var(--brand);
}

.swiper-pagination-bullet {
    background: var(--brand);
}

@media (max-width:768px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* === SECTION === */
.section {
    padding: 38px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    /* ✅ Ortalar */
    gap: 12px;
    margin-bottom: 14px;
}

.section-head h2 {
    text-align: center;
    /* ✅ Yazıyı da ortalar */
}


.section-head.with-back {
    justify-content: space-between;
    /* Başlık orta kalsın, buton sağ tarafta */
}

.section-head.with-back h2 {
    flex: 1;
    text-align: center;
}

/* Genel buton yapısı */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover efekti */
.btn-ghost:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 4px 10px rgba(0, 119, 204, 0.3);
    transform: translateY(-1px);
}

/* Ok ikonu */
.btn-ghost::before {
    content: "←";
    /* İstersen yerine SVG de ekleyebiliriz */
    font-weight: bold;
    transition: transform 0.25s ease;
}

.btn-ghost:hover::before {
    transform: translateX(-3px);
}

/* ✅ Modern Kart Tasarımı */
.modern-card {
    width: 100%;
    max-width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ✅ Görsel alanı */
.modern-card .card-image {
    width: 100%;
    height: 260px;
    /* Gerektiğinde ayarlanabilir */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f4f6;
}

.modern-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ✅ Başlık alanı */
.modern-card .card-title {
    padding: 16px;
    background: #fff;
}

.modern-card .card-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
}




/* === GRID === */
.grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    /* ✅ EKLENECEK */
}

#categoryGrid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}



@media (max-width:1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #d8dee5;
}

.card-media {
    position: relative;
    aspect-ratio: 16/10;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fab {
    position: fixed;
    right: 28px;
    bottom: 90px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1ebe5d, #29e16c);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(37, 211, 102, .5);
    text-decoration: none;
    z-index: 100;
}

/* === FOOTER === */
.site-footer {
    border-top: 1px solid var(--line);
    background: #fafbfc;
}

.footer-inner {
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
}

/* === PAGINATION (tüm sayfalar için ortak) === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0 0;
}

.pagination button {
    background: #fff;
    border: 1px solid var(--brand);
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    color: var(--brand);
    transition: .2s;
}

.pagination button:hover,
.pagination button.active {
    background: var(--brand);
    color: #fff;
}

.neden-section {
    width: 100%;
    background: #f8fafc;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid var(--line);
}

.neden-section h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 40px;
    color: var(--ink);
}

.neden-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.neden-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f6;
}

.neden-item:nth-child(2n) {
    border-left: 1px solid #eef2f6;
    padding-left: 24px;
}

.neden-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.neden-text p {
    font-size: 14px;
    color: var(--muted);
}

.bolt {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #e9f3ff;
}

.bolt svg {
    width: 18px;
    height: 18px;
    fill: #0d4a86;
    animation: boltPulse 2.2s infinite ease-in-out;
}

@keyframes boltPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(0, 119, 204, .55));
    }
}

.lightning-bg {
    position: relative;
    overflow: hidden;
    background: #f6f9fc;
    padding: 80px 0;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, .04), inset 0 -1px 0 rgba(0, 0, 0, .04);
}

.lightning-bg::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -80px;
    width: 90px;
    height: 180px;
    transform: translateY(-50%) rotate(-6deg);
    opacity: 0;
    z-index: 0;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 128"><path fill="black" d="M36 0 0 64h24L18 128l46-64H40l-4-64z"/></svg>') center/contain no-repeat;
    filter: drop-shadow(0 0 20px rgba(80, 160, 255, .75));
    animation: lightning-flash 10s infinite ease-in;
}

.lightning-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 102, 204, 0) 20%, rgba(135, 187, 255, .18) 45%, rgba(0, 102, 204, 0) 70%);
    transform: translateX(-120%);
    opacity: 0;
    filter: blur(12px);
    animation: lightning-glow 10s infinite ease-out;
}

@keyframes lightning-flash {
    0% {
        opacity: 0;
        transform: translate(-10px, -50%) rotate(-6deg) scale(0.98);
    }

    3% {
        opacity: 1;
        transform: translate(0, -50%) rotate(-6deg) scale(1);
    }

    6% {
        opacity: 0;
        transform: translate(10px, -50%) rotate(-6deg) scale(1.02);
    }
}

@keyframes lightning-glow {

    0%,
    5% {
        opacity: 0;
        transform: translateX(-120%);
    }

    6% {
        opacity: .28;
        transform: translateX(-80%);
    }

    25% {
        opacity: .35;
        transform: translateX(60%);
    }

    35% {
        opacity: .15;
        transform: translateX(120%);
    }

    45%,
    100% {
        opacity: 0;
        transform: translateX(120%);
    }
}

.lightning-bg .contact-inner {
    position: relative;
    z-index: 1;
}

.contact-wrap {
    width: 100%;
    min-height: 500px;
    /* ya da gerekirse 600px */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}


.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 15px;
    color: var(--muted);
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand);
    outline: none;
}

.btn-submit {
    padding: 12px 16px;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit:hover {
    background: var(--brand-2);
}

@media (max-width:1024px) {
    .neden-item:nth-child(2n) {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width:768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .neden-grid {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width:768px) {
    .contact-wrap {
        padding-bottom: 120px;
        /* footer çarpışmasın */
    }
}

/* === Lightning Test (5sn) === */
.lightning-bg {
    position: relative;
    overflow: hidden;
    background: #f6f9fc;
    isolation: isolate;
}

/* Şimşek ikonu */
.lightning-bg::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -120px;
    width: 120px;
    height: 250px;
    transform: translateY(-50%) rotate(-6deg);
    opacity: 0;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 128"><path fill="black" d="M36 0 0 64h24L18 128l46-64H40l-4-64z"/></svg>') center/contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 128"><path fill="black" d="M36 0 0 64h24L18 128l46-64H40l-4-64z"/></svg>') center/contain no-repeat;
    filter: drop-shadow(0 0 25px rgba(100, 150, 255, .9));
    animation: lightning-flash 5s infinite ease-in;
}

/* Glow soldan sağa */
.lightning-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(0, 119, 255, 0) 10%,
            rgba(135, 187, 255, .4) 50%,
            rgba(0, 119, 255, 0) 90%);
    transform: translateX(-150%);
    opacity: 0;
    filter: blur(20px);
    animation: lightning-glow 5s infinite ease-out;
}

/* FLASH */
@keyframes lightning-flash {
    0% {
        opacity: 0;
        transform: translate(-20px, -50%) scale(0.9);
    }

    5% {
        opacity: 1;
        transform: translate(0, -50%) scale(1);
    }

    10% {
        opacity: 0;
        transform: translate(80px, -50%) scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

/* GLOW */
@keyframes lightning-glow {

    0%,
    8% {
        opacity: 0;
        transform: translateX(-150%);
    }

    10% {
        opacity: 0.6;
        transform: translateX(-50%);
    }

    25% {
        opacity: 0.4;
        transform: translateX(50%);
    }

    35% {
        opacity: 0.2;
        transform: translateX(150%);
    }

    50%,
    100% {
        opacity: 0;
        transform: translateX(150%);
    }
}

/* İçerik üstte */
.lightning-bg .contact-inner {
    position: relative;
    z-index: 1;
}