/* ==========================================
   LOON ASSIST - Premium Hero Section
   Elegant Government Portal Design
   ========================================== */


/* ==========================================
   HERO OVERLAY — Cinematic Dark Layer
   ========================================== */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    pointer-events: none;
}

/* Vignette effect overlay */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}


/* ==========================================
   HERO CONTENT — Centered with stacking
   ========================================== */

.hero {
    align-items: flex-start !important;
    padding-top: 1.5rem !important;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 860px;
    padding: 1rem 2rem;
    margin-top: 0;
    animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   HERO BADGE — "Official Government Portal"
   ========================================== */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(13, 71, 161, 0.85); /* DSWD Blue */
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.55rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: badgeSlide 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes badgeSlide {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge-icon {
    font-size: 1.1rem;
}

.hero-badge-text {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}


/* ==========================================
   HERO TITLE — Two-line stacked heading
   ========================================== */

.hero .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.2rem;
    animation: titleReveal 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    filter: none !important;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-welcome {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3.4rem;
    font-weight: 700;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 4px;
    text-transform: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hero-title-brand {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    text-transform: uppercase;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #e8d48a 25%,
        #ffd700 50%,
        #e8d48a 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGold 4s linear infinite;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.35));
}

@keyframes shimmerGold {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}


/* ==========================================
   HERO DIVIDER — Elegant diamond separator
   ========================================== */

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1.5rem;
    animation: dividerFade 1s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dividerFade {
    from {
        opacity: 0;
        transform: scaleX(0.3);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.hero-divider-line {
    display: block;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 1), transparent);
}

.hero-divider-diamond {
    color: rgba(212, 175, 55, 1);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    animation: diamondPulse 3s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}


/* ==========================================
   HERO SUBTITLE — Government office name
   ========================================== */

.hero .hero-subtitle {
    margin-bottom: 2.2rem !important;
    text-align: center !important;
    animation: subtitleSlide 1s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    line-height: 1.5 !important; /* Spacing between lines */
}

.hero .hero-subtitle span {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: #0d2b5e !important;
    -webkit-text-fill-color: #0d2b5e !important;
    text-shadow: none !important;
    background: rgba(232, 199, 80, 0.9) !important;
    padding: 0.4rem 1.2rem !important;
    border-radius: 8px !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    
    /* This makes the background wrap line-by-line */
    -webkit-box-decoration-break: clone !important;
    box-decoration-break: clone !important;
}

@keyframes subtitleSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
        letter-spacing: 8px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 4px;
    }
}


/* ==========================================
   HERO DESCRIPTION — Glassmorphism card
   ========================================== */

.hero .hero-description {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    line-height: 1.9 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    width: fit-content !important;
    max-width: 90% !important;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem !important;
    padding: 1.25rem 2rem !important;
    background: rgba(13, 42, 90, 0.55) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(18px) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    animation: descFade 1s 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    letter-spacing: 0.3px !important;
}

@keyframes descFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   GET STARTED BUTTON — Refined
   ========================================== */

.hero .btn-get-started {
    font-family: 'Outfit', 'Segoe UI', sans-serif !important;
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 3rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    color: #0d2b5e !important;
    background: linear-gradient(135deg, #ffd700 0%, #e8c750 50%, #d4af37 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 6px 25px rgba(212, 175, 55, 0.35),
        0 2px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
    animation: btnAppear 0.8s 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-fill-color: #0d2b5e !important;
    backdrop-filter: none !important;
}

@keyframes btnAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero .btn-get-started .btn-text {
    position: relative;
    z-index: 2;
}

.hero .btn-get-started .btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero .btn-get-started::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
}

.hero .btn-get-started:hover {
    transform: translateY(-4px) scale(1.04) !important;
    box-shadow:
        0 12px 40px rgba(212, 175, 55, 0.45),
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #e8c750 100%) !important;
}

.hero .btn-get-started:hover .btn-arrow {
    transform: translateX(5px);
}

.hero .btn-get-started:hover::before {
    left: 100% !important;
}

.hero .btn-get-started:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow:
        0 4px 15px rgba(212, 175, 55, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1) !important;
}


/* ==========================================
   FLOATING PARTICLES — Ambient Animation
   ========================================== */

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    animation: particleFloat linear infinite;
}

.particle-1 {
    width: 6px;
    height: 6px;
    top: 15%;
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.particle-2 {
    width: 4px;
    height: 4px;
    top: 55%;
    left: 85%;
    animation-duration: 22s;
    animation-delay: 3s;
    background: rgba(255, 255, 255, 0.08);
}

.particle-3 {
    width: 8px;
    height: 8px;
    top: 75%;
    left: 25%;
    animation-duration: 16s;
    animation-delay: 6s;
}

.particle-4 {
    width: 3px;
    height: 3px;
    top: 30%;
    left: 70%;
    animation-duration: 20s;
    animation-delay: 2s;
    background: rgba(255, 255, 255, 0.1);
}

.particle-5 {
    width: 5px;
    height: 5px;
    top: 85%;
    left: 60%;
    animation-duration: 24s;
    animation-delay: 8s;
}

.particle-6 {
    width: 4px;
    height: 4px;
    top: 10%;
    left: 50%;
    animation-duration: 19s;
    animation-delay: 5s;
    background: rgba(255, 255, 255, 0.06);
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) translateX(40px);
        opacity: 0;
    }
}


/* ==========================================
   RESPONSIVE — Mobile adjustments
   ========================================== */

@media (max-width: 768px) {
    .hero-title-welcome {
        font-size: 1.6rem;
    }

    .hero-title-brand {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    .hero .hero-subtitle {
        font-size: 1rem !important;
        letter-spacing: 3px !important;
    }

    .hero .hero-description {
        font-size: 1rem !important;
        padding: 1.5rem !important;
    }

    .hero .btn-get-started {
        padding: 0.9rem 2rem !important;
        font-size: 0.9rem !important;
    }

    .hero-badge-text {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .hero-divider-line {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .hero-title-welcome {
        font-size: 1.2rem;
    }

    .hero-title-brand {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .hero .hero-subtitle {
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
    }

    .hero-badge {
        padding: 0.4rem 1rem;
    }

    .hero-divider-line {
        width: 40px;
    }
}
