/*=========================================================
    HP-EXAM-PRO
    HERO.CSS
    --------------------------------------------------------
    Landing Page Hero Section
==========================================================*/

/*=========================================
    HERO SECTION
=========================================*/

.hero-section{
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(
        135deg,
        #f8fbff 0%,
        #eef5ff 100%
    );
}

/* Background Overlay */

.hero-section::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right,
        rgba(13,110,253,.10),
        transparent 40%);
    pointer-events: none;
}

/*=========================================
    HERO CONTENT
=========================================*/

.hero-content{
    position: relative;
    z-index: 2;
}

.hero-subtitle{
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    margin-bottom: 1.5rem;

    border-radius: 999px;
    background: rgba(13,110,253,.10);
    color: var(--primary);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85rem;
}

.hero-title{
    font-size: 3.75rem;
    line-height: 1.15;
    font-weight: var(--fw-bold);
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.hero-title span{
    color: var(--primary);
}

.hero-text{
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

/*=========================================
    HERO BUTTONS
=========================================*/

.hero-buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/*=========================================
    HERO STATS
=========================================*/

.hero-stats{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-stat{
    min-width: 120px;
}

.hero-stat h3{
    margin-bottom: .25rem;
    color: var(--primary);
    font-size: 2rem;
    font-weight: var(--fw-bold);
}

.hero-stat p{
    margin: 0;
    color: var(--gray-600);
    font-size: .95rem;
}

/*=========================================
    HERO IMAGE
=========================================*/

.hero-image{
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-image img{
    width: 100%;
    max-width: 560px;
    margin: auto;
    animation: heroFloat 4s ease-in-out infinite;
}

/* Floating Card */

.hero-card{
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
}

.hero-card h6{
    margin-bottom: .25rem;
}

.hero-card p{
    margin: 0;
    font-size: .875rem;
}

.hero-card.top{
    top: 10%;
    left: -10%;
}

.hero-card.bottom{
    bottom: 8%;
    right: -5%;
}

/*=========================================
    SCROLL INDICATOR
=========================================*/

.scroll-indicator{
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
}

.scroll-indicator span{
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before{
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    border-radius: 10px;
    background: var(--primary);
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

/*=========================================
    DECORATIVE SHAPES
=========================================*/

.hero-shape{
    position: absolute;
    border-radius: 50%;
    opacity: .15;
    z-index: 1;
}

.hero-shape.one{
    width: 180px;
    height: 180px;
    background: var(--primary);
    top: -50px;
    right: -50px;
}

.hero-shape.two{
    width: 120px;
    height: 120px;
    background: var(--success);
    bottom: 80px;
    left: -40px;
}

.hero-shape.three{
    width: 80px;
    height: 80px;
    background: var(--warning);
    top: 45%;
    right: 10%;
}

/*=========================================
    ANIMATIONS
=========================================*/

@keyframes heroFloat{

    0%,
    100%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-12px);
    }

}

@keyframes scrollDown{

    0%{
        opacity: 0;
        transform: translate(-50%,0);
    }

    50%{
        opacity: 1;
    }

    100%{
        opacity: 0;
        transform: translate(-50%,16px);
    }

}

/*=========================================
    RESPONSIVE
=========================================*/

@media (max-width:991.98px){

    .hero-section{
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-title{
        font-size: 3rem;
    }

    .hero-text{
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-stats{
        justify-content: center;
    }

    .hero-image{
        margin-top: 3rem;
    }

    .hero-card{
        display: none;
    }

}

@media (max-width:767.98px){

    .hero-title{
        font-size: 2.4rem;
    }

    .hero-text{
        font-size: 1rem;
    }

    .hero-stats{
        gap: 1.5rem;
    }

}

@media (max-width:575.98px){

    .hero-section{
        padding: 90px 0 50px;
    }

    .hero-title{
        font-size: 2rem;
    }

    .hero-buttons{
        flex-direction: column;
    }

    .hero-buttons .btn{
        width: 100%;
    }

    .hero-stat{
        flex: 1 1 45%;
    }

}