/* =========================================================
   1. GENEL AYARLAR VE HOCUS RENK PALETİ
========================================================= */
:root {
    --hocus-brand: #1e40af; /* Ana Koyu Mavi */
    --hocus-brand-dark: #172554; /* Hover/Active Koyu Mavi */
    --hocus-brand-light: #bfdbfe; /* Dekoratif Açık Mavi */

    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-footer: #0f172a;
}
.initial-hide {
    opacity: 0;
}

html {
    font-size: 1rem;
    overflow-x: hidden;
    /* SAYFA İÇİ LİNKLERE TIKLANDIĞINDA BAŞLIĞIN NAVBAR ALTINDA KALMASINI ENEGELLER */
    scroll-padding-top: 7rem;
    scroll-behavior: smooth;
}

@media (min-width: 48rem) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* SAYFALARIN ÜSTÜNÜN KESİLMESİNİ ENGELLEYEN KESİN ÇÖZÜM */
 
}

/* =========================================================
   2. BOOTSTRAP OVERRIDES VE BUTONLAR
========================================================= */
:root {
    --bs-primary-rgb: 30, 64, 175;
    --bs-primary: #1e40af;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(30, 64, 175, var(--bs-bg-opacity)) !important;
}

.text-primary {
    color: var(--hocus-brand) !important;
}

/* =========================================================
   TAG VE BADGE GÖRÜNÜRLÜK AYARLARI
========================================================= */
.badge[class*="bg-opacity-"] {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
}

.badge.bg-primary.bg-opacity-10 {
    background-color: rgba(30, 64, 175, 0.12) !important;
    color: #1e40af !important;
}

.badge.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.15) !important;
    color: #0f5132 !important;
}

.badge.bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.15) !important;
    color: #055160 !important;
}

.badge.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #664d03 !important;
}

.btn:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.25);
    border-color: var(--hocus-brand);
}

.btn-primary {
    background-color: var(--hocus-brand);
    border-color: var(--hocus-brand);
    transition: all 0.3s ease;
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--hocus-brand-dark) !important;
        border-color: var(--hocus-brand-dark) !important;
        transform: translateY(-2px);
    }

.btn-outline-primary {
    color: var(--hocus-brand);
    border-color: var(--hocus-brand);
}

    .btn-outline-primary:hover {
        background-color: var(--hocus-brand);
        color: #fff;
    }

.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .transition-hover:hover {
        transform: translateY(-0.5rem);
        box-shadow: 0 1rem 2rem rgba(0,0,0,.1) !important;
        border-color: var(--hocus-brand) !important;
    }

/* Proje Kartı Özel Ayarları */
.project-card-custom {
    border: 0.0625rem solid rgba(0, 0, 0, 0.06) !important;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

    .project-card-custom:hover {
        transform: translateY(-0.375rem);
        box-shadow: 0 1.25rem 2.5rem rgba(30, 64, 175, 0.1) !important;
        border-color: rgba(30, 64, 175, 0.3) !important;
    }

.project-card-img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

    .project-card-custom:hover .project-card-img {
        transform: scale(1.08);
    }

/* =========================================================
   3. GELİŞMİŞ NAVBAR (GLASSMORPHISM)
========================================================= */
.navbar-custom {
    background-color: rgba(15, 23, 42, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-in-out;
}

    .navbar-custom.scrolled {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        background-color: rgba(15, 23, 42, 0.98);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

.nav-link-custom {
    color: rgba(255, 255, 255, 0.7) !important;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

    .nav-link-custom:hover, .nav-link-custom.active {
        color: #ffffff !important;
    }

    .nav-link-custom::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: var(--hocus-brand-light);
        transition: all 0.3s ease;
        transform: translateX(-50%);
        border-radius: 2px;
    }

    .nav-link-custom:hover::after, .nav-link-custom.active::after {
        width: 80%;
    }

.btn-glow {
    box-shadow: 0 0 15px rgba(30, 64, 175, 0.4);
    border: 1px solid rgba(191, 219, 254, 0.2);
}

    .btn-glow:hover {
        box-shadow: 0 0 25px rgba(30, 64, 175, 0.8);
    }

/* =========================================================
   4. TORNADO HAMBURGER MENÜ (MOBİL)
========================================================= */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    width: 2.8125rem;
    height: 2.8125rem;
}

.animated-toggle {
    position: relative;
    width: 2rem;
    height: 1.375rem;
}

    .animated-toggle .bar {
        position: absolute;
        left: 0;
        right: 0;
        height: 0.1875rem;
        border-radius: 0.1875rem;
        background: #fff;
        transition: all 0.35s ease;
    }

    .animated-toggle .bar--top {
        top: 0;
    }

    .animated-toggle .bar--middle {
        top: 50%;
        transform: translateY(-50%);
    }

    .animated-toggle .bar--bottom {
        top: 100%;
        margin-top: -0.1875rem;
    }

.navbar-toggler[aria-expanded="true"] .bar--top {
    top: 50%;
    transform: rotate(-135deg);
    margin-top: -0.09375rem;
}

.navbar-toggler[aria-expanded="true"] .bar--middle {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .bar--bottom {
    top: 50%;
    transform: rotate(-225deg);
    margin-top: -0.09375rem;
}

/* =========================================================
   5. HERO SLIDER VE TELEFON MOCKUP'I
========================================================= */
.hero-slide {
    min-height: 70vh;
    padding: 3rem 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-bg-1 {
    background: linear-gradient(135deg, var(--hocus-brand) 0%, var(--hocus-brand-dark) 100%);
}

.hero-bg-2 {
    background: linear-gradient(135deg, var(--bg-footer) 0%, var(--hocus-brand-dark) 100%);
}

.carousel-indicators [data-bs-target] {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
}

.carousel-indicators .active {
    width: 2.1875rem;
    border-radius: 0.625rem;
    background-color: var(--hocus-brand-light) !important;
}

/* CSS Telefon */
.css-phone-mockup {
    width: clamp(12rem, 30vw, 17.5rem);
    aspect-ratio: 1 / 2;
    border: 0.875rem solid #111;
    border-radius: 2.5rem;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    animation: floatPhone 4s ease-in-out infinite;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 7.5rem;
    height: 1.5625rem;
    background-color: #111;
    border-radius: 0 0 1rem 1rem;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1.25rem);
        box-shadow: 0 1.5625rem 3.125rem rgba(0,0,0,0.3);
    }
}

/* =========================================================
   6. ÜRÜNLER (TAB) KISMI VE DİĞER KARTLAR
========================================================= */
#urunTabList .nav-link {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

    #urunTabList .nav-link.active {
        background-color: var(--hocus-brand) !important;
        color: white !important;
        border-color: var(--hocus-brand) !important;
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3) !important;
    }

        #urunTabList .nav-link.active i {
            color: white !important;
        }

        #urunTabList .nav-link.active::after {
            content: "";
            position: absolute;
            bottom: -0.625rem;
            left: 50%;
            transform: translateX(-50%);
            border-width: 0.625rem 0.625rem 0;
            border-style: solid;
            border-color: var(--hocus-brand) transparent transparent transparent;
        }

