:root {
    --primary: #fd0000;
    --primary-dark: #b45309;
    --dark: #0f172a;
    --text: #1e293b; /* Kontrast artırıldı (Erişilebilirlik hatası çözümü) */
    --light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text); 
    background: var(--light); 
    line-height: 1.6; 
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }

/* HEADER OPTİMİZASYONU */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: transparent;
    z-index: 1000;
}

/* CLS Önleyici: Logo boyutları sabitlendi */
.logo {
    height: 80px;
    width: 150px; 
    display: flex;
    transition: transform 0.3s ease;
}
.logo img { width: 100%; height: auto; object-fit: contain; }

.main-header nav a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.main-header nav a:hover { color: var(--primary); }

.btn-red {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* HERO & LCP OPTİMİZASYONU */
.hero {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), 
                url('../resim/bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 8% 50px;
    contain: content; /* Render hızını artırır */
}

.hero-features { display: flex; flex-direction: column; gap: 25px; flex: 1; }

.feature-item { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.feature-item i { font-size: 2.5rem; color: white; width: 60px; transition: 0.3s; }
.feature-item span { color: white; font-size: 1.4rem; font-weight: 500; transition: 0.4s; }

.feature-item:hover span, .feature-item:hover i { color: var(--primary); }
.feature-item:hover span { transform: translateX(15px); }

.hero-descriptions {
    width: 40%;
    min-height: 150px;
    padding: 30px;
    border-left: 4px solid var(--primary);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    opacity: 0; 
    visibility: hidden;
    transition: 0.4s;
}

.hero:has(.feature-item:hover) .hero-descriptions { opacity: 1; visibility: visible; }
.desc-content { color: white; font-size: 1.2rem; line-height: 1.8; display: none; }

.hero:has(.feature-item[data-target="evden"]:hover) .evden,
.hero:has(.feature-item[data-target="uluslararasi"]:hover) .uluslararasi,
.hero:has(.feature-item[data-target="uzman"]:hover) .uzman,
.hero:has(.feature-item[data-target="depo"]:hover) .depo {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

/* HİZMETLER */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); transition: 0.4s; border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.service-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

#kr { background-color: var(--primary); color: var(--white); }
#k1 { color: var(--white); }

/* ALT BİLGİ & NEDEN BİZ */
.alt-bilgi-cubugu { background-color: var(--white); padding: 25px 0; margin-top: 2rem; }
.cubuk-konteynir { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.birim { display: flex; align-items: center; gap: 8px; }
.birim i { color: var(--primary); font-size: 18px; }
.birim span { font-size: 13px; font-weight: 700; color: var(--dark); text-transform: uppercase; }

.nedenbiz { 
    background-color: rgba(207, 228, 240, 0.3);
    text-align: center;
    padding: 50px 20px;
    margin: 3rem auto;
    max-width: 1100px;
    border-radius: 20px;
}
.nedenbiz span { color: var(--primary); font-size: 3rem; display: inline-block; line-height: 1; }

/* TELEFON GÖRSELİ & CLS */
.hizmet-konteynir { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 50px; flex-wrap: wrap; }
.telefon-gorsel { width: 300px; height: auto; flex-shrink: 0; }
.telefon-gorsel img { width: 100%; height: auto; aspect-ratio: 300 / 600; object-fit: cover; }

.mahalle-listesi { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mahalle-listesi span { border: 1px solid #ddd; padding: 8px 15px; border-radius: 20px; font-size: 14px; background: #f9f9f9; color: var(--text); }

/* FOOTER */
.footer { background: #0a1128; color: white; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; opacity: 0.8; font-size: 0.9rem; }

/* WHATSAPP */
.whatsapp-btn { 
    position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; 
    width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; font-size: 35px; box-shadow: 0 10px 25px rgba(37,211,102,0.3); 
    z-index: 1000; transition: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 140px; }
    .hero-descriptions { width: 100%; border-left: none; border-top: 4px solid var(--primary); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-header nav { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .cubuk-konteynir { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }