@font-face {
    font-family: 'TasarimciSans';
    src: url('fonts/tasarimcisans_400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TasarimciSans';
    src: url('fonts/tasarimcisans_700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #fafafa;
    --text-color: #000000;
    --heading-color: #ff4b33;
    --border-color: #bebebe;
    --card-bg: #fafafa;
    --card-hover-bg: #f4f4f4;
    --scrollbar-thumb: rgba(0, 0, 0, 0.3);
}

html.dark-mode {
    --bg-color: #141414;
    --text-color: #ffffff;
    --heading-color: #ff4b33;
    --border-color: #505050;
    --card-bg: #141414;
    --card-hover-bg: #1f1f1f;
    --scrollbar-thumb: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: auto;
}

html.smooth-scroll {
    scroll-behavior: smooth;
}

@media (max-width: 1050px) {
    html {
        font-size: 13.6px;
    }

    body {
        padding: 2rem 2rem 4rem 2rem;
    }
}

@media (max-width: 750px) {
    html {
        font-size: 11.2px;
    }

    body {
        padding: 1rem 1rem 4rem 1rem;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'TasarimciSans', sans-serif;
    padding: 2rem 2rem 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    overflow-x: hidden;
}

body.preload {
    opacity: 0;
    pointer-events: none;
}

.container {
    max-width: 58rem;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* HEADER */
.header-content {
    margin-bottom: 4rem;
    border-bottom: none;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 3rem;
}

.site-logo {
    height: 4rem;
    width: auto;
    display: block;
}

/* TYPOGRAPHY */
.who-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.who-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero-bio {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bio-aka {
    font-size: 1rem;
    color: var(--border-color);
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- SLIDER ENGINE --- */
.slider-wrapper {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.slider-window {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    overflow: visible;
    /* BORDER CLIPPING FIX: Let borders breathe, wrapper will do the final crop */
    position: relative;
    cursor: default;
}

@media (max-width: 1050px) {
    .slider-window {
        cursor: grab;
    }

    .slider-window:active {
        cursor: grabbing;
    }
}




.slider-track {
    display: flex;
    height: 100%;
    gap: 1rem;
    width: max-content;
    will-change: transform;
    align-items: flex-start;
}

/* --- NAV ARROWS --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.slider-wrapper:hover .nav-btn {
    opacity: 0.3;
    pointer-events: auto;
}

.nav-btn:hover {
    opacity: 1 !important;
    pointer-events: auto;
}

.slider-wrapper.is-interacting .nav-btn {
    opacity: 0.3;
    pointer-events: auto;
}

.nav-left {
    left: 0;
}

.nav-right {
    left: 26rem;
    /* 29rem - 3rem arrow width */
}

#gallery-wrapper .nav-right {
    left: 55rem;
    /* 58rem - 3rem arrow width */
}

#services-wrapper .nav-right {
    left: 23rem;
    /* 26rem - 3rem arrow width */
}

#reviews-wrapper .nav-right,
#firms-wrapper .nav-right {
    left: 26rem;
    /* 29rem - 3rem arrow width */
}




/* --- DOTS (GÜNCELLENDİ: Text Color & Opacity) --- */
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    z-index: 30;
    /* Butonların da üzerinde olduğundan emin ol */
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
    /* Tıklama alanını genişletmek için */
    margin: 0;
    flex-wrap: wrap;
    pointer-events: auto;
    /* Tıklanabilirliği kesinleştir */
}

#gallery-wrapper .slider-dots {
    width: 100%;
}

#services-wrapper .slider-dots {
    width: 26rem;
}

#reviews-wrapper .slider-dots {
    width: 29rem;
}

#firms-wrapper .slider-dots {
    width: 29rem;
    bottom: 1rem;
}

.dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: none !important;
    cursor: default;
    /* Artık üzerine gelince değil, kutuya gelince değişiyor */
    padding: 0;
    position: relative;

    /* VARSAYILAN (Kutu üzerinde değilken) */
    background-color: var(--text-color);
    opacity: 0.15 !important;
    /* Pasif Dot: %15 */
    transition: opacity 0.3s ease-in-out;
}

.dot.active {
    opacity: 0.50 !important;
    /* Aktif Dot: %50 */
}

/* KUTU ÜZERİNE GELİNDE (Hover Slider Wrapper veya Mobil Etkileşim) */
.slider-wrapper:hover .dot,
.slider-wrapper.is-interacting .dot {
    opacity: 0.30 !important;
    /* Pasif Hover: %30 */
}

.slider-wrapper:hover .dot.active,
.slider-wrapper.is-interacting .dot.active {
    opacity: 1 !important;
    /* Aktif Hover: %100 */
}

/* GLOBAL THEME SYNC (İkonlar ve diğer inversiyonlar) */
.auto-invert {
    filter: invert(1);
    /* Light mode = Siyah ikon */
    transition: filter 0.3s ease;
}

html.dark-mode .auto-invert {
    filter: none;
    /* Dark mode = Beyaz ikon */
}

/* SMART CONTRAST (Galeri Dinamik Renkler) */
/* Koyu Resim Arka Planı (Beyaz İkonlar) */
#gallery-wrapper[data-image-brightness="dark"] .auto-invert {
    filter: none !important;
}

#gallery-wrapper[data-image-brightness="dark"] .dot {
    background-color: #ffffff !important;
}

/* Aydınlık Resim Arka Planı (Siyah İkonlar) */
#gallery-wrapper[data-image-brightness="light"] .auto-invert {
    filter: invert(1) !important;
}

