/* =========================
   GENEL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9faf7;
    color: #1e293b;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section_overline {
    display: inline-block;
    margin-bottom: 15px;
    color: #FB0519;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section_header {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.section_header h2 {
    margin-bottom: 20px;
    color: #172554;
    font-size: 42px;
    line-height: 1.2;
}

.section_header p {
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================
   HEADER (Sabit Lacivert)
========================= */

.header {
    display: flex;
    padding: 5px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background-color: #172554; /* Her zaman net lacivert */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.header_container {
    width: min(1200px, 90%);
    min-height: 80px;
    margin: auto;
    display: flex;
    align-items: center;
}

.logo {
    display: block;
}

.logo img {
    width: 200px;
    height: 50px;
    object-fit: contain;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.navbar a {
    color: white;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.navbar a:hover {
    color: #FB0519;
}

.header_button {
    margin-left: 35px;
    padding: 12px 22px;
    border-radius: 6px;
    background-color: #FB0519;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

@media (max-width: 768px) {

    .header_button {
        margin-left: auto;
    }

}

.header_button:hover {
    background-color: #C80414;
}

.menu_button {
    display: none;
    margin-left: auto;
    border: none;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 140px 0 100px 0; /* Sabit header için üst boşluk */
    background-color: #f8fafc;
}

.hero_container {
    width: min(1200px, 90%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.hero_content {
    flex: 1;
}

.hero_content h1 {
    margin-bottom: 25px;
    color: #172554;
    font-size: clamp(45px, 6vw, 70px);
    line-height: 1.05;
}

.hero_content h1 span {
    color: #FB0519;
}

.hero_content > p {
    max-width: 600px;
    margin-bottom: 35px;
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
}

.hero_buttons {
    display: flex;
    gap: 15px;
}

.button {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.button_primary {
    background-color: #FB0519;
    color: white;
}

.button_primary:hover {
    background-color: #ea580c;
}

.button_secondary {
    border: 1px solid #cbd5e1;
    color: #172554;
    background-color: white;
}

.button_secondary:hover {
    background-color: #172554;
    color: white;
}

.hero_image {
    flex: 1;
    max-width: 550px;
}

.hero_image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}


/* =========================
   HAKKIMIZDA
========================= */

.about {
    background-color: white;
}

.about_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.about_content h2 {
    margin-bottom: 25px;
    color: #172554;
    font-size: 44px;
    line-height: 1.2;
}

.about_content > p {
    margin-bottom: 18px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.about_stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.stat {
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 10px;
    text-align: center;
}

.stat strong {
    display: block;
    margin-bottom: 5px;
    color: #FB0519;
    font-size: 28px;
}

.stat span {
    color: #64748b;
    font-size: 14px;
}


/* =========================
   REFERANSLAR
========================= */

.references {
    background-color: #f8fafc;
}

.reference_slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* SOL KENAR YUMUŞAK GEÇİŞ */
.reference_slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 65px;
    height: 100%;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        to right,
        #f8fafc 0%,
        rgba(248, 250, 252, 0.55) 45%,
        rgba(248, 250, 252, 0) 100%
    );
}

/* SAĞ KENAR YUMUŞAK GEÇİŞ */
.reference_slider::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 65px;
    height: 100%;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        to left,
        #f8fafc 0%,
        rgba(248, 250, 252, 0.55) 45%,
        rgba(248, 250, 252, 0) 100%
    );
}

.reference_grid {
    display: flex;
    gap: 20px;
    width: max-content;
    align-items: center;
}

.reference_card {
    width: 200px;
    height: 120px;
    flex-shrink: 0;

    background: white;
    padding: 30px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);

    transition: 0.3s;
}

.reference_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.reference_card img {
    max-width: 140px;
    max-height: 50px;
    object-fit: contain;
}

#hg_ayar {
    max-width: 170px;
    max-height: 80px;
    object-fit: contain;
}

/* =========================
   MALZEMELER
========================= */

.materials {
    background-color: white;
}

.material_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.material_card {
    padding: 45px 30px;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.material_card:hover {
    border-color: #FB0519;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.20);
}

/* Görsel alanını maksimum netlik ve büyüklüğe getirdik */
.material_icon {
    width: 170px;  
    height: 170px; 
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; 
}

/* Görselin bu büyük alana tam oturması için */
.material_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.material_card h3 {
    margin-bottom: 12px;
    color: #172554;
    font-size: 20px;
}

.material_card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================
   HİZMETLER
========================= */

.services {
    background-color: #f8fafc;
}

.service_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service_card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
}

.service_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service_image {
    width: 100%;
    height: 300px; /* Kendi tasarımına göre buraya bir yükseklik vermelisin (Örn: 220px, 300px vb.) */
    overflow: hidden; /* Resim dışarı taşarsa köşelerden keser ve taşmayı engeller */
    border-radius: 8px 8px 0 0; /* İsteğe bağlı: Köşeleri yuvarlatmak için */
}

.service_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Resmi her zaman ortalı tutar */
}

.service_content {
    padding: 25px;
}

.service_content span {
    display: block;
    margin-bottom: 8px;
    color: #FB0519;
    font-weight: bold;
    font-size: 13px;
}

.service_content h3 {
    margin-bottom: 12px;
    color: #172554;
    font-size: 20px;
}

.service_content p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================
   NEDEN BİZ
========================= */

.why_us {
    background-color: white;
}

.why_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why_content h2 {
    margin-bottom: 20px;
    color: #172554;
    font-size: 38px;
    line-height: 1.2;
}

