:root {
    /* Genel Tema Renkleri (Soft İnci Beyazı) */
    --bg-color: #F8F8F8; /* Soft Krem-Beyaz Arka Plan */
    --card-bg: #FFFFFF; /* Beyaz Kart Arka Planı */
    --text-color: #1A1A1A; /* Koyu Metin */
    
    /* KIRMIZI/BORDO Vurgu Rengi */
    --accent-color: #B00020; 
    --secondary-accent: #880018; /* Daha Koyu Bordo */

    --hover-color: #F0F0F0; /* Hafif Gri Buton Üzeri Hover Rengi */
    --footer-text-color: #666666; /* Koyu Gri Footer Metni */
}

* {
    box-sizing: border-box;
}

body {
    /* YAZI TİPİ: Poppins */
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    /* Hafif nokta deseni ve soft arka plan */
    background-image: radial-gradient(#d3d3d3 1px, transparent 1px);
    background-size: 20px 20px;
}

.card-container {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15); 
    width: 100%;
    /* Kart genişliği Mürsel Oto Lastik yazısına göre ayarlandı */
    max-width: 500px;
    text-align: center;
    /* Soft Gri Çerçeve */
    border: 1px solid rgba(0, 0, 0, 0.05); 
    animation: fadeIn 0.8s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section {
    margin-bottom: 25px;
}

/* LOGO ÇERÇEVESİ: Yatay genişlik tekrar azaltıldı ve köşeler yuvarlatıldı */
.profile-pic {
    /* Görselin kendisi */
    width: 40%; 
    height: 90px;  
    max-width: 200px; 
    border-radius: 100px; /* Yuvarlaklık 100px olarak ayarlandı (tam yuvarlak) */
    object-fit: contain; 
    margin-bottom: 15px;
    border: none; 
    
    /* YENİ EKLENEN/GÜNCELLENEN GRİLİK/DİKDÖRTGEN KUTU STİLLERİ */
    background-color: #fff; /* Dikdörtgen kutu rengi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Dış grilik gölgesi */
    padding: 5px; /* Kutu içindeki logo ile kutu arasında boşluk */
    border-radius: 15px; /* Dış kutunun köşesi (butonlarla uyumlu) */
    width: auto; /* Otomatik genişlik (kutu genişlesin) */
    max-width: 210px; /* Kutu genişliğini sınırla (max-width'ten biraz büyük) */
    height: auto; /* Yüksekliği içeriğe göre ayarla */

    margin: 0 auto 15px auto; /* Merkezleme garantisi */
    display: block; /* Merkezleme için blok eleman yapıldı */
}

.name {
    margin: 10px 0 5px 0;
    font-size: 1.8em;
    font-weight: 600; /* Poppins Semi-Bold */
    color: var(--text-color);
}

/* GENEL GÖRÜNÜM AYARI */
.title {
    color: #666; 
    /* Ayırıcı kalktığı için butona olan boşluk da buradan ayarlanacak */
    margin: 0 0 25px 0; /* Boşluk artırıldı */
    font-size: 1em; /* DÜZELTİLDİ: Genel görünümde yazı büyüklüğü */
    font-weight: 400; /* Normal kalınlık */
    white-space: normal; 
    overflow: visible; 
    text-overflow: unset; 
}

/* TÜM 12 BUTON İÇİN TEK GRİD - 4x3 DÜZENİ */
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 0; 
}

.action-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 115px; 
    width: 100%;
    text-decoration: none;
    font-family: inherit;
    padding: 5px;
    margin: 0;
    color: var(--text-color);
    background-color: #F8F8F8; 
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.action-btn .icon-img {
    width: 32px; 
    height: 32px; 
    object-fit: contain;
    margin-bottom: 5px;
    transition: transform 0.3s;
}

.action-btn .btn-text {
    /* KALIN OLMAYAN VE SİMETRİK KALINLIK */
    font-size: 0.9em; /* Önceki istekten kalan küçültülmüş boyut (Masaüstü/Tablet) */
    font-weight: 400; /* Normal kalınlık */
    color: var(--text-color);
    line-height: 1.2;
    text-align: center;
}

