/* ----------------------------------------------------
   KALE GROUP - PROFESYONEL WEB SİTESİ STİLLERİ (SON ESTETİK FİX)
   ---------------------------------------------------- */

/* --- RESET & TEMEL AYARLAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Renk Paleti */
    --primary-color: #004d99;      /* Koyu Kurumsal Mavi */
    --secondary-color: #ffc107;    /* Canlı Parlak Sarı (Vurgu) */
    --text-dark: #222222;          
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-grey: #f4f7f9;    
    --font-family-sans: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family-sans);
    line-height: 1.7; 
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden; 
}

/* --- ORTAK YAPILAR & TİPOGRAFİ --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; } /* Padding biraz azaltıldı */

h1, h2, h3 { margin-bottom: 20px; font-weight: 700; line-height: 1.2; }
h2 { 
    font-size: 38px; text-align: center; position: relative; padding-bottom: 20px; margin-bottom: 50px;
}
h2::after { 
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px; background-color: var(--secondary-color); border-radius: 2px;
}
.text-center { text-align: center; }

/* --- BUTONLAR --- */
.btn {
    display: inline-block; padding: 14px 30px; font-size: 17px; font-weight: 500; text-decoration: none;
    border-radius: 50px; transition: all var(--transition-speed) ease; border: 2px solid transparent;
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary { background-color: var(--primary-color); color: var(--text-light); border-color: var(--primary-color); }
.btn-primary:hover { background-color: transparent; color: var(--primary-color); transform: translateY(-3px); }
.btn-secondary { background-color: var(--secondary-color); color: var(--text-dark); border-color: var(--secondary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--text-light); border-color: var(--primary-color); }

/* --- HEADER & NAVIGASYON --- */
.header { position: sticky; top: 0; z-index: 1000; background-color: var(--background-light); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo img { height: 45px; }
.nav-links { list-style: none; display: flex; }
.nav-links li a { text-decoration: none; color: var(--text-dark); margin-left: 30px; font-weight: 500; padding: 5px 0; position: relative; transition: color var(--transition-speed); }
.nav-links li a:after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--secondary-color); transition: width var(--transition-speed) ease; }
.nav-links li a:hover:after { width: 100%; }

/* --- HERO SECTION --- */
.hero-section {
    height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background: url('assets/img/hero-bg.jpg') no-repeat center center/cover; 
    color: var(--text-light); position: relative;
}
.hero-section::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); z-index: 1; /* Overlay koyulaştırıldı */
}
.hero-content { z-index: 2; max-width: 800px; }
.hero-title { font-size: 60px; text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); }

/* --- FEATURES GRID --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.feature-card {
    padding: 40px 20px; background-color: var(--background-light); border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: transform var(--transition-speed) ease;
    border-bottom: 4px solid var(--secondary-color); /* Sarı çizgi eklendi */
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.feature-icon { font-size: 45px; color: var(--primary-color); margin-bottom: 25px; display: block; }

/* --- KATEGORİ VE ÜRÜN KARTLARI (ANA SAYFA FİX) --- */
.product-categories-flex { display: flex; gap: 20px; justify-content: center; }
.category-card {
    position: relative; width: 380px; height: 300px; border-radius: 10px; overflow: hidden;
    text-decoration: none; display: flex; align-items: center; justify-content: center;
    transition: all 0.5s ease; background-size: cover; background-position: center;
    filter: grayscale(0.5); /* Hafif gri ton eklendi */
}
.category-card::before { /* Mavi/Sarı Overlay */
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-color: rgba(0, 77, 153, 0.6); 
    transition: background-color 0.4s ease;
}
.category-card h3 { z-index: 2; color: var(--text-light); text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); }
.category-card:hover { filter: grayscale(0); } /* Hover'da renklenir */
.category-card:hover::before { background-color: rgba(255, 193, 7, 0.7); } /* Hover'da sarı vurgu */

