/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: #000;
    overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img,
.hero-slide video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
/* Alt koyulaştırma gradyanı */
.hero-vignette {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0) 50%,
        rgba(0,0,0,0.45) 85%,
        rgba(0,0,0,0.75) 100%
    );
}

/* ── Hero alt info bar (Biz Kimiz / metin / Instagram) ── */
.hero-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    background: #120522;
    border-top: none;
    padding: 0 80px 0 83px;
    height: 130px;
    gap: 0;
}
.hero-bar-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}
.hero-bar-cell:first-child {
    width: 122px;
}
.hero-bar-cell:nth-child(3) {
    flex: 0 0 auto;
    width: 560px;
    padding-left: 41px;
}
.hero-bar-spacer {
    flex: 1;
}
.hero-bar-cell:last-child {
    flex-shrink: 0;
}
.hero-bar-divider {
    width: 1px;
    height: 40px;
    background: rgba(217,217,217,0.2);
    flex-shrink: 0;
}
.hero-bar-label {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #D9D9D9;
    margin-bottom: 0;
    white-space: nowrap;
}
.hero-bar-desc {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #D9D9D9;
    line-height: 1.3;
    letter-spacing: 0;
}
.hero-bar-instagram {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(217,217,217,0.9);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    opacity: 0.9;
}
.hero-bar-instagram:hover { color: #fff; opacity: 1; }
.hero-bar-instagram .ext { font-size: 12px; }

/* Slider dots (üst sağ köşe) */
.hero-dots {
    position: absolute;
    top: 36px; right: 36px;
    z-index: 10;
    display: flex; gap: 8px;
}
.hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none; cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.hero-dot.active { background: #fff; transform: scale(1.25); }

/* ═══════════════════════════════════════════════════
   SON İŞLERİMİZ  —  DECK STACK (scroll-driven)
═══════════════════════════════════════════════════ */
.section-projects {
    background: #fff;
    position: relative;
}

/* Scroll alanı — JS ile yükseklik hesaplanacak */
.projects-scroll-range {
    position: relative;
}

.projects-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0 125px;
    height: 100%;
}

/* Sol: sticky viewport — kartlar burada üst üste biner */
.projects-deck-area {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

/* Kart konteyneri — kartlar absolute olarak üst üste */
.projects-deck-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Her kart absolute, JS ile translateY kontrol edilir */
.project-card-deck {
    position: absolute;
    left: 0;
    width: 100%;
    max-width: 1100px;
    will-change: transform;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.18));
}

.project-card {
    display: grid;
    grid-template-columns: 68% 48%;
    border-radius: 20px;
    overflow: hidden;
    height: 565px;
    text-decoration: none;
    color: #fff;
    position: relative;
}

.project-card.red-card  { background: #C41027; }
.project-card.blue-card { background: #1910C4; }
.project-card.dark-card { background: #BB2A06; }

/* Resim alanı — Figma: 601×462, radius 21, kart içinde ortalı */
.project-card-img {
    position: relative;
    overflow: hidden;
    border-radius: 21px;
    margin: 52px 16px 52px 54px;
}
.project-card-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.04); }
.project-card-img-empty {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.15); font-size: 56px;
}

/* Sağ taraf: başlık üstte, açıklama ortada, ok altta */
.project-card-body {
    padding: 52px 36px 52px 48px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.project-card-header {
    margin-bottom: 0;
}
.project-card-cat {
    font-family: 'Rubik', sans-serif;
    font-size: 20px; font-weight: 400;
    letter-spacing: 0;
    opacity: 0.7; margin-bottom: 0; margin-top: 6px;
    text-transform: none;
}
.project-card-title {
    font-family: 'Rubik', sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 0;
}
.project-card-desc {
    font-family: 'Rubik', sans-serif;
    font-size: 20px; font-weight: 400; opacity: 1; line-height: 1.19;
    white-space: pre-line;
    margin: 0;
}
.project-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1.33px solid rgba(255,255,255,1);
    transition: background 0.25s, border-color 0.25s;
    color: #fff;
    margin-top: 0;
    align-self: flex-start;
}
.project-card:hover .project-card-arrow {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
}

