/* ==========================================================================
   TÜRKAY SOĞUTMA - INDUSTRIAL PRO THEME (V4 - MODERN BUTTONS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* --- RENK PALETİ --- */
    --primary: #fb6307;       /* Turuncu (Ana Renk) */
    --primary-dark: #d95300;  /* Koyu Turuncu */
    --secondary: #3c9bc0;     /* Teknik Mavi */
    --dark: #212529;          /* Modern Koyu Gri */
    --light: #f8f9fa;         /* Zemin */
    --gray: #6c757d;          
    --white: #ffffff;
    
    /* --- AYARLAR --- */
    --radius: 4px; /* Hafif yumuşaklık (Eğimli butonlar için) */
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-primary: 0 8px 20px rgba(251, 99, 7, 0.3); /* Turuncu Gölge */
    --nav-height: 90px;
    --whatsapp: #25D366;
}

/* =========================================
   1. TEMEL SIFIRLAMA
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Barlow', sans-serif; }

html, body { 
    width: 100%; overflow-x: hidden !important; 
    background-color: var(--white); color: var(--dark); line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* =========================================
   2. TİPOGRAFİ
   ========================================= */
h1, h2, h3, h4 { color: var(--dark); font-weight: 800; text-transform: uppercase; margin: 0; letter-spacing: -0.5px; line-height: 1.2; }
p { color: var(--gray); font-size: 1rem; font-weight: 400; margin-bottom: 20px; }
.text-gradient { color: var(--primary); }

/* =========================================
   YARDIMCI SINIFLAR (UTILITIES)
   ========================================= */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Page Header Düzenlemesi (Daha ince ve kibar) */
.page-header {
    padding: 50px 0 !important; /* Yüksekliği düşürdük */
    border-bottom: 4px solid var(--primary);
}
.page-header h1 { margin-bottom: 5px; font-size: 2.2rem; } /* Fontu biraz küçülttük */
.page-header p { margin: 0 auto; max-width: 700px; opacity: 0.8; font-size: 1rem; }

/* =========================================
   3. MODERN BUTONLAR (EĞİMLİ & GÖLGELİ)
   ========================================= */

/* Ortak Buton Ayarları */
.btn-primary, .btn-secondary, .btn-white, .btn-outline-white {
    padding: 14px 35px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none; /* Siyah kenarlık gitti */
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    /* MODERN EĞİM (SKEW) */
    transform: skewX(-12deg); 
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* İçindeki yazıyı ve ikonu düzelt (Ters Eğim) */
.btn-primary > *, .btn-secondary > *, .btn-white > *, .btn-outline-white > * {
    transform: skewX(12deg); /* Yazıyı dik hale getirir */
    display: inline-block;
}

/* Turuncu Buton (Primary) */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    transform: skewX(-12deg) translateY(-3px); /* Hoverda hafif kalkış */
    box-shadow: 0 15px 30px rgba(251, 99, 7, 0.5);
}

