/* === 12/10 CSS MAKYAJI (TEMİZLENMİŞ & DÜZENLENMİŞ) === */

/* === TEMEL AYARLAR === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* === Animasyon Tanımları === */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === GENEL AYARLAR VE RENK PALETİ === */
:root {
    --cinar-yesil: #8BC34A;
    --koyu-yesil: #689F38;
    --koyu-gri: #333333;
    --orta-gri: #555;
    --acik-gri: #f9f9f9;
    --beyaz: #FFFFFF;
    --golge: 0 10px 30px rgba(0, 0, 0, 0.07);
    --golge-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition-hizli: all 0.3s cubic-bezier(.25,.8,.25,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--orta-gri);
    background: var(--beyaz);
    animation: pageFadeIn 0.5s ease-out;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--koyu-gri);
    font-weight: 600;
}
h2.section-title,
.category-section h2,
.why-us-section h2,
.testimonials-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}
.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    text-align: center;
}

a {
    text-decoration: none;
    color: var(--cinar-yesil);
    transition: var(--transition-hizli);
}
a:hover {
    color: var(--koyu-yesil);
}

img {
    max-width: 100%;
    height: auto;
}

/* === GENEL BÖLÜM AYARLARI (Animasyonlu) === */
.category-section,
.why-us-section,
.testimonials-section,
.cta-banner-section,
.services-section-home,
.contact-page,
.about-page-section {
    padding: 80px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
/* Farklı zamanlarda gelmeleri için küçük gecikmeler */
.why-us-section { animation-delay: 0.2s; }
.cta-banner-section { animation-delay: 0.1s; }
.testimonials-section { animation-delay: 0.2s; }
.services-section-home { animation-delay: 0.3s; }
.about-page-section { animation-delay: 0.1s; }
.contact-page { animation-delay: 0.1s; }


/* === BUTON (Genel) === */
.cta-button {
    background-color: var(--cinar-yesil);
    color: var(--beyaz) !important;
    padding: 12px 28px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
    transition: var(--transition-hizli);
}
.cta-button:hover {
    background-color: var(--koyu-yesil);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(104, 159, 56, 0.5);
}

/* === HEADER (Site Üstü) === */
.site-header {
    background: var(--beyaz);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .logo img {
    height: 50px;
    transition: transform 0.3s ease;
}
.site-header .logo:hover img {
    transform: scale(1.05);
}
.site-header .site-nav ul {
    list-style: none;
    display: flex;
}
.site-header .site-nav li {
    margin-left: 30px;
}
.site-header .site-nav a {
    color: var(--koyu-gri);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
}
.site-header .site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cinar-yesil);
    transition: var(--transition-hizli);
}
.site-header .site-nav a:hover::after,
.site-header .site-nav a.active::after {
    width: 100%;
}
.site-header .site-nav a.active {
    color: var(--cinar-yesil);
}
.site-header .header-contact {
    font-size: 17px;
    font-weight: 600;
    color: var(--koyu-gri);
}
.site-header .header-contact strong {
    color: var(--cinar-yesil);
    margin-right: 5px;
}

/* === ANA SAYFA - HERO === */
.hero {
    /* İşte sihirli satır burası. 'hero-bg.jpg' yerine 'slider.png' yazdık. */
    /* Baştaki 'linear-gradient' kısmı, resmin üzerine siyah bir tül atar ki yazılar okunsun. */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/slider.png');
    
    background-size: cover;      /* Resmi tüm alana yayar */
    background-position: center; /* Resmi ortalar */
    background-attachment: fixed; /* O havalı "Parallax" kayma efekti */
    
    /* ... (Aşağıdaki diğer satırlara dokunma) ... */
    padding: 120px 0;
    text-align: center;
    color: var(--beyaz);
}
.hero h1 {
    font-size: 48px;
    color: var(--beyaz);
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out;
}
.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 0.7s ease-out;
}
.hero .cta-button {
    animation: fadeInUp 0.8s ease-out;
}
.hero .cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--beyaz);
    margin-left: 10px;
    box-shadow: none;
}
.hero .cta-button.secondary:hover {
    background-color: var(--beyaz);
    color: var(--koyu-gri) !important;
    transform: translateY(-3px);
}

/* === ALT SAYFA BAŞLIĞI (Hakkımızda, İletişim vb.) === */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center 60%;
    background-attachment: fixed;
    color: var(--beyaz);
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}
.page-header h1 {
    color: var(--beyaz);
    font-size: 42px;
}

/* === ANA SAYFA: ÜRÜN KATEGORİ === */
.category-section {
    background: var(--beyaz);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.category-box {
    background: var(--beyaz);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-hizli);
    box-shadow: var(--golge);
}
.category-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--golge-hover);
}
.category-box .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 20px;
    color: var(--cinar-yesil);
    transition: var(--transition-hizli);
}
.category-box:hover .icon {
    transform: scale(1.2) rotate(5deg);
}
.category-box h3 {
    font-size: 22px;
    color: var(--koyu-gri);
    margin-bottom: 10px;
}

