/* === GLOBAL STYLES === */
html {
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #fff;
    scroll-padding-top: 80px;
    min-height: 100%;
    overflow-x: hidden;
}

/* Sticky navbar scroll fix for all devices */
html {
    scroll-padding-top: 80px;
}

/* === NAVBAR === */
.navbar {
    padding: 0.5rem 1rem;
    z-index: 1030; /* Üst menünün diğer yapışkan öğelerin üzerinde kalmasını sağlar */
}

.navbar-brand {
    padding: 0;
    margin-right: 1rem;
    z-index: 10;
}

.navbar-brand img {
    height: 50px;
}

/* Menü Konteyneri (Masaüstü) */
@media (min-width: 992px) {
    .navbar {
        background-color: #D4A03D; /* Add background to the main navbar */
    }
    .menu-container {
        flex-grow: 1;
        background-color: #D4A03D;
        border-radius: 8px;
        position: relative; /* Şekil ilüzyonu için gerekli */
    }

    .menu-container .navbar-nav {
        padding-left: 1.5rem; /* Şekil için boşluk */
    }
}

.offcanvas-body {
    background-color: #D4A03D; /* Ensure offcanvas has background */
}

.navbar .nav-link {
    color: #4d3a10;
    font-weight: 500;
    padding: 1.25rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 6px;
}

.navbar .nav-link:hover,
.navbar .nav-item.show .nav-link,
.navbar .nav-link.active {
    background-color: #755510;
    color: #eac980;
}

/* Masaüstünde açılır menülerin üzerine gelince açılması */
@media (min-width: 992px) {
    .dropdown-menu {
        position: absolute;
        z-index: 1000; /* Ensure it overlays other content */
        margin-top: 0;
        display: none;
    }
    
    .dropdown:hover > .dropdown-menu,
    .dropdown.show > .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }
    
    /* Ensure dropdown stays open when hovering over menu items */
    .dropdown-menu {
        margin-top: 0;
    }
    
    .dropdown:hover .dropdown-toggle,
    .dropdown.show .dropdown-toggle {
        background-color: #755510;
        color: #eac980;
    }
}

.dropdown-menu {
    background-color: #F8C453;
    border: none;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    padding: 0.5rem 0;
}

.dropdown-item {
    color: #4d3a10;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    color: #212121;
    background-color: #D4A03D;
}

/* Mobil Toggler */
.navbar-toggler {
    border: 2px solid #ffffff;
    background-color: #D4A03D;
    border-radius: 8px;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 5px rgba(212, 160, 61, 0.7);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

/* Mobil ve Tablet için stiller */
@media (max-width: 991.98px) {
    .navbar {
        background-color: #D4A03D !important;
        transition: background-color 0.3s ease;
    }
    
    .navbar-collapse {
        background-color: #D4A03D;
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 1rem;
    }
    
    /* Ensure sticky navbar works properly on mobile */
    .navbar.sticky-top {
        position: sticky;
        top: 0;
        z-index: 1030;
    }
    
    /* Mobile dropdown button styling */
    .nav-link.dropdown-toggle {
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        padding: 1.25rem 1rem;
        color: #4d3a10;
        font-weight: 500;
        transition: background-color 0.3s ease, color 0.3s ease;
        border-radius: 6px;
    }
    
    .nav-link.dropdown-toggle:hover,
    .nav-link.dropdown-toggle:focus {
        background-color: #755510;
        color: #eac980;
    }
    
    .nav-link.dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        float: right;
        margin-top: 0.5em;
    }
}

/* === Ürünlerimiz Başlığı DÜZENLEMESİ === */
.installations-slider-section .container h1 {
    text-align: center; /* Başlığı ortalar */
    padding: 2rem 0;   /* Üst ve alt boşlukları artırır */
}

/* === VIDEO STYLES === */
.video-poster {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.play-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.video-poster:hover .play-icon-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

#videoModal .btn-close {
    font-size: 1.5rem;
    padding: 1rem;
    opacity: 1;
}

/* Hakkımızda sayfasında logo etrafında metin sarma */
.about-logo {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 200px;
    height: auto;
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .about-logo {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 150px;
    }
}

/* === Sürdürülebilir Çözümler Bölümü === */
.sustainable-solutions-section {
    padding: 4rem 0;
    background-color: #f8f9fa; /* Arka planı hafifçe ayırmak için */
}

.sustainable-solutions-section .solutions-title {
    color: #4d3a10; /* Ana metin rengiyle uyumlu */
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sustainable-solutions-section .solutions-text {
    color: #333;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sustainable-solutions-section .img-fluid {
    border: 5px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-solutions-details {
    background-color: #D4A03D; /* Ana renk paletinden */
    color: #4d3a10;
    border: 2px solid #D4A03D;
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-solutions-details:hover {
    background-color: #755510; /* Navbardaki hover rengiyle aynı */
    color: #eac980;
    border-color: #755510;
    transform: translateY(-3px); /* Hafif yukarı kalkma efekti */
    box-shadow: 0 4px 15px rgba(117, 85, 16, 0.3);
}