/* ==========================================================
   SAYFA GENELİ KAYDIRMA HASSASİYETİ (SCROLL SNAPPING)
   ========================================================== */
html {
  scroll-snap-type: y proximity;
}

.hero-section {
  padding: 15vh 0 15vh;
  position: relative;
  overflow: hidden; /* Videonun section dışına taşmasını engeller */
}

/* --- YENİ EKLENEN VİDEO VE FİLTRE STİLLERİ --- */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2; /* En arkaya alıyoruz */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65); /* Karanlık oranını buradaki 0.65 değerinden değiştirebilirsin */
  z-index: -1; /* Videonun üstünde, içeriğin altında kalır */
}

.hero-content-wrapper {
  position: relative;
  z-index: 1; /* Yazıların filtrenin üstünde net kalmasını sağlar */
}
/* -------------------------------------------- */

.hero-title {
  font-family: "Philosopher", sans-serif;
  font-size: clamp(3rem, 9vw, 11rem);
  line-height: 0.85;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  margin-top: 20px;
  letter-spacing: -2px;
  color: var(--brand-white, #fff);
}

.hero-small-text {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  max-width: 200px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: var(--text-secondary, #a3a3a3);
  text-transform: uppercase;
}

.line-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 10px 0;
}

@media (max-width: 991px) {

.hero-section {
  padding: 30vh 0 15vh;
  position: relative;
  overflow: hidden; /* Videonun section dışına taşmasını engeller */
}

  .line-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-small-text {
    text-align: center !important;
    margin-bottom: 1rem;
  }
}

/* ==========================================================
   UZMANLIK ALANLARIMIZ (SERVICES) BÖLÜMÜ - GÖRSELDEKİ YAPI
   ========================================================== */
.expertise-section {
  background-color: var(--bg-background, #000);
}

.expertise-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--brand-white, #fff);
  text-transform: uppercase;
}

.expertise-desc {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  color: var(--text-secondary, #a3a3a3);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

.expertise-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-item {
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--brand-white, #fff);
  transition: padding-left 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
  position: relative;
}

.expertise-item:hover {
  padding-left: 30px;
  color: var(--brand-white, #fff);
}

.expertise-num {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.3);
  width: 80px;
  font-weight: 300;
}

.expertise-name {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  margin: 0;
  flex-grow: 1;
  letter-spacing: -0.02em;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-icon {
  font-size: 2.5rem;
  font-weight: 300;
  opacity: 0.8;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-item:hover .expertise-icon {
  transform: translate(10px, -10px);
}

@media (max-width: 991px) {
  .expertise-item {
    padding: 2.5rem 0;
  }
  .expertise-num {
    width: 50px;
    font-size: 1rem;
  }
  .expertise-icon {
    font-size: 1.8rem;
  }
}

/* ==========================================================
   REFERANSLAR (TESTIMONIALS) BÖLÜMÜ
   ========================================================== */
.testimonials-section {
  background-color: var(--bg-background, #000);
}

.testimonial-text {
  font-family: "Philosopher", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.4;
  color: var(--brand-white, #fff);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0;
}

/* ==========================================================
   PROJECTS SHOWCASE (3 KOLONLU SİNEMATİK DÜZEN)
   ========================================================== */
.projects-showcase {
    background-color: var(--bg-background, #000);
    position: relative;
}

.layout-wrapper {
    position: relative;
    align-items: flex-start;
}

.sticky-col {
    position: sticky;
    top: 0;
    height: 100vh;
}

/* Dinamik Metin Geçiş Animasyonu */
.dynamic-text {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.dynamic-text.fade-out {
    opacity: 0;
    transform: translateY(15px);
}

.sticky-title {
    font-family: "Philosopher", sans-serif;
    font-size: clamp(2.5rem, 4vw, 5rem);
    color: var(--brand-white, #fff);
    margin: 0;
    font-weight: 500;
    text-align: center;
}

.sticky-desc {
    font-family: "Poppins", sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary, #a3a3a3);
    font-weight: 400;
    letter-spacing: 0.2em;
    line-height: 2;
}

.scroll-col {
    padding-top: 15vh;
    padding-bottom: 15vh;
}

/* ==========================================================
   VİDEO SCROLL (UTOPAI TARZI) SHOWCASE ALANI
   ========================================================== */
.projects-showcase {
    position: relative;
    overflow: visible; /* Sticky'nin çalışması için hidden olmamalı */
}

.sticky-col {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.left-sticky {
    align-items: flex-start;
}

.right-sticky {
    align-items: flex-start;
    padding-left: 3rem; /* Videodan biraz uzaklaştırmak için */
}

/* Dinamik Metin Geçiş Animasyonu */
.dynamic-text {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.dynamic-text.fade-out {
    opacity: 0;
    transform: translateY(15px);
}

/* Sol Büyük Başlık */
.sticky-title {
    font-family: 'Playfair Display', serif;
    font-size: 5vw; /* Ekrana göre dinamik devasa boyut */
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

/* Sağ Küçük Açıklama Metni */
.sticky-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    line-height: 1.6;
    color: #a0a0a0;
}

/* Orta Video Kolonu */
.project-videos-column {
    padding: 30vh 0; /* İlk video gelmeden önce ve son video bittikten sonra boşluk */
    z-index: 1;
}

.project-item {
    margin-bottom: 30vh; /* Videolar arası geniş boşluk */
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-item.is-active {
    opacity: 1;
    transform: scale(1);
}

.video-wrapper {
    width: 100%;
    margin: 0 auto;
}

.project-video {
    width: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(40%) contrast(1.1);
    transition: filter 0.8s ease;
}

.project-item.is-active .project-video {
    filter: grayscale(0%) contrast(1);
}

/* Mute Butonu */
.mute-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.mute-btn:hover i {
    color: #000;
}

.mute-btn i {
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Mobil Uyumluluk */
@media (max-width: 991px) {
    .sticky-col {
        position: relative;
        height: auto;
        top: auto;
    }
    .project-videos-column {
        padding: 2rem 0;
    }
    .project-item {
        opacity: 1;
        transform: scale(1);
        margin-bottom: 5rem;
    }
    .project-item.is-active .project-video {
        filter: grayscale(0%);
    }
    .sticky-title {
        font-size: 3rem;
    }
}

/* ==========================================================
   TRUSTED BRANDS (BİZE GÜVENEN MARKALAR)
   ========================================================== */
.trusted-brands-section {
    padding: 10vh 0;
    overflow: hidden;
    background-color: var(--bg-background, #000);
}

.badge-pill-outline {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-secondary, #a3a3a3);
    text-transform: uppercase;
}

.trusted-title {
    font-family: "Philosopher", sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--brand-white, #fff);
    text-transform: uppercase;
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.brand-logo-img {
    height: 110px;
    width: auto;
    margin: 0 60px;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.brand-logo-img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 32px;
        margin: 0 30px;
    }
}

/* ==========================================================
   ARA CTA SECTION (STÜDYO)
   ========================================================== */
.mid-cta-section {
    padding: 15vh 0;
    background-color: var(--bg-background, #000);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mid-cta-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mid-cta-label {
    font-family: "Poppins", sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text-secondary, #a3a3a3);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.mid-cta-title {
    font-family: "Philosopher", sans-serif;
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--brand-white, #fff);
    margin-bottom: 24px;
}

.mid-cta-desc {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    color: var(--brand-white, #fff);
    margin-bottom: 40px;
}

.btn-glow-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: var(--brand-white, #fff);
    color: #000;
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.btn-glow-white:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
    color: #000;
}

/* ==========================================================
   YAZILIM & WEB PROJELERİ (YATAY SCROLL BÖLÜMÜ)
   ========================================================== */
.horizontal-showcase-section {
    background-color: var(--bg-background, #000);
    position: relative;
    padding-top: 5vh;
}

.top-marquee-container {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.top-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeLinear 45s linear infinite;
}

.top-marquee-track span {
    font-family: "Philosopher", sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.20);
    white-space: nowrap;
    padding-right: 2rem;
    letter-spacing: 0.1em;
}

@keyframes marqueeLinear {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.horizontal-scroll-wrapper {
    height: 300vh;
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.left-fixed-content {
    padding-right: 40px;
    z-index: 2;
}

.section-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--brand-white, #fff);
    letter-spacing: -0.02em;
}

.btn-glow-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: #222;
    color: var(--brand-white, #fff);
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-glow-dark:hover {
    background-color: #333;
    color: var(--brand-white, #fff);
}

.right-scrolling-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.scroll-mask {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 100%);
}

.horizontal-track {
    display: flex;
    gap: 40px;
    padding-left: 20px;
    will-change: transform;
}

.h-project-card {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #111;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.h-project-card:hover .card-img-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.h-project-card h4 {
    font-family: "Poppins", sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--brand-white, #fff);
    margin-bottom: 8px;
}

.h-project-card p {
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary, #a3a3a3);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .horizontal-scroll-wrapper {
        height: auto;
    }
    .sticky-container {
        position: relative;
        height: auto;
        padding: 60px 0;
    }
    .left-fixed-content {
        padding-right: 15px;
        margin-bottom: 40px;
    }
    .scroll-mask {
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: auto;
        padding-bottom: 20px;
    }
    .h-project-card {
        flex: 0 0 300px;
    }
    .top-marquee-track span {
        font-size: 2.5rem;
    }
}

/* Ok Butonları */
.carousel-control-prev, .carousel-control-next {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--brand-white);
    opacity: 1;
}

.nav-icon {
    font-size: 1.2rem;
    color: var(--brand-white);
    transition: color 0.4s ease;
}

.carousel-control-prev:hover .nav-icon,
.carousel-control-next:hover .nav-icon {
    color: #000;
}

/* Okları biraz daha dışarı al (Ekran genişliğine göre) */
@media (min-width: 1200px) {
    .carousel-control-prev { left: -25px; }
    .carousel-control-next { right: -25px; }
}
