@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --white: #ffffff;
    --blue: #007bff;
    --dark-blue: #0056b3;
    --header-card-bg: #2b2d31;
    --anthracite: #1e2124;
    --light-gray: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Sayfa Yenilendiğinde Smooth Giriş Efekti */
body {
    background-color: var(--anthracite);
    color: var(--white);
    overflow-x: hidden;
    opacity: 0;
    animation: pageFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pageFadeIn {
    to {
        opacity: 1;
    }
}

body.bg-white {
    background-color: var(--white);
    color: var(--anthracite);
}

/* Header & Navigasyon - Tüm Sayfalarda Koyu Bulanık Saydam */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(43, 45, 49, 0.75); /* Koyu Saydam */
    backdrop-filter: blur(12px); /* Bulanık */
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 2px solid var(--blue);
}

/* Kusursuz Beyaz-Mavi Renk Geçiş Efektli Logo */
.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: logoGlow 4s infinite ease-in-out;
}

@keyframes logoGlow {
    0% { color: var(--white); text-shadow: 0 0 5px rgba(255,255,255,0.2); }
    50% { color: var(--blue); text-shadow: 0 0 15px rgba(0,123,255,0.5); }
    100% { color: var(--white); text-shadow: 0 0 5px rgba(255,255,255,0.2); }
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Menü Butonları ve Satın Al Butonları İçin Çerçevesiz Ortak Stil */
.nav-btn, .buy-btn {
    position: relative;
    background: transparent;
    border: none; /* Çerçeve tamamen kaldırıldı */
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    z-index: 1;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
    display: inline-block;
    text-align: center;
}

/* Mouse Üzerine Geldiğinde Yazı Mavi */
.nav-btn:hover, .buy-btn:hover {
    color: var(--blue);
    background: transparent;
}

/* Tıklandığında Arkaplan Mavi, Yazı Beyaz (JS Aktif Sınıfı veya CSS Active) */
.nav-btn:active, .buy-btn:active, .nav-btn.clicked, .buy-btn.clicked {
    background-color: var(--blue) !important;
    color: var(--white) !important;
}

/* Beyaz Baloncuk Patlama (Ripple Burst) Efekti */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-burst 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes ripple-burst {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Açılır Menü */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(43, 45, 49, 0.95);
    backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.6);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-content a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s, padding-left 0.3s;
}
.dropdown-content a:hover {
    background-color: var(--blue);
    padding-left: 22px;
    color: var(--white);
}

