/* ========================================================
   PrimeVisa Legal Services — Premium CSS Design System
   ======================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --brand-start: #4f46e5;
    --brand-end: #06b6d4;
    --brand-accent: #6c63ff;
    --brand-light: #eef2ff;
    --brand-surface: #f8faff;

    --footer-dark: #071228;
    --footer-accent: #0b3b4b;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, .05), 0 2px 4px rgba(0, 0, 0, .04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, .08), 0 4px 10px rgba(0, 0, 0, .04);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, .12);

    --transition-base: 0.3s cubic-bezier(.4, 0, .2, 1);
    --transition-bounce: 0.4s cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--brand-start);
    transition: color var(--transition-base);
}

a:hover:not(.navbar-brand) {
    color: var(--brand-end);
}

/* ---------- Utility Classes ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Topbar ---------- */
.topbar {
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    color: #fff;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1030;
}

.topbar a {
    color: rgba(255, 255, 255, 0.95);
    transition: color var(--transition-base);
}

.topbar a:hover {
    color: #fff;
    text-decoration: underline;
}

.topbar i {
    font-size: 0.9rem;
}

/* ---------- Navbar ---------- */
.navbar {
    padding: 0.8rem 0;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1020;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar .navbar-brand {
    color: rgba(79, 70, 229, 0.75) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(79, 70, 229, 0.15);
    transition: all 0.3s ease;
}

.navbar .navbar-brand:hover {
    color: rgba(79, 70, 229, 1) !important;
    text-shadow: 0 0 25px rgba(79, 70, 229, 0.3);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 0.65rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    font-size: 0.92rem;
    white-space: nowrap;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand-start) !important;
    background: var(--brand-light);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: var(--brand-light);
    color: var(--brand-start);
}

.lang-btn.active {
    background: var(--brand-light);
    color: var(--brand-start);
    pointer-events: none;
}

.lang-btn img {
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    border-radius: 2px;
    transition: transform var(--transition-base);
}

.navbar .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.dropdown-item:hover {
    background: var(--brand-light);
    color: var(--brand-start);
}

/* Nav CTA button — with pulse glow animation */
.nav-cta {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    white-space: nowrap;
    font-size: 0.85rem;
    transition: all var(--transition-base) !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    animation: ctaPulseGlow 2.5s ease-in-out infinite;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, var(--brand-end), var(--brand-start)) !important;
    animation: none;
}

@keyframes ctaPulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(79, 70, 229, 0.6), 0 0 40px rgba(79, 70, 229, 0.2);
    }
}

/* IAA Regulated Badge */
.iaa-badge {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #16a34a, #059669);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
    animation: iaaPulse 3s ease-in-out infinite;
}

@keyframes iaaPulse {

    0%,
    100% {
        box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
    }

    50% {
        box-shadow: 0 2px 12px rgba(22, 163, 74, 0.5);
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--brand-light);
    border-radius: var(--radius-sm);
    padding: 0.2rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand-start) !important;
    padding-left: 0.6rem;
}

.lang-btn.active {
    background: #fff;
    color: var(--brand-start) !important;
    box-shadow: var(--shadow-sm);
}

.lang-btn img {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ---------- Hero Carousel ---------- */
.hero-section {
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

/* Particle canvas overlay */
.hero-section #particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#heroCarousel .carousel-caption {
    z-index: 3;
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #fff;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Floating parallax decorations */
.parallax-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.parallax-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatDot linear infinite;
}

.parallax-dot:nth-child(1) {
    width: 80px;
    height: 80px;
    background: var(--brand-start);
    top: 10%;
    left: 5%;
    animation-duration: 8s;
}

.parallax-dot:nth-child(2) {
    width: 40px;
    height: 40px;
    background: var(--brand-end);
    top: 60%;
    left: 15%;
    animation-duration: 6s;
    animation-delay: -2s;
}

.parallax-dot:nth-child(3) {
    width: 60px;
    height: 60px;
    background: #a855f7;
    top: 30%;
    right: 10%;
    animation-duration: 10s;
    animation-delay: -4s;
}

.parallax-dot:nth-child(4) {
    width: 30px;
    height: 30px;
    background: var(--brand-end);
    top: 75%;
    right: 20%;
    animation-duration: 7s;
    animation-delay: -1s;
}

.parallax-dot:nth-child(5) {
    width: 50px;
    height: 50px;
    background: var(--brand-start);
    top: 50%;
    left: 70%;
    animation-duration: 9s;
    animation-delay: -3s;
}

@keyframes floatDot {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    75% {
        transform: translateY(-25px) rotate(3deg);
    }
}

#heroCarousel .carousel-item {
    height: 520px;
    overflow: hidden;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    transition: transform 8s ease;
}

