/* Genel Stiller */
html {
    box-sizing: border-box;
    overflow-x: hidden; /* Yatay taşmayı engelle */
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    overflow-x: hidden; /* Body'de de yatay taşmayı engelle */
    padding-top: 80px;
    width: 100%;
    max-width: 100vw; /* Viewport genişliğini aşmasını engelle */
}

.container {
    /* Fallback container styles. Layout is now primarily handled by
       Tailwind's .container class with padding utilities like px-10. */
    max-width: 1280px;
    margin: 0 auto;
    width: 100%; /* Tam genişlik kullan */
    padding-left: 15px; /* Minimum padding */
    padding-right: 15px;
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative; /* Mobil menü için */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav#main-nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

.appointment-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.appointment-btn:hover {
    background-color: #0056b3;
}

/* Hamburger Menu Button */
#hamburger-btn {
    display: none; /* Varsayılan olarak gizli */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 1001; /* Mobil menünün üzerinde */
}
#hamburger-btn .close-icon {
    display: none;
}

/* Hero Section */
.hero {
    background-color: #e0f2f7;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    margin-right: 40px;
}

.hero-content h1 {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-content .appointment-btn {
    margin-right: 15px;
}

.hero-content .contact-btn {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.hero-content .contact-btn:hover {
    background-color: #5a6268;
}

.hero-content a.contact-btn {
    text-decoration: none;
    display: inline-block;
}

.hero-images {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Taşan içeriği gizle */
}

.hero-images img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-images img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    z-index: 1;
}

.hero-images img:last-child {
    position: relative;
    margin-left: 30%;
    margin-top: 20%;
    width: 70%;
    z-index: 2;
}

/* Services Section */
.services {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.services h2 {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 15px;
}

.services p {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

.service-grid a {
    text-decoration: none;
}

.service-item {
    background-color: #fff;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
    filter: grayscale(50%) contrast(105%) brightness(95%);
}

.service-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(100%) brightness(100%);
}

.service-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 15px 15px;
    margin: 0;
    color: #fff;
    font-weight: bold;
    text-align: center;
    font-size: 22px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    transition: all 0.3s ease;
}

/* About Us Section */
.about-us {
    padding: 80px 0;
    background-color: #e0f2f7;
}

.about-us .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 400px;
    margin-right: 40px;
}

