/* Genel Ayarlar ve Değişkenler */
:root {
    --primary-color: #4A90E2; /* Yumuşak ve Dost Canlısı Mavi */
    --secondary-color: #F5A623; /* Canlı Turuncu/Sarı */
    --dark-text: #333333;
    --light-bg: #F9F9F9;
    --white-color: #ffffff;
    --sidebar-bg: #1f1b20;
    --sidebar-width: 240px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Dikey Navigasyon Menüsü */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar-nav .logo {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.sidebar-nav .logo img {
    max-width: 80%;
    height: auto;
}

.sidebar-nav ul {
    list-style: none;
    flex-grow: 1;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav ul li a i {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 25px;
    text-align: center;
}

.sidebar-nav ul li a:hover {
    background-color: var(--primary-color);
}

.sidebar-footer {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Ana İçerik */
.main-content {
    margin-left: var(--sidebar-width);
}

/* Hero Bölümü */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://cdn.rokhost.com.tr/images/hensaarkplan.jpg') no-repeat center center/cover;
   /* background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('') no-repeat center center/cover;*/
    display: flex;
    align-items: center;
    color: var(--white-color);
}

.hero-text {
    padding: 0 5%;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero-text h1 span {
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 500px;
    margin: 1.5rem 0 2.5rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/* Genel İçerik Bölümleri */
.content-section, .gallery-section, .contact-section {
    padding: 6rem 0;
}
.contact-section { background-color: var(--light-bg); }

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Hizmetler Bölümü (Asimetrik) */
.service-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-item .service-image,
.service-item .service-text {
    flex: 1;
}

.service-item .service-image {
    position: relative; /* Animasyonlu çocukların resmi konumlandırmak için */
}

.service-item .service-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-item .service-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- ÇOCUK ANİMASYONU STİLLERİ BAŞLANGIÇ --- */
.child-animation {
    position: absolute;
    bottom: -50px; /* Resmin biraz altına konumlandır */
    left: 50%;
    transform: translateX(-50%); /* Ortala */
    width: 200px; /* Animasyon GIF'inin genişliği */
    height: auto;
    z-index: 5; /* Diğer içeriklerin üzerine gelmesi için */
    pointer-events: none; /* Üzerine gelindiğinde fare olaylarını engeller */
}

.child-animation img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: none;
    border-radius: 0;
}
/* --- ÇOCUK ANİMASYONU STİLLERİ BİTİŞ --- */


/* Galeri Bölümü */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* İletişim Bölümü */
.contact-details {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-details a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-details a:hover {
    color: var(--primary-color);
}

/* Mobil Menü Butonu */
.mobile-menu-button {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: var(--sidebar-bg);
    color: var(--white-color);
    border: none;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Mobil ve Tablet Uyumluluğu (Responsive) */
@media (max-width: 992px) {
    .sidebar-nav {
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

    .sidebar-nav.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .service-item, .service-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem; /* Mobil görünümde boşluk azaltıldı */
        margin-bottom: 7rem; /* Animasyon için altta boşluk bırak */
    }

    .service-item .service-image {
        order: -1; /* Görseli metnin üzerine taşır */
    }

    .child-animation {
        width: 150px; /* Mobil görünümde animasyon boyutu küçültüldü */
        bottom: -30px; /* Mobil görünümde konum ayarı */
    }
}

@media (max-width: 576px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text p { font-size: 1rem; }
    .btn-primary { padding: 12px 28px; }
    .section-title h2 { font-size: 2rem; }
    .container { padding: 0 1.5rem; } /* Daha küçük ekranlarda kenar boşlukları */
}