#heroCarousel .carousel-item.active img {
    transform: scale(1.05);
}

#heroCarousel .carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(7, 18, 40, 0.7) 0%, rgba(7, 18, 40, 0.2) 60%, transparent 100%);
}

#heroCarousel .carousel-caption h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
    animation: heroFadeUp 0.8s ease both;
}

#heroCarousel .carousel-caption p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    animation: heroFadeUp 0.8s ease 0.2s both;
}

#heroCarousel .carousel-caption .btn {
    animation: heroFadeUp 0.8s ease 0.4s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    transition: all var(--transition-base);
    margin: 0 5px;
}

#heroCarousel .carousel-indicators .active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    margin: 0 1.5rem;
    transition: all var(--transition-base);
    opacity: 0;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---------- Buttons — with gradient border animation ---------- */
.btn-brand {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    border: none;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-brand::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from var(--gradient-angle, 0deg), var(--brand-start), var(--brand-end), #a855f7, var(--brand-start));
    border-radius: inherit;
    z-index: -2;
    animation: rotateGradientBorder 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-brand::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    border-radius: calc(var(--radius-md) - 2px);
    z-index: -1;
    transition: opacity var(--transition-base);
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: #fff;
}

.btn-brand:hover::before {
    opacity: 1;
}

.btn-brand:hover::after {
    background: linear-gradient(135deg, var(--brand-end), var(--brand-start));
}

.btn-brand span {
    position: relative;
    z-index: 1;
}

@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateGradientBorder {
    to {
        --gradient-angle: 360deg;
    }
}

.btn-outline-brand {
    border: 2px solid var(--brand-start);
    color: var(--brand-start);
    background: transparent;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-outline-brand:hover {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

/* ---------- Services Section ---------- */
#services {
    background: var(--brand-surface);
    padding: 5rem 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(79, 70, 229, 0.08) !important;
    overflow: hidden;
    transition: all var(--transition-bounce);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.15), 0 0 0 1px rgba(79, 70, 229, 0.1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(79, 70, 229, 0.2) !important;
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.service-card .card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.8));
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-card .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--brand-start);
    font-size: 1.3rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
}

/* ---------- About Section ---------- */
#about {
    padding: 5rem 0;
    background: #fff;
}

#about h2 {
    font-size: 2.2rem;
}

.about-photo {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.about-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));
    z-index: 1;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
    transition: transform var(--transition-base);
}

.about-photo:hover img {
    transform: scale(1.03);
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-light);
    color: var(--brand-start);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ---------- Why Choose Us ---------- */
#why-us {
    padding: 5rem 0;
    background: var(--brand-surface);
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-bounce);
    border: 1px solid rgba(79, 70, 229, 0.06);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 1.5rem;
    transition: transform var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- Assessment CTA ---------- */
#assessment-cta {
    padding: 5rem 0;
    background: #fff;
}

.assessment-card {
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
    border: none !important;
    box-shadow: var(--shadow-xl);
    background: #fff;
}

.assessment-gradient {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    position: relative;
    min-height: 300px;
}

.assessment-gradient img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    mix-blend-mode: overlay;
}

