/* Hero Slider — Full Screen */

.hero-slider-wrap,
.hero-slider-wrap-mobile {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
    z-index: 1;
    --hero-nav-offset: clamp(48px, 7vh, 72px);
    --hero-projects-bottom: clamp(72px, 11vh, 128px);
    --hero-circle-size: clamp(112px, 14vmin, 179px);
    --hero-circle-size-mobile: clamp(84px, 24vw, 120px);
}

.first-container.hero-slider-wrap,
.first-container-mobile.hero-slider-wrap-mobile {
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.34));
    pointer-events: none;
    z-index: 1;
}

/* Okunabilirlik: slayt ne kadar açık olursa olsun metin alanı karartılır */
.hero-slider-wrap::after,
.hero-slider-wrap-mobile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(18, 8, 12, 0.62) 0%, rgba(18, 8, 12, 0.28) 42%, rgba(18, 8, 12, 0.08) 68%, transparent 100%),
        linear-gradient(180deg, rgba(18, 8, 12, 0.4) 0%, transparent 28%, transparent 55%, rgba(18, 8, 12, 0.55) 82%, rgba(18, 8, 12, 0.78) 100%);
}

.hero-slider-wrap .landing-1,
.hero-slider-wrap-mobile .landing-1-title-mobile,
.hero-slider-wrap-mobile .landing-1-description-mobile {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.hero-slider-wrap .landing-1 {
    top: auto;
    bottom: calc(var(--hero-projects-bottom) + var(--hero-circle-size) + clamp(28px, 5vh, 56px));
    left: clamp(24px, 9vw, 9%);
    max-width: min(746px, 82vw);
    padding-right: 16px;
    pointer-events: none;
}

.hero-slider-wrap .landing-1 .landing-1-title,
.hero-slider-wrap .landing-1 .landing-1-description {
    pointer-events: none;
    color: #fff !important;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 4px 28px rgba(0, 0, 0, 0.55);
}

.hero-slider-wrap-mobile .landing-1-title-mobile {
    top: clamp(118px, 18vh, 168px);
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.hero-slider-wrap-mobile .landing-1-description-mobile {
    top: clamp(210px, 34vh, 290px);
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    max-width: 100%;
}

/* Mobil hero alt kompozisyon */
.hero-mobile-panel {
    display: none;
}

/* Proje daireleri — sol alt köşe */
.hero-project-circles {
    position: absolute;
    left: clamp(24px, 9vw, 9%);
    right: auto;
    transform: none;
    bottom: calc(var(--hero-projects-bottom) + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: calc(100% - clamp(24px, 9vw, 9%) - 24px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: clamp(16px, 2.5vw, 40px);
    z-index: 5;
    pointer-events: none;
}

.hero-project-circles-mobile {
    --hero-projects-bottom: clamp(60px, 9vh, 96px);
    left: clamp(20px, 5vw, 40px);
    max-width: calc(100% - clamp(20px, 5vw, 40px) - 16px);
    justify-content: flex-start;
    gap: clamp(10px, 2.5vw, 18px);
}

.hero-project-link {
    pointer-events: auto;
    display: block;
    text-decoration: none;
    flex: 0 0 auto;
}

.hero-project-link.is-hidden {
    display: none !important;
}

.hero-project-link.hero-project-inactive {
    opacity: 0.45;
    pointer-events: none;
}

.hero-project-circles .fera-circle,
.hero-project-circles .avend-circle,
.hero-project-circles .magna-circle {
    position: relative;
    top: auto;
    left: auto;
    width: var(--hero-circle-size);
    height: var(--hero-circle-size);
    max-width: 100%;
    aspect-ratio: 1;
}

.hero-project-circles-mobile .fera-circle-mobile,
.hero-project-circles-mobile .avend-circle-mobile,
.hero-project-circles-mobile .magna-circle-mobile {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: var(--hero-circle-size-mobile);
    height: var(--hero-circle-size-mobile);
    max-width: 100%;
    aspect-ratio: 1;
}

.hero-project-circles .fera-circle::before,
.hero-project-circles .fera-circle::after,
.hero-project-circles .avend-circle::before,
.hero-project-circles .avend-circle::after,
.hero-project-circles .magna-circle::before,
.hero-project-circles .magna-circle::after,
.hero-project-circles-mobile .fera-circle-mobile::before,
.hero-project-circles-mobile .fera-circle-mobile::after,
.hero-project-circles-mobile .avend-circle-mobile::before,
.hero-project-circles-mobile .avend-circle-mobile::after,
.hero-project-circles-mobile .magna-circle-mobile::before,
.hero-project-circles-mobile .magna-circle-mobile::after {
    width: 100% !important;
    height: 100% !important;
}

.hero-project-circles .fera-circle-text,
.hero-project-circles .avend-circle-text,
.hero-project-circles .magna-circle-text {
    top: 28%;
    left: 50%;
    width: 78%;
    font-size: clamp(12px, calc(var(--hero-circle-size) * 0.11), 18px);
    line-height: 1.15;
    text-align: center;
}

.hero-project-circles-mobile .fera-circle-mobile-text,
.hero-project-circles-mobile .avend-circle-mobile-text,
.hero-project-circles-mobile .magna-circle-mobile-text {
    top: 24%;
    left: 50%;
    width: 90%;
    font-size: clamp(9px, calc(var(--hero-circle-size-mobile) * 0.105), 12px);
    line-height: 1.12;
    text-align: center;
    word-break: break-word;
    hyphens: auto;
}

/* Navigation */
.hero-slider-nav {
    position: absolute;
    bottom: calc(var(--hero-nav-offset) + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 6;
}

.hero-slider-dots {
    display: flex;
    gap: 10px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-slider-dot.active,
.hero-slider-dot:hover {
    background: #fff;
    border-color: #fff;
    transform: scale(1.15);
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-slider-arrow svg {
    width: 20px;
    height: 20px;
}

.hero-slider-prev { left: 24px; }
.hero-slider-next { right: 24px; }

@media (max-width: 991.98px) {
    .hero-slider-wrap,
    .hero-slider-wrap-mobile {
        --hero-circle-size: clamp(96px, 12vmin, 150px);
        --hero-projects-bottom: clamp(68px, 10vh, 110px);
    }

    .hero-slider-wrap-mobile {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        overflow: hidden;
        --hero-nav-offset: 18px;
        --hero-projects-bottom: 0;
        --hero-circle-size-mobile: clamp(88px, 14vw, 120px);
    }

    .hero-slider-wrap-mobile .hero-slide-overlay {
        background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.34)) !important;
    }

    .hero-slider-wrap-mobile::after {
        background:
            linear-gradient(180deg, rgba(18, 8, 12, 0.55) 0%, rgba(18, 8, 12, 0.18) 32%, rgba(18, 8, 12, 0.5) 62%, rgba(18, 8, 12, 0.88) 100%);
    }

    .hero-slider-wrap-mobile .hero-slider-arrow {
        display: none !important;
    }

    .hero-slider-wrap-mobile .hero-slider-nav {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: 50%;
        transform: translateX(-50%);
        z-index: 7;
    }

    .hero-slider-wrap-mobile .hero-slider-dots {
        gap: 8px;
        align-items: center;
    }

    .hero-slider-wrap-mobile .hero-slider-dot {
        width: 7px;
        height: 7px;
        border-width: 1.5px;
        border-color: rgba(255, 255, 255, 0.55);
    }

    .hero-slider-wrap-mobile .hero-slider-dot.active {
        width: 22px;
        border-radius: 999px;
        background: #c4a052;
        border-color: #c4a052;
        transform: none;
    }

    .hero-mobile-panel {
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        z-index: 5;
        padding: 0 clamp(20px, 4vw, 40px) 12px;
        pointer-events: none;
        overflow: visible;
    }

    .hero-mobile-panel .landing-1-title-mobile,
    .hero-mobile-panel .landing-1-description-mobile {
        position: relative;
        top: auto !important;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        padding: 0;
        color: #fff !important;
        opacity: 1 !important;
        text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.9),
            0 6px 28px rgba(0, 0, 0, 0.55);
    }

    .hero-mobile-panel .landing-1-title-mobile {
        font: 600 clamp(1.7rem, 4.2vw, 2.35rem) / 1.18 Gilroy-SemiBold, sans-serif;
        letter-spacing: -0.03em;
    }

    .hero-mobile-panel .landing-1-description-mobile {
        font: 500 clamp(0.95rem, 2.2vw, 1.15rem) / 1.45 Gilroy-SemiBold, sans-serif;
        max-width: 40rem;
    }

    .hero-project-circles-mobile {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 520px;
        justify-content: flex-start;
        gap: clamp(12px, 3vw, 24px);
        padding: 6px 0 0;
        pointer-events: none;
    }

    .hero-project-circles-mobile .hero-project-link {
        pointer-events: auto;
    }

    .hero-project-circles-mobile .fera-circle-mobile,
    .hero-project-circles-mobile .avend-circle-mobile,
    .hero-project-circles-mobile .magna-circle-mobile {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.22);
    }

    .hero-project-circles-mobile .fera-circle-mobile-text,
    .hero-project-circles-mobile .avend-circle-mobile-text,
    .hero-project-circles-mobile .magna-circle-mobile-text {
        top: 22%;
        font-size: clamp(10px, 1.6vw, 13px);
        line-height: 1.1;
        font-weight: 600;
    }

    .hero-project-circles-mobile .fera-circle-mobile-plus,
    .hero-project-circles-mobile .avend-circle-mobile-plus,
    .hero-project-circles-mobile .magna-circle-mobile-plus {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}

@media (max-width: 575.98px) {
    .hero-slider-wrap-mobile {
        --hero-circle-size-mobile: clamp(72px, 20vw, 92px);
    }

    .hero-mobile-panel {
        gap: 12px;
        padding: 0 20px 8px;
        bottom: calc(44px + env(safe-area-inset-bottom, 0px));
    }

    .hero-mobile-panel .landing-1-title-mobile {
        font-size: clamp(1.55rem, 6.6vw, 1.95rem);
    }

    .hero-mobile-panel .landing-1-description-mobile {
        font-size: clamp(0.9rem, 3.5vw, 1.02rem);
        max-width: 34rem;
    }

    .hero-project-circles-mobile {
        max-width: none;
        justify-content: space-between;
        gap: 10px;
    }

    .hero-project-circles-mobile .fera-circle-mobile-text,
    .hero-project-circles-mobile .avend-circle-mobile-text,
    .hero-project-circles-mobile .magna-circle-mobile-text {
        font-size: clamp(9px, 2.6vw, 11px);
    }
}

@media (min-width: 1400px) {
    .hero-slider-wrap {
        --hero-projects-bottom: clamp(88px, 12vh, 148px);
        --hero-circle-size: clamp(150px, 10vmin, 179px);
    }
}

@media (max-height: 700px) {
    .hero-slider-wrap,
    .hero-slider-wrap-mobile {
        --hero-projects-bottom: clamp(56px, 9vh, 88px);
        --hero-circle-size: clamp(88px, 12vmin, 132px);
        --hero-circle-size-mobile: clamp(68px, 18vw, 86px);
    }

    .hero-slider-wrap .landing-1 {
        top: auto;
        bottom: calc(var(--hero-projects-bottom) + var(--hero-circle-size) + clamp(16px, 3vh, 32px));
    }

    .hero-slider-wrap-mobile .hero-mobile-panel {
        bottom: calc(40px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }
}