.about-content h2 {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content ul li {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.about-content ul li i {
    color: #28a745;
    margin-right: 10px;
}

.about-card {
    flex: 1;
    min-width: 350px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.about-card .card-header {
    margin-bottom: 20px;
}

.about-card .card-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #007bff;
    /* Görseli ortalamak için eklendi */
    display: block;
    margin: 0 auto 15px;
}

.about-card .card-header h3 {
    font-size: 28px;
    color: #007bff;
    margin-bottom: 5px;
}

.about-card .card-header p {
    font-size: 18px;
    color: #666;
}

.about-card .card-body p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    text-align: left;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.testimonials h2 {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 15px;
}

.testimonials p {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: #f0f8ff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.testimonial-item h4 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.testimonial-item .stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: #222;
    color: #eee;
    padding: 60px 0 20px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer .footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

footer .footer-col .logo {
    color: #fff;
    margin-bottom: 20px;
}

footer .footer-col p {
    font-size: 15px;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 20px;
}

footer .social-icons a {
    color: #fff;
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #007bff;
}

footer h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: #007bff;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    text-decoration: none;
    color: #bbb;
    font-size: 15px;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #007bff;
}

footer ul li i {
    margin-right: 10px;
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 14px;
    color: #bbb;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    /* Container padding'i azalt */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    header .container {
        flex-direction: row; /* Logoyu ve hamburgeri yan yana tut */
        justify-content: space-between;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 40px;
        min-width: unset; /* Mobil taşma sorununu düzeltir */
    }
    
    .hero-content h1 {
        font-size: 32px; /* 48px'den küçült */
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 16px; /* 18px'den küçült */
        margin-bottom: 20px;
    }

    .hero-images {
        min-width: unset; /* Mobil taşma sorununu düzeltir */
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 10px; /* Kenar boşluğu ekle */
    }

    .hero-images img:first-child,
    .hero-images img:last-child {
        position: static;
        width: 90%; /* 80%'den 90%'a çıkar ama 100%'ü geçmesin */
        max-width: 300px; /* Maksimum genişlik sınırı */
        margin: 10px auto;
        display: block;
    }

    .about-us .container {
        flex-direction: column;
        width: 100%;
    }

    .about-content {
        margin-right: 0;
        margin-bottom: 40px;
        min-width: unset;
    }
    
    .about-card {
        min-width: unset;
        margin: 0 auto;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer .footer-col {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    footer .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .appointment-btn {
        width: 100%;
        margin-top: 10px;
        margin-right: 0;
        padding: 12px 15px;
        font-size: 14px;
    }

    .hero-content .contact-btn {
        margin-top: 10px;
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Service grid mobil düzeltmesi */
    .service-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 20px;
        padding: 0 5px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr; /* Mobil için tek sütunlu yapıya geçirildi */
    }

}

/* Active Navigation Link */
nav ul li a.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 2px;
}

/* Page Header */
.page-header {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb span {
    color: #333;
}

.page-header h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Detail */
.services-detail {
    padding: 80px 0;
    background-color: #fff;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-detail-item {
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    scroll-margin-top: 110px; /* Sabit header için kaydırma payı */
}

.service-detail-item:hover {
    transform: translateY(-10px);
}

.service-detail-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 15px;
}

.service-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-content h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-content ul li {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.service-content ul li i {
    color: #28a745;
    margin-right: 10px;
    font-size: 12px;
}

.service-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.duration {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.appointment-btn.large {
    font-size: 18px;
    padding: 15px 40px;
    margin-bottom: 20px;
}

.contact-info {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #25d366;
    background-color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info i {
    margin-right: 10px;
    font-size: 20px;
}

/* About Story */
.about-story {
    padding: 80px 0;
    background-color: #fff;
}

.story-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.story-content h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
}

.story-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background-color: #e3f2fd;
    padding: 40px;
    border-radius: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: #333;
}

/* Values Section */
.values {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.values h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.values > p {
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.value-icon i {
    font-size: 32px;
    color: #fff;
}

.value-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* CTA Blue Section */
.cta-blue {
    background-color: #007bff;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-blue h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-blue p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.appointment-btn.white {
    background-color: #fff;
    color: #007bff;
}

.appointment-btn.white:hover {
    background-color: #f8f9fa;
}

/* === YENİ SİTE HEADER STİLLERİ (GÜVENLİ EKLEME) === */

#site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem; /* Sağ ve sol boşluklar */
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 45px;
    margin-right: 12px;
}

.header-logo span {
    font-size: 22px;
    font-weight: bold;
    color: #007bff;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.header-appointment-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    transition: background-color 0.3s ease;
}

.header-appointment-btn:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Mobil Görünüm */
.hamburger-button, .close-button {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: opacity 0.2s ease-in-out; /* İkonun kaybolma efektini yumuşatır */
}

/* Menü açıkken hamburger ikonunu gizlemek için (JS ile body'e eklenen class) */
body.menu-is-open .hamburger-button {
    /* Hamburger ikonunu şeffaf yap ve tıklanmasını engelle */
    opacity: 0;
    pointer-events: none;
}

/* === MOBİL RESPONSIVE GÜNCELLEMELERİ === */
@media (max-width: 768px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr; /* 2 sütun yerine */
        gap: 15px;
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }

    .values-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .page-header h1 {
        font-size: 28px; /* 32px'den küçült */
        line-height: 1.2;
        padding: 0 10px;
    }

    .story-content h2,
    .values h2,
    .cta-blue h2 {
        font-size: 24px; /* 28px'den küçült */
        line-height: 1.2;
        padding: 0 10px;
    }

    .stat-number {
        font-size: 32px;
    }

    /* === YENİ HEADER MOBİL STİLLERİ === */
    .header-container {
        padding: 0 1.5rem; /* Mobil için padding ayarı */
    }

    .hamburger-button {
        display: block; /* Hamburger butonunu göster */
        z-index: 1002;
    }

    .close-button {
        display: block; /* Kapatma butonunu mobil menü içinde göster */
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 40px;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%; /* Başlangıçta ekranın dışında, bu değeri değiştirmeyin */
        width: 80%; /* Genişliği %80 yap */
        max-width: 400px; /* Çok geniş ekranlarda menünün aşırı büyümesini engelle */
        height: 100vh; /* Tam ekran yüksekliği */
        background-color: #ffffff;
        display: flex;
        flex-direction: column; /* Öğeleri dikey sırala */
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.15); /* Menüye derinlik kat */
    }

    .main-navigation.open {
        right: 0; /* JS ile .open class'ı eklenince menüyü göster */
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Linklerin tam genişliği kullanmasını sağla */
    }

    .nav-links li {
        margin: 15px 0; /* Dikey boşluğu artır */
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 20px; /* Yazı boyutunu büyüt */
    }

    .header-appointment-btn {
        margin-left: 0;
        margin-top: 30px;
    }
}
