/* ============================================= */
/* TEMEL AYARLAR VE DEĞİŞKENLER */
/* ============================================= */
:root {
    --primary-color: #0A2B5E; /* Logonuzdaki lacivert */
    --secondary-color: #3E8DE3; /* Logonuzdaki açık mavi */
    --dark-color: #222;
    --light-color: #f4f4f4;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background: #fff;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.btn-primary {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-color);
}

/* ============================================= */
/* HEADER / NAVİGASYON */
/* ============================================= */
.main-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    height: 60px;
}

.main-header .main-nav ul {
    display: flex;
}

.main-header .main-nav ul li a {
    color: var(--dark-color);
    padding: 10px 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-header .main-nav ul li a:hover,
.main-header .main-nav ul li a.active {
    color: var(--secondary-color);
}

/* ============================================= */
/* HERO SLIDER */
/* ============================================= */
.hero-slider-container {
    position: relative;
    height: 90vh;
    overflow: hidden;
}
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}
.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-slider .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}
.hero-slider .slide .container {
    position: relative;
    z-index: 2;
}
.hero-slider .slide-content {
    max-width: 600px;
}
.hero-slider .slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-slider .slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s ease;
}
.slider-nav:hover {
    background: rgba(255,255,255,0.5);
}
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

/* ============================================= */
/* ANASAYFA BÖLÜMLERİ (Hizmetler, Projeler) */
/* ============================================= */
.services-preview { background: var(--light-color); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-item h3 { color: var(--primary-color); margin-bottom: 15px; }

.projects-preview .projects-grid, .portfolio-page .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0,0,0,0.1); }
.project-card img { width: 100%; height: 250px; object-fit: cover; display: block; }
.project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 43, 94, 0.9), transparent);
    color: #fff;
    padding: 30px 20px 20px;
}
.project-card .project-info h3 { margin: 0; font-size: 1.4rem; }
.project-card .project-info span { font-size: 0.9rem; opacity: 0.8; }
.text-center { text-align: center; }

/* ============================================= */
/* GENEL SAYFA BAŞLIĞI (Banner) */
/* ============================================= */
.page-header {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(10, 43, 94, 0.7);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: 3rem; margin-bottom: 10px; }

/* ============================================= */
/* KURUMSAL SAYFASI */
/* ============================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-content h2 { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 20px; line-height: 1.3; }
.about-content p { margin-bottom: 15px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mission-item { background: #fff; padding: 30px; border-left: 5px solid var(--secondary-color); border-radius: 5px; }
.mission-item h3 { color: var(--primary-color); margin-bottom: 15px; }

/* ============================================= */
/* PROJELER SAYFASI */
/* ============================================= */
.portfolio-filter { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 40px; gap: 15px; }
.filter-btn { background: transparent; border: none; padding: 10px 20px; font-weight: 600; font-size: 1rem; color: var(--dark-color); cursor: pointer; transition: all 0.3s ease; border-bottom: 2px solid transparent; }
.filter-btn:hover { color: var(--secondary-color); }
.filter-btn.active { color: var(--secondary-color); border-bottom-color: var(--secondary-color); }
.project-card-link { display: block; text-decoration: none; color: inherit; }

