/* ===============================
   HERO SECTION ENHANCED DESIGN
   =============================== */

:root {
    --hero-primary: #d7a5ff;
    --hero-secondary: #ffb347;
    --hero-bg1: #090014;
    --hero-bg2: #16042e;
    --hero-text: #ffffff;
    --hero-muted: #d0c6e0;
    --hero-border: rgba(255,255,255,0.12);
    --hero-glass: rgba(255,255,255,0.08);
}

/* HERO SECTION */
.hero-gradient {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(173, 111, 255, 0.25), transparent 30%),
        radial-gradient(circle at bottom right, rgba(0, 153, 255, 0.15), transparent 30%),
        linear-gradient(135deg, var(--hero-bg1), var(--hero-bg2));
    padding: 80px 0;
}

/* STARS EFFECT */
.hero-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.5), transparent);
    background-size: 180px 180px;
    opacity: 0.4;
    animation: starsMove 120s linear infinite;
    z-index: 0;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-1000px);
    }
}

/* CONTENT WRAPPER */
.hero-gradient .grid {
    min-height: calc(100vh - 120px);
    align-items: center;
}

/* GLASS EFFECT */
.glass-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* HERO SMALL TAG */
.text-secondary {
    color: var(--hero-secondary);
}

/* TITLE */
.text-display-xl {
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 800;
    color: var(--hero-text);
    line-height: 1.05;
    letter-spacing: -2px;
}

/* TEXT REVEAL ANIMATION */
.text-display-xl,
.text-body-lg,
.hero-badge,
.hero-title,
.hero-text,
.hero-services div,
button {
    opacity: 0;
    transform: translateY(40px);
    animation: revealText 1s ease forwards;
}

.text-display-xl {
    animation-delay: 0.2s;
}

.text-body-lg {
    animation-delay: 0.5s;
}

button:nth-child(1) {
    animation-delay: 0.8s;
}

button:nth-child(2) {
    animation-delay: 1s;
}

.hero-badge {
    animation-delay: 0.5s;
}

.hero-title {
    animation-delay: 0.8s;
}

.hero-text {
    animation-delay: 1s;
}

.hero-services div:nth-child(1) {
    animation-delay: 1.2s;
}

.hero-services div:nth-child(2) {
    animation-delay: 1.4s;
}

.hero-services div:nth-child(3) {
    animation-delay: 1.6s;
}

.hero-services div:nth-child(4) {
    animation-delay: 1.8s;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HIGHLIGHT TEXT */
.text-primary {
    background: linear-gradient(to right, #f6d2ff, #b788ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* DESCRIPTION */
.text-body-lg {
    color: var(--hero-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* BUTTONS */
button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    transition: 0.6s;
}

button:hover::before {
    left: 120%;
}

button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

/* HERO IMAGE FRAME */
.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 14px;
    border-radius: 36px;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.15),
        rgba(255,255,255,0.04)
    );
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.45),
        0 0 40px rgba(180, 120, 255, 0.18);
    animation: floatHero 6s ease-in-out infinite;
}

@keyframes floatHero {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-14px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* INNER IMAGE */
.hero-image-inner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 720px;
    background: #000;
}

/* IMAGE SLIDER */
.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease;
    transform: scale(1);
}

.hero-main-image.active {
    opacity: 1;
    transform: scale(1.08);
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.15)),
        linear-gradient(to right, rgba(14,0,26,0.45), transparent);
}

/* CONTENT OVER IMAGE */
.hero-content {
    position: absolute;
    bottom: 40px;
    left: 35px;
    right: 35px;
    z-index: 2;
}

/* BADGE */
.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* HERO TITLE */
.hero-title {
    font-size: clamp(2.7rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: 18px;
}

/* HERO TEXT */
.hero-text {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* SERVICES */
.hero-services {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-services div {
    color: #fff;
    font-size: 1rem;
    padding-left: 4px;
    transition: all 0.4s ease;
}

.hero-services div:hover {
    transform: translateX(8px);
    color: var(--hero-secondary);
}

/* GLOW EFFECT */
.hero-image-frame::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        45deg,
        rgba(186,85,255,0.4),
        rgba(0,183,255,0.2),
        rgba(255,196,0,0.25)
    );
    z-index: -1;
    filter: blur(22px);
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 1024px) {

    .hero-gradient {
        padding: 120px 0 80px;
    }

    .hero-image-inner {
        min-height: 620px;
    }

    .hero-content {
        bottom: 30px;
        left: 25px;
        right: 25px;
    }
}

@media (max-width: 768px) {

    .hero-gradient {
        padding: 100px 0 60px;
    }

    .text-display-xl {
        font-size: 3rem;
        line-height: 1.15;
    }

    .hero-image-frame {
        max-width: 100%;
    }

    .hero-image-inner {
        min-height: 540px;
    }

    .hero-content {
        bottom: 24px;
        left: 20px;
        right: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }
}

/* SMOOTH FADE FOR IMAGE CHANGE */
.slide {
    opacity: 0;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* OPTIONAL GLOW ORBS */
.hero-gradient::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(186,85,255,0.18), transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
    animation: pulseGlow 6s ease infinite;
}

@keyframes pulseGlow {
    0%,100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* =========================================
   ONE BY ONE WORD REVEAL
========================================= */

.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(80px) rotate(8deg);
    filter: blur(10px);
    animation: wordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* DELAYS */
.reveal-word:nth-child(1) { animation-delay: 0.1s; }
.reveal-word:nth-child(2) { animation-delay: 0.25s; }
.reveal-word:nth-child(3) { animation-delay: 0.4s; }
.reveal-word:nth-child(4) { animation-delay: 0.55s; }
.reveal-word:nth-child(5) { animation-delay: 0.7s; }
.reveal-word:nth-child(6) { animation-delay: 0.85s; }
.reveal-word:nth-child(7) { animation-delay: 1s; }

@keyframes wordReveal {

    0% {
        opacity: 0;
        transform: translateY(80px) rotate(8deg);
        filter: blur(10px);
    }

    60% {
        opacity: 1;
        transform: translateY(-8px) rotate(-2deg);
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
        filter: blur(0px);
    }
}

/* DESCRIPTION */
.hero-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.78);

    opacity: 0;
    transform: translateY(30px);

    animation: fadeUp 1s ease forwards;
    animation-delay: 1.3s;
}

/* BUTTONS */
.hero-btn-wrapper a {
    opacity: 0;
    transform: translateY(30px);
}

.hero-btn-wrapper a:nth-child(1) {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.6s;
}

.hero-btn-wrapper a:nth-child(2) {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.9s;
}

/* BUTTON PRIMARY */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 18px 34px;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #ffb347,
        #ffcc33
    );

    color: #111;
    font-weight: 700;

    transition: 0.4s ease;
}

/* BUTTON SECONDARY */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 18px 34px;
    border-radius: 16px;

    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(255,255,255,0.04);

    color: #fff;
    backdrop-filter: blur(10px);

    transition: 0.4s ease;
}

/* HOVER */
.hero-btn-primary:hover,
.hero-btn-secondary:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.35);
}

/* FADE UP */
@keyframes fadeUp {

    to {
        opacity: 1;
        transform: translateY(0);
    }
}