/* ==========================================================================
   1. GENEL AYARLAR VE DEĞİŞKENLER
   ========================================================================== */
:root {
    --primary-color: #006036;
    --secondary-color: #333;
    --background-light: #f4f4f4;
    --text-dark: #111;
    --text-light: #fff;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--text-dark);
}

ul {
    list-style: none;
}

/* --- Ortak Kullanılan Yapılar --- */
.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--background-light);
}

section {
    scroll-margin-top: 80px; 
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

/* ==========================================================================
   2. NAVİGASYON (NAVBAR) VE LOGO
   ========================================================================== */
#navbar {
    background: var(--secondary-color);
    color: var(--text-light);
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
    height: 80px; /* Navbar yüksekliği sabit tutuldu */
    display: flex;
    align-items: center;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
}

.nav-logo {
    /* 80px'lik navbar içinde logoyu dikeyde tam dolduracak şekilde güncellendi */
    height: 75px !important; 
    width: auto;
    max-height: 75px; 
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

#navbar ul {
    display: flex;
}

#navbar ul li a {
    color: var(--text-light);
    padding: 8px 15px;
    margin: 0 5px;
    font-weight: 500;
    transition: 0.3s;
}

#navbar ul li a:hover,
#navbar ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* ==========================================================================
   3. HERO BÖLÜMÜ (DÜZELTİLMİŞ)
   ========================================================================== */
#hero {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

/* Bootstrap Carousel elemanlarının tam ekran olmasını sağlar */
#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
    height: 100vh !important;
    width: 100%;
}

/* Fotoğrafların taşmasını engelleyen ve tam sığdıran ayar */
.hero-full-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

/* Logo ayarları ve giriş animasyonu */
.hero-carousel-logo {
    max-width: 650px; 
    width: 85%; 
    height: auto;
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast; 
    animation: fadeInLogo 1.5s ease-out; 
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   4. SEKTÖRLERİMİZ (İkon Bazlı Tasarım)
   ========================================================================== */
.category-grid { 
    display: grid; 
    gap: 25px; 
    grid-template-columns: repeat(4, 1fr); 
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease; 
    border-top: 5px solid var(--primary-color);
    aspect-ratio: 1 / 1; 
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.icon-green {
    color: var(--primary-color);
    font-size: 3.5rem !important;
    margin-bottom: 15px;
}

/* Sektörlerdeki "İncele" yazılarını gizlemek için ek kural */
.category-card a, .category-card span {
    display: none !important;
}

/* ==========================================================
   ÜRÜNLERİMİZ - ULTRA PREMIUM TASARIM
   ========================================================== */

:root {
    --primary-color: #006036;       
    --primary-dark: #004125;
    --soft-gray: #f4f4f6;
    --medium-gray: #e6e6ea;
    --text-dark: #2c2c2c;
}

/* GRID: Yan yana 4'lü dizilim ve Ürün azsa devleşmeme kuralı */
.product-grid {
    display: grid;
    gap: 25px;
    /* Yan yana 4 ürün (1fr 1fr 1fr 1fr). Ekran küçüldükçe otomatik azalır. */
    grid-template-columns: repeat(4, 1fr); 
    margin-top: 50px;
}

/* KART ANA YAPI */
.premium-product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--medium-gray);
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    height: 100%;
    text-decoration: none !important;
}

/* Kenar Parlama Çizgisi */
.premium-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px; /* Çizgi kalınlığı */
    background: linear-gradient(135deg, transparent, var(--primary-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* Hover */
.premium-product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 83, 14, 0.15);
}

.premium-product-card:hover::before {
    opacity: 1;
}

/* GÖRSEL ALANI */
.product-visual-box {
    position: relative;
    height: 220px; /* 4'lü dizilim için yükseklik optimize edildi */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff, var(--soft-gray));
    overflow: hidden;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: 0.4s ease;
}

.spotlight {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(107,15,26,0.1) 0%, transparent 70%);
    top: -30px;
    right: -30px;
    transition: 0.5s ease;
}

.product-img {
    max-width: 90%;
    max-height: 140px;
    object-fit: contain;
    transition: all 0.5s ease;
    filter: drop-shadow(0 5px 12px rgba(0,0,0,0.08));
    z-index: 3;
}

.premium-product-card:hover .product-img {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 12px 25px rgba(0,0,0,0.15));
}

.premium-product-card:hover .visual-overlay {
    opacity: 1;
}

/* ALT BİLGİ ALANI */
.product-name-banner {
    padding: 22px 15px;
    text-align: center;
    background: #3b3b3b;
    border-top: 1px solid f#eeeeee;
    transition: 0.4s ease;
    margin-top: auto;
    z-index: 3;
}

