/* ==========================================================================
   1. Değişkenler ve Temel Ayarlar
   ========================================================================== */
:root {
    --primary: #d13d2f;
    --dark: #1a1a1a;
    --footer-bg: #111111;
    --white: #ffffff;
    --light-grey: #f4f4f4;
    --grey: #666;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Open Sans', sans-serif; 
    line-height: 1.6; 
    color: var(--dark); 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

h1, h2, h3 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section { padding: 80px 0; }
.grey-bg { background-color: var(--light-grey); }

/* ==========================================================================
   2. Header ve Navigasyon
   ========================================================================== */
header { 
    background: var(--white); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    padding: 15px 0; 
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo img { 
    height: 50px; 
    display: block; 
}

.desktop-nav ul { 
    display: flex; 
    gap: 25px; 
    align-items: center; 
}

.desktop-nav a { 
    text-decoration: none; 
    font-weight: 600; 
    transition: var(--transition); 
    color: var(--dark); 
}

.desktop-nav a:hover { 
    color: var(--primary); 
}

.cta-nav { 
    background: var(--primary); 
    color: white !important; 
    padding: 10px 20px; 
    border-radius: 5px; 
}

/* Mobil Menü Düzeltmesi */
.mobile-menu {
    display: none; 
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.hamburger { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 5px; 
}

.hamburger span { 
    display: block; 
    width: 25px; 
    height: 3px; 
    background: var(--dark); 
}

/* ==========================================================================
   3. Gelişmiş Hero Slider (Zengin Metinler ve Animasyonlar)
   ========================================================================== */
#hero { 
    position: relative; 
    height: 700px; 
    color: white; 
    background: #000; 
    overflow: hidden; 
}

.slider-container { 
    position: relative; 
    width: 100%; 
    height: 100%; 
}

.slide { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    display: none; 
    opacity: 0; 
    transition: opacity 1.2s ease; 
}

.slide.active { 
    display: block; 
    opacity: 1; 
}

/* Zoom Efekti */
.slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.4; 
    transform: scale(1.1); 
    transition: transform 6s linear; 
}

.slide.active img { 
    transform: scale(1); 
}

.hero-overlay { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center; 
    width: 90%; 
    max-width: 950px; 
    z-index: 5; 
}

.hero-tag { 
    background: var(--primary); 
    padding: 5px 15px; 
    font-size: 0.8rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2.5px; 
    border-radius: 3px; 
    display: inline-block; 
    margin-bottom: 25px; 
    animation: fadeInUp 0.8s; 
}

.hero-overlay h1 { 
    font-size: 4rem; 
    margin-bottom: 25px; 
    line-height: 1.1; 
    letter-spacing: -1px; 
    animation: fadeInUp 1s; 
}

.hero-overlay p { 
    font-size: 1.3rem; 
    margin-bottom: 40px; 
    opacity: 0.95; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    font-weight: 300; 
    animation: fadeInUp 1.2s; 
}

.hero-btns { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    animation: fadeInUp 1.4s; 
}

.btn-primary, .btn-outline { 
    padding: 16px 40px; 
    border-radius: 4px; 
    font-weight: 700; 
    text-decoration: none; 
    transition: var(--transition); 
    text-transform: uppercase; 
    font-size: 0.9rem; 
}

.btn-primary { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 10px 20px rgba(209, 61, 47, 0.3); 
}

.btn-primary:hover { 
    background: #000; 
    transform: translateY(-3px); 
}

.btn-outline { 
    border: 2px solid white; 
    color: white; 
}

.btn-outline:hover { 
    background: white; 
    color: var(--dark); 
    transform: translateY(-3px); 
}

.slider-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(255,255,255,0.05); 
    color: white; 
    border: none; 
    padding: 25px 15px; 
    cursor: pointer; 
    z-index: 10; 
    font-size: 25px; 
    transition: var(--transition); 
}

