/* --- 1. TEMEL AYARLAR VE DEĞİŞKENLER --- */
:root {
    --primary: #2ecc71;      /* Ana Renk: Zümrüt Yeşili */
    --primary-dark: #27ae60; /* Koyu Yeşil (Hover için) */
    --action: #e67e22;       /* Aksiyon Rengi: Turuncu */
    --action-dark: #d35400;  /* Koyu Turuncu */
    --dark: #2c3e50;         /* Koyu Yazı Rengi */
    --gray: #95a5a6;         /* Gri Metinler */
    --light: #f8f9fa;        /* Arka Plan Rengi */
    --white: #ffffff;
    --radius: 12px;          /* Köşe Yuvarlama */
    --shadow: 0 5px 20px rgba(0,0,0,0.08); /* Gölgelendirme */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: var(--font-main); 
    background: var(--light); 
    color: var(--dark); 
    line-height: 1.6; 
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Footer'ı her zaman aşağı iter */
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 2. HEADER & NAVBAR --- */
header { 
    background: var(--white); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 1rem 20px; 
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: var(--primary); 
    letter-spacing: -1px; 
}

.nav-links { display: flex; gap: 25px; align-items: center; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

/* --- 3. BUTONLAR --- */
.btn { 
    display: inline-block; 
    padding: 12px 28px; 
    border-radius: 50px; 
    font-weight: 600; 
    cursor: pointer; 
    border: none; 
    font-size: 0.95rem; 
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn:active { transform: scale(0.98); }

.btn-primary { 
    background: var(--primary); 
    color: var(--white); 
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.btn-action { 
    background: var(--action); 
    color: var(--white); 
}
.btn-action:hover { 
    background: var(--action-dark); 
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transform: translateY(-2px);
}

/* --- 4. SLIDER (HERO) ALANI --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 600px; /* Slider yüksekliği */
    background: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active { opacity: 1; z-index: 1; }

/* Resim üzerine karanlık katman atar, yazı okunur */
.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); 
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

/* Slider Okları */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    font-size: 1.5rem;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: var(--white); color: var(--dark); }
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* Yedek Hero (Slider Yoksa) */
.hero { 
    text-align: center; 
    padding: 6rem 20px; 
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%); 
}

/* --- 5. İSTATİSTİK BANDI --- */
.stats-bar {
    background: var(--primary);
    padding: 50px 0;
    color: white;
    text-align: center;
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.stat-item h3 { font-size: 2.5rem; margin-bottom: 5px; font-weight: 800; }
.stat-item p { font-size: 1rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* --- 6. GENEL DÜZEN VE GRID --- */
.container { max-width: 1200px; margin: 0 auto; padding: 50px 20px; }
.section-title { 
    text-align: center; 
    margin-bottom: 1rem; 
    font-size: 2.2rem; 
    color: var(--dark); 
    font-weight: 700;
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

/* --- 7. KART TASARIMLARI (Proje/Ürün/Blog) --- */
.card { 
    background: var(--white); 
    border-radius: var(--radius); 
    overflow: hidden; 
    box-shadow: var(--shadow); 
    border: 1px solid #eee; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

.card img { 
    width: 100%; 
    height: 240px; 
    object-fit: cover; 
    border-bottom: 1px solid #f0f0f0; 
}

.card-body { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.card-title { font-size: 1.25rem; margin-bottom: 10px; font-weight: 700; line-height: 1.4; }

.price { 
    font-size: 1.5rem; 
    color: var(--action); 
    font-weight: 800; 
    display: block; 
    margin: 10px 0 20px 0; 
}

/* Progress Bar (Projeler İçin) */
.progress-container { 
    background: #ecf0f1; 
    height: 8px; 
    border-radius: 4px; 
    margin: 15px 0; 
    overflow: hidden; 
}
.progress-bar { 
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); 
    height: 100%; 
    width: 0%; 
    border-radius: 4px;
    transition: width 1s ease-in-out; 
}

.stats { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.85rem; 
    color: var(--gray); 
    margin-bottom: 20px; 
}
.stats b { color: var(--dark); }

/* --- 8. TABLOLAR (Sepet vb.) --- */
table { width: 100%; border-collapse: collapse; }
table th { font-weight: 600; color: var(--dark); }
table td { color: #555; }

/* --- 9. FORMLAR (Checkout, Newsletter) --- */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { resize: vertical; }

/* --- 10. BLOG DETAY SAYFASI --- */
.blog-content {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: -80px; /* Görselin üzerine şık bir şekilde çıkar */
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 11. VIDEO GALERİ --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Oranı */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* --- 12. FOOTER --- */
footer { 
    background: var(--dark); 
    color: #ecf0f1; 
    padding: 4rem 0 2rem; 
    text-align: center; 
    margin-top: auto; 
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    max-width: 500px;
}

.newsletter-input {
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    flex: 1;
    outline: none;
    font-size: 1rem;
}

/* --- 13. ANIMASYONLAR --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 14. RESPONSIVE (MOBİL UYUMLULUK) --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; }
    .slider-container { height: 450px; }
    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1.1rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .stats-bar .grid-3 { gap: 40px; }
    .blog-content { padding: 25px; margin-top: -40px; }
    .newsletter-form { flex-direction: column; width: 90%; }
}