:root {
    --bg-color: #f0efeb;
    /* Açık bej arka plan */
    --card-bg: #fffefe;
    /* Kartlar için beyaz veya beje yakın zemin */
    --text-dark: #2c2c2c;
    /* Koyu ana metin rengi */
    --text-muted: #666;
    /* Açıklama metinleri için gri */
    --gold: #b39256;
    /* Altın/Bronz vurgu rengi */
    --gold-light: #c5a873;
    --whatsapp-green: #25D366;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* SEO için Sadece Ekran Okuyuculara Görünür H1 (Görsel olarak gizli) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =========================================================================
   ANIMATIONS & TRANSITIONS
========================================================================= */

/* Opening animation elements */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: var(--delay, 0s);
}

/* Scroll animation elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
}

.animate-on-scroll.visible {
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   HEADER & LOGO & SLOGAN
========================================================================= */
.header {
    text-align: center;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.4s ease;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.header.scrolled {
    background-color: rgba(240, 239, 235, 0.85);
    /* var(--bg-color) a yakın transparan bej */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    gap: 0.2rem;
}

.logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    max-width: 140px;
    height: auto;
    object-fit: contain;
    transition: max-width 0.4s ease;
}

.header.scrolled .site-logo {
    max-width: 100px;
}

.slogan-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slogan {
    position: absolute;
    width: 100%;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(15px);
    visibility: hidden;
    transition: font-size 0.4s ease, opacity 0.8s ease-in-out;
    /* Sadece boyut değişimi ve görünürlük yumuşak olsun, transform yok */
}

.slogan span {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem;
    text-transform: lowercase;
    color: var(--gold-light);
    font-weight: 400;
    transition: font-size 0.4s ease, opacity 0.8s ease-in-out;
}

.header.scrolled .slogan {
    font-size: 1.5rem;
}

.header.scrolled .slogan span {
    font-size: 1.2rem;
}

/* Aktif class ile çalışan özel animasyon: Görünmeye siyahla başla (1 sn tut) sonra altın ol */
@keyframes blackToGold {
    0% {
        color: #000;
    }

    15% {
        color: #000;
    }

    100% {
        color: var(--gold);
    }
}

@keyframes blackToGoldSpan {
    0% {
        color: #000;
    }

    15% {
        color: #000;
    }

    100% {
        color: var(--gold-light);
    }
}

.slogan.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    animation: blackToGold 3s ease forwards;
}

.slogan.active span {
    animation: blackToGoldSpan 3s ease forwards;
}

/* =========================================================================
   CRO & TRUST BADGES
========================================================================= */
.trust-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: -0.2rem;
    transition: all 0.4s ease;
    opacity: 1;
}

.header.scrolled .trust-badges {
    opacity: 0;
    pointer-events: none;
    margin-top: -20px;
    height: 0;
    overflow: hidden;
}