/* 🟥 İSTEDİĞİNİZ KIRMIZI VURGU EFEKTİ BURADA! (TIKLANMA ANINDA) 🟥 */
.action-btn:active {
    transform: translateY(-2px); /* Hafif yukarı çekme hissi (Basılma) */
    /* Kırmızı vurgulu gölge (Bordo/Kırmızı RGB: 176, 0, 32) */
    box-shadow: 0 4px 10px rgba(176, 0, 32, 0.3); 
    border-color: var(--accent-color); /* Kırmızı kenarlık vurgusu */
    background-color: var(--hover-color); /* Hafif arkaplan değişimi */
}

/* SADECE FARE KULLANILAN CİHAZLAR İÇİN HOVER STİLİ (Mobil kalıcı stili çözer) */
@media (hover: hover) and (pointer: fine) {
    .action-btn:hover {
        background-color: var(--hover-color);
        border-color: var(--accent-color);
        transform: translateY(-4px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }
    
    .action-btn:hover .icon-img {
        transform: scale(1.15);
    }
}

#status-message {
    text-align: center;
    margin: 10px 0 25px 0;
    font-size:.85em;
    color: #888;
    min-height: 1.2em;
}

/* FOOTER KISALTILDI VE SİMETRİ SAĞLANDI */
.main-footer {
    padding: 15px 0 5px 0; 
    text-align: center;
    margin-top: 20px; 
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.copyright {
    font-size: .75em; 
    color: #666;
    margin-bottom: 5px; 
    font-weight: 400;
}

.developer {
    font-size: .8em; 
    color: #444;
    margin: 10px 0 5px 0; 
    line-height: 1.5;
    font-weight: 500;
}

.developer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1em; 
    transition: color 0.2s;
    letter-spacing: .5px;
    display: inline;
}

.developer a:hover {
    color: var(--secondary-accent);
}

/* Modal ve IBAN stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto; 
}

/* --- GALERİ KAYDIRMA (SCROLL) ÇÖZÜMÜ İÇİN FLEX AYARI YAPILDI --- */
.modal-content {
    background-color: #FFFFFF;
    margin: 20% auto;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1); 
    width: 85%;
    max-width: 400px;
    border-radius: 12px;
    position: relative;
    text-align: center;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* === GÜNCELLENMİŞ GALERİ MODAL İÇERİĞİ (KESİLMESİN DİYE) === */
.gallery-modal-content {
    /* Galeri Modalını Merkezleme ve sabitleme */
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    margin: 0; 

    max-width: 800px; 
    width: 90%; 
    
    /* Dikey Flex Kapsayıcı */
    display: flex; 
    flex-direction: column;
    
    /* Yüksekliği Max Olarak Ayarla */
    height: auto; 
    max-height: 95vh; 
    
    /* Padding'i sıfırlıyoruz, header ve content kendi padding'ini yönetecek */
    padding: 0; 
    border-radius: 12px;
    z-index: 9999;
    
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Close button genel */
.close-btn {
    color: #666;
    float: right; /* IBAN modalındaki çarpı için bu stil kalmalı */
    font-size: 32px;
    cursor: pointer;
    background: none; /* Button stilini sıfırla */
    border: none; /* Button stilini sıfırla */
    padding: 0; /* Button stilini sıfırla */
}

.close-btn:hover {
    color: var(--accent-color);
}

/* IBAN ve Hizmetler modalındaki başlıklar için varsayılan stil */
.modal-content h2 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.4em;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    padding-bottom: 10px;
}

/* --- IBAN MODALI STİLLERİ (KUTUCUKLAR VE RENKLENDİRME) --- */

.iban-list-container {
    padding: 0;
    margin-bottom: 10px;
}

.iban-item {
    background-color: #F8F8F8; 
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1); 
    margin-bottom: 15px;
    text-align: center;
}

