/* ====================================
   Mevsim Özdel - Diyetisyen Web Sitesi
   Ultimate Responsive Stylesheet
   ==================================== */

/* --- 1. Temel Ayarlar (Taşma Engelleyici) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
    overflow-x: hidden; /* Sağdaki beyaz boşluğu engeller */
    width: 100%;
    position: relative;
}

:root {
    --primary: #d8a8b8;
    --secondary: #7ba98a;
    --dark: #2d2d2d;
    --light: #faf8f5;
    --text: #3d3d3d;
    --muted: #888888;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--light) 0%, #f3eee7 100%);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

/* --- 2. Navigasyon --- */
nav { position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); background: rgba(250, 248, 245, 0.95); border-bottom: 1px solid rgba(216, 168, 184, 0.1); padding: 1rem 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo-photo { height: 48px; width: auto; border-radius: 6px; object-fit: contain; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; position: relative; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text); background: none; border: none; }

/* --- 3. Butonlar --- */
.btn { padding: 1rem 2rem; border-radius: 50px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #c98ba8); color: white; box-shadow: 0 10px 25px rgba(216, 168, 184, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(216, 168, 184, 0.4); }
.btn-secondary { border: 2.5px solid var(--secondary); color: var(--secondary); background: white; transition: all 0.3s ease; }
.btn-secondary:hover { background: var(--secondary); color: white; transform: translateY(-2px); }

/* --- 4. Hero Section --- */
.hero { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; min-height: 80vh; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; color: var(--dark); }
.cta-group { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.modern-hero-card { background: white; padding: 3rem 2rem; border-radius: 24px; box-shadow: 0 20px 50px rgba(216, 168, 184, 0.15); border: 1px solid rgba(216, 168, 184, 0.2); text-align: center; position: relative; animation: float 4s ease-in-out infinite; }
.hero-icon-wrapper { width: 80px; height: 80px; background: linear-gradient(135deg, rgba(216, 168, 184, 0.15), rgba(123, 169, 138, 0.15)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--secondary); font-size: 2.2rem; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

/* --- 5. Hizmetler Section --- */
.services { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem; }
.section-title { text-align: center; font-size: 2.8rem; font-weight: 800; margin-bottom: 1rem; color: var(--text); }
.section-subtitle { text-align: center; color: var(--muted); font-size: 1.1rem; margin-bottom: 4rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { background: white; padding: 2.5rem; border-radius: 16px; border: 1px solid rgba(216, 168, 184, 0.1); transition: all 0.4s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(216, 168, 184, 0.2); border-color: var(--primary); }
.service-icon-modern { width: 70px; height: 70px; background: rgba(216, 168, 184, 0.1); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--primary); font-size: 2rem; transition: all 0.3s ease; }

/* --- 6. Anasayfa Hakkımda --- */
.about { padding: 6rem 0; }
.about-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.about-container h2 { text-align: left; font-size: 2.8rem; font-weight: 800; margin-bottom: 2rem; color: var(--text); }
.custom-about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-left-side { display: flex; flex-direction: column; justify-content: center; }
.about-left-side p { margin-bottom: 1.5rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.about-right-side { display: flex; justify-content: flex-end; position: sticky; top: 120px; }
.photo-frame-wrapper { position: relative; width: 100%; max-width: 480px; }
.photo-bg-decorator { position: absolute; top: 25px; left: 25px; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(216, 168, 184, 0.2) 0%, rgba(123, 169, 138, 0.1) 100%); border-radius: 30px; z-index: 0; }
.enhanced-photo { position: relative; z-index: 1; width: 100%; height: auto; border-radius: 30px; box-shadow: 0 15px 50px rgba(0,0,0,0.1); border: 8px solid white; display: block; }

/* Yorumlar Alanı */
.reviews-container { margin-top: 2.5rem; margin-bottom: 2rem; background: linear-gradient(135deg, rgba(216, 168, 184, 0.05), rgba(123, 169, 138, 0.05)); border-radius: 20px; border: 1px solid rgba(216, 168, 184, 0.15); padding: 1.5rem; }
.reviews-header { margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.reviews-header h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 0; }
.reviews-header i { color: #f39c12; }
.reviews-scroll-wrapper { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--primary) rgba(0,0,0,0.05); width: 100%; -webkit-overflow-scrolling: touch; }
.reviews-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.reviews-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.review-card { flex: 0 0 280px; scroll-snap-align: start; background: white; padding: 1.5rem; border-radius: 16px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.review-text { font-size: 0.9rem; color: var(--muted); font-style: italic; margin-bottom: 0.8rem; line-height: 1.5; }

/* --- 7. Detaylı Hakkımda Sayfası --- */
.timeline-container { max-width: 900px; margin: 6rem auto; padding: 0 2rem; }
.timeline-item { position: relative; padding-left: 3rem; margin-bottom: 3rem; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: -3rem; width: 2px; background: rgba(216, 168, 184, 0.3); }
.timeline-item:last-child::before { bottom: 0; }
.timeline-dot { position: absolute; left: -11px; top: 0; width: 24px; height: 24px; background: var(--primary); border: 4px solid white; border-radius: 50%; box-shadow: 0 0 0 3px rgba(216, 168, 184, 0.2); }
.timeline-date { font-size: 0.9rem; color: var(--secondary); font-weight: 700; margin-bottom: 0.5rem; display: inline-block; background: rgba(123, 169, 138, 0.1); padding: 0.3rem 1rem; border-radius: 50px; }
.cert-section { background: linear-gradient(180deg, white 0%, var(--light) 100%); padding: 6rem 2rem; }
.cert-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.cert-card { background: white; padding: 2.5rem 2rem; border-radius: 20px; border: 1px solid rgba(216, 168, 184, 0.15); text-align: center; transition: all 0.3s; }
.cert-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(216, 168, 184, 0.15); border-color: var(--primary); }

/* --- 8. İletişim Form ve Harita --- */
.contact { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem; }
@media (min-width: 969px) {
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: stretch; }
    .map-section { padding: 0; background: transparent; border-radius: 24px; overflow: hidden; margin: 0; height: 100%; }
    .map-wrapper { width: 100%; height: 100%; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid rgba(216, 168, 184, 0.1); }
    .map-wrapper iframe { width: 100%; height: 100%; border: none; }
}
.contact-form { background: white; padding: 2.5rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); border: 1px solid rgba(216, 168, 184, 0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1.5px solid rgba(216, 168, 184, 0.2); border-radius: 8px; font-family: inherit; font-size: 1rem; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(216, 168, 184, 0.1); }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { background: white; padding: 2rem; border-radius: 12px; border: 1px solid rgba(216, 168, 184, 0.1); display: flex; gap: 1.5rem; align-items: flex-start; text-decoration: none; color: inherit; transition: 0.3s; }
.contact-item:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(216, 168, 184, 0.2); border-color: var(--primary); }
.contact-item-icon { width: 50px; height: 50px; background: linear-gradient(135deg, rgba(216, 168, 184, 0.2), rgba(123, 169, 138, 0.2)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; color: var(--primary); }

/* --- 9. Ortak CTA --- */
.randevu-cta { max-width: 1200px; margin: 4rem auto 0; padding: 4rem 2rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 20px; text-align: center; color: white; }
.btn-cta { background: white; color: var(--primary); font-weight: 700; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; display: inline-block; transition: 0.3s; margin-top: 1rem; }
.btn-cta:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }

/* --- 10. Footer --- */
footer { background: linear-gradient(135deg, var(--dark), #1a1a1a); color: white; padding: 4rem 2rem 2rem; margin-top: 4rem; }
.footer-content { max-width: 1200px; margin: 0 auto 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col p, .footer-col a { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; text-decoration: none; display: block; margin-bottom: 0.75rem; transition: color 0.3s ease; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: all 0.3s ease; }

/* Footer Alt Kısım Simetrisi */
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }
.creator-tag { justify-self: start; font-style: italic; opacity: 0.8; font-weight: 500; }
.copyright-tag { justify-self: center; grid-column: 2; text-align: center; }

/* Floating Buttons */
.whatsapp-float, .instagram-float { position: fixed; right: 30px; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; z-index: 999; transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.whatsapp-float { bottom: 30px; background: #25D366; }
.instagram-float { bottom: 105px; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* =========================================
   11. KESİN MOBİL UYUMLULUK
========================================= */
@media (max-width: 968px) {
    /* Menü */
    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: white; padding: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); gap: 1.5rem; text-align: center; z-index: 1001; }
    .nav-links.active { display: flex; }
    
    /* İç Boşlukları Küçült */
    .nav-container, .about-container { padding: 0 1.2rem; }
    .hero { padding: 3rem 1.2rem; text-align: center; grid-template-columns: 1fr; min-height: auto; }
    .services, .contact { padding: 3rem 1.2rem; }
    .randevu-cta { padding: 3rem 1.2rem; margin: 2rem 1.2rem 0; }
    
    /* Izgaraları Tek Sütuna Düşür */
    .services-grid, .footer-content, .cert-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .social-links { justify-content: center; }
    
    /* ========================================================
       HAKKIMDA (ANASAYFA) YENİ SIRALAMA & ORTALAMA
       ======================================================== */
    .custom-about-layout { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: center !important;
        gap: 0 !important; /* Marginler ile biz kontrol edeceğiz */
        width: 100%; 
    }
    
    /* İç elemanları flex sırasına dahil etmek için şeffaflaştırdık */
    .about-left-side { 
        display: contents !important; 
    }
    
    /* 1. Metinler */
    .about-left-side > p { 
        order: 1; 
        text-align: center !important; 
        width: 100%; 
        margin-bottom: 1.5rem !important; 
    }
    
    /* 2. Buton Div'i (Yorumlar konteynerı hariç) */
    .about-left-side > div:not(.reviews-container) { 
        order: 2; 
        text-align: center !important; 
        width: 100%; 
        margin-top: 0.5rem !important;
        margin-bottom: 2.5rem !important; 
    }
    
    /* 3. FOTOĞRAF (Yorumların üstüne kilitlendi) */
    .about-right-side { 
        order: 3 !important; 
        width: 100%; 
        display: flex !important; 
        justify-content: center !important; 
        margin-top: 0 !important; 
        margin-bottom: 2.5rem !important;
        position: static; 
    }
    .photo-frame-wrapper { 
        display: flex !important; 
        justify-content: center !important; 
        width: 100%; 
        max-width: 100%; 
        margin: 0 auto; 
    }
    .enhanced-photo { max-width: 320px; width: 100%; margin: 0 auto; }
    .photo-bg-decorator { display: none; }
    
    /* 4. YORUMLAR (En alta kilitlendi) */
    .reviews-container { 
        order: 4 !important; 
        width: 100%; 
        max-width: 100%; 
        margin-top: 0 !important; 
        margin-left: 0; 
        margin-right: 0; 
    }
    .reviews-scroll-wrapper { padding-bottom: 15px; }
    .review-card { flex: 0 0 85%; margin: 0 auto; } 

    /* ======================================================== */
    
    /* Detaylı Hakkımda Sayfası İçin Kart Ortalama */
    .about-main-card { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 2rem 1.5rem;
        margin-top: -3rem;
        width: 100%;
    }
    .about-main-card div, .about-main-card p, .about-main-card h2 { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }

    /* İletişim Form ve Harita */
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; display: flex; flex-direction: column; }
    .contact-form { padding: 1.5rem; }
    .map-section { min-height: 350px; margin-top: 1rem; padding: 0; border-radius: 16px; overflow: hidden; }
    .map-wrapper { height: 350px; }
    
    /* Footer İmza */
    .footer-bottom { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; }
    .creator-tag { position: static; text-align: center; order: 2; }
    .copyright-tag { order: 1; text-align: center; }
    
    /* Yüzen Butonlar */
    .whatsapp-float, .instagram-float { width: 50px; height: 50px; right: 15px; font-size: 1.5rem; }
    .instagram-float { bottom: 85px; }
    .whatsapp-float { bottom: 20px; }
}