/**
 * BrightAster Website
 *
 * @file hero-section.css
 * @description Styles for the homepage hero section with animated shapes.
 * @version 9.4 (Enhanced Shape Animation)
 */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 200px 20px 50px 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative; /* Required for positioning shapes */
    overflow: hidden; /* Prevents shapes from spilling out */
}

.hero-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Ensure content is above shapes */
    z-index: 2;
}

/* --- Animated Shapes --- */
.hero-shape {
    position: absolute;
    z-index: 1; /* This keeps the shapes behind the content */
    opacity: 0.1;
    /* Applying a new, smoother animation */
    animation-name: smooth-rotate;
    animation-timing-function: linear; /* For a constant, smooth rotation */
    animation-iteration-count: infinite;
}

/* Shapes moved closer to the center */
.shape-1 { top: 15%; left: 15%; width: 80px; animation-duration: 30s; }
.shape-2 { top: 25%; right: 20%; width: 100px; animation-duration: 32s; animation-direction: reverse; } /* Rotates counter-clockwise */
.shape-3 { bottom: 40%; left: 25%; width: 60px; animation-duration: 29s; }
.shape-4 { bottom: 15%; right: 15%; width: 120px; animation-duration: 34s; animation-direction: reverse; } /* Rotates counter-clockwise */

/* New keyframe for a smooth, continuous rotation effect */
@keyframes smooth-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Hero Badge Styles */
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: pulse-glow 4s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(218, 33, 220, 0.2); }
    50% { box-shadow: 0 0 25px rgba(16, 151, 210, 0.3); }
    100% { box-shadow: 0 0 15px rgba(218, 33, 220, 0.2); }
}

.hero-text-slider {
    margin-bottom: 20px;
    min-height: 180px;
}

/* Masking Styles */
.hero-text-mask { overflow: hidden; position: relative; }
.hero-heading { font-size: 56px; font-weight: 800; color: var(--primary-color); line-height: 1.2; margin: 0 0 20px 0; transform: translateY(0); transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1); }
.hero-heading .highlighted-word { background: linear-gradient(to right, var(--accent-color), var(--accent-secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subheading { font-size: 20px; color: var(--text-color); max-width: 600px; margin: 0 auto; line-height: 1.6; transform: translateY(0); transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1) 0.05s; }
.is-exiting { transform: translateY(-120%); }
.is-entering { transform: translateY(120%); transition-duration: 0s; }

.hero-cta { display: flex; justify-content: center; }

/* --- Partner Sub-Section --- */
.hero-partners-wrapper {
    margin-top: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.partner-badge-card {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.logo-scroller {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
    border-top: 1px solid var(--divider-color);
}

.logo-scroller:hover .logo-track {
    animation-play-state: paused;
}

.logo-track {
    display: flex;
    width: fit-content;
    animation: scroll-logos 30s linear infinite;
}

@keyframes scroll-logos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.partner-logo {
    height: 41px;
    width: auto;
    margin: 0 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-track:hover .partner-logo {
    opacity: 0.5;
}

.logo-track .partner-logo:hover {
    opacity: 1;
}

/* --- Initial Fade-in Animation Styles --- */
.fade-in-element { opacity: 0; transform: translateY(30px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.fade-in-element.is-visible { opacity: 1; transform: translateY(0); }
.hero-badge.is-visible { transition-delay: 0s; }
.hero-text-slider .fade-in-element:nth-child(1).is-visible { transition-delay: 0.1s; }
.hero-text-slider .fade-in-element:nth-child(2).is-visible { transition-delay: 0.2s; }
.hero-cta.is-visible { transition-delay: 0.3s; }
.hero-partners-wrapper.is-visible { transition-delay: 0.5s; }

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .hero-section { align-items: flex-start; padding-top: 120px; text-align: left; }
    .hero-container { align-items: flex-start; }
    .hero-heading { 
        font-size: 30px;
        font-weight: 700; /* Reduced font weight for mobile */
    }
    .hero-subheading { font-size: 16px; margin: 0; max-width: 100%; }
    .hero-cta { justify-content: flex-start; }
    .hero-partners-wrapper { align-items: flex-start; }
    .partner-logo { margin: 0 25px; }
    /* Hide some shapes on mobile to avoid clutter */
    .shape-2, .shape-3 { display: none; }
}
