/* ========== GENEL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== YEREL FONT (CLS ÖNLEME İÇİN - Google Fonts kaldırıldı) ========== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 400 500 600 700 800;
    font-display: block;
    src: local('Inter'), local('Inter-Regular'), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #1e293b;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 60px 0;
}
.section.bg {
    background: #f1f5f9;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172a;
}
.section-sub {
    text-align: center;
    color: #475569;
    margin-bottom: 48px;
    font-size: 18px;
}

/* ========== STATİK BANNER (CLS SIFIR - ASPECT RATIO İLE SABİTLENDİ) ========== */
.slider-banner {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1920 / 500 !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
}

.slider-banner .banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-banner img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: brightness(0.55);
    z-index: 1 !important;
}

.slider-banner .banner-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    color: white !important;
    width: 80% !important;
    max-width: 800px !important;
    z-index: 5 !important;
}

.slider-banner .banner-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 15px 0 !important;
    line-height: 1.2 !important;
}

.slider-banner .banner-content p {
    font-size: 22px;
    margin: 0 0 20px 0 !important;
    line-height: 1.5 !important;
}

.btn {
    display: inline-block;
    background-color: #f97316;
    color: white;
    padding: 14px 36px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #ea580c;
    transform: scale(1.02);
}

/* ========== GRID SİSTEMLERİ ========== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 40px 0;
}

/* ========== HİZMET KARTLARI (İkon CLS DÜZELTİLDİ) ========== */
.service-card {
    background: #f8fafc;
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.25s ease;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card .icon {
    display: inline-block;
    font-size: 48px;
    color: #f97316;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
}
.service-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

/* ========== GALERİ ========== */
.gallery-item {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}
.gallery-item:hover img {
    transform: scale(1.03);
}

/* ========== YORUMLAR ========== */
.testimonial {
    background: #ffffff;
    border-radius: 25px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.customer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.customer img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    font-style: italic;
}

/* ========== HABERLER ========== */
.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}
.news-card:hover {
    transform: translateY(-4px);
}
.news-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}
.news-content {
    padding: 20px;
}
.news-date {
    color: #f97316;
    font-size: 14px;
    margin-bottom: 8px;
}
.news-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.news-excerpt {
    color: #475569;
    font-size: 14px;
}

/* ========== İLETİŞİM BÖLÜMÜ ========== */
.contact-section {
    background: #f1f5f9;
    padding: 70px 0;
    margin: 60px 0;
}
.contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: start !important;
}
.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1e293b;
}
.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 15px;
}
.contact-detail i {
    width: 32px;
    color: #f97316;
    font-size: 18px;
}
.form-group {
    margin-bottom: 15px;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 28px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.form-control:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249,115,22,0.1);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ========== LOGO CLS KESİN ÇÖZÜM (GÜNCELLENDİ) ========== */
.logo {
    display: inline-block !important;
    width: 258px !important;
    height: 67px !important;
    overflow: hidden !important;
    aspect-ratio: 258 / 67 !important;
}

.logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* ========== SECTION STABİLİZASYONU (CLS İÇİN - YENİ EKLENDİ) ========== */
.section {
    display: block !important;
    clear: both !important;
    content-visibility: auto !important;
    contain-intrinsic-size: 0 500px !important;
}

/* ========== FOOTER ========== */
footer {
    background: #1e3a8a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}
.footer-col p {
    margin-bottom: 12px;
    line-height: 1.5;
}
.footer-col a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}
.footer-col a:hover {
    color: #facc15;
}
.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #2d4a9e;
    font-size: 14px;
}

/* ========== FONTAWESOME ÖZEL (SADECE KULLANILAN İKONLAR) ========== */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-brands-400.woff2') format('woff2');
}

/* Temel İkon Sınıfları */
.fa, .fas, .far, .fal, .fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

.fas {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.fab {
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
}

/* ===== KULLANILAN İKONLAR ===== */
.fa-tools::before { content: "\f7d9"; }
.fa-phone-alt::before { content: "\f879"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-map-marker-alt::before { content: "\f3c5"; }
.fa-bars::before { content: "\f0c9"; }
.fa-globe::before { content: "\f0ac"; }
.fa-whatsapp::before { content: "\f232"; }

/* Sosyal Medya İkonları */
.fa-facebook-f::before { content: "\f39e"; }
.fa-twitter::before { content: "\f099"; }
.fa-instagram::before { content: "\f16d"; }
.fa-youtube::before { content: "\f167"; }

/* ========== FORCED REFLOW ÖNLEME (GPU hızlandırma) ========== */
.mobile-menu,
#navList,
#navList.nav-open {
    will-change: transform, opacity;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .grid-3, .grid-4, .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    /* Mobil Logo */
    .logo {
        width: 180px !important;
        height: 47px !important;
        aspect-ratio: 180 / 47 !important;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-gallery {
        grid-template-columns: 1fr;
    }
    /* Mobil Statik Banner - Aspect ratio ile sabitlendi */
    .slider-banner {
        aspect-ratio: 4 / 3 !important;
    }
    .slider-banner .banner-content {
        width: 90% !important;
    }
    .slider-banner .banner-content h1 {
        font-size: 18px !important;
        margin: 0 0 8px 0 !important;
    }
    .slider-banner .banner-content p {
        font-size: 11px !important;
        margin: 0 0 12px 0 !important;
    }
    .slider-banner .banner-content .btn {
        padding: 6px 16px !important;
        font-size: 11px !important;
    }
    .gallery-item {
        height: 160px;
    }
    .news-img {
        height: 160px;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}