/* ── Sticky Sidebar (sağ) ── */
.projects-sidebar {
    width: 200px;
    flex-shrink: 0;
    padding-left: 40px;
    padding-top: calc((100vh - 565px) / 2);
    box-sizing: border-box;
    position: sticky;
    top: 0;
    height: 100vh;
}
.projects-sidebar-inner {
    position: relative;
}
.sidebar-title-block {
    position: relative;
    padding-left: 44px;
    margin-left: 45px; /* ← bunu değiştirerek sadece "Son İşlerimiz" + çizgiyi sağa/sola taşı */
    height: 168px;
    display: flex;
    align-items: center;
}
.sidebar-title-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 168px;
    background: #C41027;
}
.projects-sidebar h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #C41027;
    letter-spacing: 0;
    line-height: 1.12;
    margin-top: 0;
    margin-bottom: 0;
}
.projects-sidebar .view-all {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    color: #C41027;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 21px;
    font-weight: 400;
    margin-left: 45px; /* ← sağa/sola kaydırmak için değiştir */
    margin-top: 138px;
    transition: gap 0.2s;
}
.projects-sidebar .view-all:hover { gap: 28px; }

/* ═══════════════════════════════════════════════════
   HİZMETLERİMİZ — FIGMA CAROUSEL
═══════════════════════════════════════════════════ */
.section-services {
    padding: 80px 0 120px;
    background: #fff;
    overflow: hidden;
    overflow-x: clip;
    position: relative;
    z-index: 400;
}

/* Header */
.srv-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 0 125px;
}
/* Çift sınıf → .srv-header-link'in display:inline-flex kuralını ezer */
.srv-header-link.srv-header-link-mobile { display: none; }
.srv-header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
}
.srv-header-line {
    width: 2px;
    height: 165px;
    background: var(--red);
    flex-shrink: 0;
}
.srv-header-title {
    font-size: 40px;
    font-weight: 400;
    color: var(--red);
    line-height: 1;
    letter-spacing: 0;
}
.srv-header-link {
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 400;
    color: var(--red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.06em;
    transition: gap 0.25s;
}
.srv-header-link:hover { gap: 18px; }

/* Content row */
.srv-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 125px 0;
}
@media (min-width: 1025px) {
    .srv-content {
        grid-template-columns: 270px 1fr;
        gap: 80px;
        padding: 90px 125px 0;
        align-items: start;
    }
}