.iban-bank-name {
    color: var(--accent-color); 
    font-weight: 600;
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.iban-account-name {
    font-size:.9em;
    color: #444;
    margin: 0 0 10px 0;
}

.iban-number {
    font-family: monospace; 
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 15px;
    word-break: break-all; 
    background-color: #EEE; 
    padding: 8px;
    border-radius: 5px;
    display: block; 
    margin-top: 15px; 
}

.copy-btn {
    background-color: var(--accent-color); 
    color: #FFFFFF;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    font-size:.9em;
    transition: 0.3s;
    margin: 5px; 
}

.copy-btn:hover {
    background-color: var(--secondary-accent);
    transform: translateY(-1px);
}

.iban-footer-note {
    font-size: .75em;
    color: #888;
    margin-top: 15px;
}

/* Kopyalandı ve Durum Mesajı Renkleri (Script.js tarafından ayarlanır) */
.copy-btn[style*="background-color: rgb(76, 175, 80)"] { 
    background-color: #4CAF50 !important;
    color: white !important;
}

#status-message[style*="color: rgb(0, 74, 173)"] { 
    color: var(--accent-color) !important; 
}

/* --- Galeri Modal İçerik Stilleri (DİKEY, KUTULU ve TAM GÖRÜNTÜ) --- */
.gallery-content {
    /* KALAN ALANI KAPLA ve DİKEYDE KAYDIRILABİLİR YAP */
    flex-grow: 1; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    
    display: flex;
    flex-direction: column; 
    gap: 15px;
    padding: 0 20px 20px 20px; /* İçerik için alt ve yan padding'i burada ver */
    flex-wrap: nowrap;
    align-items: center; /* Öğeleri merkezler */
}

/* Her görsel kartı: overflow visible (kırpmaya sebep olmasın) */
.gallery-image-item {
    margin: 0;
    width: 100%; 
    max-width: 760px; 
    
    background-color: #F8F8F8; 
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px; 
    overflow: visible;      /* DEĞİŞTİRİLDİ: hidden -> visible */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); 
    padding: 10px; 
    display: block;
}

/* Görsel: tam görünmesi için ayarlar */
.gallery-img {
    display: block;
    margin: 0 auto;
    width: auto;                       /* genişliği içeriğe/oranına göre ayarla */
    max-width: 100%;
    height: auto;
    /* Görselin modal içinde tamamı görünsün. Başlık/padding hesaba katıldı. */
    max-height: calc(95vh - 160px);
    object-fit: contain;               /* DEĞİŞTİRİLDİ: unset -> contain */
    transition: transform 0.3s ease-in-out;
    border-radius: 8px;
}

/* hover efekti hafif zoom */
.gallery-image-item:hover .gallery-img {
    transform: scale(1.01); 
}

.gallery-caption {
    font-size: 0.8em;
    font-weight: 500;
    color: #444;
    padding: 8px 5px 0 5px; 
    text-align: center;
    border-top: none; 
}

.gallery-empty-message {
    text-align: center;
    color: #888;
    padding: 20px;
    font-style: italic;
}

/* Responsive Düzenlemeler */
@media (max-width: 820px) {
    .gallery-modal-content {
        max-width: 95%;
    }
}

/* --- MOBİL CİHAZ OPTİMİZASYONLARI (@media 520px) --- */
@media (max-width: 520px) {
    body {
        padding: 0;
        align-items: center; 
        min-height: 100vh; 
        overflow-y: hidden; 
    }

    .card-container {
        width: 90%; 
        max-width: 380px; 
        border-radius: 20px; 
        min-height: auto; 
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
        padding: 20px 15px 15px 15px; 
        display: flex;
        flex-direction: column;
        justify-content: center; 
        margin: auto; 
    }
    
    .profile-section {
        margin-bottom: 5px; 
    }

    .profile-pic {
        height: 70px; 
        max-width: 150px; 
        margin: 0 auto 5px auto; 
    }

    .name {
        font-size: 1.6em; 
        margin: 5px 0 0 0;
    }

    .title {
        font-size: 1.1em; 
        margin: 0 0 15px 0; 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
    }
    
    .buttons-wrapper {
        flex-grow: 1; 
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch; 
        margin-bottom: 8px; 
    }

    .action-grid {
        gap: 8px; 
        margin-bottom: 0; 
        margin-top: 0; 
    }
    
    .action-btn {
        height: 85px; 
    }
    
    .action-btn .icon-img {
        width: 26px; 
        height: 26px; 
        margin-bottom: 2px;
    }
    
    .action-btn .btn-text {
        font-size: 0.75em; 
        line-height: 1.1; 
    }
    
    #status-message {
        margin: 5px 0 8px 0; 
        font-size: 0.75em;
    }

    .main-footer {
        padding: 5px 0 0 0; 
        margin-top: 5px; 
    }

    .copyright {
        font-size: .7em; 
        margin-bottom: 2px; 
    }

    .developer {
        font-size: .75em; 
        margin: 5px 0 0 0; 
    }

    /* Modal Boyutlandırması mobilde tam ekran */
    .gallery-modal-content {
        position: fixed; 
        top: 0;
        left: 0;
        transform: none; 
        margin: 0; 
        max-width: none; 
        width: 100%;
        height: 100vh; 
        max-height: none; 
        border-radius: 0; 
        padding: 0;
    }
   
    .gallery-image-item {
        max-width: none; 
    }

    .gallery-img {
        max-height: calc(100vh - 120px);
    }
}