/* ============================================= */
/* PROJE DETAY SAYFASI */
/* ============================================= */
.project-title-section { text-align: center; margin-bottom: 40px; }
.project-title-section h1 { font-size: 2.8rem; color: var(--primary-color); }
.project-main-image img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.project-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-bottom: 60px; }
.project-description h2 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 20px; border-bottom: 2px solid var(--light-color); padding-bottom: 10px; }
.project-meta { background-color: var(--light-color); padding: 30px; border-radius: 10px; height: fit-content; }
.project-meta h3 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 20px; }
.project-meta ul li { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #ddd; }
.project-meta ul li:last-child { border-bottom: none; }
.project-meta ul li strong { color: var(--dark-color); }
.project-gallery h2 { text-align: center; font-size: 2.2rem; color: var(--primary-color); margin-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gallery-item img { width: 100%; border-radius: 10px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item img:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* ============================================= */
/* HİZMETLERİMİZ SAYFASI */
/* ============================================= */
.services-page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card-full { background-color: #fff; border: 1px solid #e9e9e9; padding: 40px 30px; text-align: center; border-radius: 10px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card-full:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.service-card-full .service-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 20px; }
.service-card-full h3 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 15px; }
.service-card-full p { line-height: 1.7; color: #555; }

/* ============================================= */
/* İLETİŞİM SAYFASI */
/* ============================================= */
.contact-grid { display: grid; grid-template-columns: 2fr 1.2fr; gap: 50px; }
.contact-form h3, .contact-info h3 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-family); transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary-color); }
.contact-form button { width: 100%; padding: 15px; font-size: 1.1rem; border: none; }
.contact-info p { margin-bottom: 30px; line-height: 1.7; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.contact-item i { font-size: 1.5rem; color: var(--secondary-color); margin-right: 20px; margin-top: 5px; }
.contact-item span { font-size: 1rem; line-height: 1.6; }
.map-container iframe { display: block; width: 100%; height: 450px; border: 0; }

/* ============================================= */
/* CTA BANNER VE FOOTER */
/* ============================================= */
.cta-banner { background-color: var(--primary-color); color: #fff; padding: 60px 0; text-align: center; }
.cta-banner h2 { font-size: 2.2rem; margin-bottom: 15px; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.site-footer { background-color: var(--dark-color); color: #ccc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-widget .footer-logo { height: 50px; margin-bottom: 20px; }
.footer-widget h4 { font-size: 1.2rem; color: #fff; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-widget h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: var(--secondary-color); }
.footer-widget p { line-height: 1.8; }
.footer-widget ul li { margin-bottom: 12px; display: flex; align-items: flex-start; }
.footer-widget ul li a { color: #ccc; transition: color 0.3s ease; }
.footer-widget ul li a:hover { color: #fff; }
.footer-widget ul li i { margin-right: 10px; color: var(--secondary-color); margin-top: 5px; }
.footer-bottom { border-top: 1px solid #444; padding: 20px 0; text-align: center; color: #aaa; }

/* ============================================= */
/* SABİT CTA BUTONLARI */
/* ============================================= */
.floating-cta-container { position: fixed; bottom: 30px; right: 30px; z-index: 1001; display: flex; flex-direction: column; align-items: center; }
.cta-main-button { width: 60px; height: 60px; background-color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 1.8rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.3s ease; }
.floating-cta-container:hover .cta-main-button { transform: rotate(360deg); }
.cta-options { margin-bottom: 15px; display: flex; flex-direction: column; gap: 15px; opacity: 0; transform: scale(0); transition: all 0.3s ease; transform-origin: bottom center; }
.floating-cta-container:hover .cta-options { opacity: 1; transform: scale(1); }
.cta-option { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 1.6rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: transform 0.2s ease; }
.cta-option:hover { transform: scale(1.1); }
.cta-option.whatsapp { background-color: #25D366; }
.cta-option.phone { background-color: var(--secondary-color); }
.fa-whatsapp { font-family: 'Font Awesome 6 Brands'; }

/* ============================================= */
/* MOBİL UYUMLULUK (Responsive) */
/* ============================================= */
@media (max-width: 820px) {
    .about-grid, .mission-grid, .project-detail-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-header .container { flex-direction: column; gap: 1rem; }
    .main-header .main-nav ul { flex-wrap: wrap; justify-content: center; }
}

/* ============================================= */
/* SAYFA YÜKLEME ANİMASYONU (PRELOADER) */
/* ============================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Arka plan rengi */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Her şeyin en üstünde olmalı */
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader img {
    width: 200px; /* Logonun boyutu */
    animation: pulse 1.5s ease-in-out infinite;
}

/* Yükleme bittiğinde preloader'ı gizlemek için kullanılacak class */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Logonun "nefes alıp verme" animasyonu */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* ============================================= */
/* DİNAMİK NAVİGASYON MENÜSÜ (DÜZELTİLMİŞ) */
/* ============================================= */
.main-header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Şeffaf menünün başlangıç hali */
.header-transparent {
    background-color: transparent;
    position: absolute; /* Fixed yerine absolute kullanıyoruz */
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-transparent .main-nav ul li a {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.header-transparent .main-nav ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Sayfa aşağı kaydırıldığında eklenecek olan yeni stil */
.main-header.scrolled {
    position: fixed; /* Kaydırınca sabitlenir */
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ddd;
}

.main-header.scrolled .main-nav ul li a {
    color: var(--dark-color); /* Linkleri orijinal rengine döndür */
    text-shadow: none;
}

.main-header.scrolled .main-nav ul li a:hover,
.main-header.scrolled .main-nav ul li a.active {
    color: var(--secondary-color);
    opacity: 1;
}
/* ============================================= */
/* RAKAMLARLA BİZ (ANİMASYONLU SAYAÇLAR) */
/* ============================================= */
.stats-section {
    background-color: var(--light-color); /* Açık gri arkaplan */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-item .counter {
    font-size: 2.8rem;
    font-weight: 700;
    display: block;
    color: var(--primary-color);
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
}
/* ============================================= */
/* İŞ ORTAKLARI BÖLÜMÜ (LOGO CAROUSEL) */
/* ============================================= */
.partners-section {
    background-color: #fff;
}

.partners-slider .swiper-wrapper {
    align-items: center; /* Logoları dikeyde ortalar */
}

.partners-slider .swiper-slide {
    text-align: center;
}

.partners-slider img {
    max-height: 80px; /* Tüm logoların maksimum yüksekliğini sabitler */
    width: auto;
    filter: grayscale(100%); /* Logoları gri yapar */
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partners-slider img:hover {
    filter: grayscale(0%); /* Üzerine gelince renkli olur */
    opacity: 1;
}
/* ============================================= */
/* TERCİH EDİLEN MARKALAR BÖLÜMÜ (DÜZELTİLMİŞ) */
/* ============================================= */
.partners-section {
    background-color: var(--light-color);
}

.partners-slider .swiper-wrapper {
    align-items: center; /* Dikeyde ortalamayı koru */
}

.partners-slider .swiper-slide {
    text-align: center;
    /* Her logo için bir kutu yüksekliği belirleyelim */
    height: 100px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners-slider img {
    max-width: 100%; /* Resim kendi kutusunun genişliğini aşamaz */
    max-height: 100%; /* Resim kendi kutusunun yüksekliğini aşamaz */
    object-fit: contain; /* Resmin oranını bozmadan kutuya sığdırır (EN ÖNEMLİ KISIM) */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partners-slider .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}