/* CSS Değişkenleri (Tema Renkleri) */
:root {
    --primary-color: #f37520; /* Ana Turuncu (Logodan) */
    --secondary-color: #2c1e12; /* Koyu Kahve/Siyah (Logodan) */
    --accent-color: #fdfbf7;   /* Krem Rengi (Logo Yazı Rengi) */
    --text-color: #333;
    --text-light: #555;
    --white: #ffffff;
    --container-width: 1100px;
    
    /* Sosyal Medya Renkleri */
    --whatsapp-color: #25D366;
    --instagram-color: #E4405F;
}

/* Global Reset ve Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
    font-size: 16px; 
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7; /* Okunabilirlik için artırıldı */
    color: var(--text-color);
    background-color: var(--accent-color); /* ARKA PLAN KREM RENGİ OLDU */
    overflow-x: hidden; 
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem; 
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color); /* Ana Başlık Rengi */
}

p {
    margin-bottom: 1.5rem; /* Paragraf arası boşluk artırıldı */
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

section {
    padding: 6rem 1rem; /* Bölüm boşlukları artırıldı */
    overflow: hidden; 
}

/* 15/10 YENİ BÖLÜM BAŞLIĞI YAPISI */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.section-header h2 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}
/* Patili Dostlar gibi koyu arka planlar için */
.section-header.dark-header .section-eyebrow {
    color: var(--white);
    opacity: 0.8;
}
.section-header.dark-header h2 {
    color: var(--white);
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--accent-color); /* Arka plana uyumlu */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--secondary-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header (Navigasyon Barı) - 15/10 YENİ TASARIM */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* Başlangıçta şeffaf */
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#main-header.scrolled {
    background: var(--white); /* Kayınca beyaz */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Yükseklik artırıldı */
}
/* LOGO STİLİ - BAŞLANGIÇTA BEYAZ, KAYINCA RENKLİ */
.logo-img {
    height: 75px; /* Logo boyutu */
    margin-top: 10px;
    width: auto;
    filter: brightness(0) invert(1); /* Başlangıçta logoyu beyaz yap */
    transition: filter 0.4s ease, transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.05);
}
#main-header.scrolled .logo-img {
    filter: none; /* Kayınca orijinal (renkli) haline dön */
}

#main-header ul {
    display: flex;
    list-style: none;
}
#main-header ul li a {
    color: var(--white); /* Başlangıçta beyaz yazı */
    padding: 1.2rem;
    font-weight: 600;
    transition: color 0.4s ease, transform 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}
#main-header.scrolled ul li a {
    color: var(--secondary-color); /* Kayınca koyu yazı */
}
#main-header ul li a:hover {
    color: var(--primary-color); /* Hover turuncu */
    transform: scale(1.1);
}
#main-header ul li a.active {
    color: var(--primary-color);
    transform: scale(1.1);
}
/* Mobil Menü İkonu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; 
}
.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background: var(--white); /* Başlangıçta beyaz çubuklar */
    margin: 4px 0;
    transition: 0.4s;
}
#main-header.scrolled .menu-toggle .bar {
    background: var(--secondary-color); /* Kayınca koyu çubuklar */
}

/* Hero (Slider) Bölümü */
#home {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0;
}
#home .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-bg.png'); /* YOL GÜNCELLENDİ */
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s infinite alternate;
}
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
#home .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
}
#home .content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}
#home .content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 15px rgba(0,0,0,0.7);
    margin-bottom: 0.5rem;
}
#home .content p {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent-color);
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}
/* Buton Stilleri */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2.2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--secondary-color);
    padding: 0.8rem 2.2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}
.btn-secondary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hakkımızda Bölümü */
#about {
    background: var(--white); /* Krem arka plan üzerinde beyaz kutu */
}
#about .about-content {
    display: grid; /* Flex yerine Grid kullanıldı */
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
#about .about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
#about .about-text .slogan {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Hizmetlerimiz Bölümü */
#services {
    background: var(--accent-color); /* Ana krem rengi */
}
#services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 SÜTUNLU YAPI */
    gap: 2rem;
    text-align: center;
}
#services .service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent; /* Hover için yer tutucu */
}
/* 15/10 YENİ HOVER EFEKTİ */
#services .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(243, 117, 32, 0.15); 
    border-bottom-color: var(--primary-color);
}
#services .service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
#services .service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
#services .service-main-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: -2.5rem auto 3rem auto;
}

/* Patili Dostlar (Hayır) Bölümü */
#charity {
    background: var(--primary-color); 
    color: var(--white); 
}
#charity .charity-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
#charity .charity-content i {
    font-size: 4rem;
    color: var(--white); 
    margin-bottom: 2rem;
}
#charity .charity-content p {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent-color);
}
#charity .charity-content .highlight {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
}

