﻿/* ========= 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;
    background-color: #ffffff;
}

/* ========= HEADER / MENÜ ========= */

.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dcdfe5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 96px;
}

.brand-logo img {
    height: 72px;
    width: auto;
}

/* Desktop menü */
.main-nav {
    display: flex;
    align-items: center;
    gap: 72px;
}

.nav-item-link {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #123b63;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    padding-top: 2px;
    transition: color 0.15s ease-out;
}

.nav-item-link:hover {
    color: #006bb6;
}

.nav-item-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #006bb6;
    transition: width 0.18s ease-out;
}

.nav-item-link:hover::after {
    width: 100%;
}

/* ===========================
   TOGGLE BUTTON (Hamburger → X)
=========================== */

/* Dış daire */
.mobile-nav-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #144270;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s cubic-bezier(.55, .16, .24, 1.15), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Çizgilerin ortak tanımı */
.toggle-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2.4px;
    background: #144270;
    border-radius: 999px;
    transform-origin: center;
    transition: transform 0.32s cubic-bezier(.55, .16, .24, 1.15), opacity 0.22s ease;
}

/* 3 çizgiyi merkezden yukarı-aşağı eşit kaydırıyoruz */
.toggle-line:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-6px);
}

.toggle-line:nth-child(2) {
    transform: translate(-50%, -50%);
    /* tam merkez */
}

.toggle-line:nth-child(3) {
    transform: translate(-50%, -50%) translateY(6px);
}

/* ========== AÇIK KEN X DÖNÜŞÜ ========== */

/* Hafif büyüme */
.mobile-nav-toggle.is-open {
    transform: scale(1.06);
}

/* 1. çizgi: merkeze gelip 45° dönüyor */
.mobile-nav-toggle.is-open .toggle-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Orta çizgi: fade + sola kayma */
.mobile-nav-toggle.is-open .toggle-line:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-8px);
}

/* 3. çizgi: merkeze gelip -45° dönüyor */
.mobile-nav-toggle.is-open .toggle-line:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hafif, abartısız bir bounce efekti */
.mobile-nav-toggle.is-open .toggle-line:nth-child(1),
.mobile-nav-toggle.is-open .toggle-line:nth-child(3) {
    animation: toggleBounceSoft 0.36s ease-out;
}

@keyframes toggleBounceSoft {
    0% {
        transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.15) rotate(40deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(45deg);
    }
}

/* 3. çizgi için ters yön */
.mobile-nav-toggle.is-open .toggle-line:nth-child(3) {
    animation-name: toggleBounceSoftRev;
}

@keyframes toggleBounceSoftRev {
    0% {
        transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.15) rotate(-40deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(-45deg);
    }
}

/* ========== MENÜ AÇIKKEN SOFT GÖRÜNÜM ========== */

body.menu-open .mobile-nav-toggle {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: #2c4f77;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.09);
}

body.menu-open .toggle-line {
    background: #2c4f77;
    opacity: 0.75;
}


/* ===========================
   MENÜ AÇIKKEN SOFT GÖRÜNÜM
=========================== */

/* Menü açıkken toggle yumuşasın */
body.menu-open .mobile-nav-toggle {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: #2c4f77;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.09);
}

/* Çizgiler daha soft navy ve hafif şeffaf */
body.menu-open .toggle-line {
    background: #2c4f77;
    opacity: 0.7;
}



/* Mobil / Tablet menü (Vue ile açılıyor) */
.mobile-nav {
    position: absolute;
    top: 96px;
    /* header yüksekliği kadar */
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #dcdfe5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    padding: 12px 24px 18px;
    gap: 6px;
}

.mobile-nav-link {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #123b63;
    text-decoration: none;
    padding: 8px 0;
}

.mobile-nav-link:hover {
    color: #006bb6;
}

/* Vue transition */
.mobile-nav-fade-enter-active,
.mobile-nav-fade-leave-active {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.mobile-nav-fade-enter-from,
.mobile-nav-fade-leave-to {
    opacity: 0;
    transform: translateY(-6px);
}

/* ========= RESPONSIVE ========= */

@media (max-width: 991.98px) {
    .header-inner {
        height: 80px;
    }

    .brand-logo img {
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo img {
        height: 52px;
    }

    .mobile-nav {
        top: 80px;
        /* mobilde header biraz daha düşük olduğu için */
        padding-inline: 18px;
    }
}

/* Menü açıkken body'de bir class var */
body.menu-open main,
body.menu-open footer,
body.menu-open .hero-section,
body.menu-open .hero-carousel,
body.menu-open .hero-slide {
    filter: blur(6px);
    transition: filter .35s ease;
}

/* Blur geçişi yumuşak olsun */
main,
footer,
.hero-section,
.hero-carousel,
.hero-slide {
    transition: filter .35s ease;
}

/* Menü BLOĞU asla blur olmaz */
.toggle-line:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-6px);
}

.toggle-line:nth-child(2) {
    transform: translate(-50%, -50%);
    /* tam merkez */
}

