/* Ana sayfa hero — davettakip sinematik video (sabit crop, zoom yok) */

.hero {
    background: #0f172a;
    min-height: 520px;
}

.hero::before {
    display: none;
}

.hero.is-video-ready .hero-video.is-active {
    opacity: 1;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0f172a;
}

.hero-video-bg.is-ready .hero-video.is-active {
    opacity: 1;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.03);
    transform-origin: center center;
    opacity: 0;
    transition: opacity 1.35s ease;
    pointer-events: none;
    will-change: opacity;
}

.hero-video.is-active {
    opacity: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.58) 45%, rgba(15, 23, 42, 0.35) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, transparent 30%, rgba(15, 23, 42, 0.75) 100%);
}

.hero-video-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Tanıtım kutusu — hero sağ alt */
.hero-video-caption {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: auto;
}

.hero-video-caption.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-video-caption--hero-right {
    position: absolute;
    right: 1rem;
    bottom: 6.5rem;
    left: auto;
    z-index: 3;
    width: min(340px, calc(100% - 2rem));
    max-width: 340px;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    .hero-video-caption--hero-right {
        right: max(1.25rem, calc((100vw - 1140px) / 2 + 0.75rem));
        bottom: 7rem;
    }
}

.hero-video-caption__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.hero-video-caption__speaker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fde68a;
    line-height: 1.2;
}

.hero-video-caption__speaker i {
    font-size: 1rem;
    opacity: 0.95;
}

.hero-video-caption__text {
    margin: 0;
    width: 100%;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.86);
    text-align: left;
}

.hero-video-dots {
    display: flex;
    gap: 0.45rem;
    align-self: flex-end;
    margin-top: 0.15rem;
}

.hero-video-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
}

.hero-video-dot.is-active {
    background: #c1a05e;
    transform: scale(1.2);
}

.hero-video-dot:focus-visible {
    outline: 2px solid #e8d5a8;
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .hero-video-caption--hero-right {
        right: 0.75rem;
        left: auto;
        bottom: 5rem;
        width: min(300px, calc(100% - 1.5rem));
        max-width: 300px;
    }

    .hero-video-caption__inner {
        padding: 0.75rem 0.9rem;
    }

    .hero-video-caption__text {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        transform: none;
        transition: none;
    }

    .hero-video-caption {
        transition: none;
    }
}
