/* =========================================
   name — ENHANCED STYLES
   With page animations, scroll reveals,
   text animations & seamless sections
========================================= */

/* =========================
   GLOBAL BASE
========================= */
#body-home {
    background-color: #050816;
    color: #dfe1f6;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#align {
    text-align: left;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #050816;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(126, 34, 206, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, #0f1321 0%, #050816 100%);
    background-attachment: fixed;
    color: #dfe1f6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #050816;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7e22ce, #a855f7);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a855f7, #d4af37);
}

/* =========================
   STARFIELD BACKGROUND
   (Fills any "vacant" space
   with cosmic feel)
========================= */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(212, 175, 55, 0.7), transparent),
        radial-gradient(1px 1px at 80% 50%, rgba(168, 85, 247, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 30% 90%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(212, 175, 55, 0.5), transparent);
    background-size: 100% 100%;
    animation: twinkle 6s ease-in-out infinite alternate;
    opacity: 0.6;
}

@keyframes twinkle {
    0%   { opacity: 0.3; }
    50%  { opacity: 0.7; }
    100% { opacity: 0.4; }
}

/* Make sure main content sits above starfield */
main, header, footer, nav {
    position: relative;
    z-index: 1;
}

/* =========================
   GLASS EFFECTS
========================= */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15);
}

.glass-overlay {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-nav {
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(16px);
}

/* =========================
   DIVIDER
========================= */
.celestial-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
}

/* =========================
   SEAMLESS SECTIONS
   Eliminates vacant space
   between sections
========================= */
section {
    position: relative;
    margin: 0;
}

/* Tighten section padding */
.py-section-padding {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

@media (max-width: 768px) {
    .py-section-padding {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }
}

/* Soft gradient bleed between sections so no harsh break */
section + section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg,
        rgba(5, 8, 22, 0.6) 0%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* =========================
   HERO BACKGROUND
========================= */
.hero-gradient {
    background:
        radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(126, 34, 206, 0.15) 0%, rgba(5, 8, 22, 1) 70%);
    overflow: hidden;
}

/* Floating orbs in hero */
.hero-gradient::before,
.hero-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-gradient::before {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.25);
    top: 10%;
    left: -100px;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-gradient::after {
    width: 350px;
    height: 350px;
    background: rgba(212, 175, 55, 0.15);
    bottom: 10%;
    right: -100px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -40px) scale(1.1); }
}

/* =========================
   MATERIAL ICONS
========================= */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* =========================
   HERO IMAGE FRAME
========================= */
.hero-image-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.4),
        rgba(59, 130, 246, 0.2));
    filter: blur(30px);
    z-index: 0;
}

.hero-image-frame {
    width: 100%;
    max-width: 560px;
    padding: 14px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(126, 34, 206, 0.15);
    animation: heroFrameGlow 4s ease-in-out infinite alternate;
}

@keyframes heroFrameGlow {
    0%   { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(126, 34, 206, 0.15); }
    100% { box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(168, 85, 247, 0.35); }
}

.hero-image-inner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

/* =========================
   HERO SLIDER
========================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 720px;
    overflow: hidden;
    border-radius: 24px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transform: scale(1);
    transition: opacity 1.5s ease, transform 6s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1.08);
    z-index: 2;
    animation: floatHero 5s ease-in-out infinite;
}

@keyframes floatHero {
    0%   { transform: scale(1.08) translateY(0px); }
    50%  { transform: scale(1.08) translateY(-12px); }
    100% { transform: scale(1.08) translateY(0px); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.2),
        transparent);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    padding: 32px;
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 14px;
    margin-bottom: 18px;
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
}

.hero-title {
    font-size: 54px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 30%, #d4af37 70%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: titleShimmer 5s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 420px;
}

.hero-services {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 15px;
}

.hero-services > div {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInService 0.7s ease forwards;
}
.hero-services > div:nth-child(1) { animation-delay: 0.6s; }
.hero-services > div:nth-child(2) { animation-delay: 0.8s; }
.hero-services > div:nth-child(3) { animation-delay: 1.0s; }
.hero-services > div:nth-child(4) { animation-delay: 1.2s; }

@keyframes slideInService {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================
   HERO BUTTONS
========================= */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-btn-primary {
    background: #a855f7;
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.hero-btn-primary:hover { transform: scale(1.05); }

.hero-btn-call {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: white;
    color: black;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}
.hero-btn-call:hover { transform: scale(1.1); }

/* =========================
   HERO MOBILE
========================= */
@media (max-width: 768px) {
    .hero-slider  { height: 500px; }
    .hero-title   { font-size: 38px; }
    .hero-content { padding: 24px; }
}

/* =========================
   SERVICE CARDS
========================= */
.service-box:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateX(6px);
}

