/* --- GENEL AYARLAR --- */
:root {
    --primary-navy: #0B2545;
    --accent-yellow: #FFB400;
    --light-blue-bg: #EAF6FB;
    --text-grey: #5E6D7E;
    --white: #ffffff;
    --border-radius-main: 20px;
    --transition: all 0.4s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #ffffff;
    color: var(--primary-navy);
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- ÇERÇEVELİ YAPI --- */
.framed-wrapper {
    position: relative;
    width: calc(100% - 60px);
    height: calc(100vh - 60px);
    margin: 30px auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-navy);
}

/* --- HEADER --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 50px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

nav ul li a:hover {
    color: var(--accent-yellow);
}

.nav-btn-header {
    background-color: var(--accent-yellow);
    color: var(--primary-navy) !important;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.nav-btn-header:hover {
    background-color: #e5a200;
    transform: none;
    box-shadow: none;
}

/* --- HERO SECTION (SCROLL / KAYAR ARKA PLAN) --- */
.hero {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg-1.png');
    background-size: cover;
    background-position: center;
    /* SADECE BURASI SCROLL */
    background-attachment: scroll;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 37, 69, 0.7), rgba(11, 37, 69, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.text-gold {
    color: var(--accent-yellow);
}

.hero p {
    font-size: 1.4rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* --- HAKKIMIZDA --- */
.about-reference {
    padding: 100px 5%;
    background-color: var(--white);
}

.container {
    max-width: 1250px;
    margin: 0 auto;
}

.about-reference .container {
    display: flex;
    gap: 70px;
    align-items: center;
}

.about-left {
    flex: 1;
}

.clean-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.about-right {
    flex: 1.1;
}

.sub-title {
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.about-right h2 {
    font-size: 3rem;
    color: var(--primary-navy);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
}

.description {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: var(--text-grey);
    line-height: 1.7;
}

.feature-blue-box {
    background-color: var(--light-blue-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.feature-blue-box ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary-navy);
}

.feature-blue-box ul li i {
    color: var(--accent-yellow);
    font-size: 1.3rem;
}

.action-area {
    display: flex;
    gap: 40px;
    align-items: center;
}

.phone-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 55px;
    height: 55px;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
    font-size: 20px;
}

.phone-text strong {
    display: block;
    font-size: 1.3rem;
    color: var(--primary-navy);
}

/* --- BUTON EFEKTİ --- */
.btn-slide-yellow {
    position: relative;
    background-color: var(--accent-yellow);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn-slide-yellow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-navy);
    z-index: -1;
    transition: width 0.4s ease-in-out;
}

.btn-slide-yellow:hover::before {
    width: 100%;
}

.btn-slide-yellow i {
    transition: transform 0.4s ease;
}

.btn-slide-yellow:hover i {
    transform: translateX(5px);
}

/* --- SERVICES (HİZMETLER) - SABİT ARKA PLAN --- */
.our-service {
    padding: 120px 5%;
    background-image: url('../img/services-bg.png');
    background-size: cover;
    background-position: center;
    /* SABİT */
    background-attachment: fixed;
    position: relative;
}

.our-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.our-service .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h3 {
    color: var(--accent-yellow);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 3.2rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-weight: 800;
}

.section-title p {
    color: var(--text-grey);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Dinamik proje grid — 2 proje varken 2 kolon */
.projects-dyn {
    grid-template-columns: repeat(min(var(--proj-count, 2), 4), 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* KART YAPISI */
.service-card-overlay {
    position: relative;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    background: #000;
    cursor: pointer;
}

.service-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.service-card-overlay:hover .service-bg-img {
    transform: scale(1.1);
    opacity: 0.5;
}

.service-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    z-index: 5;
    transform: translateY(140px);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card-overlay:hover .service-overlay-content {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(11, 37, 69, 0.9), rgba(11, 37, 69, 0.4));
}

.service-overlay-content h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hidden-content {
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
    color: #eee;
    font-size: 1rem;
    line-height: 1.6;
    min-height: 110px;
}

.service-card-overlay:hover .hidden-content {
    opacity: 1;
}

.view-more {
    color: var(--accent-yellow);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.view-more i {
    transition: transform 0.3s;
}

.view-more:hover i {
    transform: translateX(5px);
}

.service-footer-btn-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* --- NEDEN BİZ --- */
.why-choose {
    padding: 100px 5%;
    background-color: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
    max-width: 1250px;
    margin: 0 auto;
}

.why-item {
    height: 100%;
    min-height: 420px;
    transition: none;
}

.text-item {
    border: 1px solid #EAEAEA;
    padding: 50px 40px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.why-icon {
    font-size: 40px;
    color: var(--accent-yellow);
    margin-bottom: 25px;
}

.text-item h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 15px;
}

.text-item p {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.why-stats {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.why-stats strong {
    display: block;
    font-size: 2.2rem;
    color: var(--primary-navy);
    font-weight: 800;
    margin-bottom: 5px;
}

.why-stats span {
    font-size: 0.95rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-item {
    position: relative;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-overlay-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background: transparent;
    border: 0px solid rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.image-item:hover .img-overlay-effect {
    width: 90%;
    height: 90%;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* --- PROJELER BÖLÜMÜ (SABİT ARKA PLAN) --- */
.our-projects {
    padding: 120px 5%;
    /* Açık Zemin */
    background-color: #f8f9fa;
    /* SABİT GÖRSEL */
    background-image: url('../img/projects-bg.jpg');
    background-size: cover;
    background-position: center;
    /* SABİT */
    background-attachment: fixed;
    background-blend-mode: overlay;
    position: relative;
    color: var(--primary-navy);
}

.our-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Beyaz perde (Resmi açmak için) */
    background-color: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.our-projects .container {
    position: relative;
    z-index: 2;
}

/* --- CTA BÖLÜMÜ (SABİT ARKA PLAN) --- */
.build-together-cta {
    position: relative;
    background-color: #0B2545;
    /* Desen Görseli (Varsa) */
    background-image: url('../img/cta-bg-pattern.png');
    background-size: cover;
    background-position: center;
    /* SABİT */
    background-attachment: fixed;
    /* Görselin üstten ve alttan taşması için padding ve margin ayarı */
    padding-top: 100px;
    padding-bottom: 0;
    overflow: visible;
    /* Resmin taşmasına izin ver */
}

/* Hafif Mavi Gradient Overlay */
.build-together-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0B2545 30%, rgba(11, 37, 69, 0.85));
    z-index: 0;
}

.build-together-cta .container {
    position: relative;
    z-index: 2;
}

/* Sol Yazı Alanı */
.cta-content {
    color: #fff;
    padding-bottom: 100px;
    /* Alt boşluk */
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.6;
}

/* Usta Görseli (Sağ taraf) */
.cta-image {
    position: absolute;
    bottom: 0;
    /* Alt sınıra yapışık */
    right: 0;
    width: 500px;
    /* Görsel genişliği */
    z-index: 3;
}

.cta-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- YENİ BÖLÜM: S.S.S. (SIKÇA SORULAN SORULAR) --- */
.our-faqs {
    padding: 100px 5%;
    /* Hizmetler ile aynı açık mavi arkaplan */
    background-color: var(--light-blue-bg);
}

.faqs-wrapper {
    display: flex;
    gap: 70px;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
}

/* Sol Taraf: Görsel Grid */
.faqs-images {
    flex: 1;
    position: relative;
}

.faq-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.faq-img-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    /* Yuvarlak köşeler */
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
    /* Kare görsel */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Merkez İkon */
.faq-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background-color: #000;
    /* Beyazdan siyaha çevrildi */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.faq-center-icon img {
    width: 60px;
    height: auto;
    /* Logo rengini bozmadan sarı tonuna (var(--accent-yellow) yakın) çevirmek için filtre */
    filter: brightness(0) saturate(100%) invert(80%) sepia(50%) saturate(2000%) hue-rotate(350deg) brightness(110%) contrast(110%);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 80px 5% 30px;
    border-top: 5px solid var(--accent-yellow);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    /* Maps için sağ tarafı genişlettik */
    gap: 50px;
    margin-bottom: 60px;
}

.footer-info .logo img {
    height: 100px;
    /* Biraz daha büyütüldü */
    margin-bottom: 25px;
}

.footer-info p {
    color: #b0c4de;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-yellow);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #b0c4de;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #b0c4de;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--accent-yellow);
    font-size: 1.1rem;
}

.footer-map {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-navy);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom .designer {
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom .designer a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* Sağ Taraf: Accordion */
.faqs-accordion {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.accordion-item {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    transition: var(--transition);
}

.accordion-header i {
    font-size: 1.2rem;
    color: var(--text-grey);
    transition: var(--transition);
    background: var(--light-blue-bg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.accordion-body {
    display: none;
    /* Başlangıçta gizli */
    padding-top: 20px;
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.7;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
}

/* Aktif Durum (JS ile eklenir) */
.accordion-item.active {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.accordion-item.active .accordion-header h4 {
    color: var(--primary-navy);
}

.accordion-item.active .accordion-header i {
    background-color: var(--accent-yellow);
    color: var(--primary-navy);
    transform: rotate(90deg);
    /* Ok döner */
}


/* --- RESPONSIVE --- */
.hamburger {
    display: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    .about-reference .container {
        flex-direction: column;
    }

    .services-grid,
    .projects-dyn {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .framed-wrapper {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-item {
        min-height: 350px;
    }

    .cta-content h2 {
        font-size: 2.8rem;
    }

    /* Tablet ve Mobilde CTA görselini gizle */
    .cta-image {
        display: none;
    }

    .build-together-cta {
        padding-bottom: 0;
        text-align: center;
    }

    /* FAQ Responsive */
    .faqs-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .faqs-images {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
        background: rgba(0, 0, 0, 0.8);
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-navy);
        flex-direction: column;
        padding: 20px;
    }

    nav ul.active {
        display: flex;
    }

    .services-grid,
    .projects-dyn {
        grid-template-columns: 1fr !important;
    }

    .action-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .text-item {
        padding: 30px;
    }

    /* CTA Mobil */
    .cta-content h2 {
        font-size: 2.2rem;
    }

    /* (Gizleme işlemi 1024px kuralı tarafından yönetiliyor) */

    .cta-content p {
        margin: 0 auto 30px auto;
    }

    .faq-center-icon {
        width: 70px;
        height: 70px;
    }

    .faq-center-icon img {
        width: 35px;
    }

    /* Mobilde aşırı boşlukları azalt */
    .about-reference, 
    .our-service, 
    .why-choose, 
    .our-projects, 
    .our-faqs {
        padding: 70px 5%;
    }

    .build-together-cta {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 24px;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color: #128c7e;
    color: #fff !important;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        border-radius: 50%;
    }

    .whatsapp-float span {
        display: none;
    }
}