﻿/* === Murat Usta Su Tesisatı - Ana Stil Dosyası === */

:root {
    /* Ana Renk Paleti */
    --primary-blue: #0ea5e9; /* Açık Mavi */
    --dark-blue: #1e3a8a; /* Lacivert */
    --white: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8fbff; /* Çok uçuk ferah mavi/beyaz arkaplan */
}

/* --- Genel Sıfırlamalar (Taşmayı Önleyen Yıldız Seçici Düzeltildi) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === KAYDIRMA ÇUBUĞUNU (SCROLLBAR) VE YANA TAŞMAYI GİZLEME === */

/* Chrome, Safari ve Opera için */
::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Firefox ve IE/Edge için */
html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE ve Edge */
}

/* --- Genel Ayarlar ve ORİJİNAL DAMLA ARKA PLANI --- */
body {
    background-color: #ebf4fc;
    background-image: url('./images/damlalar.png');
    background-repeat: repeat;
    background-size: 400px auto;
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: clip; /* Sticky menüyü bozmadan yana taşmayı engeller */
}

/* === HERO SECTION (MASAÜSTÜ - Dokunulmadı, Senin Ayarın) === */
.hero-section {
    width: 100%;
    aspect-ratio: 4096 / 1578;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    background-image: url('./images/murat.jpg');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    border-top: 4px solid var(--primary-blue);
    border-bottom: 4px solid var(--primary-blue);
    overflow: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
}

/* === ORTAK BÖLÜM AYARLARI === */
.services, .portfolio {
    padding: 100px 50px;
    position: relative;
    background-color: rgba(235, 244, 252, 0.75);
}

header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 50px;
    border-bottom: 4px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

    .logo img {
        width: 55px;
        height: 55px;
        object-fit: contain;
    }

    .logo span {
        font-size: 26px;
        font-weight: 800;
        color: var(--dark-blue);
        letter-spacing: 0.5px;
    }

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s ease;
}

    nav a:hover {
        color: var(--primary-blue);
    }

/* Sol Taraf (Yazılar) - Masaüstü */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 45%;
}

    .hero-content h1 {
        font-size: clamp(2.2rem, 4vw, 3.8rem);
        color: var(--dark-blue);
        margin-bottom: 20px;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: clamp(1rem, 1.3vw, 1.3rem);
        color: var(--text-dark);
        margin-bottom: 35px;
        font-weight: 500;
    }

.btn-call-outline, .btn-whatsapp-outline {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
    background: transparent;
}

