html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Global Styles */
:root {
    --primary-color: #5c3d74;
    --primary-light: #8e44ad;
    --accent-color: #d63384;
    --light-bg: #f9f5fc;
    --text-color: #2c2c2c;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* Layout Structure */
.min-vh-100 {
    min-height: 100vh;
}

.flex-grow-1 {
    flex-grow: 1;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

/* Container Adjustments */
.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Kenardan kenara */
.full-bleed {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%); /* sol/sağ taşmayı düzgün yap */
}

/* Hero yüksekliği */
.video-background {
    position: relative;
    height: 100svh; /* iOS için güvenli viewport; destek yoksa 100vh */
    overflow: hidden;
    background: #000; /* video oynarken zemin */
}

    /* Video doldursun, yumuşakça kaybolsun */
    .video-background video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity .8s ease;
    }

/* Beyaz katman: başta gizli */
.after-intro {
    position: absolute;
    inset: 0;
    background: var(--light-bg, #f9f5fc);
    opacity: 0;
    visibility: hidden;
    display: grid;
    place-items: center;
    z-index: 2;
    transition: opacity .6s ease .1s, visibility 0s linear .1s;
}

.after-intro-content {
    text-align: center;
}

.discover-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: var(--primary-color, #5c3d74);
    margin-bottom: .75rem;
}

/* Aşağı ok animasyonu */
.scroll-down {
    display: inline-block;
    font-size: 2rem;
    color: var(--primary-color, #5c3d74);
    animation: arrowBounce 1.5s infinite;
    text-decoration: none;
}

@keyframes arrowBounce {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

/* Video bittiğinde: video sol, beyaz katman görünür */
.video-background.ended video {
    opacity: 0;
}

.video-background.ended .after-intro {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s, 0s;
}
.video-background.ended {
    background: var(--light-bg, #f9f5fc);
}


:root { --header-h: 72px; } 
.video-background { height: calc(100svh - var(--header-h)); }



/* Varsayılan: masaüstü video açık, mobil bölüm gizli */
.hero-desktop {
    display: block;
}

.hero-mobile {
    display: none;
}

/* Metin bloğu – sade tipografi (masaüstü için kalabilir) */
.mobile-text-only {
    text-align: center;
}

    .mobile-text-only h1 {
        font-size: clamp(28px, 8vw, 48px);
        font-weight: 800;
        margin: 0;
    }

    .mobile-text-only p {
        font-size: clamp(16px, 4.5vw, 20px);
        margin: 10px 0 0 0;
    }

/* Küçük animasyonlar */
.t-appear-1 {
    opacity: 0;
    transform: translateY(6px);
    animation: fadeUp .7s ease forwards;
}

.t-appear-2 {
    opacity: 0;
    transform: translateY(6px);
    animation: fadeUp .7s ease .15s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .t-appear-1, .t-appear-2 {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* Aşağı ok */
.scroll-down {
    display: inline-block;
    margin-top: 20px;
    font-size: 28px;
    color: inherit;
    animation: bounce 1.6s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

/* Masaüstü için ok konumu */
.hero-desktop .scroll-down {
    display: block;
    margin: 20px auto 0;
}

/* ==== MOBILE FULLSCREEN HERO (FULL-BLEED) ==== */
@media (max-width: 768px) {

    /* Sayfa genelinde yatay taşmayı kapat (full-bleed güvenliği) */
    html, body {
        overflow-x: hidden;
    }

    .hero-desktop {
        display: none;
    }

    /* Full-bleed: container padding’inden bağımsız, gerçekten ekranı kapla */
    .hero-mobile {
        display: block !important;
        position: relative;
        /* full-bleed merkezleme tekniği */
        width: 100vw;
        max-width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        /* tam yükseklik */
        height: 100svh; /* modern */
        height: 100dvh; /* dinamik */
        height: 100vh; /* fallback */
        min-height: 100svh;
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        overflow: hidden;
        background: #000; /* yüklenirken kenar parlaması olmasın */
    }

        /* Görseli kenarlara yapıştır, kırp-kapla */
        .hero-mobile .mobile-full-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        /* Aşağı ok görsel üzerinde sabit */
        .hero-mobile .scroll-down {
            position: absolute;
            left: 50%;
            bottom: calc(12px + env(safe-area-inset-bottom, 0));
            transform: translateX(-50%);
            z-index: 2;
            margin: 0;
        }

    /* Artık görsel kullandığımız için eski metin bloğunu gizle */
    .mobile-text-only {
        display: none !important;
    }
}

/* İsteğe bağlı: sabit bir üst navbar varsa yükseklikten düş (56px örnek) */
/*
@media (max-width: 768px) {
  .hero-mobile { height: calc(100svh - 56px); }
}
*/
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    border-top: 1px solid #eee;
    padding: 12px 16px;
}

.cookie-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

.cookie-consent__text {
    line-height: 1.6;
}

.cookie-consent__link {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cookie-consent__actions {
        display: flex;
        gap: 8px;
        justify-content: stretch;
    }
}
