﻿/* Genel reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1E293B; /* Koyu gri yazılar */
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .navbar .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #DC2626;
    text-decoration: none;
}

.logo-img {
    height:100px;
    fill: #DC2626;
}


/* Menü */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

    .nav-links a {
        text-decoration: none;
        color: #1E293B;
        font-weight: 500;
        transition: color 0.3s ease, font-size 0.3s ease;
    }

        .nav-links a:hover {
            color: #DC2626; /* Kırmızı hover */
            text-decoration-line: underline;
        }

/* Ek: Navbar buton grubu */
.nav-buttons {
    display: flex;
    gap:1.5rem; /* çok küçük boşluk */
}

    .nav-buttons .btn-primary {
        margin: 0; /* ekstra boşluğu kaldır */
    }

/* Buton */
.btn-primary {
    padding: 0.5rem 1rem;
    background-color: #DC2626; /* Kırmızı buton */
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-primary:hover {
        background-color: #B91C1C; /* Daha koyu kırmızı */
        color: white !important;
        transform: scale(1.05);
    }

/* İçerik */
.main-content {
    flex: 1; /* Footer aşağıda kalması için esneklik */
}

/* Footer */
.footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    text-align: center;
    color: #DC2626;
    font-size: 0.8rem;
    font-weight:bold;
}

/* Hero Section */
/* Hero Section */
.hero {
    background: linear-gradient(to right, #DC2626, #1E293B); /* Kırmızıdan siyaha degrade */
    color: white;
    padding: 6rem 1rem;
    text-align: center;
}

    .hero .container {
        max-width: 1200px; /* Hero içeriğini sınırlı genişlikte yap */
        margin: 0 auto; /* ortalamak için otomatik margin */
        text-align: center; /* metni ortala */
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        max-width: 600px; /* paragraf genişliğini sınırla */
        margin-left: auto;
        margin-right: auto;
        text-align: center; /* metni ortala */
    }


/* Hakkımızda */
.about {
    padding: 5rem 1rem;
    max-width: 900px; /* container genişliği */
    margin: 0 auto; /* ortalamak için otomatik margin */
    text-align: center; /* metinleri ortala */
}

    .about h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        color: #DC2626; /* Kırmızı başlık */
    }

    .about p {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 800px; /* paragraf genişliğini sınırla */
        margin: 0.5rem auto 1rem auto; /* üst-orta-alt boşluk ve yatay ortalama */
        text-align: center; /* metni ortala */
    }




/* Hizmetler */
.services {
    padding: 5rem 1rem;
    background-color: #f9fafb;
    text-align: center;
}

    .services h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: #DC2626; /* Kırmızı başlık */
        margin-top:10px;
    }

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(220,38,38,0.2); /* Kırmızı tonlu gölge */
    }

    .service-card h3 {
        margin-bottom: 0.8rem;
        color: #DC2626; /* Kırmızı başlık */
    }
.service-icon {
    margin-bottom: 1rem; /* ikon ile başlık arasındaki boşluk */
    text-align: center; /* ikonları ortalamak için */
}


/* İletişim */
.contact {
    padding: 5rem 1rem;
    text-align: center;
}

    .contact h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        color: #DC2626; /* Kırmızı başlık */
    }

    .contact p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

.contact-info p {
    margin-bottom: 1rem;
    font-weight: 500;
    color: #1E293B; /* Koyu gri metin */
}

.contact-info strong {
    color: #DC2626; /* Kırmızı vurgular */
}

.contact-map {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

    .contact-map iframe {
        width: 80%; /* Yatayda %80 genişlik */
        max-width: 600px; /* Maksimum genişlik 600px */
        height: 400px;
        border: 2px solid #DC2626; /* Kırmızı çerçeve */
        border-radius: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .contact-map iframe:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(220,38,38,0.2);
        }

/* Tablet ve küçük masaüstü cihazlar */
@media (max-width: 992px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about h2,
    .services h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .about p,
    .hero p {
        max-width: 90%;
    }

    .service-list {
        grid-template-columns: 1fr 1fr;
    }

    .contact-map iframe {
        width: 90%;
        height: 350px;
    }
}

/* Mobil cihazlar */
@media (max-width: 576px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about h2,
    .services h2,
    .contact h2 {
        font-size: 1.6rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        width: 100%;
        height: 300px;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Navbar Responsive - Mobil cihazlar */
@media (max-width: 576px) {
    .navbar .container {
        flex-direction: column;
        align-items: center; /* Tüm içerikleri ortala */
        gap: 0.5rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center; /* Linkleri ortala */
        text-align: center;
    }

        .nav-links a {
            display: block;
            width: fit-content;
        }

    .btn-primary {
        width: fit-content;
        margin-top: 0.5rem;
    }
}