/* Genel Sıfırlamalar ve Temel Ayarlar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Header ve Navbar --- */
.header {
    background: #fff;
    border-bottom: 3px solid #dc3545; /* Kırmızı tema */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

.logo h1 {
    font-size: 1.5em;
    color: #dc3545;
}

.top-actions {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-call {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-login {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
}

.btn-login:hover {
    background: #e9ecef;
}

.btn-call {
    background: #dc3545;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-call:hover {
    background: #c82333;
    text-decoration: none;
}

.main-menu {
    background: #343a40; /* Koyu gri menü */
}

.main-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.main-menu ul li a {
    color: #fff;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s;
}

.main-menu ul li a:hover {
    background: #495057;
    text-decoration: none;
}

/* --- Slider Alanı (Placeholder) --- */
.slider-area {
    height: 400px;
    background: url('https://via.placeholder.com/1200x400?text=4+Farkli+Kombi+Gorseli+Slider') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.slider-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.slider-content h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.slider-content p {
    font-size: 1.2em;
}

/* --- Genel Bölümler (Section) --- */
.section {
    padding: 60px 0;
    text-align: center;
}

.bg-light {
    background-color: #e9ecef;
}

.bg-dark {
    background-color: #343a40;
    color: #fff;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #dc3545;
}

.bg-dark h2 {
    color: #fff;
}

/* Hakkımızda Ek Stil */
.section#hakkimizda p {
    max-width: 800px;
    margin: 0 auto 20px;
}

.btn-more, .btn-submit {
    background: #dc3545;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-more:hover, .btn-submit:hover {
    background: #c82333;
    text-decoration: none;
}


/* Hizmetler Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.service-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-basis: calc(25% - 20px); /* 4 sütunlu yapı */
    min-width: 200px;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 3em;
    color: #dc3545;
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 10px;
    color: #343a40;
}

/* Galeri Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    object-fit: cover;
}

/* İletişim Alanı */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info a {
    color: #fff;
    text-decoration: underline;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
}


/* --- Footer Alanı --- */
.footer {
    background: #212529;
    color: #adb5bd;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer p {
    margin: 5px 0;
}

/* --- RESPONSIVE AYARLAR (Mobil Uyum) --- */
@media (max-width: 992px) {
    .service-item {
        flex-basis: calc(50% - 20px); /* Tablette 2 sütun */
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .main-menu ul {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    .main-menu ul li a {
        padding: 10px;
        border-top: 1px solid #495057;
    }

    .slider-content h2 {
        font-size: 2em;
    }

    .slider-content p {
        font-size: 1em;
    }
    
    .services-grid {
        gap: 15px;
    }

    .service-item {
        flex-basis: 100%; /* Mobilde tek sütun */
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        min-width: 100%;
        padding: 10px 0;
    }
}
/* --- Modal (Popup) Stilleri --- */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed; 
    z-index: 2000; /* Header'dan daha yüksek */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Yarı saydam arka plan */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* Ortada olması için */
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h3 {
    text-align: center;
    color: #dc3545;
    margin-bottom: 20px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#loginForm label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

#loginForm input[type="text"], 
#loginForm input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

/* Modal içindeki submit butonunu düzenleme */
.modal-content .btn-submit {
    width: 100%;
    margin-top: 20px;
}