﻿/* ===========================
   GLOBAL
=========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

/* Bootstrap container */
.container {
    max-width: 1320px;
}

/* ===========================
   HEADER / MENÜ
   (SENİN ESKİ CLASS'LARINLA)
=========================== */

.header-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

/* Navbar içi hizalama */
.header-nav .navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Logo */
.logo-img {
    height: 64px;
    /* biraz büyüttüm */
    width: auto;
}

/* Ana menü UL */
.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    /* logodan sonra sağa it */
    gap: 48px;
}

/* Linkler */
.main-nav .nav-link {
    color: #003f7d;
    font-weight: 600;
    /* biraz daha kalın */
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.main-nav .nav-link:hover {
    color: #009fe3;
}

/* Alt çizgi efekti */
.main-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #009fe3;
    transition: width 0.2s ease-out;
}

.main-nav .nav-link:hover::after {
    width: 100%;
}

/* Mobil buton */
.mobile-menu-btn {
    border-color: #003f7d;
    color: #003f7d;
}

/* ===========================
   HERO SLIDER
=========================== */

.hero-carousel {
    width: 100%;
}

/* Slide container */
.hero-slide {
    position: relative;
    width: 100%;
    min-height: 620px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* DESKTOP BACKGROUNDS */
.hero-slide--variant1 {
    background-image: url('/images/slide/anka-hero-bg-1.jpg');
}

.hero-slide--variant2 {
    background-image: url('/images/slide/anka-hero-bg-2.jpg');
}

.hero-slide--variant3 {
    background-image: url('/images/slide/slide-hero-bg-3.jpg');
}

.hero-slide--variant4 {
    background-image: url('/images/slide/slide-hero-bg-4.jpg');
}

.hero-slide--variant5 {
    background-image: url('/images/slide/slide-hero-bg-5.jpg');
}

.hero-slide--variant6 {
    background-image: url('/images/slide/slide-hero-bg-5.jpg');
}

.hero-slide--variant7 {
    background-color: #fff;
}

/* LEAF ANIMATION (Mobile Only) */
.mobile-leaf {
    display: none;
}

@keyframes leafSway {
    0% {
        transform: rotate(0deg) translateX(0);
    }

    25% {
        transform: rotate(5deg) translateX(10px);
    }

    50% {
        transform: rotate(0deg) translateX(0);
    }

    75% {
        transform: rotate(-5deg) translateX(-5px);
    }

    100% {
        transform: rotate(0deg) translateX(0);
    }
}

/* MOBİL RESPONSIVE */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 500px;
        background-position: center center;
    }

    /* Mobile Backgrounds */
    .hero-slide--variant1 {
        background-image: url('/images/slide/mobil/slide_1_mobil_bg.png') !important;
    }

    .hero-slide--variant2 {
        background-image: url('/images/slide/mobil/slide_2_mobil_bg.png') !important;
    }

    .hero-slide--variant3 {
        background-image: url('/images/slide/mobil/slide_3_mobil_bg.png') !important;
    }

    .hero-slide--variant4 {
        background-image: url('/images/slide/mobil/slide_4_mobil_bg.png') !important;
    }

    .hero-slide--variant5 {
        background-image: url('/images/slide/mobil/slide_5_mobil_bg.png') !important;
    }

    .hero-slide--variant6 {
        background-image: url('/images/slide/mobil/slide_6_mobil_bg.png') !important;
    }

    .hero-slide--variant7 {
        background-image: url('/images/slide/mobil/slide_7_mobil_bg.png') !important;
    }

    /* Slide 1 Leaf Animation */
    .mobile-leaf {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        max-width: 200px;
        height: auto;
        z-index: 2;
        animation: leafSway 6s ease-in-out infinite;
        pointer-events: none;
    }

    /* Text Color Override for Mobile */
    .hero-title {
        color: #003f7d !important;
    }
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* METİN: slider’ın üstünde, ortada; satırlar sola yaslı */
.hero-title-wrapper {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 780px;
}

.hero-title {
    margin: 0;
    color: #004a8f;
    font-weight: 800;
    font-size: 3.1rem;
    line-height: 1.12;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
}

/* BADGE PNG: sağa yaslı, büyük + esinti */
.hero-badge-img {
    position: absolute;
    top: 20%;
    right: 0;
    width: 440px;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
    opacity: 0;
}

/* Slider okları / noktaları gizli olsun şimdilik */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next,
.hero-carousel .carousel-indicators {
    display: none;
}

/* ========== ANİMASYONLAR ========== */

.carousel-item.active .hero-title {
    animation: heroTitleIn 0.7s ease-out forwards 0.12s;
}

.carousel-item.active .hero-badge-img {
    animation: heroBadgeIn 0.65s ease-out forwards 0.2s, heroBadgeBreeze 5s ease-in-out infinite 0.9s;
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBadgeIn {
    from {
        opacity: 0;
        transform: translate(40px, -40px);
    }

    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* hafif esinti */
@keyframes heroBadgeBreeze {
    0% {
        transform: translate(0, 0) rotate(-1deg);
    }

    50% {
        transform: translate(-6px, -4px) rotate(1.2deg);
    }

    100% {
        transform: translate(0, 0) rotate(-0.6deg);
    }
}

/* ===========================
   ALT BÖLÜMLER (şimdilik)
=========================== */

.section-intro,
.section-quality,
.section-plans,
.section-block,
.section-location,
.section-contact {
    padding: 4rem 0;
}

.section-intro h2,
.section-location h3 {
    color: #003f7d;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-quality {
    background: #f4f7fb;
}

.section-plans {
    background: #0b2344;
    color: #ffffff;
}

.section-block {
    color: #ffffff;
}

.section-green {
    background: #0d9568;
}

.section-teal {
    background: #00a1b4;
}

.section-orange {
    background: #f0793b;
}

.section-pink {
    background: #d75d87;
}

.section-location {
    background: #f5f7fa;
}

.section-contact {
    background: #001a3b;
    color: #ffffff;
}

.section-contact .form-control {
    border-radius: 0;
}

.section-contact .btn-primary {
    background: #009fe3;
    border-color: #009fe3;
    border-radius: 0;
}

.site-footer {
    background: #001129;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1199.98px) {
    .main-nav {
        gap: 32px;
    }

    .hero-title {
        font-size: 2.7rem;
    }

    .hero-badge-img {
        width: 380px;
        top: 22%;
    }
}

@media (max-width: 991.98px) {

    .hero-slide {
        min-height: 520px;
        background-position: center center;
    }

    .hero-title-wrapper {
        top: 90px;
        max-width: 100%;
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.1rem;
        text-align: center;
    }

    /* Mobil / tablet: badge metnin altına, ortalı */
    .hero-badge-img {
        position: static;
        display: block;
        margin: 24px auto 0 auto;
        width: 260px;
        opacity: 0;
    }

    .carousel-item.active .hero-badge-img {
        animation: heroBadgeInMobile 0.6s ease-out forwards 0.3s, heroBadgeBreezeMobile 5s ease-in-out infinite 0.9s;
    }

    @keyframes heroBadgeInMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes heroBadgeBreezeMobile {
        0% {
            transform: translateY(0) rotate(-1deg);
        }

        50% {
            transform: translateY(-4px) rotate(1deg);
        }

        100% {
            transform: translateY(0) rotate(-0.6deg);
        }
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        min-height: 500px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-badge-img {
        width: 230px;
    }
}