/* ==========================================================================
   CSS Değişkenleri (Variables)
   ========================================================================== */
:root {
    --color-primary: #1a1a1a;        /* Koyu Gri/Siyah */
    --color-secondary: #4a4a4a;      /* Antrasit */
    --color-light: #f9f9f9;          /* Çok Açık Gri / Arka Plan için */
    --color-white: #ffffff;          /* Beyaz Zemin */
    --color-text: #333333;           /* Metin Rengi */
    --color-border: #e2e2e2;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 32px;
    --spacing-4: 64px;
    --spacing-5: 128px;
    
    --transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   Sıfırlamalar / Reset
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Genel Yapı
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-3);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-4);
    position: relative;
    padding-bottom: var(--spacing-2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

section {
    padding: var(--spacing-5) 0;
}

/* Görüntü Yer Tutucuları (User Images Needed) */
.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    padding: var(--spacing-2);
}
.image-placeholder span {
    border: 1px dashed #bbb;
    padding: 15px 30px;
    background-color: rgba(255,255,255,0.7);
}

/* Eğer kullanıcı img etiketi eklerse %100 kapsasın */
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Header & Navigasyon
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.header.scrolled {
    padding: var(--spacing-1) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 60px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    gap: var(--spacing-4);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

/* ==========================================================================
   Butonlar (Buttons)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: #FF9F45;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: #F97316;
    color: #FFFFFF !important;
}

/* ==========================================================================
   Ana Sayfa (Hero)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin-top: 80px; /* Header boşluğu kadar if we want it strictly below header, but usually hero is behind header. Let's make it behind header since it's full width and header is transparent/fixed */
    margin-top: 0;
    background-color: #FFFFFF;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    display: none; /* Removed background image as per white background request */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Resim eklendiğinde yazıları parlatmak için */
    z-index: 2;
    display: none; /* Removed overlay as per white background request */
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-brand {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #0B1F3B;
    margin-bottom: var(--spacing-1);
    animation: fadeUp 1s ease-out;
}

.hero-slogan {
    font-size: 1.6rem;
    font-weight: 300;
    color: #6B7280;
    margin-bottom: var(--spacing-3);
    animation: fadeUp 1s ease-out 0.2s backwards;
}

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

/* ==========================================================================
   Marka Tanıtımı (About)
   ========================================================================== */
.about {
    background-color: var(--color-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--spacing-2);
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.about-image {
    height: 450px;
    width: 100%;
}

/* ==========================================================================
   Ürün Tanıtım (Products)
   ========================================================================== */
.products {
    background-color: #fafafa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-3);
}

.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-image {
    height: 300px;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.6s ease;
}

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

.product-info {
    padding: var(--spacing-3);
    text-align: center;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.product-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Ürünler Sayfası Spesifik (Ürün Listeleme) */
.product-listing-section {
    padding: var(--spacing-4) 0 var(--spacing-5);
    background-color: var(--color-white);
}

.product-item {
    transition: var(--transition);
    cursor: default;
    padding: var(--spacing-2);
}

.product-item .product-image {
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-item:hover .product-image {
    border-color: var(--color-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    transform: translateY(-5px);
}

.product-item h3 {
    transition: var(--transition);
}

.product-item:hover h3 {
    color: var(--color-secondary);
}


/* ==========================================================================
   Kullanım Alanları (Use Cases)
   ========================================================================== */
.use-cases {
    background-color: var(--color-white);
}

.use-case-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
    align-items: center;
    margin-bottom: var(--spacing-4);
}

.use-case-row:last-child {
    margin-bottom: 0;
}

.use-case-row.reverse {
    direction: rtl; /* Responsive de kolay sıra değiştirmek için */
}

.use-case-row.reverse > * {
    direction: ltr; /* İçeriğin yönünü tekrar düzeltiyoruz */
}

.use-case-text h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-2);
}

.use-case-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.use-case-image {
    height: 350px;
    width: 100%;
}

/* ==========================================================================
   Projeler & Galeri
   ========================================================================== */
.gallery {
    padding: var(--spacing-5) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-2);
}

.gallery-item {
    height: 250px;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Minimal Footer
   ========================================================================== */
.minimal-footer {
    background-color: var(--color-primary);
    color: #b0b0b0;
    padding: var(--spacing-4) 0;
}

.footer-minimal-brand {
    color: var(--color-white);
    letter-spacing: 4px;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-1);
    font-weight: 500;
}

.footer-minimal-contact {
    margin-bottom: var(--spacing-3);
    font-size: 1.05rem;
}

.footer-minimal-copy {
    font-size: 0.85rem;
    border-top: 1px solid #333;
    padding-top: var(--spacing-2);
    display: inline-block;
}

/* ==========================================================================
   Responsive (Mobil Uyum)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-brand {
        font-size: 4rem;
    }
    .hero-slogan {
        font-size: 1.4rem;
        text-align: center;
        padding: 0 var(--spacing-2);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background-color: var(--color-white);
        display: flex;
        align-items: center; justify-content: center;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-3);
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Menu Icon Animasyonu */
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-brand {
        font-size: 3rem;
    }
    .hero-slogan {
        font-size: 1.1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .use-case-row, .use-case-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--spacing-2);
    }
    
    .use-case-image {
        margin-top: var(--spacing-2);
    }

    .footer-minimal-brand {
        font-size: 1.5rem;
    }

    /* === GLOBAL RESPONSIVE OVERRIDES === */
    /* Inline grid sistemlerini mobilde tek sütuna düsürür */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-3) !important;
    }

    /* İkili küçük imaj yan yana dizilimlerini daha mantıklı ayarlar */
    .use-cases-images img {
        margin-top: 0 !important;
        height: auto !important;
        max-height: 250px;
    }

    /* Genel keskin bölüm paddinglerini mobilde yumuşatır */
    section[style*="padding"] {
        padding-top: var(--spacing-4) !important;
        padding-bottom: var(--spacing-4) !important;
    }

    /* Uzun boylu imajların mobilde ekran dışına taşmasını engeller */
    img[style*="height: 600px"],
    img[style*="height: 500px"],
    img[style*="height: 400px"] {
        height: auto !important;
        max-height: 350px !important;
    }

    /* Inline devasa iç sayfa başlıklarını mobilde küçült (Hakkımızda, İletişim vb.) */
    h1[style*="font-size: 3.5rem"] {
        font-size: 2.2rem !important;
        letter-spacing: 2px !important;
    }
}
