/* Hero yagmur / ikon — sol siyah grid alani, metin ve banner ustte */
.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(85vh, auto) auto;
    grid-template-areas:
        "content"
        "banner";
    min-height: 85vh;
    background: #030806;
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero-section {
        grid-template-columns: 40% 1fr;
        grid-template-rows: minmax(100vh, auto);
        grid-template-areas: "content banner";
        min-height: 100vh;
    }
}

/* Sol siyah kolon: fx + metin ayni grid hucresinde ust uste */
.hero-fx-layer,
.hero-left,
.hero-fx-toggles {
    grid-area: content;
}

.hero-fx-layer {
    position: relative;
    z-index: 0;
    min-height: 85vh;
    overflow: hidden;
    pointer-events: none;
    background: #030806;
    align-self: stretch;
}

@media (min-width: 640px) {
    .hero-fx-layer {
        min-height: 100vh;
    }
}

.hero-left {
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 85vh;
    padding: 3rem 1.5rem;
    background: transparent;
    overflow: hidden;
    pointer-events: none;
}

@media (min-width: 640px) {
    .hero-left {
        min-height: 100vh;
        padding: 5rem 3.5rem;
    }
}

.hero-left-content {
    position: relative;
    z-index: 1;
}

.hero-left a,
.hero-left button {
    pointer-events: auto;
}

.hero-visual {
    grid-area: banner;
    position: relative;
    z-index: 2;
    min-height: 300px;
    background: #030806;
}

@media (min-width: 640px) {
    .hero-visual {
        min-height: 100vh;
    }
}

.hero-rain,
.hero-icon-fall {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-rain.hidden,
.hero-icon-fall.hidden {
    display: none;
}

.rain-drop {
    position: absolute;
    top: -100px;
    width: 2px;
    height: 70px;
    background: linear-gradient(to bottom, transparent, rgba(134, 239, 172, 0.25), rgba(74, 222, 128, 0.75));
    border-radius: 2px;
    animation: hero-rain-fall linear infinite;
    opacity: 0.85;
}

@keyframes hero-rain-fall {
    0% { transform: translate3d(0, -120px, 0); }
    100% { transform: translate3d(0, var(--rain-fall-distance, 100vh), 0); }
}

.icon-fall-item {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(0, calc(-100% - 24px), 0) rotate(0deg);
    animation: hero-icon-fall var(--fall-duration, 12s) linear forwards;
    will-change: transform;
}

.icon-fall-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
    display: block;
}

@keyframes hero-icon-fall {
    0% { transform: translate3d(0, calc(-100% - 24px), 0) rotate(0deg); }
    100% { transform: translate3d(0, var(--fall-distance, 900px), 0) rotate(300deg); }
}

.hero-fx-toggles {
    z-index: 3;
    justify-self: end;
    align-self: start;
    margin: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

@media (max-width: 1023px) {
    .hero-fx-toggles {
        margin: 0.75rem;
    }
}

.rain-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    cursor: pointer;
    transition: all 0.2s;
}

.rain-toggle-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}

.rain-toggle-btn.off {
    color: #6b7280;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-fall-toggle-btn.active {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.rain-toggle-btn.blocked {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Hero metni her zaman gorunur */
.hero-left-content .fade-up {
    opacity: 1;
    transform: none;
}