.product-name-banner h4 {
    margin: 0;
    font-size: 1rem; /* 4'lü dizilim için font dengelendi */
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    text-transform: uppercase;
    transition: 0.3s ease;
}

.view-detail-text {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.3s ease;
}

/* Hover alt alan */
.premium-product-card:hover .product-name-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.premium-product-card:hover h4, 
.premium-product-card:hover .view-detail-text {
    color: #ffffff !important;
}

/* RESPONSIVE: Ekran küçüldükçe ürün sayısını azalt */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-visual-box { height: 200px; }
}

/* ==========================================================================
   6. HAKKIMIZDA, İLETİŞİM VE FOOTER
   ========================================================================== */
/* Hakkımızda */
#about .about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

#about .stats-block {
    background: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

#about .stats-block ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
    display: flex;
    align-items: center;
}

#about .stats-block ul li i {
    color: var(--primary-color);
    margin-right: 15px;
}

/* İletişim */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

/* İLETİŞİM İKON BOYUTU GÜNCELLEMESİ */
.contact-info ul li i {
    font-size: 20px !important; /* İkon boyutunu küçülttük */
    width: 30px;                /* İkonların hizalı durması için genişlik verdik */
    text-align: center;
    margin-right: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

/* Footer */
.site-footer {
    background: linear-gradient(110deg, #1f1f1f, #2a2a2a 60%, #232323);
    color: var(--text-light);
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-wrap {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
}

/* Ortak kutu stili - her iki kutuya uygulanır */
.footer-box-base {
    position: relative;
    flex: 1;
    max-width: 420px;
    border-radius: 10px;
    padding: 10px 16px;
    background: linear-gradient(125deg, rgba(20,20,20,0.92), rgba(30,30,30,0.95));
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212,175,55,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.independent-box {
    position: relative;
    flex: 1;
    max-width: 100%;
    border-radius: 10px;
    padding: 5px 20px;
    background: linear-gradient(125deg, rgba(20,20,20,0.92), rgba(30,30,30,0.95));
    border: 1px solid rgba(212, 175, 55, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212,175,55,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.independent-box::before {
    content: "";
    position: absolute;
    top: -130%;
    left: -30%;
    width: 45%;
    height: 300%;
    transform: rotate(22deg);
    background: linear-gradient(to right, rgba(212,175,55,0), rgba(212,175,55,0.18), rgba(212,175,55,0));
    transition: left 0.7s ease;
}

.independent-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(212,175,55,0.3);
}

.independent-box:hover::before {
    left: 115%;
}

.independent-box:active {
    transform: scale(0.995);
}

.independent-box h3 {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #D4AF37;
}

.developer-label {
    margin: 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D4AF37;
    font-weight: 700;
}

.developer-line {
    margin: 1px 0 0;
    font-size: 0.68rem;
    color: #ffffff;
    font-weight: 600;
}

.developer-text {
    margin: 1px 0 6px;
    font-size: 0.66rem;
    color: #d0d0d0;
}

.developer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.developer-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fefefe;
    background: linear-gradient(130deg, #006036, #0a7a4b);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.developer-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 96, 54, 0.35);
    background: linear-gradient(130deg, #0a7a4b, #10915b);
}

.footer-copy {
    position: relative;
    flex: 1;
    max-width: 100%;
    border-radius: 10px;
    padding: 5px 20px;
    background: linear-gradient(125deg, rgba(20,20,20,0.92), rgba(30,30,30,0.95));
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212,175,55,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.footer-copy::before {
    content: "";
    position: absolute;
    top: -130%;
    left: -30%;
    width: 45%;
    height: 300%;
    transform: rotate(22deg);
    background: linear-gradient(to right, rgba(212,175,55,0), rgba(212,175,55,0.18), rgba(212,175,55,0));
    transition: left 0.7s ease;
}

.footer-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(212,175,55,0.3);
}

.footer-copy:hover::before {
    left: 115%;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
}

.footer-rights {
    font-size: 0.75rem;
    color: #aaaaaa;
    display: block;
    margin-top: 2px;
}

/* ==========================================================================
   7. MOBİL UYUMLULUK (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid, #about .about-content { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .category-grid, .product-grid { grid-template-columns: 1fr; }
    #navbar { height: auto; padding: 10px 0; }
    #navbar .container { flex-direction: column; }
    #navbar ul { margin-top: 10px; flex-wrap: wrap; justify-content: center; }
    .hero-logo { max-width: 350px; }
}

@media (max-width: 900px) {
    .footer-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .independent-box,
    .footer-copy {
        max-width: 100%;
        border-radius: 10px;
    }
}