.slider-nav:hover { background: var(--primary); }
.next { right: 0; } .prev { left: 0; }

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ==========================================================================
   4. Hizmetler Bölümü
   ========================================================================== */
.section-header { text-align: center; margin-bottom: 50px; }
.underline { width: 60px; height: 4px; background: var(--primary); margin: 15px auto; }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
}

.service-card { 
    background: var(--white); 
    padding: 40px 30px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    text-align: center; 
    transition: var(--transition); 
    border: 1px solid #eee; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover { 
    transform: translateY(-15px); 
    border-color: var(--primary); 
    box-shadow: 0 20px 40px rgba(209, 61, 47, 0.1);
}

.icon-box { 
    font-size: 3rem; 
    color: var(--primary); 
    margin-bottom: 20px; 
}

.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* ==========================================================================
   5. Gelişmiş Şube Bölümü
   ========================================================================== */
.branch-card { 
    display: flex; 
    background: var(--white); 
    border-radius: 25px; 
    overflow: hidden; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    align-items: stretch;
    margin-top: 40px;
}

.branch-text { 
    flex: 1; 
    padding: 60px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.branch-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    width: fit-content;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.underline-left {
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin: 10px 0 30px 0;
}

.branch-info-list { display: flex; flex-direction: column; gap: 20px; }

.info-item { display: flex; align-items: flex-start; gap: 15px; }
.info-item i { 
    color: var(--primary); 
    font-size: 1.2rem; 
    background: rgba(209, 61, 47, 0.08);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.branch-btns { display: flex; gap: 15px; margin-top: 35px; }

.btn-tel, .btn-wp { 
    flex: 1; 
    text-align: center; 
    padding: 14px; 
    border-radius: 8px; 
    color: white; 
    font-weight: bold; 
    transition: var(--transition);
}

.btn-tel { background: var(--dark); }
.btn-wp { background: #25d366; }

.branch-map { 
    flex: 1.3; 
    min-height: 450px; 
}

.branch-map iframe { width: 100%; height: 100%; border: none; }

/* ==========================================================================
   6. Gelişmiş Footer ve Tasarımcı İmzası (Çakışma Önleyici)
   ========================================================================== */
.advanced-footer { 
    background-color: var(--footer-bg); 
    color: var(--white); 
    padding: 60px 0 0; 
    margin-top: 50px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 40px; 
    padding-bottom: 40px; 
}

.footer-logo { 
    height: 60px; 
    filter: brightness(2) invert(0); 
    margin-bottom: 20px; 
}

.footer-bottom { 
    background: #000; 
    padding: 25px 0; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}

.bottom-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.designer-credit { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.85rem; 
    color: #888; 
}

.designer-name { 
    color: var(--white); 
    font-weight: 700; 
    text-decoration: none; 
    letter-spacing: 1px; 
    padding: 6px 14px; 
    border: 1px solid var(--primary); 
    border-radius: 4px; 
    transition: var(--transition); 
}

.designer-name:hover { 
    background: var(--primary); 
    box-shadow: 0 0 15px rgba(209, 61, 47, 0.4); 
}

/* ==========================================================================
   7. Sabit Randevu Butonu ve Mobil Uyumluluk
   ========================================================================== */
#sticky-appointment { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 2000; 
}

.floating-btn { 
    background: var(--primary); 
    color: white; 
    padding: 15px 25px; 
    border-radius: 50px; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
    text-decoration: none; 
    transition: var(--transition); 
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    
    #hero { height: 500px; }
    .hero-overlay h1 { font-size: 2.2rem; }
    .hero-overlay p { font-size: 1.1rem; }
    .hero-btns { flex-direction: column; gap: 10px; }
    
    .branch-card { flex-direction: column; }
    .branch-map { height: 350px; width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    /* Footer Çakışma Önleyici */
    .footer-bottom { padding-bottom: 100px; }
    .bottom-flex { flex-direction: column; gap: 20px; }
    
    #sticky-appointment { right: 10px; left: 10px; bottom: 15px; }
    .floating-btn { justify-content: center; }
}