.hero {
    height: clamp(60vh, 75vh, 10vh); /* Dynamic height for all screens */
    min-height: 100%; /* Prevent collapse on small screens */
    max-height: 100vh; /* Prevent excessive height on large screens */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #243B55, #141E30);
    color: var(--white);
    text-align: center;
    padding: clamp(10px, 5vw, 40px); /* Scalable padding */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    transform: translate(-50%, -50%);
    animation: subtleSpin 20s linear infinite;
    z-index: 0;
}

@keyframes subtleSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-content {
    z-index: 1;
    position: relative;
    max-width: clamp(280px, 90%, 800px); /* Responsive container width */
    margin: 0 auto;
    text-align: center;
}

/* HERO TITLE */
#hero-title {
    font-family: 'Space Grotesk', sans-serif; /* Modern, clean font with a futuristic vibe */
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem); /* Scales smoothly and keeps max size at 4.5rem */
    font-weight: 700;
    margin-bottom: clamp(10px, 3vw, 20px); /* Adjusted bottom spacing */
    letter-spacing: clamp(0.5px, 0.3vw, 1.5px); /* Smooth letter spacing */
    line-height: 1.2;
    color: #A4B2C5; /* Muted steel-blue for easy readability */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    background: none;
    -webkit-text-fill-color: #A4B2C5;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

#hero-title:hover {
    color: #B4C5D9; /* Slight hover color change */
    text-shadow: 0px 4px 10px rgba(180, 197, 217, 0.5); /* Softer glow on hover */
    transform: scale(1.02); /* Slight zoom effect on hover */
}

/* HERO SUBTITLE */
#hero-subtitle {
    font-family: 'Poppins', sans-serif; /* Clean, modern font */
    font-size: clamp(1rem, 3vw + 0.5rem, 1.5rem); /* Starts at 1rem and scales to 1.5rem */
    font-weight: 400;
    line-height: 1.6; /* Improved readability */
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: clamp(20px, 4vw, 40px); /* Scalable bottom margin */
}


/* BUTTONS */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2.5vw, 25px); /* Larger gaps for better spacing */
    justify-content: center;
}

#hero-get-started,
#hero-learn-more {
    padding: clamp(8px, 1.8vw, 15px) clamp(15px, 3vw, 40px); /* Balanced padding */
    font-size: clamp(0.9rem, 2vw + 0.5rem, 1.4rem); /* Scales dynamically for all devices */
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

#hero-get-started {
    background: linear-gradient(to right, #FF6F61, #FFD564);
    color: var(--white);
}

#hero-get-started:hover {
    background: linear-gradient(to right, #FFD564, #FF6F61);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 111, 97, 0.8);
}

#hero-learn-more {
    background: transparent;
    color: #00C6FF;
    border: 2px solid #00C6FF;
}

#hero-learn-more:hover {
    background: #00C6FF;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 198, 255, 0.8);
}


/* MINIMAL MEDIA QUERY FOR SCREENS BELOW 200PX */
@media (max-width: 200px) {
    .hero {
        height: auto; /* Allow content to dictate height */
        min-height: 150px;
        padding: 10px;
    }

    #hero-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    #hero-subtitle {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    #hero-get-started,
    #hero-learn-more {
        padding: 4px 6px;
        font-size: 0.6rem;
    }
}
