/* Hero Background & Scroll Indicator */

/* 1. Animated Cyber Grid Background */
.hero-bg {
    background-color: #050505;
    background-image: 
        linear-gradient(rgba(255, 0, 51, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 51, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 500px;
    overflow: hidden; /* Ensure stars don't cause scroll */
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
    z-index: 1;
}

/* Animated Gradient Orb (Aurora Effect) */
.hero-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 24, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    animation: pulse-orb 8s infinite ease-in-out;
    z-index: 0;
}

@keyframes pulse-orb {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

/* 2. Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -5px;
    animation: scroll-arrow 2s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes scroll-arrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* 3. Star Field Animation (Space Travel Effect) */
#stars, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
    z-index: 0; /* Behind the orb but visible */
}

#stars {
    animation: animStar 50s linear infinite;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, #fff 100%, transparent),
        radial-gradient(1px 1px at 20% 20%, #fff 100%, transparent),
        radial-gradient(1px 1px at 30% 30%, #fff 100%, transparent),
        radial-gradient(1px 1px at 40% 40%, #fff 100%, transparent),
        radial-gradient(1px 1px at 50% 50%, #fff 100%, transparent),
        radial-gradient(1px 1px at 60% 60%, #fff 100%, transparent),
        radial-gradient(1px 1px at 70% 70%, #fff 100%, transparent),
        radial-gradient(1px 1px at 80% 80%, #fff 100%, transparent),
        radial-gradient(1px 1px at 90% 90%, #fff 100%, transparent);
    background-size: 550px 550px;
    opacity: 1; /* Increased opacity for brightness */
}

#stars2 {
    animation: animStar 100s linear infinite;
    background-image: 
        radial-gradient(2px 2px at 15% 15%, #fff 100%, transparent),
        radial-gradient(2px 2px at 25% 25%, #fff 100%, transparent),
        radial-gradient(2px 2px at 35% 35%, #fff 100%, transparent),
        radial-gradient(2px 2px at 45% 45%, #fff 100%, transparent),
        radial-gradient(2px 2px at 55% 55%, #fff 100%, transparent),
        radial-gradient(2px 2px at 65% 65%, #fff 100%, transparent),
        radial-gradient(2px 2px at 75% 75%, #fff 100%, transparent),
        radial-gradient(2px 2px at 85% 85%, #fff 100%, transparent);
    background-size: 400px 400px;
    opacity: 0.8; /* Increased opacity */
}

#stars3 {
    animation: animStar 150s linear infinite;
    background-image: 
        radial-gradient(3px 3px at 5% 5%, #fff 100%, transparent),
        radial-gradient(3px 3px at 10% 80%, #fff 100%, transparent),
        radial-gradient(3px 3px at 80% 10%, #fff 100%, transparent),
        radial-gradient(3px 3px at 90% 90%, #fff 100%, transparent);
    background-size: 300px 300px;
    opacity: 0.6; /* Increased opacity */
}

@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}