/* Şeffaf/Koyu Buton (Secondary) */
.btn-secondary {
    background: var(--dark);
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-secondary:hover {
    background: #000;
    transform: skewX(-12deg) translateY(-3px);
}

/* Beyaz Buton (White) */
.btn-white {
    background: var(--white);
    color: var(--primary) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.btn-white:hover {
    background: var(--white);
    color: var(--dark) !important;
    transform: skewX(-12deg) translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Çerçeveli Beyaz (Outline) */
.btn-outline-white {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.4) !important; /* İnce, zarif kenarlık */
    color: #fff !important;
    backdrop-filter: blur(5px);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white) !important;
    transform: skewX(-12deg) translateY(-3px);
}


/* =========================================
   4. HEADER
   ========================================= */
.top-bar { background: var(--dark); color: #ced4da; padding: 10px 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.top-bar i { color: var(--primary); margin-right: 6px; }

.main-header {
    background: var(--white); height: var(--nav-height); 
    position: sticky; top: 0; z-index: 1000; 
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    width: 100%;
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { 
    width: 42px; height: 42px; background: var(--primary); color: white; 
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    border-radius: 4px; transform: skewX(-10deg); /* Logoya da hafif eğim */
}
.logo-icon i { transform: skewX(10deg); } /* İkonu düzelt */

.logo-text h2 { font-size: 1.8rem; line-height: 0.9; color: var(--dark); font-weight: 800; margin: 0; }
.logo-text span { font-size: 0.75rem; letter-spacing: 2px; color: var(--gray); font-weight: 700; display: block; margin-top: 4px; }

/* Masaüstü Menü */
.nav-menu { height: 100%; display: flex; align-items: center; margin-left: auto; }
.nav-menu ul { display: flex; gap: 10px; height: 100%; align-items: center; margin: 0; padding: 0; }
.nav-menu li { height: auto; display: flex; align-items: center; }
.nav-menu a { 
    font-weight: 700; font-size: 0.9rem; color: var(--dark); 
    padding: 8px 16px; text-transform: uppercase;
    position: relative; transition: 0.3s;
}
.nav-menu a:hover { color: var(--primary); }

/* Masaüstü Teklif Butonu */
.nav-menu .btn-primary { 
    padding: 10px 25px; margin-left: 15px; color: white !important; height: auto; font-size: 0.85rem;
}

.mobile-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--dark); }

/* =========================================
   5. HERO & SECTIONS
   ========================================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); color: var(--white); }

/* Hero */
.hero {
    min-height: 90vh; display: flex; align-items: center; position: relative;
    background-size: cover; background-position: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0; 
    background: linear-gradient(90deg, rgba(33,37,41,0.92) 0%, rgba(33,37,41,0.5) 100%); 
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; padding: 40px 0; }
.hero-badge {
    background: rgba(251, 99, 7, 0.1); border: 1px solid var(--primary); color: var(--primary);
    padding: 8px 16px; font-weight: 700; display: inline-block; margin-bottom: 25px; font-size: 0.85rem;
    transform: skewX(-10deg); /* Rozete de eğim */
}
.hero h1 { font-size: 3.8rem; line-height: 1.1; margin-bottom: 25px; color: white; text-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero p { 
    font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; color: #ced4da; 
    max-width: 600px; border-left: 4px solid var(--primary); padding-left: 20px; 
}

/* Kartlar */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.service-card {
    background: var(--white); padding: 40px; 
    border: 1px solid #edf2f7; border-bottom: 4px solid transparent;
    transition: 0.3s; height: 100%; position: relative; overflow: hidden;
}
.service-card:hover { 
    border-bottom-color: var(--primary); transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}
.service-card .icon-box {
    width: 65px; height: 65px; background: var(--light); color: var(--dark);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    margin-bottom: 25px; transition: 0.3s; transform: skewX(-10deg); border-radius: 4px;
}
.service-card .icon-box i { transform: skewX(10deg); } /* İkonu düzelt */

.service-card:hover .icon-box { background: var(--primary); color: white; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--dark); }
.service-card li { margin-bottom: 10px; color: var(--gray); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.service-card li i { color: var(--primary); font-size: 0.8rem; }

/* Diğer */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title span { color: var(--primary); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 10px; letter-spacing: 2px; }
.section-title h2 { font-size: 2.8rem; position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 4px; background: var(--primary); }

.cta-area { background: var(--secondary); padding: 90px 0; text-align: center; color: var(--white); }
.cta-area h2 { color: white; margin-bottom: 20px; }

/* Galeri */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gallery-item { height: 260px; position: relative; overflow: hidden; display: block; border-radius: 4px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(33, 37, 41, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--primary); font-size: 2.5rem; }

/* Form */
.contact-form-wrapper { background: var(--white); padding: 50px; border: 1px solid #edf2f7; box-shadow: var(--shadow); }
.form-control { 
    width: 100%; padding: 16px; border: 2px solid #edf2f7; 
    font-size: 1rem; border-radius: 4px; background: #fdfdfd; transition: 0.3s;
}
.form-control:focus { border-color: var(--primary); outline: none; background: #fff; }

/* Footer */
.main-footer { background: #1a1d20; color: #adb5bd; padding: 100px 0 40px; }
.main-footer h3 { color: #fff; margin-bottom: 25px; font-size: 1.2rem; border-left: 3px solid var(--primary); padding-left: 15px; }
.footer-col ul li { margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding-top: 30px; text-align: center; font-size: 0.9rem; }

/* Animasyonlar */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.brand-slider { height: 130px; background: #fff; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid #eee; }
.slide-track { display: flex; width: calc(200px * 18); animation: scroll 30s linear infinite; }
.brand-slide { width: 200px; padding: 0 30px; display: flex; align-items: center; justify-content: center; }
.brand-slide img { max-height: 50px; opacity: 0.4; transition: 0.3s; filter: grayscale(100%); }
.brand-slide img:hover { opacity: 1; filter: grayscale(0%); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-200px * 9)); } }

.spin-container { width: 350px; height: 350px; position: relative; display: inline-block; }
.spin-border { position: absolute; inset: 0; border: 2px dashed var(--primary); border-radius: 50%; animation: spin 20s linear infinite; }
.spin-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 8px solid #fff; position: relative; z-index: 1; box-shadow: var(--shadow); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Masaüstü Float Buton */
.mobile-bottom-nav { display: none; }
.float-wp { display: none; }
@media (min-width: 992px) {
    .float-wp { 
        display: flex; position: fixed; bottom: 30px; right: 30px; 
        width: 65px; height: 65px; background: var(--whatsapp); color: #fff; 
        align-items: center; justify-content: center; font-size: 34px; z-index: 999; 
        border-radius: 50%; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); 
        transition: 0.3s;
    }
    .float-wp:hover { transform: scale(1.1); }
}

/* =========================================
   6. MOBİL UYUMLULUK (TABLET & TELEFON)
   ========================================= */
@media (max-width: 991px) {
    .container { padding: 0 20px; }
    .section-padding { padding: 60px 0; }
    .top-bar, .hide-mobile { display: none !important; }
    
    .grid-3 { grid-template-columns: 1fr !important; gap: 40px !important; }
    div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 40px !important; }

    /* MENU */
    .mobile-toggle { display: block; z-index: 10001; position: relative; }
    .nav-menu {
        position: fixed; top: 0; right: 0; width: 85%; max-width: 300px; height: 100vh;
        background: var(--white);
        display: flex; flex-direction: column; padding: 100px 30px;
        z-index: 10000; box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        transform: translateX(100%); visibility: hidden; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-menu.active { transform: translateX(0); visibility: visible; }
    .nav-menu ul { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
    .nav-menu li { width: 100%; border-bottom: 1px solid #eee; }
    .nav-menu a { width: 100%; padding: 15px 0; font-size: 1.1rem; }
    .nav-menu .btn-primary { display: none; }

    /* Modül Ayarları */
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; border: none; padding: 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .gallery-item { height: 180px; }
    .sidebar { width: 100% !important; margin-top: 40px !important; }
    .spin-container { width: 260px !important; height: 260px !important; margin: 0 auto; }
    iframe { height: 300px !important; pointer-events: none; }
    .contact-form-wrapper { order: -1; padding: 30px !important; }
    .main-footer { padding-bottom: 90px; }
    
    .grid-2-service { display: flex !important; flex-direction: column !important; gap: 30px !important; }
    .service-img { order: -1 !important; margin-bottom: 10px; }
    .service-text { order: 1 !important; }

    /* MOBİL ALT BAR (FIXED) */
    .mobile-bottom-nav { 
        display: flex !important; position: fixed; bottom: 0; left: 0; width: 100%; 
        z-index: 9999; background: #fff;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
        border: none; padding: 0; gap: 0;
    }
    .mobile-btn { 
        flex: 1; display: flex !important; align-items: center; justify-content: center; 
        padding: 18px 10px; font-weight: 800; text-transform: uppercase; 
        font-size: 0.95rem; color: #fff !important; text-decoration: none !important; 
        gap: 8px; border-radius: 0; line-height: 1; transform: none; /* Mobilde eğim yok */
    }
    .mb-call { background-color: var(--primary); }
    .mb-wp { background-color: #25D366; border-left: 1px solid rgba(0,0,0,0.1); }
    .mobile-btn i { font-size: 1.2rem; margin-bottom: 2px; }
    .float-wp { display: none !important; }
}

/* Slider İyileştirmeleri */
.swiper-slide {
    height: auto; /* Tüm kartları eşit boya zorlar */
}
.swiper-pagination-bullet-active {
    background-color: var(--primary) !important; /* Nokta rengini mavi yapar */
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}

/* --- YORUM SLIDER DÜZELTMESİ (EŞİT YÜKSEKLİK) --- */
.testimonialSwiper .swiper-slide {
    height: auto !important; /* En uzun içeriğe göre yüksekliği ayarla */
    display: flex;           /* İçeriği esnetmeye hazırla */
}

.testimonialSwiper .service-card {
    height: 100%;            /* Slaytın tüm yüksekliğini kapla */
    width: 100%;             /* Genişliği koru */
    /* İçerik dikey hizalaması için flex */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: 1fr !important; }
}