/* ================================================================
   SITE COMMON — Tüm sayfalarda kullanılan ortak stiller
   ================================================================ */

/* ── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    cursor: none;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body {
        cursor: default;
    }

    #cursor,
    #cursor-ring {
        display: none;
    }
}

/* ── Custom Cursor ─────────────────────────────────────────────── */
#cursor {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .3s, height .3s;
    mix-blend-mode: difference;
}

#cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: .65;
    mix-blend-mode: difference;
}

/* ── Scroll Reveal ─────────────────────────────────────────────── */
.rv {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .85s cubic-bezier(.16, 1, .3, 1),
        transform .85s cubic-bezier(.16, 1, .3, 1);
}

.rv.d1 {
    transition-delay: .1s;
}

.rv.d2 {
    transition-delay: .22s;
}

.rv.d3 {
    transition-delay: .35s;
}

.rv.d4 {
    transition-delay: .48s;
}

.rv.on {
    opacity: 1;
    transform: translateY(0);
}

/* ── Ghost Text Strokes ────────────────────────────────────────── */
.ghost,
.ghost-text {
    -webkit-text-stroke: 1px rgba(110, 23, 32, 0.082);
    color: transparent;
}

.ghost-w,
.ghost-text-light {
    -webkit-text-stroke: 1px rgba(255, 255, 255, .04);
    color: transparent;
}

.ghost-text-white {
    -webkit-text-stroke: 1px rgba(255, 255, 255, .075);
    color: transparent;
}

/* ── Marquee ───────────────────────────────────────────────────── */
.mq-track {
    animation: marquee 24s linear infinite;
    white-space: nowrap;
}

/* ── Writing Mode ──────────────────────────────────────────────── */
.vert,
.vert-text {
    writing-mode: vertical-rl;
}

/* ── Stat Counter ──────────────────────────────────────────────── */
.stat-num {
    font-variant-numeric: tabular-nums;
}

/* ── Hero Line Overflow Clip ───────────────────────────────────── */
.hero-line,
.hline {
    display: block;
}

.hero-line span,
.hline span {
    display: block;
}

/* ── Nav Link Underline ────────────────────────────────────────── */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #6e171f;
    transition: width .35s cubic-bezier(.77, 0, .175, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #6e171f;
}

/* ── CTA Button Fill ───────────────────────────────────────────── */
.btn-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.77, 0, .175, 1);
}

.btn-fill:hover::before {
    transform: translateY(0);
}

.btn-fill span {
    position: relative;
    z-index: 1;
}

/* ── Service Row Left Bar ──────────────────────────────────────── */
.svc-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #6e171f;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .35s cubic-bezier(.77, 0, .175, 1);
}

.svc-row:hover::before {
    transform: scaleY(1);
}


.svc-row:hover {
    padding-left: 1.5rem;
}

.svc-row {
    transition: padding-left .4s cubic-bezier(.77, 0, .175, 1);
}

/* ── Scroll Line Gradient ──────────────────────────────────────── */
.scroll-line {
    background: linear-gradient(to bottom, #6e171f, transparent);
}

/* ── Portfolio Overlay ─────────────────────────────────────────── */
.pi-ov {
    background: linear-gradient(to top, rgba(110, 23, 31, .9) 0%, transparent 55%);
}

/* ── Mobile Menu ───────────────────────────────────────────────── */
.mob-menu {
    display: flex;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path .6s cubic-bezier(.77, 0, .175, 1), opacity .4s ease;
}

.mob-menu.open {
    clip-path: inset(0 0 0% 0);
    opacity: 1;
    pointer-events: auto;
}

.mob-menu>* {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .4s ease, transform .4s cubic-bezier(.16, 1, .3, 1);
}

.mob-menu.open>* {
    opacity: 1;
    transform: translateY(0);
}

.mob-menu.open>*:nth-child(1) {
    transition-delay: .15s;
}

.mob-menu.open>*:nth-child(2) {
    transition-delay: .22s;
}

.mob-menu.open>*:nth-child(3) {
    transition-delay: .29s;
}

.mob-menu.open>*:nth-child(4) {
    transition-delay: .36s;
}

.mob-menu.open>*:nth-child(5) {
    transition-delay: .43s;
}

.mob-menu.open>*:nth-child(6) {
    transition-delay: .50s;
}

.mob-menu.open>*:nth-child(7) {
    transition-delay: .57s;
}

.mob-menu.open>*:nth-child(8) {
    transition-delay: .64s;
}

@layer components {
    .site-container {
        @apply w-full px-6 md:px-12 mx-auto lg:max-w-[1300px] xl:max-w-[1500px] 2xl:max-w-[1700px];
    }
}

/* ── Container ─────────────────────────────────────────────────── */
.site-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    /* px-6 */
    padding-right: 1.5rem;
    /* px-6 */
}

@media (min-width: 768px) {

    /* md: */
    .site-container {
        padding-left: 3rem;
        /* px-12 */
        padding-right: 3rem;
        /* px-12 */
    }
}

@media (min-width: 1024px) {

    /* lg: */
    .site-container {
        max-width: 1300px;
    }
}

@media (min-width: 1280px) {

    /* xl: */
    .site-container {
        max-width: 1500px;
    }
}

@media (min-width: 1536px) {

    /* 2xl: */
    .site-container {
        max-width: 1700px;
    }
}