
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: #333; background: #f4f7f6; }
.container { width: 90%; max-width: 1200px; margin: auto; }

header { background: #fff; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 700; color: #003366; }
.logo span { color: #ff6600; }
.btn-call { background: #ff6600; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; }
nav { display: flex; align-items: center; gap: 25px; }
nav a:not(.btn-call) { text-decoration: none; color: #003366; font-weight: 600; font-size: 15px; transition: color 0.2s; }
nav a:not(.btn-call):hover { color: #ff6600; }

.hero { background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)); height: 40vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.hero h1 { font-size: 2.5rem; }
.btn { padding: 12px 25px; text-decoration: none; border-radius: 50px; font-weight: 600; margin: 10px; display: inline-block; }
.btn.primary { background: #ff6600; color: #fff; }
.btn.secondary { background: #25d366; color: #fff; }

.services { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 40px; color: #003366; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* RESİM STANDARTLAŞTIRMA AYARI */
.img-container {
    width: 100%;
    height: 200px; /* Sabit yükseklik */
    background: #e0e0e0; /* Resim yoksa gri görünür */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resim boyutunu bozmadan alanı doldurur */
}

.card-body { padding: 20px; text-align: center; }
.card-body h3 { font-size: 1.1rem; color: #003366; margin-bottom: 10px; }
.card-body p { font-size: 0.9rem; color: #666; }

footer { background: #002244; color: #fff; text-align: center; padding: 30px 0; margin-top: 40px; }

/* GALERİ */
.gallery-section { padding: 50px 0; background: #eef2f7; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.12); aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, filter 0.3s; display: block; }
.gallery-item img:hover { transform: scale(1.05); filter: brightness(1.1); }
.gallery-empty { color: #888; text-align: center; padding: 40px; grid-column: 1/-1; font-size: 1rem; }
.gallery-empty small { display: block; margin-top: 8px; color: #aaa; }

/* LİGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 0 40px rgba(0,0,0,0.6); }
.lightbox-close { position: fixed; top: 20px; right: 30px; color: #fff; font-size: 44px; cursor: pointer; line-height: 1; z-index: 10000; }
.lightbox-close:hover { color: #ff6600; }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); color: #fff; font-size: 36px; cursor: pointer; padding: 10px 18px; background: rgba(255,255,255,0.1); border-radius: 50%; z-index: 10000; user-select: none; }
.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }
.lightbox-prev:hover, .lightbox-next:hover { background: #ff6600; }
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; text-decoration: none; z-index: 1000; }

/* ===== HAMBURGEr MENÜ ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #003366;
    border-radius: 3px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ===== MOBİL RESPONSIVE ===== */
@media (max-width: 768px) {

    /* Header */
    header .container { flex-wrap: wrap; position: relative; }
    .logo img { height: 50px !important; }
    .hamburger { display: flex; }

    /* Nav menü */
    nav#nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        padding: 15px 0 10px;
        gap: 0;
        border-top: 1px solid #eee;
    }
    nav#nav-menu.open { display: flex; }
    nav#nav-menu a {
        padding: 12px 20px;
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
        color: #003366;
        text-decoration: none;
        font-weight: 600;
    }
    nav#nav-menu a.btn-call {
        margin: 10px 20px;
        text-align: center;
        border-radius: 8px;
        border-bottom: none;
        background: #ff6600;
        color: #fff;
        padding: 12px 20px;
    }

    /* Hero */
    .hero { height: auto; padding: 50px 20px; }
    .hero h1 { font-size: 1.4rem; line-height: 1.4; }
    .hero p { font-size: 0.9rem; margin-top: 10px; }
    .hero-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
    .btn { margin: 0; width: 200px; text-align: center; }

    /* Hizmet kartları - mobilde 1 kolon */
    .services-grid { grid-template-columns: 1fr; }
    .img-container { height: 180px; }

    /* Galeri - mobilde 2 kolon */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* Lightbox okları mobilde daha büyük ve dokunulabilir */
    .lightbox-prev, .lightbox-next { font-size: 24px; padding: 12px 16px; }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
    .lightbox-close { font-size: 36px; top: 10px; right: 15px; }
    .lightbox img { max-width: 95vw; max-height: 80vh; }

    /* WhatsApp butonu */
    .whatsapp-float { width: 52px; height: 52px; font-size: 26px; bottom: 20px; right: 15px; }

    /* Footer */
    footer { padding: 20px 15px; font-size: 0.85rem; }
}

@media (max-width: 400px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.2rem; }
}