/* === ANA SAYFA / HAKKIMIZDA: NEDEN BİZ === */
.why-us-section {
    background: var(--beyaz);
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}
.why-us-item .icon {
    font-size: 45px;
    color: var(--cinar-yesil);
    margin-bottom: 20px;
}
.why-us-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* === ANA SAYFA: CTA BANNER === */
.cta-banner-section {
    padding: 60px 0;
    background: var(--cinar-yesil);
    color: var(--beyaz);
    text-align: center;
}
.cta-banner-section h2 {
    font-size: 32px;
    color: var(--beyaz);
    margin-bottom: 15px;
}
.cta-banner-section p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}
.cta-banner-section .cta-button {
    background: var(--beyaz);
    color: var(--cinar-yesil) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.cta-banner-section .cta-button:hover {
    background: var(--koyu-gri);
    color: var(--beyaz) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* === ANA SAYFA: MÜŞTERİ YORUMLARI === */
.testimonials-section {
    background: var(--acik-gri);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--beyaz);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--golge);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: var(--transition-hizli);
}
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--golge-hover);
}
.testimonial-card::before {
    content: '“';
    font-size: 60px;
    color: var(--cinar-yesil);
    line-height: 1;
    margin-bottom: -10px;
}
.testimonial-card .comment {
    font-style: italic;
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--orta-gri);
    flex-grow: 1;
}
.testimonial-card .author {
    font-weight: 600;
    font-size: 17px;
    color: var(--koyu-gri);
}

/* === ANA SAYFA: HİZMETLER === */
.services-section-home {
    background: var(--beyaz);
}
.services-grid-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.service-box-home {
    background: var(--acik-gri);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition-hizli);
}
.service-box-home:hover {
    background: var(--beyaz);
    box-shadow: var(--golge);
}
.service-box-home h3 {
    color: var(--cinar-yesil);
}

/* === HAKKIMIZDA SAYFASI === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image img {
    border-radius: 8px;
    box-shadow: var(--golge-hover);
}
.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* === İLETİŞİM SAYFASI === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h3, .contact-form-container h3 {
    font-size: 28px;
    margin-bottom: 20px;
}
.info-list {
    list-style: none;
    margin-top: 20px;
}
.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 17px;
}
.info-list .icon {
    font-size: 20px;
    margin-right: 15px;
    margin-top: 5px;
    color: var(--cinar-yesil);
}
.info-list span, .info-list a {
    display: block;
}
.info-list a {
    color: var(--orta-gri);
    transition: color 0.3s;
}
.info-list a:hover {
    color: var(--cinar-yesil);
}
.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--golge);
}
.contact-form-container {
    background: var(--acik-gri);
    padding: 40px;
    border-radius: 8px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition-hizli);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cinar-yesil);
    box-shadow: 0 0 8px rgba(139, 195, 74, 0.3);
    outline: none;
}
.form-group textarea {
    resize: vertical;
}
.contact-form .cta-button {
    width: 100%;
}

/* === FOOTER (Site Altı) === */
.site-footer {
    background: var(--koyu-gri);
    color: #ccc;
    padding-top: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.site-footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.site-footer h3 {
    color: var(--cinar-yesil);
    margin-bottom: 20px;
    font-size: 20px;
}
.footer-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}
.site-footer a {
    color: #ccc;
}
.site-footer a:hover {
    color: var(--beyaz);
    padding-left: 5px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.copyright {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid #444;
    margin-top: 40px;
    font-size: 14px;
    color: #888;
}

/* === GALERİ SAYFASI (galeri.php) === */
.gallery-page-section {
    padding: 80px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.gallery-grid {
    display: grid;
    /* Ekrana göre 3-4-5 sütun ayarlar */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--golge);
    transition: var(--transition-hizli);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resimleri kırpmadan sığdır */
    display: block;
    transition: var(--transition-hizli);
}
.gallery-item:hover {
    box-shadow: var(--golge-hover);
}
.gallery-item:hover img {
    transform: scale(1.1); /* Hover'da resme zoom */
}

/* === ANA SAYFA GALERİ (index.php) === */
.home-gallery-section {
    padding: 80px 0;
    background: var(--acik-gri);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.home-gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--golge);
    height: 150px; /* Sabit yükseklik */
}
.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-hizli);
}
.home-gallery-item img:hover {
    transform: scale(1.1);
}


/* === 12/10 CSS-ONLY LIGHTBOX (MODAL) === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none; /* :target ile açılacak */
    align-items: center;
    justify-content: center;
}
/* :target sihri burada */
.lightbox-overlay:target {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--beyaz);
    text-decoration: none;
    font-weight: bold;
    opacity: 0.7;
    transition: var(--transition-hizli);
}
.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: var(--beyaz);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition-hizli);
    padding: 0 20px;
}
.lightbox-nav:hover {
    opacity: 1;
}
.lightbox-nav.prev {
    left: 10px;
}
.lightbox-nav.next {
    right: 10px;
}


/* === MOBİL UYUMLULUK (HEPSİ BİR ARADA) === */

/* Orta Boy Ekranlar (Tabletler - 992px altı) */
@media (max-width: 992px) {
    .site-footer .container,
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Küçük Ekranlar (Telefonlar - 768px altı) */
@media (max-width: 768px) {
    /* Header */
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .site-header .site-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .site-header .site-nav li {
        margin-left: 10px;
    }
    
    /* Hero & Page Header */
    .hero { background-attachment: scroll; }
    .page-header { background-attachment: scroll; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 18px; }

    /* Tüm 2+ Sütunlu Yapıları Tek Sütuna Düşür */
    .why-us-grid,
    .testimonials-grid,
    .services-grid-home,
    .site-footer .container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Özel Ayarlar */
    .cta-banner-section h2 { font-size: 24px; }
    .about-image {
        margin-top: 30px;
    }
}