:root {
    /* Renk ve gölge değişkenleri */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --emergency-color: #dc2626;
    --emergency-dark: #b91c1c;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Temel elemanlar için sıfırlama */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sayfa içinde yumuşak scroll */
html {
    scroll-behavior: smooth;
}

/* Yükleniyor animasyonu */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Sayfa genel yazı ve arka plan ayarları */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Whatsapp Butonu */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25D366;
    /* WhatsApp yeşili */
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
}

/* Phone Butonu */
.phone-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: none;
    /* masaüstünde gizli */
    align-items: center;
    z-index: 1000;
}

/* Buton stili */
.phone-button {
    width: 60px;
    height: 60px;
    background-color: var(--emergency-color);
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color .3s ease;
}

.phone-button:hover {
    background-color: var(--emergency-dark);
}

.phone-button img {
    width: 35px;
    height: 35px;
    filter: invert(1);
    /* ikonu beyaz yap */
}

/* Numara kutusu (animasyonla açılır) */
.phone-number {
    margin-left: 5px;
    padding: 5px 10px;
    background: var(--emergency-color);
    color: #fff;
    border-radius: 15px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.8s ease;
    pointer-events: none;
    font-size: 16px;
}

/* Sayfa yüklendiğinde .show eklenince görünür */
.phone-wrapper.show .phone-number {
    opacity: 1;
    transform: translateX(0);
}



/* İçerik genişliği ve yatay ortalama */

/* === Kapsayıcı düzeni stilleri === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* NAV */
/* === Navigasyon stilleri === */
/* Navigation - Menü alanı */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: fixed;
    /* Sayfanın üstünde sabit kalır */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

/* Navigation içeriğinin düzeni */

/* === Kapsayıcı düzeni stilleri === */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    /* Logo ve menü arası boşluk */
    align-items: center;
    min-height: 70px;
}

/* Logo yazısı stili */

/* === Navigasyon stilleri === */
.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Menü liste düzeni - yatay ve aralıklı */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Menü linkleri */
.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

/* Menü link hover rengi */
.nav-link:hover {
    color: var(--primary-color);
}

/* Navigation çağrı butonu stili */
.nav-cta {
    background: var(--emergency-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);

    display: flex;
    /* Flex ile içerik ortalanıyor */
    align-items: center;
    /* Dikey ortala */
    justify-content: center;
    /* Yatay ortala */
    gap: 0.5rem;
    /* İkon ve yazı arası boşluk */
}

.nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: unset;
}

/* Çağrı butonu hover efekti */
.nav-cta:hover {
    background: var(--emergency-dark);

    /* === Form stilleri === */
    transform: translateY(-1px);
}


/* Hamburger menü gizli (mobil için) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* Hamburger barları */
.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* HERO */
/* Hero arka plan ve boşluklar */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #e2e8f0 100%);
}



/* Genel buton stili */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Birincil buton renk ve arka plan */
.btn-primary {
    background: var(--primary-color);
    color: white;
}