/* Galeri Bölümü */
#gallery {
    background: var(--accent-color); /* Ana krem rengi */
}
#gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; /* Boşluk artırıldı */
}
.gallery-item {
    position: relative;
    text-decoration: none;
    height: 270px; /* Yükseklik artırıldı */
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10;
}
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(243, 117, 32, 0.7); 
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}
.gallery-helper-text {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* İletişim Bölümü */
#contact {
    background: var(--white);
}
#contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
#contact .contact-info ul {
    list-style: none;
}
#contact .contact-info ul li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 500;
}
#contact .contact-info ul li i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
    margin-right: 1rem;
}
#contact .contact-info .social-links a {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}
#contact .contact-info .social-links a:hover {
    color: var(--primary-color);
}
#contact .map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Footer - 15/10 YENİ TASARIM */
footer {
    background: var(--secondary-color); 
    color: var(--accent-color);
    padding: 4rem 1rem 3rem 1rem;
    text-align: center;
}
.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Logoyu beyaz yapar */
    opacity: 0.9;
    margin-bottom: 1rem;
}
.footer-slogan {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
    opacity: 0.8;
}
.footer-social a {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0 0.7rem;
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: var(--primary-color);
}

/* Sub-Footer (RekLime) */
.sub-footer {
    background: #1a110a; /* Kahvenin koyusu */
    color: #888;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}
.sub-footer p {
    margin-bottom: 0.5rem;
    color: #888;
}
.sub-footer a {
    color: #eee;
    font-weight: 600;
    transition: color 0.3s ease;
}
.sub-footer a:hover {
    color: var(--primary-color);
}

/* YÜZEN BUTONLAR (Floating Buttons) */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-buttons a {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.floating-buttons a:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.floating-buttons .fab-wa { background: var(--whatsapp-color); }
.floating-buttons .fab-ig { 
    background: #d6249f;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}
.floating-buttons .fab-phone { background: var(--primary-color); }

/* SCROLL ANİMASYONLARI */
.anim-fade-in,
.anim-fade-in-up,
.anim-fade-in-left,
.anim-fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.anim-fade-in-up { transform: translateY(40px); }
.anim-fade-in-left { transform: translateX(-40px); }
.anim-fade-in-right { transform: translateX(40px); }
.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* TURUNCU SCROLLBAR */
html {
    scrollbar-color: var(--primary-color) #e0e0e0;
    scrollbar-width: thin;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e26c1a; 
}

/* LIGHTBOX GALERİ */
#lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 30, 18, 0.97); /* Daha koyu */
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
#lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-close {
    position: absolute;
    top: -20px;
    right: 0px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}
.lightbox-close:hover {
    color: var(--primary-color);
}
.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 2.5rem;
    padding: 1rem;
    user-select: none;
    transition: background 0.3s ease;
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 300;
}

/* ########## RESPONSIVE TASARIM (MOBİL İYİLEŞTİRMELERİ) ########## */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.3rem;
    }
    #home .content h1 {
        font-size: 3.5rem;
    }
    #home .content p {
        font-size: 1.5rem;
    }
    
    /* Hizmetleri 2'li gride düşür */
    #services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #about .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* Mobilde resmi üste al */
    #about .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem; 
    }
    section {
        padding: 4rem 1rem; 
    }

    /* Mobil Menü */
    .menu-toggle {
        display: flex;
    }
    #main-header ul {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 80%; 
        height: 100vh;
        background: var(--secondary-color); 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    #main-header ul.nav-active {
        right: 0; 
    }
    #main-header ul li {
        margin: 1.5rem 0;
    }
    #main-header ul li a,
    #main-header.scrolled ul li a {
        font-size: 1.2rem;
        color: var(--accent-color); /* Mobil menü hep koyu, linkler hep açık */
    }
    #main-header ul li a:hover,
    #main-header ul li a.active {
        color: var(--primary-color);
        transform: scale(1.1);
    }
    .menu-toggle.active .bar {
        background: var(--accent-color); /* X ikonunun rengi */
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Diğer Bölümler */
    #contact .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    #contact .map {
        order: -1; /* Haritayı üste al */
        height: 300px; 
    }
    
    /* Hizmetleri 1'li gride düşür */
    #services .services-grid {
        grid-template-columns: 1fr;
    }

    /* Lightbox Mobil */
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.8rem;
        padding: 0.5rem;
    }
    .lightbox-prev { left: -30px; }
    .lightbox-next { right: -30px; }
    
    .lightbox-close {
        font-size: 30px;
        top: -10px;
        right: 5px;
        background: rgba(0,0,0,0.3);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.9rem;
    }
    #home .content h1 {
        font-size: 2.5rem;
    }
    #home .content p {
        font-size: 1.2rem;
    }
    .btn-primary, .btn-secondary {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
    #gallery .gallery-grid {
        grid-template-columns: 1fr; 
    }
    .floating-buttons a {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }
}