/* Global Styles */
:root {
    --primary-color: #ab6d45; /* Kullanıcı isteği: #ab6d45 */
    --bg-dark: #111827;
    --bg-gradient: radial-gradient(circle at top, #2d2d30, #0a0a0c 70%);
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0c url('images/background.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    background: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header & Navigation */
header {
    background: rgba(0, 0, 0, 0.85); /* Biraz daha koyu yaptım sosyal barla uyum için */
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.top-bar {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
    padding: 5px 0;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end; /* Sağ tarafa hizala */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 16px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px; /* Sabit yükseklik */
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-link img {
    height: 160px; /* Kullanıcı isteği üzerine 160px yapıldı */
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    transition: 0.3s;
    transform: translateY(35px); /* Navbar'dan aşağı taşması için */
}

.logo-link:hover img {
    transform: translateY(35px) scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.nav-item > a {
    position: relative;
    padding: 5px 0;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: 0.3s;
}

.nav-item > a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(171, 109, 69, 0.6);
}

.nav-item > a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-radius: 12px;
    border: 1px solid rgba(171, 109, 69, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 12px 0;
    z-index: 100;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(171, 109, 69, 0.15), transparent);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Nested Dropdown */
.nested-dropdown-container {
    position: relative;
}

.nested-dropdown {
    list-style: none;
    position: absolute;
    left: 100%;
    top: -12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    min-width: 280px;
    border-radius: 12px;
    border: 1px solid rgba(171, 109, 69, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 12px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Desktop Hover Effects */
@media (min-width: 769px) {
    .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nested-dropdown-container:hover .nested-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        display: flex;
        flex-direction: column;
    }
}

/* Hero Section */
.hero {
    padding-top: 250px;
    padding-bottom: 100px;
    text-align: center;
    background: transparent;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 12, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInDown 1.2s ease-out;
}

.hero .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.hero .btn {
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #8e5a39;
    transform: translateY(-2px);
}

/* Page Sections */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin-top: 80px;
    margin-bottom: 50px;
    border: 1px solid var(--glass-border);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Ürün Görselleri */
.product-image {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.card:hover .product-image {
    transform: scale(1.02);
}

/* Accordion Styles */
.accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(171, 109, 69, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1.1em;
    color: var(--text-light);
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(171, 109, 69, 0.1);
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-list {
    list-style: none;
    padding: 10px 0;
}

.accordion-list li a {
    display: block;
    padding: 12px 40px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
    border-left: 3px solid transparent;
}

.accordion-list li a:hover {
    background: rgba(171, 109, 69, 0.05);
    color: var(--primary-color);
    padding-left: 45px;
    border-left-color: var(--primary-color);
}

/* Back to Products Button */
.back-btn-container {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.back-btn:hover {
    color: var(--primary-color);
    background: rgba(171, 109, 69, 0.1);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.back-btn i {
    font-size: 0.8rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    color: var(--text-muted);
    margin-top: 20px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    body::before {
        background-attachment: scroll; /* Mobil uyumluluk için */
        background-position: center top;
        background-size: auto 100%; /* Yüksekliği sabitle, genişliği bırak */
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    body::before {
        background-size: cover;
        background-position: 25% center; /* Dikeyde görselin daha anlamlı bir kısmını göster */
    }
}

@media (max-width: 768px) {
    /* Navbar ve Hero ayarları korunuyor */

    .nav-container {
        height: 70px;
    }

    .logo-link img {
        height: 100px;
        transform: translateY(10px);
    }

    .logo-link:hover img {
        transform: translateY(10px) scale(1.05);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.95);
        text-align: center;
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-item {
        padding: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-item > a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.3);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none !important; /* Mobilde varsayılan kapalı */
        padding: 0;
        border: none;
        border-radius: 0;
    }

    .nav-item.active-dropdown .dropdown {
        display: block !important;
    }
    
    .dropdown-item {
        padding: 12px 30px;
        background: transparent;
    }

    .nested-dropdown {
        position: static;
        width: 100%;
        background: rgba(0, 0, 0, 0.3);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none !important; /* Mobilde varsayılan kapalı */
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .nested-dropdown-container.active-nested .nested-dropdown {
        display: block !important;
    }

    .dropdown-item i {
        transition: transform 0.3s ease;
    }

    .active-dropdown > a i,
    .active-nested > a i {
        transform: rotate(180deg);
    }

    .hero {
        padding-top: 150px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .top-bar-container {
        justify-content: center; /* Mobilde ortala veya sağda bırak, ortalamak daha şık durabilir */
    }
    
    .social-icons a {
        font-size: 14px; /* Mobilde biraz daha küçük ikonlar */
    }

    .section {
        padding: 60px 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

}
