/* ---------- HERO BASE ---------- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 40px;
   
    overflow: hidden;
}

/* ---------- HERO OVERLAY ---------- */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    animation: overlayFade 10s infinite alternate;
    z-index: 1;
}

@keyframes overlayFade {
    0% { background: rgba(0,0,0,0.55); }
    100% { background: rgba(0,0,0,0.65); }
}

/* ---------- HERO CONTENT WRAPPER ---------- */
.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

/* ---------- HERO CONTENT BOXES ---------- */
.hero-content {
    padding: 30px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s forwards;
}

.hero-left {
    flex: 1;
    background: rgba(0,0,0,0.55);
    animation-delay: 0.3s;
}

.hero-right {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    animation-delay: 0.6s;

}

/* Overlay for right content */
.hero-right::before {
    content: '';
    position: absolute;
    top:0; left:0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    border-radius: 10px;
    z-index: 0;
}

/* Text in right content above overlay */
.hero-right h2,
.hero-right p,
.hero-right .btn {
    position: relative;
    z-index: 1;
}

/* ---------- HERO CONTENT ANIMATION ---------- */
@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- BUTTON ---------- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #e60023;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    background: #ff1a3c;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ---------- SCROLL INDICATOR ---------- */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    font-size: 24px;
    color: #fff;
    opacity: 0;
    z-index: 2;
    animation: scrollFadeIn 1s forwards 1s, bounce 2s infinite 1s;
}

@keyframes scrollFadeIn {
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---------- TRUST BADGES ---------- */
.trust-badges {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: badgesFadeIn 1s forwards;
    animation-delay: 0.6s;
}

@keyframes badgesFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.trust-badges img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.trust-badges img:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.trust-badges span {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.trust-badges span:hover {
    color: #ffd700;
}

/* ---------- CLOUDS ---------- */
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.cloud {
    position: absolute;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    filter: blur(15px);
    width: 200px; height: 60px;
    opacity: 0.5;
}

.cloud1 { top: 10%; left: -200px; animation: moveClouds 60s linear infinite; }
.cloud2 { top: 30%; left: -250px; width: 250px; height: 80px; animation: moveClouds 80s linear infinite; }
.cloud3 { top: 60%; left: -180px; width: 180px; height: 50px; animation: moveClouds 70s linear infinite; }

@keyframes moveClouds {
    0% { transform: translateX(0); }
    100% { transform: translateX(120vw); }
}

/* ---------- FLOATING LIGHT PARTICLES ---------- */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 1;
}

.particles span {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 6px;
    background: rgba(255,215,0,0.8);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 10s infinite;
}

.particles span:nth-child(1) { left: 10%; width:4px; height:4px; animation-duration: 8s; animation-delay: 0s; }
.particles span:nth-child(2) { left: 25%; width:6px; height:6px; animation-duration: 12s; animation-delay: 2s; }
.particles span:nth-child(3) { left: 40%; width:5px; height:5px; animation-duration: 10s; animation-delay: 4s; }
.particles span:nth-child(4) { left: 55%; width:7px; height:7px; animation-duration: 14s; animation-delay: 1s; }
.particles span:nth-child(5) { left: 70%; width:4px; height:4px; animation-duration: 9s; animation-delay: 3s; }
.particles span:nth-child(6) { left: 85%; width:6px; height:6px; animation-duration: 11s; animation-delay: 5s; }
.particles span:nth-child(7) { left: 15%; width:5px; height:5px; animation-duration: 13s; animation-delay: 2s; }
.particles span:nth-child(8) { left: 50%; width:4px; height:4px; animation-duration: 10s; animation-delay: 6s; }

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-120vh) scale(1); opacity: 0; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: column;
    }

    .hero-left, .hero-right {
        width: 100%;
        max-width: 100%;
    }

    .trust-badges {
        flex-direction: row;
        gap: 10px;
        margin-top: 15px;
    }

    .cloud { filter: blur(10px); opacity: 0.3; }
    .cloud1 { width: 150px; height: 40px; animation-duration: 50s; }
    .cloud2 { width: 180px; height: 60px; animation-duration: 60s; }
    .cloud3 { width: 120px; height: 35px; animation-duration: 55s; }

    .particles span { width: 3px; height: 3px; background: rgba(255,215,0,0.6); }
    .particles span:nth-child(4), .particles span:nth-child(6) { display: none; }
}

@media (max-width: 480px) {
    .hero-content h2 { font-size: 22px; }
    .hero-content p { font-size: 14px; }
    .btn { padding: 8px 16px; font-size: 13px; }
    .trust-badges img { width: 35px; height: 35px; }
    .scroll-down { font-size: 18px; bottom: 10px; }
}
/* Ensure hero-right background is positioned for parallax */
.hero-right {
    background-attachment: fixed; /* simple CSS parallax fallback */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
       transition: background-position 0.1s linear; /* smooth parallax on mobile */
}

/* Optional: smoother parallax with JS will override this */
/* Mobile view for .hero-right */
@media (max-width: 768px) {
    .hero-right {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin-top: 20px; /* spacing below left content */
        border-radius: 10px;
        background-size: cover;
        background-position: center top;
        position: relative;
        color: #fff;
        text-align: center;
    }

    /* Overlay to keep text readable */
    .hero-right::before {
        background: rgba(0,0,0,0.5);
        border-radius: 10px;
    }

    .hero-right h2 {
        font-size: 22px;
    }

    .hero-right p {
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-right .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