.hamburger { display: none; font-size: 26px; cursor: pointer; color: var(--white); }

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.hero-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease-in-out;
}
.slide::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0, 0, 0, 0.6);
}
.slide.active { opacity: 1; }
.hero-content {
    text-align: center; z-index: 1; max-width: 800px; padding: 20px;
}
.hero-content h1 { font-size: 4.5rem; color: var(--white); text-shadow: 0 4px 10px rgba(0,0,0,0.8); margin-bottom: 15px;}
.hero-content p { font-size: 1.2rem; color: #e0e0e0; }

.section-title {
    text-align: center; font-size: 2.2rem; padding: 50px 0 30px; color: inherit; font-weight: 700;
}
.bg-white .section-title { color: var(--anthracite); }

/* Ürün Kartları Genel Tasarımı */
.product-card {
    background: var(--header-card-bg);
    border-radius: 16px; 
    padding: 20px;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid var(--white);
    animation: borderGlow 3s infinite alternate;
}

@keyframes borderGlow {
    0% { border-color: var(--white); box-shadow: 0 0 5px rgba(255,255,255,0.3); }
    100% { border-color: var(--blue); box-shadow: 0 0 20px rgba(0, 123, 255, 0.6); }
}

.product-card img {
    width: 100%; height: 220px; object-fit: cover;
    border-radius: 10px; margin-bottom: 15px;
}
.product-card h3 { font-size: 1.4rem; color: var(--blue); margin-bottom: 5px; }
.product-card p { font-size: 1rem; color: #ccc; margin-bottom: 15px; }
.product-card .price { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; color: var(--white);}
.product-card .buy-btn { width: 100%; }

/* ARKA ARKAYA EFEKTLİ CAROUSEL (3D Stack) TASARIMI */
#best-sellers { background: var(--white); color: var(--anthracite); padding-bottom: 60px; overflow: hidden;}
.carousel-wrapper { 
    position: relative; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.carousel-container { 
    position: relative; 
    width: 100%; 
    height: 480px; 
    perspective: 1000px;
}
.carousel-track { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.carousel-track .product-card {
    position: absolute;
    width: 280px; 
    left: calc(50% - 140px); 
}
.carousel-btn {
    position: absolute;
    z-index: 100;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(43, 45, 49, 0.8); 
    color: var(--white); 
    border: none; 
    border-radius: 50%;
    width: 50px; 
    height: 50px; 
    cursor: pointer; 
    font-size: 18px; 
    transition: 0.3s;
}
#prevBtn { left: 10px; }
#nextBtn { right: 10px; }
.carousel-btn:hover { background: var(--blue); transform: translateY(-50%) scale(1.1); }

/* Standart Grid Tasarımı (Diğer sayfalar için) */
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px;
    padding: 0 50px 60px; max-width: 1400px; margin: 0 auto;
}
.grid-container .product-card {
    position: relative;
    width: 100%;
}
.grid-container .product-card:hover { transform: translateY(-8px); transition: transform 0.3s ease; }

/* Yorumlar */
.testimonial-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding-bottom: 60px; }
.testimonial-card {
    background: var(--header-card-bg); padding: 30px; width: 350px; text-align: center;
    border-radius: 16px; border: 2px solid transparent; animation: borderGlow 4s infinite alternate;
}
.testimonial-card p { font-style: italic; color: #ddd; margin-bottom: 20px; }
.testimonial-card h4 { color: var(--blue); font-weight: 600; }

/* Tamir Sayfası */
.repair-container {
    display: flex; flex-wrap: wrap; max-width: 1100px; margin: 0 auto;
    background: var(--header-card-bg); border-radius: 20px; overflow: hidden;
    border: 3px solid transparent; animation: borderGlow 4s infinite alternate;
}
.repair-text { flex: 1; min-width: 300px; padding: 50px; }
.repair-text h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 20px; }
.repair-text p { color: #00bfff; font-size: 1.15rem; line-height: 1.8; margin-bottom: 15px; text-shadow: 0px 1px 2px rgba(0,0,0,0.5); }
.repair-image { flex: 1; min-width: 300px; }
.repair-image img { width: 100%; height: 100%; object-fit: cover; }

/* İletişim Kartı */
.contact-card {
    display: flex; flex-wrap: wrap; width: 90%; max-width: 1000px; margin: 0 auto;
    background: rgba(43, 45, 49, 0.85); backdrop-filter: blur(15px);
    border-radius: 20px; overflow: hidden; border: 2px solid var(--white);
}
.contact-info { flex: 1; min-width: 300px; padding: 50px; text-align: center; }
.contact-info h2 { font-size: 2rem; margin-bottom: 20px; color: var(--blue); }
.contact-map { flex: 1; min-width: 300px; min-height: 400px; }

/* Footer */
footer { background-color: var(--blue); color: var(--white); padding: 50px 20px 20px; margin-top: auto; }
.footer-container {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    max-width: 1300px; margin: 0 auto; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 30px;
}
.footer-logo { font-size: 2.2rem; font-weight: 700; margin-bottom: 15px; letter-spacing: 1px;}
.footer-left p { font-size: 1.1rem; margin-bottom: 10px; }
.footer-right { display: flex; gap: 20px; }
.social-icon {
    display: flex; justify-content: center; align-items: center;
    position: relative; overflow: hidden;
    width: 50px; height: 50px; background: var(--white); color: #999;
    border-radius: 50%; font-size: 1.8rem; text-decoration: none; transition: all 0.4s ease;
}
.social-icon:hover.fb { color: #1877F2; box-shadow: 0 0 15px #1877F2; }
.social-icon:hover.ig { color: #E1306C; box-shadow: 0 0 15px #E1306C; }
.social-icon:hover.tt { color: #000000; box-shadow: 0 0 15px #fff; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 1rem; color: rgba(255,255,255,0.8); }

/* Responsive */
@media (max-width: 850px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0;
        width: 100%; background: var(--header-card-bg); padding: 20px 0; border-top: 1px solid var(--blue);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    header { padding: 15px 20px; }
    .hero-content h1 { font-size: 2.8rem; }
    .contact-card, .repair-container { flex-direction: column; }
}