/* ============================================= */
/* TEMEL AYARLAR VE DEĞİŞKENLER */
/* ============================================= */
:root {
    /* HYBRID CANLI + SOFT PALET */
    --primary-color: #1B2540;      /* Lacivert-gri: güvenli, kurumsal, soft */
    --secondary-color: #FF6B4A;    /* Canlı ama yumuşak mercan turuncu (CTA, vurgular) */
    --accent-color: #1ABC9C;       /* Soft camgöbeği/teal (ikonlar, küçük vurgular) */
    --accent-soft: #FFE9DD;        /* Çok açık mercan arka plan (soft alanlar) */
    --dark-color: #202124;         /* Modern koyu metin */
    --light-color: #F3F4F6;        /* Açık gri arka plan */
    --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, transform 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

.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: linear-gradient(120deg, rgba(139, 0, 0, 0.75), 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, transform 0.2s ease;
}
.slider-nav:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.05);
}
.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(27, 37, 64, 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(139, 0, 0, 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, border-color 0.3s ease; }
.service-card-full:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--secondary-color); }
.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, box-shadow 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 2px rgba(255, 107, 74, 0.18); }
.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; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader img {
    width: 200px; 
    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Ü */
/* ============================================= */
.header-transparent {
    background-color: transparent;
    position: absolute;
    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);
}

.main-header.scrolled {
    position: fixed;
    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);
    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);
}

.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: var(--accent-soft);
}

.partners-slider .swiper-wrapper {
    align-items: center;
}

.partners-slider .swiper-slide {
    text-align: center;
    height: 100px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    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;
}

/* ============================================= */
/* MÜŞTERİ YORUMLARI (TESTIMONIALS) */
/* ============================================= */
.testimonials-section {
    background-color: #fff;
}

.rating-summary {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.rating-stars i {
    color: #FFC107;
    margin: 0 1px;
    font-size: 1.1rem;
}

.rating-text {
    font-size: 0.95rem;
    color: #666;
}

/* Swiper alanı */
.testimonials-slider {
    margin-top: 35px;
    padding-bottom: 50px; /* pagination için boşluk */
}

.testimonials-slider .swiper-slide {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.testimonial-card {
    max-width: 480px;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--secondary-color);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark-color);
}

.testimonial-city {
    font-size: 0.9rem;
    color: #777;
}

.testimonial-rating {
    font-size: 0.9rem;
    color: #FFC107;
}

.testimonial-rating i {
    margin-right: 1px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.testimonial-tag {
    margin-top: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--secondary-color);
    font-weight: 600;
}

.testimonial-quote {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 3rem;
    color: rgba(229, 57, 53, 0.12);
}

/* Swiper ok ve pagination (isteğe bağlı görsel ayar) */
.testimonials-slider .swiper-button-prev,
.testimonials-slider .swiper-button-next {
    color: var(--primary-color);
}

.testimonials-slider .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.testimonials-slider .swiper-pagination-bullet-active {
    background: var(--secondary-color);
}