.toggle-line:nth-child(3) {
    transform: translate(-50%, -50%) translateY(6px);
}

/* ========== AÇIK KEN X DÖNÜŞÜ ========== */

/* Hafif büyüme */
.mobile-nav-toggle.is-open {
    transform: scale(1.06);
}

/* 1. çizgi: merkeze gelip 45° dönüyor */
.mobile-nav-toggle.is-open .toggle-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Orta çizgi: fade + sola kayma */
.mobile-nav-toggle.is-open .toggle-line:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-8px);
}

/* 3. çizgi: merkeze gelip -45° dönüyor */
.mobile-nav-toggle.is-open .toggle-line:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hafif, abartısız bir bounce efekti */
.mobile-nav-toggle.is-open .toggle-line:nth-child(1),
.mobile-nav-toggle.is-open .toggle-line:nth-child(3) {
    animation: toggleBounceSoft 0.36s ease-out;
}

@keyframes toggleBounceSoft {
    0% {
        transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.15) rotate(40deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(45deg);
    }
}

/* 3. çizgi için ters yön */
.mobile-nav-toggle.is-open .toggle-line:nth-child(3) {
    animation-name: toggleBounceSoftRev;
}

@keyframes toggleBounceSoftRev {
    0% {
        transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.15) rotate(-40deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(-45deg);
    }
}

/* ========== MENÜ AÇIKKEN SOFT GÖRÜNÜM ========== */

body.menu-open .mobile-nav-toggle {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: #2c4f77;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.09);
}

body.menu-open .toggle-line {
    background: #2c4f77;
    opacity: 0.75;
}


/* ===========================
   MENÜ AÇIKKEN SOFT GÖRÜNÜM
=========================== */

/* Menü açıkken toggle yumuşasın */
body.menu-open .mobile-nav-toggle {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: #2c4f77;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.09);
}

/* Çizgiler daha soft navy ve hafif şeffaf */
body.menu-open .toggle-line {
    background: #2c4f77;
    opacity: 0.7;
}



/* Mobil / Tablet menü (Vue ile açılıyor) */
.mobile-nav {
    position: absolute;
    top: 96px;
    /* header yüksekliği kadar */
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #dcdfe5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    padding: 12px 24px 18px;
    gap: 6px;
}

.mobile-nav-link {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #123b63;
    text-decoration: none;
    padding: 8px 0;
}

.mobile-nav-link:hover {
    color: #006bb6;
}

/* Vue transition */
.mobile-nav-fade-enter-active,
.mobile-nav-fade-leave-active {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.mobile-nav-fade-enter-from,
.mobile-nav-fade-leave-to {
    opacity: 0;
    transform: translateY(-6px);
}

/* ========= RESPONSIVE ========= */

@media (max-width: 991.98px) {
    .header-inner {
        height: 80px;
    }

    .brand-logo img {
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo img {
        height: 52px;
    }

    .mobile-nav {
        top: 80px;
        /* mobilde header biraz daha düşük olduğu için */
        padding-inline: 18px;
    }
}

/* Menü açıkken body'de bir class var */
body.menu-open main,
body.menu-open footer,
body.menu-open .hero-section,
body.menu-open .hero-carousel,
body.menu-open .hero-slide {
    filter: blur(6px);
    transition: filter .35s ease;
}

/* Blur geçişi yumuşak olsun */
main,
footer,
.hero-section,
.hero-carousel,
.hero-slide {
    transition: filter .35s ease;
}

/* Menü BLOĞU asla blur olmaz */
.mobile-nav-panel {
    filter: none !important;
    backdrop-filter: none !important;
}

/* ===========================
   FOOTER
=========================== */

.site-footer {
    background: radial-gradient(circle at top left, #1b4e86 0%, #021632 55%, #000814 100%);
    color: #f7f9fc;
    margin-top: 0;
}

/* Üst blok */
.footer-top {
    padding: 3.5rem 0 2.5rem;
}

/* Alt şerit */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 0;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
}

/* Logo */
.footer-logo {
    max-width: 160px;
    height: auto;
}

.footer-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(247, 249, 252, 0.85);
}

/* Başlıklar */
.footer-title {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    color: #fdfefe;
}

/* Link listeleri */
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li+li,
.footer-contact li+li {
    margin-top: 0.35rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(247, 249, 252, 0.85);
    text-decoration: none;
    font-size: 0.93rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #57c0ff;
    transform: translateX(2px);
}

/* Sosyal */
.footer-social {
    margin-top: 1.1rem;
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(247, 249, 252, 0.85);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background-color: #57c0ff;
    border-color: #57c0ff;
    color: #02101e;
    transform: translateY(-1px);
}

/* Alt satır linkleri */
.footer-bottom-link {
    color: rgba(247, 249, 252, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: #ffffff;
}

.footer-bottom-sep {
    margin: 0 0.45rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 767.98px) {
    .footer-top {
        padding: 2.5rem 0 2rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .footer-title {
        margin-top: 1.6rem;
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}