
/* --- 1. ACİL DURUM KURTARMA (Header, Footer ve Genel Düzen İçin) --- */
* { box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #050505 !important; color: #ffffff !important; margin: 0; overflow-x: hidden; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* Eğer Navbar/Footer bozulduysa bu kod onları hizaya sokar */
.navbar { display: flex; align-items: center; justify-content: space-between; width: 100%; z-index: 9999; }
.main-footer { background: #050505; border-top: 1px solid rgba(255,255,255,0.05); padding: 50px 0; color: #fff; }

/* --- 2. HERO ALANI VE ETKİLEŞİMLİ ROBOT DÜZELTMELERİ --- */
.page-header-service {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #050505;
    padding-top: 100px;
    overflow: hidden;
}

.service-robot {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%; /* Robot sağdaki %55'lik alanı kaplar */
    height: 100vh;
    z-index: 1; /* En alt katman */
    /* pointer-events: none; KALDIRILDI - Artık fareye tepki verecek! */
}

/* Robotun tam sığması için zorunlu kılıyoruz */
spline-viewer {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.service-title-area {
    position: relative;
    z-index: 10; /* Yazılar robotun üstünde kalacak */
    max-width: 50%; /* Yazı alanı ekranın sol %50'sini geçmeyecek ki fareyi engellemesin */
    pointer-events: auto;
}

.subtitle {
    font-size: 0.85rem;
    letter-spacing: 5px;
    opacity: 0.7;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
    color: #fff;
}

.main-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    margin: 20px 0;
    color: #fff;
}

.outline {
    -webkit-text-stroke: 1.5px #fff;
    color: transparent;
}

.description-large {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 40px;
}

.btn-modern-solid {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 800;
    border-radius: 100px;
    transition: transform 0.3s ease;
}
.btn-modern-solid:hover { transform: scale(1.05); }

/* --- 3. ÖZELLİKLER BÖLÜMÜ --- */
.service-features {
    padding: 120px 0;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.f-item {
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.f-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-10px);
}

.f-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
}

.f-item h3 { font-size: 1.8rem; margin-bottom: 15px; color: #fff; font-weight: 800; }
.f-item p { color: rgba(255, 255, 255, 0.6); line-height: 1.6; font-size: 0.95rem; }

/* --- 4. MASONRY GALERİ DÜZELTMELERİ --- */
.service-gallery {
    padding: 100px 0;
    background: #050505;
}

.modern-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

/* Kart Boyutları */
.gallery-item.large { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) grayscale(0.5);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.gallery-item:hover img {
    filter: brightness(1) grayscale(0);
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover .img-overlay {
    opacity: 1;
    transform: translateY(0);
}

.p-category { font-size: 0.65rem; color: rgba(255,255,255,0.6); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 5px; }
.p-name { font-size: 1.5rem; font-weight: 800; color: #fff; }

/* --- 5. CTA KUTUSU --- */
.service-cta { padding: 80px 0 150px; background: #050505; }
.cta-glass-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 60px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.cta-text h3 { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.cta-text p { color: rgba(255, 255, 255, 0.6); font-size: 1.1rem; }

/* --- 6. MOBİL UYUM (RESPONSIVE) --- */
@media (max-width: 1024px) {
    .page-header-service { flex-direction: column-reverse; padding-top: 150px; text-align: center; height: auto; }
    .service-robot { position: relative; width: 100%; height: 400px; right: 0; margin-bottom: -30px; }
    .service-title-area { max-width: 100%; }
    .features-grid, .modern-gallery { grid-template-columns: 1fr; }
    .gallery-item.large, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
    .cta-glass-box { flex-direction: column; text-align: center; gap: 40px; padding: 50px 30px; }
    .description-large { margin: 0 auto 30px; }
}
