/* ================================================
   REFERANSLAR.CSS — Gündüz Power
   Premium Dark · Gold Accent · Marquee + Grid
   ================================================ */

/* ---- SECTION ---- */
.referanslar {
    position: relative;
    padding: 140px 0 100px;
    background: #080808;
    border-top: 1px solid #1a1a1a;
    overflow: hidden;
    font-family: var(--font-body);
}

/* Üst altın çizgi */
.referanslar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-accent) 30%,
            var(--color-accent) 70%,
            transparent 100%);
    opacity: 0.5;
}

/* Arka plan ışıma */
.referanslar::after {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(245, 168, 0, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.ref__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

/* ---- ARKA PLAN DESEN ---- */
.ref__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ref__bg-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 168, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 168, 0, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}

/* ---- HEADER ---- */
.ref__header {
    text-align: center;
    margin-bottom: 80px;
}

.ref__tag {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 28px;
}

.ref__tag-line {
    display: block;
    width: 32px;
    height: 1px;
}

.ref__tag-line:first-child {
    background: linear-gradient(90deg, transparent, var(--color-accent));
}

.ref__tag-line:last-child {
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.ref__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.0;
    color: var(--color-text);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.ref__title em {
    font-style: normal;
    color: var(--color-accent);
    display: block;
    position: relative;
}

/* Altın altı çizgi */
.ref__title em::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.ref__subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
    color: var(--color-muted);
    max-width: 580px;
    margin: 28px auto 0;
}

/* ---- MARQUEE ---- */
.ref__marquee-wrap {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Fade kenarları */
.ref__marquee-wrap::before,
.ref__marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.ref__marquee-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #080808 0%, transparent 100%);
}

.ref__marquee-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #080808 0%, transparent 100%);
}

.ref__marquee {
    overflow: hidden;
    padding: 12px 0;
    border-top: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
}

.ref__marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee-left 35s linear infinite;
}

.ref__marquee-track--reverse {
    animation: marquee-right 32s linear infinite;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.ref__marquee-wrap:hover .ref__marquee-track {
    animation-play-state: paused;
}

/* ---- LOGOLAR RENKLİ ---- */
.ref__logo-item img {
    width: auto;
    height: 100%;
    max-width: 140px;
    object-fit: contain;
    filter: none !important;
    transition: transform 0.35s;
}

.ref__marquee-wrap:hover .ref__logo-item img {
    filter: none !important;
    transform: none !important;
}

.ref__card-logo img {
    max-width: 80%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none !important;
    transition: transform 0.35s;
}

.ref__card:hover .ref__card-logo img {
    filter: none !important;
    transform: none !important;
}

.ref__logo-item span,
.ref__card span {
    display: none;
}

/* ---- DIVIDER ---- */
.ref__divider {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 72px 0 56px;
}

.ref__divider-line {
    flex: 1;
    height: 1px;
}

.ref__divider-line:first-child {
    background: linear-gradient(90deg, transparent, #2a2a2a);
}

.ref__divider-line:last-child {
    background: linear-gradient(90deg, #2a2a2a, transparent);
}

.ref__divider-text {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-muted);
    white-space: nowrap;
}

/* ---- KATEGORİ GRID ---- */
.ref__categories {
    display: flex;
    flex-direction: column;
    gap: 56px;
    margin-bottom: 80px;
}

.ref__cat-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ref__cat-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #2a2a2a, transparent);
}

.ref__cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1px;
    background: #161616;
    border: 1px solid #161616;
}

/* ---- LOGO KARTI ---- */
.ref__card {
    background: #0d0d0d;
    height: 160px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    cursor: default;
}

.ref__card::before,
.ref__card::after {
    display: none;
    /* Hover altın ışık ve çizgi kaldırıldı */
}

.ref__card-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- CTA ---- */
.ref__cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 50px 60px;
    position: relative;
    z-index: 2;
}

.ref__cta-text strong {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.ref__cta-text span {
    font-size: 15px;
    color: var(--color-muted);
}

.ref__cta-btn {
    position: relative;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hi));
    color: #080808;
    padding: 18px 42px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ref__cta-btn::after {
    display: none;
    /* Hover ışık kaldırıldı */
}

/* ---- SCROLL REVEAL ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .ref__container {
        padding: 0 32px;
    }

    .ref__cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .referanslar {
        padding: 80px 0 60px;
    }

    .ref__container {
        padding: 0 20px;
    }

    .ref__cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ref__card {
        height: 130px;
        padding: 16px;
    }

    .ref__cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }

    .ref__logo-item {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .ref__cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}