/* Birincil buton hover efekti */
.btn-primary:hover {
    background: var(--primary-dark);

    /* === Form stilleri === */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* İkincil buton - şeffaf arka plan, renkli kenarlık */
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* İkincil buton hover - dolu arka plan ve beyaz yazı */
.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Acil durum butonu stili */
.btn-emergency {
    background: var(--emergency-color);
    color: white;
    display: none;
    /* Masaüstünde gizle */
}

/* Acil durum butonu hover efekti */
.btn-emergency:hover {
    background: var(--emergency-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* HİZMETLERİMİZ */
/* Bölüm başlıkları genel stili */

/* === Başlık (header) stilleri === */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Bölüm başlığı h2 stili */
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Bölüm açıklama paragrafı */
.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hizmetler bölümü padding ve arka plan */
.services {
    padding: 80px 0;
    background: var(--bg-primary);
}

/* Services bölümündeki başlık h2 stili (varsa tekrar eden) */
.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Services bölümünde açıklama paragrafı */
.section-header p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Swiper slider kapsayıcı */

/* === Kapsayıcı düzeni stilleri === */
.slide-container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}

/* Slider içeriği padding ayarı */
.slide-content {
    padding: 0 20px;
}

/* Kart tasarımı */

/* === Kart bileşeni stilleri === */
.service-card {
    width: 300px;
    /* Sabit genişlik */
    height: 380px;
    /* Sabit yükseklik */
    background: var(--bg-primary);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
    user-select: none;
    cursor: grab;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    /* Padding dahil genişlikyükseklik hesaplama */
}

/* Kart hover efekti */

/* === Kart bileşeni stilleri === */
.service-card:hover {
    box-shadow: var(--shadow-lg);

    /* === Form stilleri === */
    transform: translateY(-5px);
}

/* Kart içindeki ikon stili */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Kart başlık stili */

/* === Kart bileşeni stilleri === */
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Kart açıklama paragrafı */
.service-card p {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-secondary);
    flex-grow: 1;
    /* Kart yüksekliğini kaplamasını sağlar */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Kart içi link stili */
.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Link hover rengi */
.service-link:hover {
    color: var(--primary-dark);
}


/* === Navigasyon stilleri === */
/* Swiper navigasyon buton stili */
.swiper-navBtn {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Navigasyon buton hover rengi */
.swiper-navBtn:hover {
    color: var(--primary-dark);
}

/* Navigasyon ok boyutu */
.swiper-navBtn::before,
.swiper-navBtn::after {
    font-size: 30px;
}

/* Slider kapsayıcı genişliği ve ortalama */

/* === Kapsayıcı düzeni stilleri === */
.slide-container {
    width: 100%;
    /* Ekranı tamamen kapla */
    max-width: 1120px;
    /* Maksimum genişlik masaüstü için */
    margin: 0 auto;
    /* Ortala */
}

/* Slider içeriği padding ve margin ayarı */
.slide-content {
    padding: 0;
    margin: 0 auto;
    /* Ortala */
    box-sizing: border-box;
}

/* Swiper oklarının kartlardan uzaklaştırılması */

/* === Buton stilleri === */
.swiper-button-next {
    right: -5px;
}

.swiper-button-prev {
    left: -5px;
}

/* HAKKIMIZDA */
/* About Section - Hakkında bölümü padding ve arka plan */
.about {
    padding: 80px 0;
    background: var(--bg-secondary);
}


/* === Izgara düzeni stilleri === */
/* About içerik grid yapısı */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* About bölüm başlığı */
.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* About açıklama paragrafı */
.about-text>p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* About özellikler listesi grid */
.about-features {
    display: grid;
    gap: 1.5rem;
}

/* Özellik başlığı */
.feature h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Özellik açıklaması */
.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About bölümündeki resim stili */
.about-image img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    /* Yatayda ortalamak için */
}

/* SIKÇA SORULAN SORULAR */
/* FAQ Bölümü */
.faq-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

/* FAQ içerik genişliği ve ortalama */

/* === Kapsayıcı düzeni stilleri === */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Her bir soru-cevap kartı */
.faq-item {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Soru kısmı flex ile düzenli ve tıklanabilir */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

/* Soru hover rengi */
.faq-question:hover {
    background: var(--bg-gray);
}

/* Soru başlığı */
.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Açılır ikon stili */
.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Açık durumda ikonun dönüşü */
.faq-item.active .faq-toggle {

    /* === Form stilleri === */
    transform: rotate(45deg);
}

/* Cevap alanı gizli - açılır kapanır */
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Cevap açıkken padding ve max-height */
.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

/* Cevap paragraf stili */
.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* İLETİŞİM */
/* İletişim bölümü */
.contact-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

/* İletişim içerik düzeni */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* İletişim formu kapsayıcısı */
.contact-form {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* İletişim bilgileri satırı flex düzeni */
.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

/* İletişim bilgisi öğesi, eşit genişlik */
.contact-item {
    flex: 1;
}

/* İletişim başlık stili */
.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* İletişim metin stili */
.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Mesaj textarea'nın yatay yeniden boyutlandırma özelliği */
#message {
    resize: vertical;
}

/* Form alanları düzeni için bölüm */
/* İki kolonlu form satırı */
.form-row {

    /* === Izgara düzeni stilleri === */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


/* === Form stilleri === */
/* Form grubunun kolon içindeki düzeni */
.form-group {
    display: flex;
    flex-direction: column;
}

/* Form etiket stili */
.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Form input, select, textarea genel stili */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

/* Form elemanı odaklandığında */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Hata mesajı stili */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}


/* FOOTER */
/* Footer - Alt bilgi alanı */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

/* Footer içeriği grid yapısı */
.footer-content {

    /* === Izgara düzeni stilleri === */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}


/* Footer başlıkları */
.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

/* Footer liste stili */
.footer-section ul {
    list-style: none;
}

/* Footer liste elemanları */
.footer-section ul li {
    margin-bottom: 0.5rem;
}

/* Footer link stili */
.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

/* Footer link hover rengi */
.footer-section ul li a:hover {
    color: white;
}

/* Footer alt kısmı */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Footer alt linkler */
.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

/* Footer alt link hover rengi */
.footer-bottom a:hover {
    color: white;
}

/* MEDIA */

/* === Medya sorguları === */
@media(max-width: 768px) {

    /* GENEL */
    /* Section başlık font küçültme */

    /* === Başlık (header) stilleri === */
    .section-header h2 {
        font-size: 2rem;
    }

    .phone-button {
        display: flex;
    }

    .phone-wrapper {
        display: flex;
    }


    /* === Navigasyon stilleri === */
    /* NAV */
    /* Hamburger menü görünür */
    .hamburger {
        display: flex;
    }

    /* Menü mobil düzeni - gizli başlangıçta */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    /* Menü aktifken görünür */
    .nav-menu.active {
        left: 0;
    }

    /* Menü elemanları aralığı */
    .nav-menu li {
        margin: 1rem 0;
    }

    /* Hamburger ikon animasyonları */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {

        /* === Form stilleri === */
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* GİRİŞ */
    /* Mobilde acil yardım butonunu görünür yap */
    .btn-emergency {
        display: inline-block;
    }

    /* Hero başlık font küçültme */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Hero paragraf font küçültme */
    .hero-content p {
        font-size: 1.125rem;
    }

    /* Hero butonları dikey sıralama */

    /* === Buton stilleri === */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Hero istatistikler tek sütun */
    .hero-stats {

        /* === Izgara düzeni stilleri === */
        grid-template-columns: 1fr;
    }

    /* HİZMETLERİMİZ */

    /* === Navigasyon stilleri === */
    /* Navigasyon butonları gizlenir */
    .swiper-navBtn {
        display: none;
    }

    /* Kart tam genişlikte, kapsayıcı ile aynı */

    /* === Kart bileşeni stilleri === */
    .service-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        /* Ortala */
    }


    /* HAKKIMIZDA */
    /* About bölümündeki görselin boyut ve konum ayarları */
    .about-image img {
        max-width: 80%;
        /* Görsel genişliğini küçült */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20%;
        /* Alt boşluk ve ortalama */
        display: block;
    }

    /* About görsel kapsayıcı flex ile ortalama */
    .about-image {
        display: flex;
        justify-content: center;
        /* Yatayda ortala */
        align-items: center;
        /* Dikeyde ortala */
        height: 200px;
        /* Yükseklik ayarı */
    }


    /* === Izgara düzeni stilleri === */
    /* About içerik grid tek sütun */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* About görsel sırayı öne alma */
    .about-image {
        order: -1;
    }


    /* İLETİŞİM */
    .contact-content {
        padding: 0 1rem;
    }

    /* İletişim bilgilerini 2 sütunlu grid yap */
    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Üçüncü iletişim öğesi için grid konum ayarı */
    .contact-item:nth-child(3) {
        grid-column: auto;
    }


    /* === Form stilleri === */
    /* Form satırı tek sütun */
    .form-row {

        /* === Izgara düzeni stilleri === */
        grid-template-columns: 1fr;
    }

    /* İletişim içerik tek sütun */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Çok küçük ekranlar için (480px altı) */

/* === Medya sorguları === */
@media (max-width: 480px) {

    /* Hero başlık daha küçük */
    .hero-content h1 {
        font-size: 2rem;
    }


    /* === Kapsayıcı düzeni stilleri === */
    /* Container yatay padding küçültme */
    .container {
        padding: 0 0.5rem;
    }


    /* === Izgara düzeni stilleri === */
    /* Services grid tek sütun */
    .services-grid {
        grid-template-columns: 1fr;
    }


    /* === Form stilleri === */
    /* Bazı kart ve form padding küçültme */

    /* === Kart bileşeni stilleri === */
    .service-card,
    .quote-calculator,

    /* === Form stilleri === */
    .contact-form {
        padding: 1.5rem;
    }
}

/* Dönen animasyon keyframes */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}