.hero-section{
    position:relative;
    overflow:hidden;
    min-height:100vh;
    display:flex;
    align-items:center;
    opacity:0; 
    transform:translateY(25px);
    background:var(--background-navy);
}

.hero-content,
.hero-showcase{
    position:relative;
    z-index:2;
}

/* included with the hero animation main js*/
.hero-section.loaded{
    animation:heroReveal .85s cubic-bezier(.175,.885,.32,1.1) forwards;
}

@keyframes heroReveal{
    from{
        opacity:0;
        transform:translateY(25px);
        transition:.5s ease;
    }
    to{
        opacity:1;
        transform:translateY(0);
        transition:.5s ease;
    }
}

/* ==========================================================
   HERO BACKGROUND
========================================================== */

.hero-section::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top right,
        rgba(59,130,246,.18),
        transparent 35%),

        radial-gradient(circle at bottom left,
        rgba(96,165,250,.10),
        transparent 40%);

    z-index:-2;
}

.hero-section::after{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px),

        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px);

    background-size:40px 40px;
    z-index:-1;
}

/* ==========================================================
   HERO BADGE
========================================================== */

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:.6rem;
    padding:.7rem 1rem;
    border-radius:var(--radius-pill);
    background:var(--background);
    border:1px solid var(--border-light);
    color:#9ec8ff;
    font-size:.9rem;
    margin-bottom:1.5rem;
}

/* ==========================================================
   HERO TITLE
========================================================== */

.hero-title{
    font-size:clamp(3rem,5vw,4.8rem);
    line-height:1.08;
    font-weight:700;
    margin-bottom:1.5rem;
    color:#fff;
}

.hero-title span{
    background:linear-gradient(
        135deg,
        #60a5fa,
        #3b82f6);

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-description{
    max-width:580px;
    color:rgba(255,255,255,.75);
    font-size:1.1rem;
    line-height:1.8;
    margin-bottom:2rem;
}

.hero-buttons{
    display:flex;
    gap:1rem;
    margin-bottom:2.5rem;
    flex-wrap:wrap;
}

.hero-buttons .btn-outline-light{
    border-radius:var(--radius-pill);
    padding:14px 26px;
    border:1px solid var(--border-light);
    color:#fff;
}

.hero-buttons .btn-outline-light:hover{
    background:#fff;
    color:#0f172a;
}

.hero-features{
    display:flex;
    flex-wrap:wrap;
    gap:1.5rem;
}

.hero-features div{
    display:flex;
    align-items:center;
    gap:.6rem;
    color:rgba(255,255,255,.75);
    font-size:.95rem;
}

.hero-features i{
    color:#3b82f6;
}

/* ==========================================================
   SHOWCASE
========================================================== */

.hero-showcase{
    position:relative;
}

.browser-window{
    position:relative;
    background:#ffffff;
    border-radius:var(--radius-md);
    overflow:hidden;
    border:1px solid var(--border);
    box-shadow:var(--shadow-md);

    transform:
        perspective(1200px)
        rotateY(-8deg)
        rotateX(3deg);
    transition:.5s ease;
}

.browser-window:hover {
    transform:
    perspective(1200px)
    rotateY(0)
    rotateX(0)
    translateY(-10px);
}

.browser-top{
    display:flex;
    align-items:center;
    gap:1rem;
    height:48px;
    padding:0 18px;
    background:#f8fafc;
    border-bottom:1px solid #edf2f7;
}

.browser-buttons{
    display:flex;
    gap:.5rem;
}

.browser-buttons span{
    width:12px;
    height:12px;
    border-radius:50%;
    display:block;
}

.red{
    background:#ff5f57;
}

.yellow{
    background:#ffbd2e;
}

.green{
    background:#28c840;
}

.browser-address{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    height:32px;
    border-radius:var(--radius-pill);
    background:#eef2f7;
    color:#64748b;
    font-size:.82rem;
    font-weight:500;
}

/*.carousel-fade .carousel-item{
    transition: opacity .8s ease-in-out;
}

.carousel-item img{
    width:100%;
    height:420px;
    display:block;
    transform:scale(1);
    transition: transform 6s linear;
}

.carousel-item.active img{
    transform:scale(1.05);
}*/
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.browser-screen .carousel-item {
    transition:
    opacity .8s ease,
    transform .8s ease;
}

.browser-screen .carousel-item img {
    transform:scale(1.02);
    transition:
    transform 5s ease;
}

.browser-screen .carousel-item.active img {
    transform:scale(1);
}

.project-overlay {
    position:absolute;
    bottom:25px;
    left:25px;
    background:
    rgba(15,23,42,.75);
    backdrop-filter:blur(10px);
    padding:15px 20px;
    border-radius:14px;
    color:white;
}

/* =====================================
   HERO CAROUSEL CONTROLS
===================================== */

.hero-carousel-controls {
    position:absolute;
    right:25px;
    bottom:-62px;
    display:flex;
    gap:10px;
    z-index:5;
}

.hero-carousel-controls button {
    width:45px;
    height:45px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.25);
    background:rgba(15,23,42,.75);
    backdrop-filter:blur(10px);
    color:var(--light-blue);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.3s ease;
}

.hero-carousel-controls button:hover {
    background:#175CDD;
    border-color:#175CDD;
    transform:translateY(-3px);
    color:var(--white);
}

.hero-carousel-controls i {
    font-size:18px;
}

/* =====================================
   HERO SCROLL INDICATOR
===================================== */

.hero-scroll {
    position:absolute;
    bottom:10px;
    left:50%;
    transform:translateX(-50%);
    z-index:5;
}

.hero-scroll a {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:1px;
    text-decoration:none;
    color:rgba(255,255,255,.65);
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
    transition:.3s ease;
}

.hero-scroll i {
    font-size:20px;
    animation:
    scrollBounce 2s infinite;
}

.hero-scroll a:hover {
    color:#ffffff;
}

@keyframes scrollBounce {
    0%,
    100% {
        transform:translateY(0);
    }
    50% {
        transform:translateY(8px);
    }
}

/* responsive */
@media (max-width:991.98px){

    .hero-section{
        padding:150px 0 90px;
        text-align:center;
    }

    .hero-description{
        margin-inline:auto;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-features{
        justify-content:center;
    }

    .hero-showcase{
        margin-top:2rem;
    }

    .browser-window {
        transform: 
            perspective(1200px) 
            rotateY(0deg) 
            rotateX(0deg);
    }

    .hero-carousel-controls {
        position: absolute;
        right: 0px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

}

@media (min-width:768px){

    .hero-title{
        font-size:2.8rem;
    }

    .carousel-item img{
        height:320px;
    }

    /*.browser-window {
        transform: 
            perspective(1200px) 
            rotateY(-8deg) 
            rotateX(3deg);
    }*/

}

@media (max-width:575.98px){

    .hero-title{
        font-size:2.2rem;
    }

    .hero-description{
        font-size:1rem;
    }

    .browser-address{
        display:none;
    }

    .carousel-item img{
        height:240px;
    }

}