/* --- 1. CSS DEĞİŞKENLERİ --- */
:root {
    --bg-anthracite: #1a1a1d; 
    --primary-red: #c62828; 
    --dark-red: #8e1d1d;
    --text-light: #f4f4f9;
    --text-muted: #a0a0a5;
    --white: #ffffff;
    --wa-color: #25d366;
}

/* --- 2. TEMEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-anthracite);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-red { color: var(--primary-red); }

/* --- 3. YÜZER WHATSAPP --- */
.floating-wa {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--wa-color); color: var(--white);
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 9999; text-decoration: none; transition: transform 0.3s;
    animation: pulse 2s infinite;
}
.floating-wa:hover { transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- 4. NAVİGASYON --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; transition: all 0.4s ease; z-index: 1000;
}
.navbar.scrolled {
    background-color: rgba(26, 26, 29, 0.98); backdrop-filter: blur(10px);
    padding: 15px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--primary-red);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800; text-decoration: none; letter-spacing: 1px;}
.brand-highlight { color: var(--primary-red); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-red); }

/* --- 5. HAMBURGER BUTTON (MASAÜSTÜNDE KAPALI) --- */
.hamburger {
    display: none; /* Bilgisayarda tamamen gizli */
}

/* --- 6. KARŞILAMA (HERO) ALANI --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background: url('https://images.unsplash.com/photo-1595515106969-1ce29566ff1c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-color: #1a1a1d; 
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,20,22,0.85) 0%, rgba(20,20,22,0.6) 50%, rgba(20,20,22,0.95) 100%);
    z-index: 1;
}
.hero-text-box { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 0 20px; }
.hero-subtitle { color: var(--primary-red); font-weight: 600; letter-spacing: 4px; margin-bottom: 20px; font-size: 1rem; }
.hero-title { font-size: 5.5rem; line-height: 1.1; margin-bottom: 25px; text-transform: uppercase; font-weight: 800; letter-spacing: -1px; color: #ffffff; }
.hero-desc { color: #a0a0a5; font-size: 1.2rem; margin: 0 auto 40px auto; max-width: 700px; }
.hero-actions { display: flex; justify-content: center; gap: 20px; }

/* --- 7. BUTONLAR --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 35px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; cursor: pointer; border: none; }
.btn-primary { background-color: var(--primary-red); color: var(--white); box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3); }
.btn-primary:hover { background-color: var(--dark-red); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(198, 40, 40, 0.5); }
.btn-secondary { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--bg-anthracite); transform: translateY(-3px); }
.btn-nav { background-color: var(--primary-red); padding: 10px 25px !important; border-radius: 4px; color: var(--white) !important; }
.btn-nav:hover { background-color: var(--dark-red); }

/* --- 8. GENEL BÖLÜM BAŞLIKLARI --- */
.section-container { padding: 100px 20px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--white); margin-bottom: 15px; }
.divider { width: 80px; height: 4px; background-color: var(--primary-red); margin: 0 auto 20px auto; border-radius: 2px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* --- 9. HİZMET KARTLARI --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background-color: #222226; padding: 40px 30px; border-radius: 8px; text-align: center; border-top: 3px solid transparent; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.service-card:hover { transform: translateY(-10px); border-top: 3px solid var(--primary-red); background-color: #27272b; box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
.service-icon { font-size: 3rem; color: var(--primary-red); margin-bottom: 20px; transition: transform 0.3s ease; }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* --- 10. GALERİ VE LIGHTBOX --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.item-overlay { position: absolute; inset: 0; background: rgba(198, 40, 40, 0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.item-overlay span { color: var(--white); font-size: 1.2rem; font-weight: 600; font-family: 'Montserrat', sans-serif; transform: translateY(20px); transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .item-overlay { opacity: 1; }
.gallery-item:hover .item-overlay span { transform: translateY(0); }

.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 15, 17, 0.95); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: scale(0.8); transition: transform 0.3s ease; }
.lightbox-overlay.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 40px; color: var(--white); font-size: 3rem; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--primary-red); }

