/* ==========================
   Hero Block Component
   ========================== */

/* Base hero block styling */
.hero-block {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    color: rgb(var(--text-primary));
}


/* Hero grid layout */
.hero-grid {
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Hero title */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #00f0ff, #ff33ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    animation: glowTitle 3s ease-in-out infinite alternate;
}

@keyframes glowTitle {
    from {
        text-shadow: 0 0 8px #00f0ff55;
    }

    to {
        text-shadow: 0 0 16px #ff33ff88;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Hero divider */
.hero-divider {
    position: relative;
    height: 4px;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    overflow: hidden;
}

.hero-divider:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            #00f0ff 0%, #0059ff 5%,
            transparent 5%, transparent 10%,
            #ff33ff00 10%, #ff33ff00 15%,
            transparent 15%, transparent 20%,
            #0080ff00 20%, #ff000000 25%,
            transparent 25%, transparent 30%,
            #00ff8000 30%, #00ffdd00 35%,
            transparent 35%, transparent 40%,
            #8000ff00 40%, #8000ff00 45%,
            transparent 45%, transparent 50%,
            #00f0ff 50%, #0059ff 55%,
            transparent 55%, transparent 60%,
            #ff33ff00 60%, #ff33ff00 65%,
            transparent 65%, transparent 70%,
            #0080ff00 70%, #0080ff00 75%,
            transparent 75%, transparent 80%,
            #00ff8000 80%, #00ff8000 85%,
            transparent 85%, transparent 90%,
            #8000ff00 90%, #8000ff00 95%,
            transparent 95%, transparent 100%);
    background-size: 40px;
    background-position: center;
    z-index: 1;
    animation: bar 120s linear infinite;
}

.hero-divider:hover:before {
    animation-duration: 20s;
}

@keyframes bar {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 100% center;
    }
}

/* Hero features grid */
.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Individual hero feature */
.hero-feature {
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-feature p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* Feature color variants */
.hero-feature-green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.hero-feature-green h3 {
    color: #22c55e;
}

.hero-feature-purple {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.hero-feature-purple h3 {
    color: #a855f7;
}

.hero-feature-pink {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
}

.hero-feature-pink h3 {
    color: #ec4899;
}

/* Hero CTA section */
.hero-cta {
    margin-top: 2rem;
}

/* Rocket animation container */
.rocket {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: url('https://cdn-icons-png.flaticon.com/512/3211/3211052.png') center/contain no-repeat;
    animation: rocketLaunch 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px #00f0ff);
    opacity: 0.7;
    z-index: 1;
}

@keyframes rocketLaunch {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-40px) rotate(10deg);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .hero-block {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-grid {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features {
        gap: 1.5rem;
    }

    .rocket {
        width: 40px !important;
        height: 40px !important;
        bottom: 1rem;
        right: 1rem;
    }
}