/* ---------- Testimonials ---------- */
#testimonials {
    padding: 5rem 0;
    background: var(--brand-surface);
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(79, 70, 229, 0.06) !important;
    transition: all var(--transition-bounce);
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card .card-body {
    padding: 1.75rem;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.testimonial-quote {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    padding-left: 1.25rem;
    border-left: 3px solid var(--brand-start);
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author h6 {
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-author small {
    color: var(--text-muted);
}

/* ---------- Blog Section ---------- */
#latest-blogs {
    padding: 5rem 0;
    background: #fff;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(79, 70, 229, 0.06) !important;
    overflow: hidden;
    transition: all var(--transition-bounce);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.blog-card .card-img-wrapper {
    overflow: hidden;
    height: 220px;
}

.blog-card .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.blog-card:hover .card-img-top {
    transform: scale(1.08);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card .card-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.blog-card:hover .card-title {
    color: var(--brand-start);
}

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(180deg, var(--footer-dark) 0%, var(--footer-accent) 100%);
    color: #e6f5fb;
    padding: 3.5rem 0 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
}

.site-footer h5,
.site-footer h6 {
    color: #fff;
}

.site-footer a {
    color: rgba(207, 238, 255, 0.85);
    transition: all var(--transition-base);
}

.site-footer a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links li a::before {
    content: '›';
    font-weight: 700;
    opacity: 0;
    transition: all var(--transition-base);
    transform: translateX(-8px);
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 200px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(230, 245, 251, 0.6);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e6f5fb;
    margin: 0 0.25rem;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    transform: translateY(-3px);
    padding-left: 0;
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(.4, 0, .2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(.4, 0, .2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(.4, 0, .2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(.4, 0, .2, 1);
}

.reveal-stagger.revealed>*:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal-stagger.revealed>*:nth-child(2) {
    transition-delay: 0.15s;
}

.reveal-stagger.revealed>*:nth-child(3) {
    transition-delay: 0.25s;
}

.reveal-stagger.revealed>*:nth-child(4) {
    transition-delay: 0.35s;
}

.reveal-stagger.revealed>*:nth-child(5) {
    transition-delay: 0.45s;
}

.reveal-stagger.revealed>* {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    #heroCarousel .carousel-item {
        height: 400px;
    }

    #heroCarousel .carousel-caption h2 {
        font-size: 2rem;
    }

    #heroCarousel .carousel-caption p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    #heroCarousel .carousel-item {
        height: 320px;
    }

    #heroCarousel .carousel-caption h2 {
        font-size: 1.6rem;
    }

    #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
    }

    .topbar .container {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .section-title {
        font-size: 1.5rem;
    }

    #services,
    #about,
    #why-us,
    #assessment-cta,
    #testimonials,
    #latest-blogs {
        padding: 3rem 0;
    }

    .service-card .card-img-top {
        height: 160px;
    }

    .about-photo img {
        min-height: 250px;
    }

    .blog-card .card-img-wrapper {
        height: 180px;
    }
}

/* ---------- Modal ---------- */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-family: 'Outfit', sans-serif;
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- Loading animation for page ---------- */
.page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid var(--brand-light);
    border-top-color: var(--brand-start);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================================
   PREMIUM MICRO-ANIMATIONS & POLISH
   ======================================================== */

/* ---------- Floating Animation ---------- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(1deg);
    }
}

/* ---------- Gradient Shimmer on Buttons ---------- */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.btn-brand:hover {
    background-size: 200% auto;
    animation: shimmer 2s linear infinite;
}

.nav-cta:hover {
    animation: shimmer 2s linear infinite;
    background-size: 200% auto;
}

/* ---------- Pulse Glow on CTA ---------- */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    }

    50% {
        box-shadow: 0 4px 30px rgba(79, 70, 229, 0.5), 0 0 60px rgba(79, 70, 229, 0.15);
    }
}

#assessment-cta .btn-brand {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ---------- Navbar Brand Icon Spin on Hover ---------- */
.navbar-brand i {
    transition: transform var(--transition-bounce);
    display: inline-block;
}

.navbar-brand:hover i {
    transform: rotate(15deg) scale(1.15);
}