.service-card {
    position: relative;
    overflow: hidden;
    transition: 0.5s ease;
    border-radius: 24px;
    isolation: isolate;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 20px 50px rgba(168, 85, 247, 0.25),
        0 0 40px rgba(168, 85, 247, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(168, 85, 247, 0.0),
        rgba(168, 85, 247, 0.5),
        rgba(255, 185, 95, 0.4),
        rgba(168, 85, 247, 0.5),
        rgba(168, 85, 247, 0.0));
    filter: blur(25px);
    opacity: 0.35;
    animation: chakraRotate 12s linear infinite;
    z-index: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(168, 85, 247, 0.25) 0%,
        rgba(255, 185, 95, 0.15) 40%,
        transparent 70%);
    animation: chakraPulse 6s ease-in-out infinite;
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    transition: 0.7s ease;
}

.service-card:hover .service-image,
.glass-card:hover .service-image {
    transform: scale(1.08);
}

.service-image-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.service-image-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

.service-btn { transition: 0.4s ease; }

.service-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.service-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 14px;
    transition: 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.service-box:hover {
    background: rgba(168, 85, 247, 0.22);
    transform: translateX(8px);
    border-color: rgba(168, 85, 247, 0.4);
}

@media (max-width: 768px) {
    .service-image { height: 200px; }
    .service-card  { padding: 24px; }
}

/* =========================
   TESTIMONIAL CAROUSEL
========================= */
.testimonial-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-container {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s ease;
}

.testimonial-card {
    width: 40%;
    margin: 10px;
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-card:hover .glass-overlay {
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.35);
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.15);
    backdrop-filter: blur(10px);
    color: #dfe1f6;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.prevBtn { left: -28px; }
.nextBtn { right: -28px; }

@media (max-width: 1023px) and (min-width: 768px) {
    .testimonial-card { min-width: calc(50% - 20px); }
}

@media (max-width: 768px) {
    .testimonial-card { min-width: 100%; }
    .prevBtn { left: 10px; }
    .nextBtn { right: 10px; }
}

/* =========================
   KEYFRAMES — CARDS
========================= */
@keyframes chakraRotate {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes chakraPulse {
    0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.3; }
    50%  { transform: translate(-50%, -50%) scale(1.15); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.3; }
}

/* =========================
   TYPING EFFECTS
========================= */
@keyframes typing {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #d4af37;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 0.7s infinite;
}

.loop-typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #d4af37;
    width: 0;
    animation: typingLoop 4s steps(22, end) infinite, blink 0.7s infinite;
}

@keyframes typingLoop {
    0%   { width: 0; }
    40%  { width: 100%; }
    60%  { width: 100%; }
    100% { width: 0; }
}

/* =========================================
   *** SCROLL REVEAL ANIMATIONS ***
   Add classes to elements in HTML and the
   JS observer toggles `.is-visible`
========================================= */

.reveal {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
    will-change: transform, opacity;
}

.reveal-up         { transform: translateY(60px); }
.reveal-down       { transform: translateY(-60px); }
.reveal-left       { transform: translateX(-80px); }
.reveal-right      { transform: translateX(80px); }
.reveal-scale      { transform: scale(0.85); }
.reveal-rotate     { transform: rotate(-6deg) scale(0.9); }
.reveal-blur       { filter: blur(20px); transform: translateY(20px); }
.reveal-flip       { transform: perspective(1000px) rotateY(-45deg); transform-origin: left center; }

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0) perspective(0) rotateY(0);
    filter: blur(0);
}

