/**
 * Hero Section - WOW Edition
 * ANS System Certification
 */

/* Hero Section Override */
#hero.hero.section.dark-background {
    width: 100%;
    min-height: 90vh;
    position: relative;
    padding: 140px 0 80px 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    overflow: hidden;
}

/* Animated Gradient Overlay */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(120, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 200, 255, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 0, 128, 0.2) 0%, transparent 50%);
    z-index: 1;
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Floating Orbs */
#hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    z-index: 1;
    animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-50px, 30px) scale(1.1);
    }
    66% {
        transform: translate(30px, -20px) scale(0.95);
    }
}

/* Secondary Orb */
#hero .hero-orb-secondary {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 1;
    animation: floatOrb2 12s ease-in-out infinite;
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -40px) scale(1.15);
    }
}

/* Tertiary Orb */
#hero .hero-orb-tertiary {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 40%;
    left: 60%;
    z-index: 1;
    animation: floatOrb3 10s ease-in-out infinite;
}

@keyframes floatOrb3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-30px, 20px);
    }
    75% {
        transform: translate(20px, -30px);
    }
}

/* Grid Pattern Overlay */
#hero .hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Hero Background Image */
#hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.15;
    filter: blur(1px);
}

/* Container z-index */
#hero .container {
    position: relative;
    z-index: 10;
}

/* Hero Title */
#hero h2 {
    margin-bottom: 25px;
    padding: 0;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 40px rgba(99, 102, 241, 0.5), 0 0 80px rgba(99, 102, 241, 0.2);
    }
    100% {
        text-shadow: 0 0 60px rgba(236, 72, 153, 0.6), 0 0 100px rgba(236, 72, 153, 0.3);
    }
}

/* Gradient Text Effect */
#hero h2 .text-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Hero Paragraph */
#hero p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 550px;
}

/* Search Form */
#hero .form-search {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    max-width: 550px;
}

#hero .form-search:focus-within {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

#hero .form-search .form-control {
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: transparent;
    color: #ffffff;
    flex: 1;
}

#hero .form-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#hero .form-search .form-control:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

/* Search Button */
#hero .form-search .btn-search {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#hero .form-search .btn-search:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

/* Search Dropdown */
#hero .iso-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#hero .iso-dropdown-menu.show {
    display: block;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero .iso-dropdown-menu .dropdown-item {
    display: block;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#hero .iso-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

#hero .iso-dropdown-menu .dropdown-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #fff;
    padding-left: 35px;
}

/* Hero Image */
#hero .hero-img img {
    animation: heroFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(168, 85, 247, 0.4));
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Sparkle Effects */
#hero .sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px rgba(168, 85, 247, 0.8);
    z-index: 2;
    animation: sparkle 2s ease-in-out infinite;
}

#hero .sparkle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
#hero .sparkle:nth-child(2) { top: 60%; left: 10%; animation-delay: 0.5s; }
#hero .sparkle:nth-child(3) { top: 30%; right: 20%; animation-delay: 1s; }
#hero .sparkle:nth-child(4) { top: 70%; right: 15%; animation-delay: 1.5s; }
#hero .sparkle:nth-child(5) { top: 45%; left: 50%; animation-delay: 0.3s; }

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Trust Badge */
#hero .trust-badges {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

#hero .trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#hero .trust-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

#hero .trust-badge i {
    font-size: 1.25rem;
    color: #22d3ee;
}

#hero .trust-badge span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 991px) {
    #hero.hero.section.dark-background {
        min-height: 80vh;
        padding: 120px 0 60px 0;
    }

    #hero h2 {
        font-size: 42px;
    }

    #hero::after {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -150px;
    }
}

@media (max-width: 767px) {
    #hero.hero.section.dark-background {
        min-height: auto;
        padding: 100px 0 60px 0;
    }

    #hero h2 {
        font-size: 32px;
        text-align: center;
    }

    #hero p {
        font-size: 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #hero .form-search {
        max-width: 100%;
    }

    #hero .trust-badges {
        justify-content: center;
    }

    #hero::after,
    #hero .hero-orb-secondary,
    #hero .hero-orb-tertiary {
        display: none;
    }

    #hero .sparkle {
        display: none;
    }
}

@media (max-width: 480px) {
    #hero h2 {
        font-size: 28px;
    }

    #hero .form-search {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
    }

    #hero .form-search .form-control {
        border-radius: 15px;
        margin-bottom: 10px;
        background: rgba(255, 255, 255, 0.05);
    }

    #hero .form-search .btn-search {
        width: 100%;
        border-radius: 15px;
    }

    #hero .trust-badge {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

