﻿/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Navbar yüksekliği (desktop varsayılan) */
    --nav-h: 86px;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #0b1220;
    color: #fff;
}

/* Anchor scroll offset (fixed navbar) */
section[id] {
    scroll-margin-top: var(--nav-h);
}

/* ================= NAVBAR ================= */
.navbar {
    background: rgba(11,18,32,0.60);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .3px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(11,18,32,0.55);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand-logo {
    height: 34px;
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

.brand-name {
    font-weight: 700;
    letter-spacing: .2px;
}

.nav-mini-btn {
    border-radius: 999px;
    padding: .35rem .6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* Navbar link görünümü (okunaklı + active underline) */
.navbar .nav-link {
    opacity: .85;
    transition: opacity .2s ease;
}

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        opacity: 1;
    }

    .navbar .nav-link.active {
        position: relative;
    }

        .navbar .nav-link.active::after {
            content: "";
            position: absolute;
            left: .2rem;
            right: .2rem;
            bottom: -0.45rem;
            height: 2px;
            background: rgba(255,255,255,.75);
            border-radius: 999px;
        }

/* ================= HERO SLIDER ================= */
.hero-carousel {
    position: relative;
    overflow: hidden;
    /* Mobil tarayıcılarda daha stabil yükseklik */
    min-height: 100vh;
    min-height: 100svh;
}

    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 100vh;
        height: 100svh;
    }

        /* HERO GÖRSEL: daha net/parlak (transform çakışması kaldırıldı) */
        .hero-carousel .carousel-item img {
            width: 100%;
            height: 100vh;
            height: 100svh;
            object-fit: cover;
            object-position: center;
            /* PARLAK + NET (solukluğu alır) */
            filter: brightness(1.18) contrast(1.18) saturate(1.18);
            /* performans ipucu */
            will-change: transform;
        }

        /* Ken Burns (slayt geçişinde hafif hareket) */
        .hero-carousel .carousel-item.active img {
            animation: kenburns 9s ease-in-out both;
        }

@keyframes kenburns {
    from {
        transform: scale(1.05) translate3d(0,0,0);
    }

    to {
        transform: scale(1.10) translate3d(-10px,-10px,0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel .carousel-item.active img {
        animation: none;
        transform: none;
    }
}

/* Overlay (yazı okunaklı kalsın ama görsel solmasın) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.52), rgba(0,0,0,0.12));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    /* fixed navbar ile çakışmasın */
    padding-top: var(--nav-h);
}

.hero-inner {
    max-width: 680px;
    padding-left: 5vw;
    padding-right: 1rem;
    animation: fadeUp 1.0s ease forwards;
}

    .hero-inner h1 {
        font-size: clamp(2.2rem, 4vw, 3.6rem);
        font-weight: 850;
        margin-bottom: 1rem;
    }

    .hero-inner p {
        font-size: 1.15rem;
        opacity: .88;
        margin-bottom: 1.8rem;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel okları daha görünür */
.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.6));
}

/* Hero slider kayma süresi */
.hero-slider .carousel-item {
    transition: transform .85s ease-in-out;
}

/* Carousel içi taşmayı gizle */
.hero-slider .carousel-inner {
    overflow: hidden;
}

/* ================= SECTIONS ================= */
.section-pad {
    position: relative;
    z-index: 2;
    background: #0b1220;
    padding: 5rem 0;
}

/* ================= IMAGE ROW ================= */
.image-row {
    position: relative;
    z-index: 2;
    background: #0b1220;
    display: flex;
    height: 70vh;
    width: 100%;
}

.image-box {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

    .image-box::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.35);
    }

.image-box-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 4rem;
    /* Daha stabil genişlik */
    width: min(420px, 90%);
    animation: fadeUp 1.1s ease forwards;
}

.img-left {
    background-image: url('/img/hero/secondary-1.jpg');
}

.img-right {
    background-image: url('/img/hero/secondary-2.jpg');
}

/* ================= CONTACT ================= */
.contact-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    :root {
        /* Mobilde navbar genelde daha kısa */
        --nav-h: 74px;
    }

    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-carousel .carousel-item img {
        height: 92vh;
        height: 92svh;
    }

    .hero-inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .image-row {
        flex-direction: column;
        height: auto;
    }

    .image-box {
        height: 45vh;
        height: 45svh;
    }

    .image-box-content {
        padding: 2.2rem;
    }

    /* Active underline mobilde taşmasın */
    .navbar .nav-link.active::after {
        bottom: -0.35rem;
    }
}