.badge {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(179, 146, 86, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(179, 146, 86, 0.3);
}

.badge i {
    color: var(--gold);
}

/* =========================================================================
   PORTFOLIO (BEFORE & AFTER) SECTION
========================================================================= */
.portfolio-section {
    padding: 21rem 2rem 6rem;
    /* Hover scale (büyüme) anında header altına değmemesi için ekstra alan */
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    /* PC modunda daha büyük kartlar */
    gap: 3rem;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tüm grid'in üzerine gelindiğinde (herhangi bir karta hover yapıldıysa) tüm kartlara uygulanacak temel etki */
.portfolio-grid:hover .portfolio-card {
    transform: scale(0.95);
    /* Diğerlerini hafifçe küçült */
    opacity: 0.6;
    /* Diğerlerini hafif soluklaştır */
    filter: grayscale(40%);
    /* Biraz solgunlaştır (İsteğe bağlı, premium etki için) */
}

/* Üzerine gelinen ASIL kartın (hover olanın) alacağı etki */
.portfolio-grid .portfolio-card:hover {
    transform: scale(1.05) translateY(-10px);
    /* Büyüt ve yukarı kaldır */
    opacity: 1;
    /* Transparanlığı kaldır */
    filter: grayscale(0%);
    /* Rengi tamamen geri ver */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    /* Çok daha belirgin bir gölge bırak */
    z-index: 10;
    /* Üste çıkıp diğerlerini ezmesi için */
    position: relative;
    transform-origin: center center;
    /* Titremeyi engellemek için eklendi */
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    overflow: hidden;
    cursor: default;
    /* Tüm alanda kaydırma artık aktif değil */
    user-select: none;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Before görseli z-index 2 ile üstte durur ve maskelenir */
.ba-image-before {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    z-index: 2;
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    /* Başlangıç pozisyonu %50 */
    width: 1px;
    background: var(--white);
    z-index: 3;
    pointer-events: auto;
    /* Tıklanabilir yap */
    cursor: ew-resize;
    /* Sürükleme imleci burada gösterilsin */
    touch-action: none;
    /* Sadece imleçten tutulduğunda sayfa kaymasını engelle */
    transition: none;
    /* JS ile direkt kontrol edildiği için geçişleri iptal et, titremesin */
}

.ba-slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 48px;
    /* Dikdörtgen form */
    height: 36px;
    background: rgba(255, 255, 255, 0.6);
    /* Yarı saydam beyaz arka plan */
    backdrop-filter: blur(4px);
    /* Arkadan geçen görüntüyü hafif bulanıklaştıran cam efekti */
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    /* Köşeleri yuvarlatılmış */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--gold);
    /* Site ile uyumlu koyu sarı */
    font-size: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /* Hafif ve daha yayılan bir gölge */
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Çerçeve için cam parlaması hissi */
    transition: none;
    /* Animasyonları kapatarak titremeyi önle */
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 4px 16px;
    background: rgba(150, 150, 150, 0.5);
    /* Hafif transparan mat arkaplan */
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 3px;
    z-index: 4;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}

.card-content {
    padding: 1.2rem 1.5rem;
    text-align: right;
    background: var(--card-bg);
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.card-content p {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
}

/* =========================================================================
   BRANDS LOGO SLIDER SECTION
========================================================================= */
.brands-section {
    padding: 3rem 0;
    background-color: var(--card-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

/* Sağ ve Sol Kısımlara Fade/Bulanıklık Efekti (Slider için) */
.brands-section::before,
.brands-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-section::before {
    left: 0;
    background: linear-gradient(to right, var(--card-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-section::after {
    right: 0;
    background: linear-gradient(to left, var(--card-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-container {
    width: 100%;
    overflow: hidden;
}

.brands-track {
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    /* Logolar arası mesafe */
    animation: scroll-left 40s linear infinite;
    padding-left: 4rem;
    /* Gap kadar boşluk */
}

/* Farenin üzerine gelindiğinde kaymayı durdurmak istenirse: */
.brands-track:hover {
    animation-play-state: paused;
}

.brand-logo {
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: #a0a0a0;
    /* Yarı saydam gri */
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-img {
    height: 40px;
    /* Tüm logoların maksimum yüksekliği aynı olacak */
    width: 130px;
    /* Tüm logolar için sabit bir en alanı ayırıyoruz */
    object-fit: contain;
    /* Resim kırpılmadan bu alana (130x40px) orantılı olarak sığdırılacak */
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

/* Hover Effect: Rengi belirginleşir ve biraz büyür */
.brand-logo:hover {
    color: var(--gold);
    opacity: 1;
    transform: scale(1.05);
}

.brand-logo:hover .brand-img {
    filter: grayscale(0%);
    /* Orijinal rengine dön */
}

/* Sonsuz Kayma Animasyonu */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Genişliğin yarısı kadar (-50%) kaydırıldığında iki liste birbirini tam tamamlar */
        transform: translateX(-50%);
    }
}

/* =========================================================================
   CONTACT SECTION
========================================================================= */
.contact-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: 3.5rem;
}

.contact-header h2 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-header .gold-text {
    color: var(--gold);
    font-style: italic;
    font-weight: 600;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 kartı yan yana sabitle */
    justify-content: center;
    max-width: 1000px;
    /* 5 kartın sığması için genişletildi */
    margin: 0 auto;
    gap: 2rem;
}

.contact-card {
    background: transparent;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    /* Opacity kaldırıldı, animate-on-scroll yönetecek */
}

.contact-card:hover {
    transform: translateY(-8px);
}

.contact-icon {
    width: 85px;
    height: 85px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    background: var(--gold);
    color: #fff;
    box-shadow: 0 15px 35px rgba(179, 146, 86, 0.4);
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.contact-card p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
    text-align: center;
}

/* =========================================================================
   WHATSAPP BUTTON
========================================================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    overflow: hidden;
}

.whatsapp-btn i {
    flex-shrink: 0;
}

.whatsapp-text {
    max-width: 0;
    opacity: 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 0;
}

.whatsapp-btn:hover {
    width: 240px;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:hover .whatsapp-text {
    max-width: 200px;
    opacity: 1;
    margin-left: 10px;
}

/* =========================================================================
   MOBILE STICKY CTA (CRO)
========================================================================= */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

.mobile-sticky-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.mobile-sticky-cta .btn-whatsapp {
    background-color: var(--whatsapp-green);
}

.mobile-sticky-cta .btn-whatsapp:hover {
    background-color: #1ebe57;
}

.mobile-sticky-cta .btn-call {
    background-color: var(--gold);
}

.mobile-sticky-cta .btn-call:hover {
    background-color: var(--gold-light);
}

/* =========================================================================
   RESPONSIVE DESIGN
========================================================================= */
@media (max-width: 768px) {
    .slogan {
        font-size: 1.8rem;
    }

    .slogan span {
        font-size: 1.6rem;
    }

    .slogan-container {
        height: 50px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1rem 0.5rem;
    }

    .contact-header h2 {
        font-size: 2.5rem;
    }

    .whatsapp-btn {
        display: none;
        /* Mobilde sticky navbar çıkacağı için eski balonu gizliyoruz */
    }

    .mobile-sticky-cta {
        display: flex;
    }

    body {
        padding-bottom: 60px;
        /* Alttaki sticky navbar içeriği kapatmasın diye boşluk */
    }
}