/* ======================================================
   YASA MAKİNE - SIFIRDAN TASARIM CSS
   ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
/* Sadece 992px ve üzeri ekranlarda (masaüstü) geçerli olacak */
@media (min-width: 992px) {

    /* Ürünler menü elemanının üzerine gelindiğinde... */
    .nav-item.dropdown:hover .dropdown-menu {
        /* Menüyü görünür yap */
        display: block;
        /* Bootstrap'in varsayılan boşluğunu kaldırabiliriz */
        margin-top: 0;
    }

}

/* === DEĞİŞKENLER === */
:root {
    --primary-red: #ed1c24;
    --dark-bg: #111111;
    --secondary-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-muted: #888;
    --white: #ffffff;
    --border-color: #333;
    --header-height: 121px;
    /* Header'ın toplam yüksekliği */
}

/* === GENEL AYARLAR === */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: #444;
    padding-top: 0;
}

body.subpage-body {
    padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #212529;
}

.section {
    padding: 80px 0;
    overflow: hidden;
}

.section-dark {
    background-color: var(--secondary-dark);
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #212529;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title.light h2 {
    color: var(--white);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
}

/* === HEADER === */
.site-header {
    background-color: transparent !important;
    padding: 0;
    transition: background-color 0.4s ease;
    z-index: 1020;
}

.site-header.scrolled {
    background-color: var(--dark-bg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-bar {
    background-color: transparent;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.site-header.scrolled .top-bar {
    background-color: var(--secondary-dark);
    border-bottom: 1px solid var(--border-color);
}

.top-bar a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar__contact {
    text-align: left;
}

.top-bar__social {
    text-align: right;
}

.top-bar__social a {
    margin-left: 15px;
    font-size: 1rem;
}

.top-bar__ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.top-bar__ticker-move {
    display: inline-block;
    animation: top-ticker 20s linear infinite;
}

.top-bar__ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: var(--white);
    font-weight: 500;
}

@keyframes top-ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.site-header .navbar {
    padding: 5px 0;
}

.site-header__logo img {
    height: 75px;
    transition: height 0.3s ease;
}

.site-header.scrolled .site-header__logo img {
    height: 60px;
}

.site-header__nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    margin: 0 15px;
    position: relative;
    padding: 5px 0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.site-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.site-header__nav-link:hover::after,
.site-header__nav-link.active::after {
    width: 100%;
}

.btn-primary-red {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
    padding: 8px 25px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-primary-red:hover {
    background-color: transparent;
    color: var(--primary-red);
}

/* === HERO (ANA GÖRSEL) BÖLÜMÜ === */
.hero-image-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background-color: #000;
    /* Videonun yüklenmediği anlar için */
}

/* Video arka plan */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Karanlık overlay efekti */
.hero-image-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Metin ve butonlar üstte dursun */
.hero-image-section .container {
    position: relative;
    z-index: 2;
}

.hero-image-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-image-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}


/* === SAYAÇ BÖLÜMÜ === */
.counter-section {
    background-color: #f7f7f7;
    padding: 60px 0;
}

.counter-box {
    text-align: center;
}

.counter-box .counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.counter-box p {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
}

/* === ÜRÜNLER KARTI === */
.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card__image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__body {
    padding: 20px;
}

.product-card__title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.product-card__title a {
    text-decoration: none;
    color: #212529;
}

.product-card__title a:hover {
    color: var(--primary-red);
}

/* === REFERANSLAR SLIDER === */
.logo-slider {
    overflow: hidden;
    padding: 40px 0;
    background: white;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.logo-slider__track {
    display: flex;
    width: calc(250px * 14);
    animation: scroll 20s linear infinite;
}

.logo-slider__item {
    width: 250px;
    flex-shrink: 0;
    text-align: center;
}

.logo-slider__item img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-slider__item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 7));
    }
}

/* === FOOTER === */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-muted);
    padding: 60px 0 0 0;
}

.site-footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.site-footer__social-icon {
    /* Footer ikonları için özel stil */
    font-size: 1.5rem;
    margin-right: 15px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

/* === YÜZEN AKSİYON BUTONLARI (DÜZELTİLDİ) === */
.floating-action-buttons {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    /* Class ismi ".fab" yerine ".floating-btn" olarak değiştirildi */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-size: 28px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.floating-btn--whatsapp {
    background-color: #25D366;
}

.floating-btn--phone {
    background-color: var(--primary-red);
}




/* ======================================================
   YUKARI ÇIK BUTONU
   ====================================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    /* Sağ alt köşe */
    z-index: 1030;
    display: none;
    /* Başlangıçta gizli */
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    line-height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top-btn:hover {
    background-color: var(--dark-bg);
    color: var(--white);
    transform: translateY(-5px);
}







/* === GALERİ SAYFASI (GÜNCELLENDİ) === */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    /* Kutuları kare yapmak için eklendi */
}

.gallery-item__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Resmin kutuyu doldurmasını sağlar */
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item__image {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(237, 28, 36, 0.7);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}