/* ===== TEMEL AYARLAR VE DEĞİŞKENLER ===== */
:root {
    --primary-color: #20c997; /* Canlı Turkuaz */
    --primary-hover-color: #1baa80;
    --secondary-color: #4e555e; /* Koyu Gri */
    --whatsapp-color: #25D366;
    --light-gray: #f8f9fa;
    --text-color: #767f88;
      --font-family-heading: 'Playfair Display', serif;
    --font-family-body: 'Lato', sans-serif;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

/* ===== SIFIRLAMA VE GENEL STİLLER ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.7;
}
body.menu-open {
    overflow: hidden; /* Menü açıkken sayfanın kaymasını engelle */
}
.container { width: 90%; max-width: 1140px; margin: 0 auto; }
h1, h2, h3, h4, .logo { font-family: var(--font-family-heading); color: var(--secondary-color); font-weight: 700; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-hover-color); }
.section-title { font-size: 42px; text-align: center; margin-bottom: 60px; }

/* ===== HEADER ===== */
.site-header {
    background: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(90deg, #25D366, #00ff0d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.main-nav ul { list-style: none; display: flex; }
.main-nav li { margin-left: 40px; }
.main-nav a { color: var(--secondary-color); font-weight: 700; font-family: var(--font-family-body); }
.header-phone-button {
    background-color: var(--primary-color); color: #fff; padding: 10px 25px;
    border-radius: 50px; font-weight: 700; transition: all 0.3s; font-family: var(--font-family-body);
}
.header-phone-button:hover { background-color: var(--primary-hover-color); color: #fff; transform: scale(1.05); }
.hamburger-menu { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--secondary-color); z-index: 1200; position: relative; }

/* ===== HERO, HİZMETLER, NEDEN BİZ, YORUMLAR ===== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/1.png') no-repeat center center/cover;  /* Hero Görseli */
    padding: 120px 0; text-align: center; color: #fff;
}
.hero-content h1 { font-size: 64px; margin-bottom: 20px; line-height: 1.2; color: #fff; }
.hero-content p { font-size: 18px; max-width: 650px; margin: 0 auto 40px; opacity: 0.95; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.hero-btn { padding: 15px 35px; text-decoration: none; font-weight: 700; font-family: var(--font-family-body); border-radius: 50px; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px; border: 2px solid transparent; font-size: 16px; text-transform: uppercase; }
.hero-btn.primary { background-color: var(--primary-color); color: #fff; }
.hero-btn.primary:hover { background-color: var(--primary-hover-color); transform: translateY(-3px); }
.hero-btn.secondary { background-color: var(--whatsapp-color); color: #fff; }
.hero-btn.secondary:hover { background-color: #1EAD54; transform: translateY(-3px); }
.hero-btn i { font-size: 1.2em; }
.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(32, 201, 151, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(32, 201, 151, 0); } }
.services-section, .why-us-section, .testimonials-section { padding: 80px 0; }
.services-section, .testimonials-section { background-color: var(--light-gray); }
.service-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--primary-color);
    height: 100%; /* Yüksekliği %100 yaparak eşitledik */
    display: flex; /* İçeriği ortalamak için eklendi */
    flex-direction: column; /* İçeriği dikey hizalamak için eklendi */
    justify-content: center; /* İçeriği dikeyde ortalamak için eklendi */
    align-items: center; /* İçeriği yatayda ortalamak için eklendi */
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.service-card i { font-size: 48px; color: var(--primary-color); margin-bottom: 20px; }
.service-card h3 { font-size: 22px; }
.services-swiper .swiper-pagination-bullet-active { background: var(--primary-color); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.feature-item { display: flex; align-items: flex-start; gap: 20px; }
.feature-item i { font-size: 24px; color: var(--primary-color); width: 60px; height: 60px; background: var(--light-gray); display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; }
.feature-item h3 { font-size: 22px; margin-bottom: 5px; }
.testimonial-card { background: #fff; padding: 40px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; }
.testimonial-card p { font-size: 18px; font-style: italic; margin-bottom: 20px; }
.testimonial-card .author { font-weight: 700; color: var(--primary-color); }
.swiper-button-next, .swiper-button-prev { color: var(--primary-color) !important; }

/* ===== FOOTER & İÇ SAYFA STİLLERİ ===== */
.site-footer { background: var(--secondary-color); color: #fff; text-align: center; padding: 60px 20px; }
.site-footer h2 { font-size: 40px; margin-bottom: 15px; color: #fff; }
.site-footer p { opacity: 0.8; margin-bottom: 30px; }
.footer-phone { font-size: 42px; font-weight: 700; text-decoration: none; color: #fff; padding: 15px 40px; border: 2px solid var(--primary-color); border-radius: 50px; display: inline-block; transition: all 0.3s; }
.footer-phone:hover { background: var(--primary-color); color: #fff; }
.footer-bottom { margin-top: 50px; opacity: 0.6; font-size: 14px; }
.mobile-bottom-nav { display: none; }
.page-header { background: var(--light-gray); padding: 50px 0; text-align: center; }
.page-header h1 { font-size: 48px; }
.about-us-section, .contact-page-section { padding: 80px 0; }
.about-us-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about-us-image img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.about-us-text h3 { font-size: 32px; margin-bottom: 20px; }
.about-us-text p { margin-bottom: 15px; }
.about-us-text ul { list-style: none; padding: 0; margin-top: 20px; }
.about-us-text li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 700; }
.about-us-text li i { color: var(--primary-color); }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.contact-card { background: var(--light-gray); padding: 40px; text-align: center; border-radius: var(--border-radius); }
.contact-card i { font-size: 40px; color: var(--primary-color); margin-bottom: 20px; }
.contact-card h3 { font-size: 28px; margin-bottom: 15px; }
.contact-card a { font-weight: 700; font-size: 18px; }
.map-container { text-align: center; }
.map-container h3 { font-size: 32px; margin-bottom: 20px; }
.map-container iframe { border-radius: var(--border-radius); }
.call-now-bar { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #1db817; /* mavi şerit */ color: #ffffff; /* beyaz yazı */ text-align: center; padding: 15px 0; font-size: 18px; font-weight: bold; text-decoration: none; z-index: 9999; transition: background-color 0.3s ease; } .call-now-bar:hover { background-color: #081040; /* hover efekti */ }
/* ===== RESPONSIVE TASARIM (YENİ YÖNTEM)===== */
@media (max-width: 992px) {
    /* Masaüstü menüsünü ve telefon butonunu gizle */
    .header-phone-button { display: none; }

    .hamburger-menu { display: block; }

    /* Kayan menünün kendisi */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100%;
        background-color: #fff;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1100;
        padding-top: 80px;
    }
    .main-nav ul {
        display: flex;
        flex-direction: column;
    }
    .main-nav li { margin: 0; text-align: left; }
    .main-nav a { display: block; padding: 15px 30px; font-size: 18px; }
    
    /* body.menu-open olduğunda menüyü göster */
    body.menu-open .main-nav {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    body { padding-bottom: 65px; }
    .section-title, .page-header h1 { font-size: 32px; }
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 16px; }
    .footer-phone { font-size: 28px; }
    .site-footer h2 { font-size: 30px; }
    .services-swiper { padding-bottom: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .about-us-content { grid-template-columns: 1fr; }
    .mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000; height: 65px; display: flex; justify-content: space-around; align-items: center; }
    .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-color); font-size: 11px; flex: 1; padding: 5px 0; }
    .nav-item i { font-size: 20px; margin-bottom: 4px; }
    .nav-item.active { color: var(--primary-color); }
}


/* Yazı Parlama Efekti */
.main-nav a {
    position: relative;
    overflow: hidden;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, var(--primary-color), var(--primary-color) 50%, var(--secondary-color) 50%);
    background-size: 200% 100%;
    background-position: -100%;
    transition: background-position 0.5s ease;
}

.main-nav a:hover {
    background-position: 0%;
}
/* ===== HİZMET DETAY SAYFASI STİLLERİ ===== */
.service-detail-section {
    padding: 80px 0;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Resim / Yazı oranı */
    gap: 60px;
    align-items: center;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.service-detail-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-detail-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-detail-text ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.service-detail-text li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-weight: 500;
}

.service-detail-text li i {
    color: var(--primary-color);
    font-size: 18px;
}

.service-detail-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hizmet Kartı Link Stili */
.service-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* Responsive ayarlar */
@media (max-width: 992px) {
    .service-detail-content {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 40px;
    }
    .service-detail-text h3 {
        font-size: 28px;
    }
}
/* ===== HİZMET KARTLARI YÜKSEKLİK EŞİTLEME DÜZELTMESİ ===== */

.services-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

.service-card-link {
  display: block;
  width: 100%;
  flex-grow: 1; /* Bu satır eklendi */
  text-decoration: none;
}

.service-card {
  width: 100%;
  height: 100%; /* Bu zaten vardı, doğruluğu için burada */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* ===== DROPDOWN MENÜ STİLLERİ ===== */

/* Dropdown'ın ana kapsayıcısı (li.dropdown) */
.main-nav li.dropdown {
    position: relative; /* İçindeki menüyü buna göre konumlandıracağız */
}

/* Aşağı ok ikonu için küçük ayar */
.main-nav li.dropdown a i {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Açılır menünün kendisi (ul.dropdown-menu) */
.dropdown-menu {
    display: none; /* Normalde gizli */
    position: absolute; /* Akıştan koparıp üste çıkarır */
    top: 100%; /* Ana menü linkinin hemen altında başlar */
    left: 0;
    background-color: #fff;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 240px; /* Genişliği ayarla */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    opacity: 0; /* Geçiş efekti için */
    visibility: hidden; /* Geçiş efekti için */
    transform: translateY(10px); /* Aşağıdan gelme efekti */
    transition: all 0.3s ease;
}

/* İçindeki linkler */
.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap; /* Linklerin tek satırda kalmasını sağlar */
    color: var(--secondary-color);
}

.dropdown-menu li a:hover {
    background-color: var(--light-gray);
}

/* MASAÜSTÜ: Fare ile üzerine gelince menüyü göster */
.main-nav li.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ===== MOBİL İÇİN DROPDOWN AYARLARI (ANİMASYONLU HALİ) ===== */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static; 
        box-shadow: none;
        border-radius: 0;
        background-color: #f7f7f7;
        padding-left: 15px;
        min-width: 100%;
        transform: none;

        /* YENİ: Akıcı animasyon için max-height kullanıyoruz */
        max-height: 0;
        overflow: hidden; /* İçerik taşmasın */
        padding-top: 0;
        padding-bottom: 0;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    }

    /* JavaScript ile .open class'ı eklendiğinde menüyü göster */
    .main-nav li.dropdown.open .dropdown-menu {
        /* YENİ: Açıldığındaki max-height değeri (içeriğin sığacağı kadar büyük olmalı) */
        max-height: 500px; 
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    /* Menü açıkken oku döndür (Bu aynı kalıyor) */
    .main-nav li.dropdown.open a > i {
        transform: rotate(180deg);
    }
}
.whatsapp-float {
    position: fixed;
    bottom: 70px; 
    right: 20px;
    background: #25d366;
    color: #fff;
    font-size: 28px;
    width: 55px;
    height: 55px;
    line-height: 55px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
}
.whatsapp-float:hover {
    background: #20ba5a;
}
.footer-banner {
    width: 100%;
    max-width: 1200px; /* çok geniş ekranda ortalanması için */
    margin: 20px auto 0 auto;
    text-align: center;
}

.footer-banner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 768px) {
    .footer-banner img {
        width: 105%;
        height: auto;
        max-height: 300px; /* taşmayı önler */
        object-fit: contain;
        transform: scale(1.08); /* %5 büyütme */
        transition: transform 0.3s ease;
    }
}

@media (max-width: 480px) {
    .footer-banner img {
        width: 100%;
        max-height: 200px;
        transform: scale(1.1); /* %10 büyütme */
    }
}