/* --- 11. İLETİŞİM VE FOOTER --- */
.contact-section { background-color: #222226; padding: 80px 0; margin-top: 50px; text-align: center; border-top: 4px solid var(--primary-red);}
.contact-box h2 { font-size: 2.2rem; margin-bottom: 15px; color: var(--white); }
.contact-box p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px auto; }
.contact-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-wa { background-color: var(--wa-color); color: var(--white); }
.btn-wa:hover { background-color: #128c7e; transform: translateY(-3px); }
.btn-call { background-color: var(--bg-anthracite); color: var(--white); border: 2px solid #333; }
.btn-call:hover { background-color: #111; border-color: var(--primary-red); transform: translateY(-3px); }

footer { background-color: #111113; padding: 30px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }


/* --- 11.5 SCROLL ANİMASYON KURALLARI --- */

/* Başlangıç durumu: aşağıda, görünmez */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Galeri fotoğrafları için hafif scale efekti de ekle */
.gallery-grid .reveal-up {
    transform: translateY(30px) scale(0.97);
    transition:
        opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Viewport'a girince tetiklenen son durum */
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- 12. MOBİL RESPONSIVE AYARLAR (CIHAZ KORUMALI SÜRÜM) --- */
@media (max-width: 768px) {
    
    .navbar { padding: 12px 0; }
    .brand { font-size: 1.25rem; white-space: nowrap; } 

    /* MOBİL BUTON SİSTEMİ - ÜSTTE KALMAYI VE TIKLANMAYI GARANTİLER */
    .hamburger { 
        display: flex !important; 
        align-items: center;
        justify-content: center;
        width: 44px; 
        height: 44px; 
        background-color: rgba(255, 255, 255, 0.1) !important; 
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 6px; 
        cursor: pointer;
        position: relative;
        z-index: 99999 !important; /* Her şeyin üstünde tutar */
        pointer-events: auto !important; /* Tıklama engelini kaldırır */
    }

    /* İkonun rengini ve görünürlüğünü sabitle */
    .hamburger i {
        color: #ffffff !important;
        font-size: 1.4rem !important;
        display: block !important;
    }
    
    .hamburger:active {
        transform: scale(0.90); 
    }
    
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 10px;
    }

    .nav-links {
        position: fixed; 
        top: 65px; 
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: rgba(20, 20, 22, 0.98); 
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        gap: 35px;
        transition: left 0.4s ease;
        border-top: 1px solid rgba(255,255,255,0.05);
        z-index: 1000;
    }

    .nav-links.active { left: 0 !important; }
    .nav-links a { font-size: 1.35rem; font-weight: 600; }

    /* İçeriklerin boyutları */
    .hero-title { font-size: 2.8rem; line-height: 1.2; }
    .hero-subtitle { font-size: 0.85rem; letter-spacing: 2px; }
    .hero-desc { font-size: 1.1rem; padding: 0 10px; }
    
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; padding: 14px 20px; }

    .section-header h2 { font-size: 2rem; }
    .section-container { padding: 60px 15px; }
    
    .contact-box { padding: 40px 20px; }
    .contact-box h2 { font-size: 1.8rem; }
    .contact-buttons { flex-direction: column; width: 100%; }
}

/* --- 13. GALERİ DİNAMİK BUTON VE GİZLEME KURALLARI --- */

/* JavaScript'in fotoğrafları gizlemek için kullanacağı sınıf */
.gallery-item.hidden {
    display: none !important;
}

/* Butonu ortalayan kutu */
.gallery-btn-container {
    text-align: center;
    margin-top: 50px;
}

/* Kırmızı çizgili, içi boş, üzerine gelince dolan premium buton tasarımı */
#gallery-toggle-btn {
    min-width: 220px;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary-red);
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#gallery-toggle-btn:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

#gallery-toggle-btn:active {
    transform: translateY(0);
}