/* =========================================
   1. GENEL AYARLAR & DEĞİŞKENLER
   ========================================= */
   :root {
    --primary: #0066FF;      /* Elektrik Mavisi - Ana Renk */
    --primary-dark: #004ecc; /* Hover Rengi */
    --secondary: #1e293b;    /* Koyu Lacivert - Başlıklar */
    --text: #475569;         /* Gri - Metinler */
    --light: #f1f5f9;        /* Açık Gri - Arka Planlar */
    --white: #ffffff;
    --whatsapp: #25D366;     /* WhatsApp Yeşili */
    --font: 'Inter', sans-serif;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Yumuşak kaydırma */
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    /* Mobilde alttaki sabit butonların içerik kapatmaması için boşluk */
    padding-bottom: 0; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================
   2. BUTONLAR & TİPOGRAFİ
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

.btn-full {
    width: 100%;
    margin-top: 15px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
    margin-top: 80px;
}

.section-desc {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text);
}

/* =========================================
   3. HEADER & NAVİGASYON (Masaüstü)
   ========================================= */
.site-header {
    height: var(--header-height);
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo a {
    font-size: 24px;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--secondary);
    font-size: 15px;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav .header-btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
}

.desktop-nav .header-btn:hover {
    background: var(--primary-dark);
}

/* =========================================
   4. MOBİL MENÜ & HAMBURGER İKONU
   ========================================= */
.mobile-toggle {
    display: none; /* Masaüstünde gizli */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* İkon Animasyonu (Aktifken Çarpı Olur) */
.mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Açılır Mobil Menü */
.mobile-menu {
    display: none; /* JS ile flex yapılacak */
    flex-direction: column;
    position: absolute;
    top: var(--header-height); /* Header'ın bittiği yerden başlar */
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 1px solid #eee;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu a.m-link {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    color: var(--secondary);
    font-size: 16px;
}

.mobile-menu .m-btn {
    margin-top: 20px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
}

/* =========================================
   5. HERO SLIDER
   ========================================= */
.hero-section {
    position: relative;
    height: 650px;
    overflow: hidden;
    color: var(--white);
    background-color: #000;
}

.slider-wrapper {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slide::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slide .container {
    position: relative;
    z-index: 2;
}

.slide.active {
    opacity: 1;
}

.slide h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.slide h1 span {
    color: var(--primary);
}

.slide p {
    font-size: 20px;
    margin-bottom: 35px;
    max-width: 600px;
    color: rgba(255,255,255,0.9);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* =========================================
   6. HİZMETLER (SERVICES)
   ========================================= */
.services-section {
    padding: 20px 0 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* Geniş kartlar */
    gap: 30px;
}

.service-card {
    display: flex;
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.service-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 22px;
}

.service-content p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 20px;
}

.service-content .read-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
}

.service-img {
    width: 200px;
    flex-shrink: 0;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   7. GALERİ
   ========================================= */
.gallery-section {
    padding-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* =========================================
   8. HAKKIMIZDA
   ========================================= */
.about-section {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0;
}

.about-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.features-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.features-list li {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   9. İLETİŞİM
   ========================================= */
.contact-section {
    padding-bottom: 80px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--light);
    padding: 40px;
    border-radius: 16px;
}

.c-item {
    margin-bottom: 25px;
}

.c-item strong {
    display: block;
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 5px;
}

.c-item a {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
}

.map-frame iframe {
    width: 100%;
    height: 350px;
    border-radius: 12px;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 40px 0;
    /* Mobilde footer'ın sticky bar altında kalmaması için margin */
    margin-bottom: 0; 
}

/* =========================================
   11. EKSTRA BİLEŞENLER (MODAL & LIGHTBOX)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none; /* JS ile açılır */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 30px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
}

#modalImg {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

#modalTitle { margin-bottom: 10px; color: var(--secondary); }
#modalDesc { margin-bottom: 20px; color: var(--text); }

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#lightboxImg {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* =========================================
   12. STICKY MOBILE ACTIONS (Sabit Alt Menü)
   ========================================= */
.sticky-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none; /* Masaüstünde gizli */
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 16px;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sticky-btn.call { background: var(--primary); }
.sticky-btn.whatsapp { background: var(--whatsapp); }

/* =========================================
   13. RESPONSIVE / MEDIA QUERIES (ÖNEMLİ KISIM)
   ========================================= */

/* Tablet ve Altı (max-width: 1024px) */
@media (max-width: 1024px) {
    .container { padding: 0 15px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .service-card { flex-direction: column-reverse; } /* Resmi üste al */
    .service-img { width: 100%; height: 200px; }
    .slide h1 { font-size: 42px; }
}

/* Telefon (max-width: 768px) */
@media (max-width: 768px) {
    
    /* Header Düzeni */
    .desktop-nav { display: none; } /* Masaüstü menüyü kapat */
    .mobile-toggle { display: flex; } /* Mobil ikonu aç */
    
    /* Hero Slider */
    .hero-section { height: 500px; }
    .slide h1 { font-size: 32px; }
    .slide p { font-size: 16px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; }

    /* Hizmetler - Tek Kolon */
    .services-grid { grid-template-columns: 1fr; }
    
    /* İletişim - Alt alta */
    .contact-wrapper { grid-template-columns: 1fr; padding: 20px; }
    
    /* Sabit Alt Menü için Body Boşluğu */
    body { padding-bottom: 54px; } /* Sticky bar yüksekliği kadar boşluk */
    .sticky-mobile { display: flex; } /* Sabit barı göster */
    
    /* Başlıklar */
    .section-title { font-size: 28px; margin-top: 50px; }
    
    /* Modal Mobilde Tam Ekran Gibi */
    .modal-content { width: 95%; padding: 20px; }
}