/* Left text panel */
.srv-text {
    display: flex;
    gap: 22px;
}
@media (min-width: 1025px) {
    .srv-text { margin-top: 120px; }
}
.srv-text-line {
    margin-top: 6px;
    width: 2px;
    height: 127px;
    background: #442D84;
    flex-shrink: 0;
    border-radius: 0;
}
.srv-text-title {
    font-size: 24px;
    font-weight: 400;
    color: #442D84;
    line-height: normal;
    letter-spacing: 0;
    margin-bottom: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.srv-text-desc {
    font-size: 20px;
    font-weight: 300;
    color: #442D84;
    line-height: normal;
    letter-spacing: 0.04em;
    max-width: 280px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Controls */
.srv-text-body {
    min-height: 460px;
}
.srv-controls {
    display: flex;
    gap: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
}
.srv-controls button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1.33px solid rgba(0,0,0,0.35);
    background: transparent;
    color: rgba(0,0,0,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.srv-controls button:hover {
    border-color: rgba(0,0,0,0.7);
    color: rgba(0,0,0,0.9);
}

/* Right column wrapper */
.srv-right-col {
    position: relative;
}
.srv-right-top {
    position: absolute;
    top: 0px;
    right: -35px;
    z-index: 50;
}
.srv-right-col .srv-controls {
    bottom: 10px;
    left: -120px;
    z-index: 50; /* kartların (max z:30) üzerinde kalır, tıklanabilir */
}

/* Mobile title row (title + controls side by side) */
.srv-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.srv-controls-mobile { display: none; }

/* Right gallery / carousel stage */
.srv-stage {
    position: relative;
    height: 420px;
    overflow: visible;
}
@media (min-width: 1025px) {
    .srv-stage { height: 560px; }
}

.srv-card {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 34px 100px rgba(0,0,0,0.18);
    transition: left 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
                width 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
                height 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
                top 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
                opacity 0.55s ease;
    will-change: left, width, height, top, opacity;
}
/* Masaüstü: inner wrapper kartı tamamen kaplar, resim üzerini örter, yazı gizli */
.srv-card-inner {
    position: absolute;
    inset: 0;
}
.srv-card-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.srv-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.srv-card-body { display: none; }
.srv-card-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ddd, #eee);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 48px;
}

/* ── Mobile Projects Header (masaüstünde gizli) ── */
.projects-mobile-header {
    display: none;
    align-items: flex-start;
    justify-content: space-between;
    padding: 40px 20px 16px;
    background: #fff;
}
.projects-mobile-header .pmt-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.projects-mobile-header .pmt-line {
    width: 3px;
    height: 56px;
    background: #C41027;
    flex-shrink: 0;
}
.projects-mobile-header h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #C41027;
    line-height: 1.1;
    margin: 0;
}
.projects-mobile-header .pmt-link {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #C41027;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
    white-space: nowrap;
    transition: gap 0.2s;
}
.projects-mobile-header .pmt-link:hover { gap: 10px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .projects-sidebar { display: none; }
    .projects-layout { padding: 0 48px; }
    .project-card-deck { max-width: 100%; }
}
@media (max-width: 768px) {
    /* Hero bar — mobil */
    .hero-bar {
        flex-direction: row;
        padding: 0 16px;
        height: 100px;
        gap: 0;
        align-items: center;
    }
    .hero-bar-cell:first-child { width: auto; flex-shrink: 0; }
    .hero-bar-cell:nth-child(3) { width: auto; flex: 1; padding-left: 12px; }
    .hero-bar-divider { width: 1px; height: 40px; flex-shrink: 0; margin: 0 12px; }
    .hero-bar-spacer { display: none; }
    .hero-bar-label { font-size: 11px; font-weight: 500; white-space: nowrap; }
    .hero-bar-desc { font-size: 10px; line-height: 1.4; letter-spacing: 0; }
    .hero-bar-instagram { font-size: 11px; white-space: nowrap; }

    /* Projects: mobil başlık sticky — scroll sırasında üstte sabit kalır */
    .projects-mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 50;
        background: #fff;
    }
    .projects-layout { padding: 0 26px; }
    .project-card-deck { max-width: 100%; filter: none; }
    /* Mobil kart: Figma — kompakt, landscape */
    .project-card {
        grid-template-columns: 62% 38%;
        height: 240px;
        border-radius: 20px;
        align-items: stretch;
    }
    .project-card-img {
        height: calc(240px - 24px);
        align-self: center;
        margin: 12px 8px 12px 12px;
        border-radius: 14px;
    }
    .project-card-body {
        padding: 14px 12px 14px 8px;
        justify-content: space-between;
        gap: 0;
    }
    .project-card-header { display: flex; flex-direction: column; }
    .project-card-title { font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
    .project-card-cat { font-size: 12px; font-weight: 400; margin-top: 3px; opacity: 0.85; }
    .project-card-desc { font-size: 12px; font-weight: 400; line-height: 1.3; margin: 0; }
    .project-card-arrow { width: 30px; height: 30px; border-width: 1px; align-self: flex-start; }

    /* Services — mobile layout */
    .srv-header { padding: 20px 20px 0; align-items: flex-start; gap: 0; }
    .srv-header-left { gap: 14px; }
    .srv-header-title { font-family: 'Rubik', sans-serif; font-size: 16px; font-weight: 300; line-height: 0.82; letter-spacing: 0; color: #C41027; margin: 0; }
    .srv-header-line { height: 64px; }
    .srv-header-link.srv-header-link-mobile { display: inline-flex; font-family: 'Rubik', sans-serif; font-size: 16px; font-weight: 300; line-height: 0.82; letter-spacing: 0; color: #C41027; padding-top: 60px; }
    /* carousel yatay padding yok → sol/sağ peek görünür */
    .srv-content { display: flex; flex-direction: column; padding: 0; gap: 0; }
    .srv-right-col { order: -1; margin-top: 70px; }
    .srv-right-top { display: none; }
    .srv-right-col > .srv-controls { display: none; }
    .srv-controls-mobile { display: flex; flex-shrink: 0; position: static; gap: 8px; }
    .srv-stage { height: 310px; }
    /* overflow-x: clip → yatay taşmayı keser ama scroll container oluşturmaz, peek görünür kalır */
    .section-services { overflow-x: clip; overflow-y: visible; padding: 0 0 200px; }
    /* Kart: sadece resim göster (masaüstü gibi) */
    .srv-card { background: #000; border-radius: 12px; overflow: hidden; }
    .srv-card-inner { position: absolute; inset: 0; display: block; padding: 0; }
    .srv-card-img-wrap { position: absolute; inset: 0; width: 100%; border-radius: 0; overflow: hidden; }
    .srv-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .srv-card-body { display: none; }
    /* Metin: carousel altında göster */
    .srv-text { display: flex; padding: 28px 20px 0; gap: 0; }
    .srv-text-line { display: none; }
    .srv-text-body { min-height: unset; display: flex; flex-direction: column; gap: 12px; }
    .srv-title-row { margin-bottom: 0; align-items: center; }
    .srv-text-title { font-size: 22px; margin-bottom: 0; padding-bottom: 14px; border-bottom: 1.5px solid #C41027; }
    .srv-text-desc { max-width: 100%; font-size: 13px; line-height: normal; letter-spacing: 0.04em; margin: 0; }
}

