/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Renk Paleti */
    --primary-color: #2E7D32;
    /* Koyu Yeşil */
    --primary-hover: #1B5E20;
    --secondary-color: #F9A825;
    /* Altın Sarısı */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;

    /* Gölgeler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* Spacing */
    --container-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
    /* Slaytların taşmasını engelle */
}

/* Slayt Arka Planı için */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Karartma katmanı */
    z-index: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* İçeriği en üstte tut */
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #E5E7EB;
}

/* Features / Services */
.features {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 12px;
    background: var(--bg-light);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Products Preview */
.products-preview {
    padding: 80px 0;
    background-color: #f0fdf4;
    /* Very light green */
}

/* Footer */
footer {
    background-color: #111827;
    color: #D1D5DB;
    padding: 60px 0 20px;
    margin-top: auto;
    /* Footer'ı dibe it */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.team-role {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.team-social a:hover {
    color: var(--primary-color);
}


/* ADMIN PANEL STYLES */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #1f2937;
    color: white;
    padding: 20px;
}

.sidebar-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 40px;
    display: block;
    text-decoration: none;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: #d1d5db;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #374151;
    color: white;
}

.main-content {
    background: #f3f4f6;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.file-upload-wrapper {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background: #f0fdf4;
}

.preview-image {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 8px;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        /* Mobile navigation needed usually, simplifying for now */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* --- MOBILE MENU STYLES (Max-Width: 768px) --- */

    /* 1. Logo ve Buton Yerleşimi */
    nav {
        justify-content: space-between;
        /* İkonu en sağa itmek için */
    }

    /* 2. Hamburger Butonu */
    .mobile-menu-btn {
        display: block;
        /* Sadece mobilde görünür */
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 1001;
        /* Menünün üzerinde kalsın ki kapatabilelim */
        order: 3;
        /* En sağda olsun */
    }

    /* Bize Ulaşın butonu mobilde kalsın mı? Kullanıcı 'yanında' dedi ama genelde yer kalmaz.
       Eğer gizlemek isterse burayı açabiliriz. Şimdilik butonun sağında olsun dediği için ikisini de tutuyorum.
       Sıkışıklık olursa küçültürüz. */
    .btn-primary[href="iletisim"] {
        display: none;
        /* Yer darlığı nedeniyle şimdilik gizliyorum, kullanıcı menü içinde link istedi */
    }

    /* 3. Slide-out Menü (Nav Links) */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        /* Ekran dışı */
        width: 250px;
        /* Menü genişliği */
        height: 100vh;
        background-color: white;
        padding-top: 80px;
        /* Üstten boşluk (çarpı ikonu için) */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        /* Kayma efekti */
        z-index: 1000;
        gap: 20px;
    }

    .nav-links.active {
        right: 0;
        /* İçeri kaydır */
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links a {
        display: block;
        padding: 15px 25px;
        font-size: 1.1rem;
        color: var(--text-dark);
    }

    .nav-links a:hover {
        background-color: #f0fdf4;
        color: var(--primary-color);
    }

    /* Hero Butonları için Boşluk - Kullanıcı İsteği */
    .hero-content .btn {
        margin: 5px !important;
        /* Etrafına boşluk ver */
    }

    /* İkinci butonun inline style'ını ezmek için */
    .hero-content .btn-outline {
        margin-left: 5px !important;
    }
}

/* --- DESKTOP STYLES (Min-Width: 769px) --- */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
        /* Masaüstünde kesinlikle gizle */
    }

    .nav-links {
        display: flex !important;
        /* Masaüstünde kesinlikle göster */
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 30px;
        border: none;
    }

    .nav-links li {
        border: none;
    }

    .nav-links a {
        padding: 0;
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f0fdf4;
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9fafb;
}

/* Mobile specific for pagination */
@media (max-width: 600px) {
    .pagination-container {
        gap: 6px;
    }

    .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Contact Form Tabs */
.tab-container {
    margin-bottom: 20px;
    background: #f1f1f1;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    gap: 5px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* File Input Styling */
.file-upload-container {
    position: relative;
    margin-bottom: 15px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: #f0fdf4;
    color: var(--primary-color);
}

.file-upload-input {
    display: none;
}

/* Admin Login Button (Desktop) */
.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-admin i {
    font-size: 0.85rem;
}

.btn-admin:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 125, 50, 0.3);
}

/* Hide desktop admin button on mobile */
@media (max-width: 768px) {
    .btn-admin {
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}