/* --- ABOUT SUMMARY SECTION --- */
.about-summary .container { display: flex; gap: 60px; align-items: center; }
.about-content { flex: 1; }
.about-visual {
    flex: 1; height: 380px; background: url('assets/img/about-summary.jpg') no-repeat center center/cover;
    border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* --- CTA SECTION --- */
.cta-section { background-color: var(--primary-color); color: var(--text-light); padding: 70px 0; }
.cta-section h2 { color: var(--text-light); margin-bottom: 15px; }
.cta-section h2::after { background-color: var(--secondary-color); content: none; } /* Sarı alt çizgi kaldırıldı */


/* --- FOOTER FIX --- */
.footer { background-color: var(--text-dark); color: #ccc; padding: 60px 0 30px; font-size: 14px; }
.footer a { color: #ccc; text-decoration: none; transition: color var(--transition-speed); }
.footer a:hover { color: var(--secondary-color); }
.footer h4 { color: var(--secondary-color); margin-bottom: 15px; font-size: 18px; font-weight: 600; }
.footer .social-links a { color: var(--secondary-color); font-size: 20px; margin-right: 20px; }
.footer .social-links a:hover { color: var(--text-light); }

/* --- HAKKIMIZDA SAYFASI STİLLERİ --- */
.vision-mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 40px; }
.vision-mission-box {
    padding: 30px; background-color: var(--background-light); border-radius: 10px;
    border-top: 5px solid var(--primary-color); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}
.timeline-container { 
    display: flex; justify-content: space-between; gap: 30px; 
    position: relative; padding: 40px 0;
}
.timeline-item { flex: 1; padding: 0 15px; border-left: 2px solid var(--primary-color); }
.timeline-item h3 { margin-bottom: 5px; color: var(--primary-color); }

/* --- ÜRÜNLER SAYFASI STİLLERİ --- */
.products-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding-top: 50px; }
.sidebar-filter { padding: 30px; background-color: var(--background-grey); border-radius: 8px; height: fit-content; }
.product-grid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.product-card { 
    border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--text-dark);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); transform: translateY(-5px); }
.product-card .product-img-placeholder { 
    height: 200px; background-color: #ddd; display: flex; justify-content: center; align-items: center; 
    font-weight: 500; color: #888;
}
.product-card .product-content { padding: 20px; }
.product-card .product-price { display: block; margin-top: 10px; font-size: 18px; color: var(--primary-color); font-weight: 700; }

/* --- PROJELER SAYFASI STİLLERİ (Geliştirildi) --- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.project-card {
    border-radius: 10px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}
.project-card:hover { transform: scale(1.03); }
.project-card img {
    width: 100%; height: 250px; object-fit: cover;
    transition: transform 0.5s ease;
}
.project-content { padding: 25px; }
.project-content h3 { color: var(--primary-color); }

/* --- İLETİŞİM SAYFASI STİLLERİ --- */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.contact-info-box { background-color: var(--background-grey); padding: 30px; border-radius: 10px; height: fit-content; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px;
    font-family: var(--font-family-sans); font-size: 16px;
}
.contact-form textarea { resize: vertical; height: 150px; }
.map-section { height: 450px; width: 100%; border: none; }


/* --- RESPONSIVE TASARIM --- */
@media (max-width: 992px) {
    .navbar { flex-direction: column; }
    .nav-links { margin-top: 10px; flex-wrap: wrap; justify-content: center; }
    .about-summary .container, .contact-grid, .products-layout { flex-direction: column; grid-template-columns: 1fr; }
    .about-visual { height: 300px; }
    .features-grid, .vision-mission-grid, .project-grid { grid-template-columns: 1fr; }
    .product-categories-flex { flex-direction: column; align-items: center; }
    .category-card { width: 100%; max-width: 450px; height: 250px; }
    .footer .container { flex-direction: column; text-align: center; gap: 20px; }
    .footer .social-links { margin-top: 10px; }
}