#gallery-wrapper[data-image-brightness="light"] .dot {
    background-color: #000000 !important;
}

/* Galeri kontrolleri için genel temizlik */
#gallery-wrapper .nav-btn,
#gallery-wrapper .nav-btn img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#gallery-wrapper .dot {
    margin: 0;
    border: none !important;
}

/* --- GALERİ --- */
#gallery-wrapper .slide-item {
    width: 58rem;
    max-width: calc(100vw - 4rem);
    height: auto;
    aspect-ratio: 928 / 416;
    flex-shrink: 0;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

@media (max-width: 1050px) {
    #gallery-wrapper .slide-item {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 750px) {
    #gallery-wrapper .slide-item {
        aspect-ratio: 4 / 3;
    }
}

#gallery-wrapper .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
    pointer-events: none;
}

/* --- CARDS --- */
.service-card {
    flex: 0 0 26rem;
    min-width: 26rem;
    width: 26rem;
    height: 28rem;
    background-color: transparent;
    border: 0.125rem solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    user-select: none;
}

.service-card.active {
    opacity: 1;
}

.service-icon {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: none;
    transition: filter 0.3s ease;
    pointer-events: none;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    pointer-events: none;
}

.service-desc {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
    color: var(--text-color);
    margin-bottom: 0;
    pointer-events: none;
}

.testimonial-card {
    flex: 0 0 29rem;
    min-width: 29rem;
    width: 29rem;
    min-height: 20rem;
    height: auto;
    background-color: transparent;
    border: 0.125rem solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    user-select: none;
}

.testimonial-card.active {
    opacity: 1;
}

.review-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    pointer-events: none;
}

.quote {
    font-size: 1.25rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--text-color);
    pointer-events: none;
}

.client-name {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
}

/* --- FIRMS CARD --- */
.firm-grid-slide {
    flex: 0 0 29rem;
    min-width: 29rem;
    width: 29rem;
    height: 20rem;
    background-color: transparent;
    border: 0.125rem solid var(--border-color);
    border-radius: 1rem;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: center;
    padding: 2.5rem 3rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    user-select: none;
}

.firm-grid-slide.active {
    opacity: 1;
}

.client-logo-box {
    width: 100%;
    height: 6rem;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.client-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* --- SECTIONS & TEXT --- */
section {
    margin-bottom: 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    margin-top: 0;
}

.section-text {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-link {
    color: var(--border-color);
    font-weight: 400;
    text-decoration: underline;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: var(--heading-color);
}

/* --- SOCIAL --- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 9rem);
    gap: 1rem;
    margin-bottom: 3rem;
}

.small-card {
    width: 9rem;
    height: 4rem;
    background-color: transparent;
    border: 0.125rem solid var(--border-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.small-card:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--heading-color);
}

.small-card-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.small-card-text {
    font-size: 1rem;
    font-weight: 700;
}

.process-block {
    margin-bottom: 4rem;
}

.process-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.schema-container {
    width: 100%;
    max-width: 58rem;
    padding: 0;
    width: 58rem;
    max-width: calc(100vw - 4rem);
    aspect-ratio: 928 / 416;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 1rem;
}

.schema-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: none;
    transition: filter 0.3s ease;
}

.show-on-light {
    display: block;
}

.show-on-dark {
    display: none;
}

html.dark-mode .show-on-light {
    display: none;
}

html.dark-mode .show-on-dark {
    display: block;
}

/* RESPONSIVE SCHEMA LOGIC */
.schema-img.mobile {
    display: none !important;
}

@media (max-width: 750px) {
    .schema-img.desktop {
        display: none !important;
    }

    .schema-img.mobile.show-on-light {
        display: block !important;
    }

    .schema-img.mobile.show-on-dark {
        display: none !important;
    }

    html.dark-mode .schema-img.mobile.show-on-light {
        display: none !important;
    }

    html.dark-mode .schema-img.mobile.show-on-dark {
        display: block !important;
    }
}

/* --- FOOTER --- */
footer {
    margin-top: 4rem;
    border-top: 0.125rem solid var(--border-color);
    padding-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text-content {
    width: auto;
}

footer span {
    font-size: 1rem;
    display: block;
    line-height: 1.6;
}

.footer-controls {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.clean-phone-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.clean-phone-link:hover {
    color: var(--heading-color);
}

.footer-btn {
    background: transparent;
    border: 0.125rem solid var(--border-color);
    color: var(--text-color);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 0;
}

.footer-btn:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--heading-color);
}

.footer-btn img,
.nav-btn img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

@media (max-width: 1050px) {

    /* Okların mobilde display:none engelini kaldırıyoruz */
    .nav-btn {
        display: flex !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }

    /* Mobilde hover ile okların %100 olmasını engelliyoruz */
    .slider-wrapper:hover .nav-btn {
        opacity: 0 !important;
    }

    /* Sadece etkileşim (kaydırma) anında %30 görünsün */
    .slider-wrapper.is-interacting .nav-btn {
        opacity: 0.3 !important;
    }

    /* Noktalar için de mobilde hover etkisini %30'a sabitliyoruz */
    .slider-wrapper:hover .dot {
        opacity: 0.15 !important;
    }

    .slider-wrapper.is-interacting .dot {
        opacity: 0.30 !important;
    }

    .slider-wrapper.is-interacting .dot.active {
        opacity: 1 !important;
    }
}