/* --- YENİ EKLENEN HİZMETLER MENÜSÜ MODAL STİLLERİ --- */

.services-menu-content {
    max-width: 500px;
}

.services-menu-content h2 {
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-bottom: 20px;
}

.service-menu-btn {
    background-color: #F0F0F0; 
    color: var(--text-color); 
    border: 1px solid #CCCCCC; 
    height: 80px; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 10px; 
    font-family: inherit; 
    border-radius: 30px; 
    font-weight: 600; 
    cursor: pointer;
    font-size: 0.9em; 
    transition: all 0.2s ease-in-out;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); 
    letter-spacing: .5px;
}

.service-menu-btn:hover {
    background-color: #DDDDDD; 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-menu-btn:active {
    transform: translateY(0);
}

.services-footer-note {
    font-size: .85em;
    color: #888;
    margin-top: 15px;
}

/* --- GALERİ BAŞLIK VE BUTON HİZALAMA KODLARI (SON, KESİN VE HİZALANMIŞ) --- */

/* 1. ANA KAPSAYICI: Butonlar için referans noktası */
.gallery-header-container {
    /* Dikey ortalama artık top/transform ile yapılacak, flex: none */
    position: relative; 
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    /* Dikey boşluğu padding ile kontrol ediyoruz. */
    padding: 15px 20px; /* Butonların etrafındaki boşluk */
    margin-bottom: 15px; 
    flex-shrink: 0;
}

/* 2. BAŞLIK: Merkezi koru */
.gallery-modal-content h2 {
    color: var(--accent-color);
    margin: 0; /* Marjinleri sıfırla */
    /* Geri butonu kaldırıldığı için yatay boşluk azaltıldı. Sadece çarpı butonu kadar boşluk bırakıldı. */
    padding: 0 30px; 
    text-align: center;
    font-size: 1.4em;
    border-bottom: none; 
}

/* 3. BUTONLAR: Absolute Position ile KESİN KONUMLANDIRMA ve DİKEY ORTALAMA */

/* Geri Butonu (SOL) - TAMAMEN KALDIRILDI */
/* .back-btn { ... } */

/* Çarpı Butonu (SAĞ) */
.gallery-close-btn {
    position: absolute;
    right: 20px; /* SAĞA KONUMLANDIRILDI */
    top: 50%; /* Kapsayıcının dikey merkezine al */
    transform: translateY(-50%); /* Kendi yüksekliğinin yarısı kadar yukarı kaydırarak tam ortala */
    font-size: 32px; 
    line-height: 1;
    z-index: 10;
    color: #666; 
    cursor: pointer; 
}


/* MOBİL HİZALAMA */
@media (max-width: 520px) {
    .gallery-header-container {
        padding: 10px 10px; 
        margin-bottom: 10px; 
    }
    
    /* Geri Butonu Mobil - TAMAMEN KALDIRILDI */
    /* .back-btn { ... } */
    
    /* Çarpı Butonu Mobil */
    .gallery-close-btn {
        right: 15px;
        font-size: 28px;
    }

    .gallery-modal-content h2 {
        /* Geri butonu kaldırıldığı için mobil yatay boşluk da azaltıldı. */
        padding: 0 30px;
        font-size: 1.2em; 
    }
}