/* ---------- Service Icon Float on Reveal ---------- */
.service-card.revealed .service-icon,
.reveal-stagger.revealed .service-icon {
    animation: float 3s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
    animation: float 1.5s ease-in-out infinite;
}

/* ---------- Testimonial Card Gradient Border on Hover ---------- */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}

.testimonial-card {
    position: relative;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

/* ---------- Stars twinkle animation ---------- */
@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.testimonial-stars {
    letter-spacing: 2px;
}

.testimonial-card:hover .testimonial-stars {
    animation: twinkle 1.5s ease-in-out infinite;
}

/* ---------- About Badge Bounce ---------- */
.about-badge {
    transition: all var(--transition-bounce);
}

.about-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.about-badge i {
    transition: transform var(--transition-bounce);
}

.about-badge:hover i {
    transform: rotate(10deg) scale(1.2);
}

/* ---------- Footer Link Arrow Slide ---------- */
.footer-links li a {
    position: relative;
    overflow: hidden;
}

.footer-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-end);
    transition: width 0.3s ease;
}

.footer-links li a:hover::after {
    width: 100%;
}

/* ---------- Smooth Counter Number Reveal ---------- */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- Service Card Image Overlay Gradient Sweep ---------- */
.service-card .card-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 2;
    transition: left 0.6s ease;
}

.service-card:hover .card-img-wrapper::before {
    left: 100%;
}

/* ---------- Assessment Card Image Parallax Effect ---------- */
.assessment-gradient img {
    transition: transform 0.6s ease;
}

.assessment-card:hover .assessment-gradient img {
    transform: scale(1.08);
}

/* ---------- Back-to-Top Bounce ---------- */
@keyframes bounceUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.back-to-top.visible {
    animation: bounceUp 2s ease-in-out infinite;
}

.back-to-top:hover {
    animation: none;
    transform: translateY(-4px);
}

/* ---------- Topbar Subtle Slide In ---------- */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.topbar {
    animation: slideDown 0.5s ease-out;
}

/* ---------- Stagger Delay for 6-item grids ---------- */
.reveal-stagger.revealed>*:nth-child(6) {
    transition-delay: 0.55s;
}

/* ---------- Gradient Text Shimmer on Hover ---------- */
.gradient-text {
    background-size: 200% auto;
    transition: background-position 0.8s ease;
}

.gradient-text:hover {
    animation: shimmer 3s linear infinite;
}

/* ---------- Smooth Page Entrance ---------- */
@keyframes pageEntrance {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: pageEntrance 0.6s ease-out;
}

/* ---------- Carousel Slide Transition Enhancement ---------- */
#heroCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

/* ---------- Interactive Focus States ---------- */
.btn-brand:focus-visible,
.btn-outline-brand:focus-visible,
.nav-cta:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.5);
    outline-offset: 3px;
}

/* ---------- Smooth Scroll Indicator Line Under Navbar ---------- */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    transition: width 0.3s ease;
}

.navbar.scrolled::after {
    width: 100%;
}

/* ---------- Contact Info Card Glow ---------- */
.contact-info-card {
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.03), transparent);
    transition: left 0.5s ease;
}

.contact-info-card:hover::before {
    left: 100%;
}

/* ---------- Enhanced Responsive: Mobile Animations ---------- */
@media (max-width: 767px) {

    .service-card.revealed .service-icon,
    .reveal-stagger.revealed .service-icon {
        animation: none;
    }

    .back-to-top.visible {
        animation: none;
    }

    .lang-switcher {
        margin-top: 0.5rem;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    .parallax-dot,
    .typewriter-cursor {
        animation: none !important;
    }

    .nav-cta {
        animation: none !important;
    }

    .btn-brand::before {
        animation: none !important;
    }

    #particleCanvas {
        display: none !important;
    }
}

/* ---------- Print Styles ---------- */
@media print {

    .topbar,
    .navbar,
    .back-to-top,
    .lang-switcher,
    .footer-map,
    .parallax-shapes,
    #particleCanvas {
        display: none !important;
    }

    body {
        animation: none;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}