.product-ratio-box {
    width: 14rem;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
}

    .product-ratio-box i {
        font-size: 6.5rem;
    }

/* Footer Sosyal Medya Butonları */
.social-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .social-btn i {
        color: #fff;
        font-size: 1.3rem;
        transition: transform 0.3s ease;
    }

    .social-btn:hover {
        background-color: var(--hocus-brand);
        border-color: var(--hocus-brand);
        box-shadow: 0 0 15px rgba(30, 64, 175, 0.7);
        transform: translateY(-3px) scale(1.08);
    }

    .social-btn:hover i {
        transform: rotate(360deg);
    }
/* =========================================================
   7. REFERANSLAR (UIVERSE) KART TASARIMI
========================================================= */
.ref-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 12rem;
    min-height: 15rem;
    aspect-ratio: 3 / 4;
    background: rgb(255, 255, 255);
    border-radius: 1rem;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 0.375rem 0.75rem -0.125rem, rgba(0, 0, 0, 0.3) 0px 0.1875rem 0.4375rem -0.1875rem;
    transition: all ease-in-out 0.3s;
    margin: 0 auto;
    text-decoration: none;
}

    .ref-card:hover {
        background-color: #fdfdfd;
        box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
        transform: translateY(-0.3125rem); /* Üzerine gelince 5px havaya kalkar */
    }

/* Kartın İçindeki Logonun Ayarları (İsteğe bağlı siyah/beyaz efekti) */
.ref-card-img {
    max-width: 80%;
    max-height: 40%;
    object-fit: contain;
    filter: grayscale(100%); /* Başlangıçta logolar gri görünür, kurumsal bir hava katar */
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Hover durumunda logo kendi orijinal rengine döner ve hafif büyür */
.ref-card:hover .ref-card-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* =========================================================
   8. FOUC (Flash of Unstyled Content) ÖNLEME KURALLARI
========================================================= */
.initial-hide {
    display: none !important;
}

/* Telefon mockup'ı içindeki hover/notch elementlerinin ilk açılışta parlamasını önleme */
#mainHeroCarousel .group\/notch .\!opacity-0,
#mainHeroCarousel .group .\!opacity-0 {
    opacity: 0 !important;
}

/* Bootstrap Carousel slide'larında aktif olmayanların yüklenirken parlamasını engelleme */
.carousel-item:not(.active) {
    display: none !important;
}

/* =========================================================
   9. SAYFA ANİMASYONLARI (kütüphanesiz, IntersectionObserver)
========================================================= */
[data-animate] {
    opacity: 0;
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

[data-animate].in-view {
    opacity: 1 !important;
    transform: none !important;
}

[data-animate="fade-up"] {
    transform: translateY(1.75rem);
}

[data-animate="fade-left"] {
    transform: translateX(-2.5rem);
}

[data-animate="fade-right"] {
    transform: translateX(2.5rem);
}