/* Hemen Ara Butonu */
.btn-call-outline {
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

    .btn-call-outline:hover {
        background: var(--dark-blue);
        color: var(--white);
        box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
    }

/* WhatsApp Destek Butonu */
.btn-whatsapp-outline {
    color: #25D366;
    border: 2px solid #25D366;
}

    .btn-whatsapp-outline:hover {
        background: #25D366;
        color: var(--white);
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
    }

.section-title, .service-grid, .portfolio-slider {
    position: relative;
    z-index: 1;
}

/* Başlıklar */
.section-title {
    color: var(--dark-blue);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: block;
}

    .section-title::after {
        content: "";
        position: absolute;
        width: 100px;
        height: 4px;
        background-color: var(--primary-blue);
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

/* === HİZMETLERİMİZ (Tek Satır Kartlar) === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1250px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 12px;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .service-card svg {
        margin-bottom: 20px;
        transition: fill 0.4s ease;
    }

    .service-card h3 {
        color: var(--dark-blue);
        margin-bottom: 15px;
        font-size: 1.3rem;
        transition: color 0.4s ease;
    }

    .service-card p {
        color: var(--text-dark);
        font-size: 0.95rem;
        transition: color 0.4s ease;
    }

    .service-card:hover {
        background-color: var(--dark-blue);
        border-color: var(--dark-blue);
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(30, 58, 138, 0.25);
    }

        .service-card:hover h3,
        .service-card:hover p {
            color: var(--white);
        }

        .service-card:hover svg {
            fill: var(--white);
        }

/* === YAPILAN İŞLER (PORTFOLYO) === */
.portfolio {
    background-color: var(--white);
    border-top: 4px solid var(--primary-blue);
    position: relative;
    padding-bottom: 0;
}

.portfolio-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 70px;
}

.portfolio-slider {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 0 40px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

    .portfolio-slider::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

/* === KART VE FOTOĞRAF AYARLARI === */
.portfolio-card {
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .portfolio-card:hover {
        transform: translateY(-8px);
    }

    .portfolio-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        cursor: zoom-in;
        transition: opacity 0.3s;
    }

        .portfolio-card img:hover {
            opacity: 0.85;
        }

.is-detay {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .is-detay h4 {
        color: var(--dark-blue);
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .is-detay p {
        font-size: 0.95rem;
        color: #555;
    }

/* === BÜYÜT YAZISI === */
.buyut-yazisi {
    margin-top: auto;
    text-align: right;
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: zoom-in;
    padding-top: 15px;
    transition: color 0.3s;
}

    .buyut-yazisi:hover {
        color: var(--dark-blue);
    }

/* === YENİ NESİL ŞIK SLIDER BUTONLARI === */
.slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .slider-btn:hover {
        background-color: var(--primary-blue);
        color: var(--white);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    }

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* === FOOTER === */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 40px 50px;
    border-top: 5px solid var(--primary-blue);
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

    .footer-logo img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        background: white;
        border-radius: 50%;
        padding: 5px;
    }

    .footer-logo h3 {
        color: var(--white);
        font-size: 1.8rem;
        margin: 0;
        letter-spacing: 1px;
    }

footer p {
    opacity: 0.8;
    font-size: 1rem;
}

/* Masaüstünde gizlenmesi gereken mobil elementler */
.menu-toggle {
    display: none;
}

.mobil-kaydir-uyari {
    display: none;
}

/* === TABLET UYUMLULUK === */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section {
        aspect-ratio: auto;
        height: auto;
        padding: 60px 40px;
        background-position: 85% center;
    }

    .hero-content {
        max-width: 65%;
    }

    .portfolio-slider-container {
        padding: 0 20px;
    }

    .slider-btn {
        display: none !important;
    }
}

/* =========================================
   === MOBİL UYUMLULUK (SADECE TELEFONLAR) ===
   ========================================= */
@media (max-width: 768px) {

    /* 1. HAMBURGER MENÜ TASARIMI */
    header {
        flex-direction: row;
        padding: 12px 16px;
        border-bottom: 2px solid var(--primary-blue);
    }

    .logo img {
        width: 44px;
        height: 44px;
    }

    .logo span {
        font-size: 22px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 6px;
        z-index: 1001;
    }

        .menu-toggle .bar {
            width: 28px;
            height: 3.5px;
            background-color: var(--dark-blue);
            transition: all 0.3s ease-in-out;
            border-radius: 2px;
        }

    nav#nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-bottom: 5px solid var(--primary-blue);
    }

        nav#nav-menu.active {
            max-height: 350px;
        }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

        nav ul li {
            text-align: center;
            padding: 15px 0;
            border-bottom: 1px solid #f8fbff;
        }

    /* 2. MOBİL HERO ALANI: DAHA UZUN BOY VE BÜYÜK USTA */
    .hero-section {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 480px !important; /* Ana alanı dikey olarak uzattık */
        padding: 40px 16px 45px 16px !important; /* Üst ve alt ferahlığı artırdık */
        background-image: radial-gradient(circle at 78% 68%, rgba(14, 165, 233, 0.20) 0%, rgba(235, 244, 252, 0.85) 55%, #ffffff 100%), url('./images/damlalar.png') !important;
        background-size: 100% 100%, 250px auto !important;
        background-position: center center, center center !important;
        background-repeat: no-repeat, repeat !important;
        background-color: #f8fbff !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden;
    }

        .hero-section::after {
            display: none !important;
        }

    /* IZGARA SİSTEMİ */
    .hero-content {
        max-width: 100% !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 54% 46%;
        grid-template-rows: auto auto auto;
        align-items: stretch; /* Ustanın boyunu metin+buton yüksekliğine eşitler */
    }

        /* ÜST BAŞLIK: Ekranı Tam Ortalar */
        .hero-content h1 {
            grid-column: 1 / -1;
            text-align: center;
            font-size: clamp(1.85rem, 6.5vw, 2.2rem);
            line-height: 1.2;
            margin-bottom: 28px; /* Başlık ile alt kısım arasını açtık */
            color: var(--dark-blue);
        }

        /* METİN: Sol Sütunda Sola Yaslı */
        .hero-content p {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
            text-align: left;
            font-size: 0.98rem;
            line-height: 1.5;
            margin-bottom: 20px;
            padding-right: 8px;
            color: var(--text-dark);
        }

    /* BUTONLAR: Metnin Altında Sola Yaslı */
    .cta-buttons {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 12px;
        width: 100%;
        padding-right: 8px;
        margin-bottom: 0;
    }

    .btn-call-outline, .btn-whatsapp-outline {
        width: 100%;
        border-radius: 10px !important;
        justify-content: center;
        padding: 12px 10px;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    /* MOBİLDE BUTONLAR DOĞRUDAN HOVER (DOLGULU) GÖRÜNÜMÜNDE */
    .btn-call-outline {
        background: var(--dark-blue) !important;
        color: var(--white) !important;
        border: 2px solid var(--dark-blue) !important;
        box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
    }

    .btn-whatsapp-outline {
        background: #25D366 !important;
        color: var(--white) !important;
        border: 2px solid #25D366 !important;
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
    }

    /* USTA: 526x474 Ölçüsüne Göre Şapkası Kırpılmadan Tam Oturan Hali */
    .hero-content::after {
        content: "";
        grid-column: 2 / 3;
        grid-row: 2 / 4; /* Metin başından buton sonuna kadar */
        width: 135%; /* 526px genişliğin yanlardan kesilmemesi için alanı genişlettik */
        height: calc(100% + 14px); /* Metin + buton boyundan hafif uzun */
        margin-top: -14px; /* Şapkayı yukarı doğru pay bırakarak hizalar */
        margin-left: -15%;
        background-image: url('./images/mobil.png?v=3');
        background-size: auto 100%; /* %100 yükseklik sayesinde şapka asla kırpılmaz */
        background-position: center bottom;
        background-repeat: no-repeat;
        filter: drop-shadow(0 8px 16px rgba(30, 58, 138, 0.15));
        pointer-events: none;
    }

    /* 3. YAPTIGIMIZ İŞLER (MOBİLE ÖZEL KAYDIR UYARISI) */
    .mobil-kaydir-uyari {
        display: block;
        text-align: center;
        color: var(--primary-blue);
        font-size: 0.95rem;
        font-weight: 600;
        margin-top: -30px;
        margin-bottom: 20px;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            opacity: 0.5;
        }

        50% {
            opacity: 1;
        }

        100% {
            opacity: 0.5;
        }
    }

    .services, .portfolio {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}