/* Stagger delays — add `.delay-1` … `.delay-6` */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }
.delay-5 { transition-delay: 0.7s; }
.delay-6 { transition-delay: 0.85s; }

/* =========================================
   TEXT ANIMATIONS
========================================= */

/* Gradient shimmer text */
.text-shimmer {
    background: linear-gradient(90deg, #ffffff 0%, #d4af37 25%, #a855f7 50%, #d4af37 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerSlide 4s linear infinite;
}

@keyframes shimmerSlide {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Glowing text */
.text-glow {
    text-shadow:
        0 0 10px rgba(168, 85, 247, 0.6),
        0 0 20px rgba(168, 85, 247, 0.4),
        0 0 30px rgba(168, 85, 247, 0.2);
    animation: textGlowPulse 3s ease-in-out infinite;
}

@keyframes textGlowPulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(168, 85, 247, 0.6),
            0 0 20px rgba(168, 85, 247, 0.4),
            0 0 30px rgba(168, 85, 247, 0.2);
    }
    50% {
        text-shadow:
            0 0 15px rgba(212, 175, 55, 0.8),
            0 0 25px rgba(212, 175, 55, 0.5),
            0 0 40px rgba(212, 175, 55, 0.3);
    }
}

/* Floating animation */
.float-y {
    animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.float-x {
    animation: floatX 5s ease-in-out infinite;
}
@keyframes floatX {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(10px); }
}

/* Word-by-word reveal (used by JS) */
.word-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.word-reveal.is-visible .word {
    opacity: 1;
    transform: translateY(0);
}
.word-reveal.is-visible .word:nth-child(1)  { transition-delay: 0.05s; }
.word-reveal.is-visible .word:nth-child(2)  { transition-delay: 0.10s; }
.word-reveal.is-visible .word:nth-child(3)  { transition-delay: 0.15s; }
.word-reveal.is-visible .word:nth-child(4)  { transition-delay: 0.20s; }
.word-reveal.is-visible .word:nth-child(5)  { transition-delay: 0.25s; }
.word-reveal.is-visible .word:nth-child(6)  { transition-delay: 0.30s; }
.word-reveal.is-visible .word:nth-child(7)  { transition-delay: 0.35s; }
.word-reveal.is-visible .word:nth-child(8)  { transition-delay: 0.40s; }
.word-reveal.is-visible .word:nth-child(9)  { transition-delay: 0.45s; }
.word-reveal.is-visible .word:nth-child(10) { transition-delay: 0.50s; }

/* =========================================
   BUTTON ANIMATIONS
========================================= */
button, .btn-animated {
    position: relative;
    overflow: hidden;
}

/* Shine sweep on buttons with .btn-shine */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.6s ease;
}
.btn-shine:hover::after { left: 100%; }

/* Pulse glow */
.btn-pulse {
    animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
    50%      { box-shadow: 0 0 0 12px rgba(168, 85, 247, 0); }
}

/* =========================================
   PAGE LOAD ANIMATION
========================================= */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
main { animation: pageFadeIn 0.8s ease both; }

/* Hero entrance */
.hero-gradient h1,
.hero-gradient p,
.hero-gradient > div > div > .inline-flex,
.hero-gradient .flex.flex-col.sm\:flex-row {
    animation: heroEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-gradient h1 { animation-delay: 0.1s; }
.hero-gradient p  { animation-delay: 0.3s; }
.hero-gradient .flex.flex-col.sm\:flex-row { animation-delay: 0.5s; }

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   IMAGE HOVER (about author etc.)
========================================= */
.glass-card img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass-card:hover img {
    transform: scale(1.04);
}

/* =========================================
   REDUCED MOTION SUPPORT
========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}