.why_content > p {
    margin-bottom: 15px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.why_list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why_item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why_number {
    min-width: 45px;
    height: 45px;
    background-color: #172554;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.why_item h3 {
    margin-bottom: 5px;
    color: #172554;
    font-size: 17px;
}

.why_item p {
    color: #64748b;
    font-size: 14px;
}

.why_image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 15px;
}


/* =========================
   İLETİŞİM
========================= */

.contact {
    background-color: #f8fafc;
}

.contact_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact_info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact_item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact_icon {
    font-size: 24px;
}

.contact_item h3 {
    margin-bottom: 5px;
    color: #172554;
    font-size: 17px;
}

.contact_item p, 
.contact_item a {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    transition: 0.3s;
}

.contact_item a:hover {
    color: #f91616;
}


/* =========================
   FOOTER
========================= */

.footer {
    background-color: #172554;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}


/* =========================
   RESPONSIVE (MOBİL UYUM)
========================= */

@media (max-width: 768px) {
    .hero_container img{
        display: none;
    }
    
}

@media (max-width: 992px) {
    .navbar {
        display: none;
    }

    .menu_button {
        display: block;
    }

    .hero_container,
    .about_grid,
    .why_grid,
    .contact_grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero_image {
        max-width: 100%;
    }

    .material_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reference_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section_header h2 {
        font-size: 32px;
    }

    .material_grid,
    .service_grid,
    .reference_grid {
        grid-template-columns: 1fr;
    }

    .about_stats {
        grid-template-columns: 1fr;
    }
}

/* =========================
   BURGER MENU
========================= */

.menu_button {
    display: none;
    margin-left: 20px;
    border: none;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1100;
}


/* =========================
   MOBİL MENÜ
========================= */

@media (max-width: 992px) {

    .header_container {
        position: relative;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        background-color: #172554;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        width: 100%;
        padding: 16px 20px;
        color: white;
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar a:hover {
        color: #FB0519;
        background-color: rgba(255, 255, 255, 0.05);
    }

    .menu_button {
        display: block;
    }

    .header_button {
        margin-left: auto;
    }

    .hero_container img {
        display: none;
    }
}


/* =========================
   TABLET / KÜÇÜK EKRAN
========================= */

@media (max-width: 768px) {

    .hero_container img {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section_header h2 {
        font-size: 32px;
    }

    .material_grid,
    .service_grid {
        grid-template-columns: 1fr;
    }

    .about_stats {
        grid-template-columns: 1fr;
    }

}

    .contact.section {
        padding: 80px 20px;
        background-color: #f8fafc;
        font-family: inherit;
        box-sizing: border-box;
    }

    .contact * {
        box-sizing: border-box;
    }

    .contact-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .contact-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .contact-overline {
        display: inline-block;
        font-size: 12px;
        font-weight: 700;
        color: #0d47a1;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        margin-bottom: 10px;
        background: rgba(13, 71, 161, 0.08);
        padding: 6px 14px;
        border-radius: 20px;
    }

    .contact-header h2 {
        font-size: 32px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 12px;
    }

    .contact-header p {
        color: #64748b;
        font-size: 16px;
        max-width: 550px;
        margin: 0 auto;
        line-height: 1.5;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 30px;
        align-items: stretch;
    }

    .contact-card {
        background: #ffffff;
        padding: 30px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
        border: 1px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Harita Alanı */
    .map-wrapper {
        width: 100%;
        height: 380px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 25px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .map-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

    /* İletişim Bilgileri */
    .info-list {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .info-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    .info-icon {
        background: linear-gradient(135deg, #0d47a1, #1976d2);
        color: #fff;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
    }

    .info-item h4 {
        font-size: 14px;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 2px;
    }

    .info-item p, .info-item a {
        color: #64748b;
        font-size: 13.5px;
        line-height: 1.4;
        text-decoration: none;
        transition: color 0.2s;
        margin: 0;
    }

    .info-item a:hover {
        color: #0d47a1;
    }

    /* Form Tasarımı */
    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .form-group input,
    .form-group textarea,
    .form-row input {
        width: 100%;
        padding: 15px 18px;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        font-size: 14px;
        background: #f8fafc;
        color: #0f172a;
        outline: none;
        transition: all 0.3s ease;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-row input:focus {
        border-color: #0d47a1;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.08);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 110px;
    }

    .submit-btn {
        width: 100%;
        background: #0d47a1;
        color: #fff;
        border: none;
        padding: 16px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(13, 71, 161, 0.25);
    }

    .submit-btn:hover {
        background: #0b3c8c;
        transform: translateY(-1px);
    }

    /* Sosyal Medya Kutuları */
    .social-channels {
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid #f1f5f9;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .social-box {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 10px;
        text-decoration: none;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        transition: all 0.2s ease;
    }

    .social-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .social-box.whatsapp .social-icon {
        background: #25d366;
        color: #fff;
    }

    .social-box.instagram .social-icon {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        color: #fff;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .social-text span {
        display: block;
        font-size: 11px;
        color: #64748b;
    }

    .social-text strong {
        font-size: 12.5px;
        color: #0f172a;
    }

    /* Mobil Uyumluluk (Responsive Media Queries) */
    @media (max-width: 992px) {
        .contact-grid {
            grid-template-columns: 1fr;
        }
        .map-wrapper {
            height: 300px;
        }
    }

    @media (max-width: 576px) {
        .contact.section {
            padding: 50px 15px;
        }
        .contact-header h2 {
            font-size: 26px;
        }
        .form-row {
            grid-template-columns: 1fr;
        }
        .social-channels {
            grid-template-columns: 1fr;
        }
        .contact-card {
            padding: 20px;
        }
    }