:root {
    /* **REVERTED THEME** Gradient Blue-Purple + Dark Base */
    --dark-bg: #0d0d1a;
    --primary-glow: #007bff;
    --secondary-glow: #6f42c1;
    --text-color: #ffffff;
    /* Brighter main text for more pop */
    --text-muted: #f0f2f5;
    /* FINAL, BRIGHTEST FIX: Maximum readability */
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #0b0b18;
    /* a touch lighter */

    color: var(--text-color);
}

/* ===== Scroll Progress Bar ===== */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    z-index: 9999;
    transition: width 0.15s ease-out;
}

/* --- **DEFINITIVE FIX** for all muted text --- */
.text-muted,
.testimonial-quote,
.testimonial-author small,
.footer a {
    color: var(--text-muted) !important;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: rgba(13, 13, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: transform 0.3s ease-in-out;
    /* For hide/show animation */
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-brand {
    font-weight: 800;
}

.nav-link {
    font-weight: 600;
    transition: color 0.3s;
    color: #ffffff !important;
    /* pure white for visibility */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-glow) !important;
    /* keep your brand hover color */
}


.nav-link:hover,
.nav-link.active {
    color: var(--primary-glow);
}

.btn-navbar {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    color: white;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-navbar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    /* Ensures content is on top of the animation */
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    min-height: 190px;
    /* Space for two lines of text */
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
        /* Reduced font size for mobile */
        min-height: 120px;
    }
}

.hero h1 .gradient-text {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lead {
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
    font-size: 1.2rem;
}

.btn-outline-light {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    border-width: 2px;
}

/* --- General Section Styling --- */
.section {
    padding: 6rem 0;
}

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* --- Services Section --- */
.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: border-color 0.3s ease, transform 0.1s linear;
    height: 100%;
    overflow: hidden;
    position: relative;
    /* For spotlight effect */
    will-change: transform;
    /* Performance optimization */
}

/* --- Spotlight Effect for Cards --- */
#services .service-card::before,
.testimonial-card::before {
    content: "";
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    width: 0px;
    height: 0px;
    background: radial-gradient(circle closest-side, var(--primary-glow), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: width 0.4s, height 0.4s, opacity 0.4s;
}

#services .service-card:hover::before,
.testimonial-card:hover::before {
    width: 500px;
    height: 500px;
    opacity: 0.15;
}

.service-card:hover {
    border-color: var(--primary-glow);
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-body {
    padding: 1.5rem 2rem 2rem;
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 56px;
    /* FIXED: Ensures titles have a consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- About Section Redesign --- */
#about {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at center, rgba(0, 123, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(0, 123, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: pulseGrid 8s infinite linear;
    z-index: 0;
}

@keyframes pulseGrid {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#about .container {
    position: relative;
    z-index: 1;
}

#about .section-title {
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow), var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* --- Blog Card Hover --- */
#blog .service-card {
    transition: transform 0.3s ease;
}

#blog .service-card:hover {
    animation: vibrate-1 0.3s linear both;
}

@keyframes vibrate-1 {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-1px, 1px) rotate(-0.5deg);
    }

    40% {
        transform: translate(-1px, -1px) rotate(-0.5deg);
    }

    60% {
        transform: translate(1px, 1px) rotate(0.5deg);
    }

    80% {
        transform: translate(1px, -1px) rotate(0.5deg);
    }

    100% {
        transform: translate(0);
    }
}

/* --- Pricing Section --- */
/* ===== Compact Pricing Cards ===== */
.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem;
    /* reduced from 2.5rem */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.pricing-card .pricing-content {
    background: var(--dark-bg);
    position: relative;
    z-index: 1;
    margin: 2px;
    border-radius: 18px;
    padding: 1.8rem;
    /* reduced padding */
    display: flex;
    flex-direction: column;
}

.pricing-card .plan-name {
    font-weight: 600;
    font-size: 1.1rem;
    /* slightly smaller */
}

.pricing-card .price {
    font-size: 2.6rem;
    /* reduced from 3.5rem */
    font-weight: 700;
    margin: 0.6rem 0;
}

.pricing-card .price span {
    font-size: 0.9rem;
}

.pricing-card ul li {
    margin-bottom: 0.7rem;
    /* tighter list spacing */
    font-size: 0.95rem;
    /* slightly smaller text */
}

.pricing-card p {
    font-size: 0.95rem;
    line-height: 1.4;
}


/* New Border Chase Animation */
.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent, var(--primary-glow), transparent 30%);
    border-radius: 20px;
    animation: border-chase 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes border-chase {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.pricing-card:hover::after {
    opacity: 1;
}

.pricing-card .pricing-content {
    background: var(--dark-bg);
    position: relative;
    z-index: 1;
    margin: 2px;
    border-radius: 18px;
    height: calc(100% - 4px);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border-color: var(--primary-glow);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.3);
    transform: scale(1.05);
}

.pricing-card.popular::after {
    animation-duration: 2s;
    /* Faster for popular */
}

.pricing-card .plan-name {
    font-weight: 600;
    font-size: 1.2rem;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-card ul li .bi {
    color: var(--primary-glow);
    margin-right: 10px;
}

/* --- New Testimonial Card Styling --- */
/* --- New Testimonial Card Styling --- */
.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    min-height: 270px;
    /* ensures uniform minimum height */
    height: 100%;
    /* allows flexible stretch in grid */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease, transform 0.1s linear;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.testimonial-card:hover {
    border-color: var(--secondary-glow);
}

/* Star rating color */
.testimonial-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Quote text inside testimonial */
.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    flex-grow: 1;
    color: var(--text-muted);
}

/* --- Testimonial Author Layout --- */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: left;
    flex-wrap: nowrap;
    /* Keep avatar & text on one line */
}

/* --- Avatar Styling (Circular Image) --- */
.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover glow on avatar */
.testimonial-card:hover .testimonial-author img {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(111, 66, 193, 0.6);
}

/* Name and role styling */
.testimonial-author h6 {
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.testimonial-author small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Equal Height & Responsive Fixes --- */
@media (max-width: 992px) {
    .testimonial-card {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
        min-height: 320px;
    }

    .testimonial-author {
        gap: 0.8rem;
    }

    .testimonial-author img {
        width: 55px;
        height: 55px;
    }

    .testimonial-quote {
        font-size: 1rem;
    }
}

/* --- For very small screens (no vertical stacking) --- */
@media (max-width: 480px) {
    .testimonial-author {
        flex-direction: row;
        /* Always horizontal */
        justify-content: flex-start;
        text-align: left;
    }

    .testimonial-author img {
        margin-right: 0.7rem;
        margin-bottom: 0;
    }
}


/* --- New Swiper Carousel Styling --- */
.swiper-container {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
}

.swiper-pagination-bullet {
    background-color: var(--border-color);
    width: 10px;
    height: 10px;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-glow);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow), var(--primary-glow));
    padding: 5rem 2rem;
    /* Reduced padding */
    border-radius: 20px;
    text-align: center;
    background-size: 300% 300%;
    animation: ctaGradient 10s ease infinite;
}

@keyframes ctaGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-section .btn-light {
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    color: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border: none;
}

.cta-section .btn-light:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Shimmer Effect */
.cta-section .btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
}

.cta-section .btn-light:hover::before {
    animation: shimmer 1s ease;
}

@keyframes shimmer {
    from {
        left: -150%;
    }

    to {
        left: 150%;
    }
}


/* --- Footer --- */
.footer {
    background-color: #050508;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer-glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.6;
}

.footer-glow-blob {
    position: absolute;
    border-radius: 50%;
}

.blob-1 {
    width: 500px;
    height: 500px;
    left: -150px;
    top: -150px;
    background: rgba(0, 123, 255, 0.4);
    animation: moveBlob1 20s alternate infinite ease-in-out;
}

.blob-2 {
    width: 400px;
    height: 400px;
    right: -150px;
    bottom: -150px;
    background: rgba(111, 66, 193, 0.4);
    animation: moveBlob2 25s alternate-reverse infinite ease-in-out;
}

@keyframes moveBlob1 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.2);
    }
}

@keyframes moveBlob2 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-100px, -50px) scale(0.8);
    }
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-glow) !important;
}

.social-icons a {
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s;
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 4rem;
}

/* ===== Animated Counters ===== */
#counters .counter {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

#counters p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ===== Cursor Glow Trail (Bright Enhanced Version) ===== */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    /* larger glow radius */
    height: 60px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 153, 255, 1) 0%, rgba(111, 66, 193, 0.9) 50%, rgba(0, 0, 0, 0) 80%);
    filter: blur(20px);
    /* stronger blur for smoother diffusion */
    opacity: 0.5;
    /* increased brightness */
    z-index: 2147483647;
    /* ensures it's above all elements */
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear, opacity 0.2s ease;
    mix-blend-mode: screen;
    /* ensures glow blends naturally */
}

/* Keyframes for breathing pulse effect */
@keyframes glowPulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* ===== RESPONSIVENESS FIXES ===== */

/* Navbar Fix - ensure toggler stays visible and aligned */
.navbar-toggler {
    border: none;
    position: relative;
    z-index: 10;
    margin-right: 10px;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* --- Force navbar toggler (hamburger) icon to be white --- */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 4px rgba(0, 123, 255, 0.8));
    filter: none !important;
    opacity: 1 !important;
}

/* Prevent horizontal scrollbars on mobile */
body,
html {
    overflow-x: hidden;
}

/* Hero Section: Buttons stacking on mobile */
.hero .btn {
    display: inline-block;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }

    .hero .display-3,
    .hero h1 {
        font-size: 2.4rem !important;
        line-height: 1.3;
    }

    .hero .lead {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Section spacing for mobile */
@media (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }
}

/* Service cards responsiveness */
.service-card-img {
    height: 180px;
}

@media (max-width: 576px) {
    .service-card-img {
        height: 150px;
    }

    .service-card-body h5 {
        font-size: 1rem;
    }
}

/* Fix pricing cards stacking */
@media (max-width: 992px) {
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Footer layout optimization */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer .row>div {
        margin-bottom: 2rem;
    }

    .social-icons a {
        margin-right: 0.7rem;
    }
}

/* CTA Section for smaller screens */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section .section-title {
        font-size: 1.8rem;
    }

    .cta-section .btn-light {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

/* Testimonials (Swiper) responsiveness */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }
}

/* Counters alignment fix on mobile */
@media (max-width: 576px) {
    #counters .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Navbar dropdown collapse fix */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(13, 13, 26, 0.95);
        border-radius: 10px;
        padding: 1rem;
    }

    .nav-link {
        text-align: center;
        padding: 0.75rem 0;
    }

    .btn-navbar {
        width: 100%;
        margin-top: 1rem;
    }
}

/* ===== Hero Buttons Alignment Fix ===== */
.hero .btn-navbar,
.hero .btn-outline-light {
    display: inline-block;
    vertical-align: middle;
    margin: 0.3rem;
    text-align: center;
}

/* Make both buttons exactly the same width and centered */
.hero .btn-navbar,
.hero .btn-outline-light {
    min-width: 180px;
    /* adjust this if needed */
}

/* For mobile screens: stack perfectly centered */
@media (max-width: 768px) {

    .hero .btn-navbar,
    .hero .btn-outline-light {
        display: block;
        width: 80%;
        max-width: 300px;
        margin: 0.6rem auto;
        /* center horizontally */
    }
}

.navbar-brand img {
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    opacity: 1 !important;
}


@media (max-width: 768px) {
    .navbar-brand img {
        height: 26px;
    }
}

img {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img.loaded {
    opacity: 1;
}

.testimonial-avatar {
    opacity: 1 !important;
    transition: none !important;
}

@media (max-width: 400px) {
    .navbar-brand img {
        height: 22px;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .swiper-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 576px) {
    .footer .footer-brand {
        font-size: 1.2rem;
    }

    .footer .btn-navbar {
        width: 100%;
        font-size: 0.9rem;
    }
}

/* Fix: Add top spacing for hero section on mobile so text doesn't overlap navbar */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px !important;
        /* increased from 80px */
    }
}

/* Fix: Reduce navbar height on mobile for better proportions */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0 !important;
        /* reduce vertical padding */
    }

    .navbar-brand img {
        height: 35px !important;
        /* slightly smaller logo */
    }

    .nav-link {
        padding: 0.5rem 0 !important;
        /* tighter spacing between links */
    }

    /* --- Testimonial Avatar (Real Image) --- */
    .testimonial-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.2);
        margin-right: 1rem;
        flex-shrink: 0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* Glow & hover effect to match theme */
    .testimonial-card:hover .testimonial-avatar {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(111, 66, 193, 0.6);
    }

    /* Author layout */
    .testimonial-author {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .testimonial-author h6 {
        font-weight: 600;
        color: #fff;
        margin-bottom: 3px;
    }

    .testimonial-author small {
        color: var(--text-muted);
        font-size: 0.85rem;
    }

    /* --- Responsive Adjustments --- */
    @media (max-width: 768px) {
        .testimonial-author {
            flex-direction: column;
            text-align: center;
        }

        .testimonial-avatar {
            margin-right: 0;
            margin-bottom: 0.5rem;
        }
    }

    /* === NAVBAR FIXES === */
    .navbar {
        padding-top: 8px;
        /* reduce height (default is ~16px top/bottom) */
        padding-bottom: 8px;
        background: rgba(0, 0, 0, 0.8);
        /* transparent blur background (optional aesthetic) */
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    @media (max-width: 991px) {

        /* smaller screens have collapsible navbar — need more top padding */
        .hero {
            padding-top: 130px;
        }
    }

    /* === CTA BUTTON MOBILE FIX === */
    @media (max-width: 576px) {
        .hero .btn {
            font-size: 0.9rem !important;
            /* slightly smaller text */
            padding: 10px 24px !important;
            /* tighter padding */
            border-radius: 40px !important;
            /* keep rounded but proportionate */
            width: 85% !important;
            /* ensures proper alignment */
            margin: 0.4rem auto !important;
            /* add spacing between buttons */
            display: block !important;
        }

        .hero small {
            font-size: 0.7rem !important;
            /* keep microcopy readable but subtle */
            margin-top: 0.3rem !important;
        }
    }

    /* === CTA BUTTON MOBILE FIX (UPDATED FOR BOTH BUTTONS) === */
    @media (max-width: 576px) {

        .hero .btn,
        .hero .btn-navbar,
        .hero .btn-outline-light {
            font-size: 0.9rem !important;
            padding: 10px 24px !important;
            border-radius: 40px !important;
            width: 85% !important;
            margin: 0.4rem auto !important;
            display: block !important;
            text-align: center !important;
        }

        .hero .btn-outline-light {
            border-width: 2px !important;
            /* keeps outline visible but balanced */
        }

        .hero small {
            font-size: 0.7rem !important;
            margin-top: 0.3rem !important;
            display: block !important;
            text-align: center !important;
        }
    }

    /* === PRICING CARD BUTTON MOBILE FIX === */
    @media (max-width: 576px) {
        .pricing-card .btn {
            font-size: 0.9rem !important;
            /* smaller readable text */
            padding: 10px 24px !important;
            /* balanced button height */
            border-radius: 40px !important;
            /* same rounded style as CTAs */
            width: 80% !important;
            /* makes buttons uniform in width */
            margin: 0.5rem auto !important;
            /* centers them neatly */
            display: block !important;
            /* ensures proper alignment */
            text-align: center !important;
            /* text remains centered */
        }
    }

    /* Microcopy styling near CTAs */
    .hero-microcopy {
        gap: 1.2rem;
    }

    .hero-microcopy .micro-item {
        color: var(--text-muted);
        font-size: 0.78rem;
        opacity: 0.95;
        display: inline-block;
    }

    @media (max-width: 576px) {
        .hero-microcopy {
            gap: .6rem;
            text-align: center;
        }
    }

    /* Hero inline testimonial */
    .hero-testimonial {
        max-width: 820px;
        margin: 0 auto;
    }

    .testi-inline {
        background: rgba(255, 255, 255, 0.03);
        padding: .6rem .9rem;
        border-radius: 14px;
        border: 1px solid var(--border-color);
    }

    .testi-inline-avatar {
        border-radius: 50%;
        object-fit: cover;
    }

    .testi-inline-text strong {
        color: #fff;
        display: block;
        font-weight: 700;
        font-size: 0.98rem;
    }

    .testi-inline-text .small {
        color: var(--text-muted);
    }

    @media (max-width:576px) {
        .testi-inline {
            flex-direction: column;
            text-align: center;
        }

        .testi-inline-text {
            text-align: center;
        }
    }

    .accordion-button {
        font-weight: 600;
    }

    .accordion-body {
        color: var(--text-muted);
    }

    /* === FAQ SECTION (Dark Theme) === */
    #faqAccordion .accordion-item {
        background-color: rgba(255, 255, 255, 0.05);
        /* subtle dark background */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin-bottom: 12px;
        overflow: hidden;
        backdrop-filter: blur(6px);
    }

    #faqAccordion .accordion-button {
        background-color: transparent;
        color: #fff;
        font-weight: 600;
        font-size: 1rem;
        padding: 1rem 1.2rem;
        transition: all 0.3s ease;
    }

    #faqAccordion .accordion-button:not(.collapsed) {
        color: #7f9cff;
        /* bluish highlight */
        background-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    #faqAccordion .accordion-button:focus {
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.2);
    }

    #faqAccordion .accordion-body {
        background-color: transparent;
        color: #cfd3ff;
        /* muted light blue tone */
        font-size: 0.92rem;
        padding: 0.9rem 1.2rem 1.2rem;
    }

    #faqAccordion .accordion-button::after {
        filter: invert(1) brightness(1.8);
    }

    @media (max-width: 768px) {
        #faqAccordion .accordion-button {
            font-size: 0.95rem;
        }
    }

    /* === DARK THEME FOR FAQ SECTION === */
    #faq {
        background-color: transparent;
        /* Keeps the section consistent with rest of site */
    }

    #faqAccordion .accordion-item {
        background-color: rgba(15, 20, 35, 0.7);
        /* semi-transparent dark background */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin-bottom: 12px;
        backdrop-filter: blur(6px);
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }

    #faqAccordion .accordion-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 50, 0.3);
    }

    #faqAccordion .accordion-button {
        background-color: transparent;
        color: #ffffff;
        font-weight: 600;
        font-size: 1rem;
        padding: 1rem 1.2rem;
        transition: all 0.3s ease;
    }

    #faqAccordion .accordion-button:not(.collapsed) {
        color: #8ca9ff;
        /* soft blue when opened */
        background-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    #faqAccordion .accordion-button:focus {
        box-shadow: none;
    }

    #faqAccordion .accordion-body {
        background-color: transparent;
        color: #cfd3ff;
        /* muted blue for readability */
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 1rem 1.2rem 1.2rem;
    }

    #faqAccordion .accordion-button::after {
        filter: invert(1) brightness(1.8);
    }

    /* === FINAL FIX: DARK THEME FOR FAQ SECTION === */
    #faq {
        background: transparent;
    }

    #faqAccordion .accordion-item {
        background-color: rgba(20, 20, 35, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
        margin-bottom: 12px;
        backdrop-filter: blur(6px);
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }

    #faqAccordion .accordion-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 60, 0.3);
    }

    /* Accordion button default (collapsed) */
    #faqAccordion .accordion-button {
        background-color: rgba(15, 20, 35, 0.9) !important;
        color: #f1f3ff !important;
        font-weight: 600;
        font-size: 1rem;
        padding: 1rem 1.2rem;
        border: none !important;
        box-shadow: none !important;
    }

    /* Accordion button when expanded */
    #faqAccordion .accordion-button:not(.collapsed) {
        background-color: rgba(35, 45, 70, 0.9) !important;
        color: #8ca9ff !important;
        box-shadow: none !important;
    }

    /* Accordion body (answers) */
    #faqAccordion .accordion-body {
        background-color: rgba(25, 30, 50, 0.85) !important;
        color: #cfd3ff !important;
        font-size: 0.95rem;
        line-height: 1.6;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1rem 1.2rem 1.2rem;
    }

    /* Remove Bootstrap blue arrow color */
    #faqAccordion .accordion-button::after {
        filter: invert(1) brightness(2);
    }

    /* === UNIVERSAL FIX FOR FAQ DARK THEME === */
    .faq-section,
    .faq,
    #faq {
        background: transparent !important;
    }

    /* FAQ Card Background */
    .accordion-item {
        background-color: #101324 !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px !important;
        margin-bottom: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }

    /* FAQ Button (Collapsed) */
    .accordion-button {
        background-color: #151832 !important;
        color: #f0f2ff !important;
        font-weight: 600;
        border: none !important;
        box-shadow: none !important;
    }

    /* FAQ Button (Expanded) */
    .accordion-button:not(.collapsed) {
        background-color: #22254a !important;
        color: #8ca9ff !important;
    }

    /* FAQ Answer Area */
    .accordion-body {
        background-color: #191b35 !important;
        color: #cfd3ff !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Make dropdown arrow light */
    .accordion-button::after {
        filter: invert(1) brightness(2);
    }

    /* === DARK THEME FIX FOR FAQ SECTION === */
    #faq-section {
        background: transparent !important;
        color: #ffffff;
    }

    /* Accordion container */
    #faq-section .accordion-item {
        background-color: #111325 !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px !important;
        margin-bottom: 10px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    /* Accordion question buttons (collapsed) */
    #faq-section .accordion-button {
        background-color: #171a33 !important;
        color: #f3f4ff !important;
        font-weight: 600;
        border: none !important;
        box-shadow: none !important;
        transition: all 0.3s ease;
    }

    /* Hover and focus effect */
    #faq-section .accordion-button:hover {
        background-color: #1e2150 !important;
        color: #aab7ff !important;
    }

    /* Active (open) question button */
    #faq-section .accordion-button:not(.collapsed) {
        background-color: #22254a !important;
        color: #8ca9ff !important;
    }

    /* Accordion answer area */
    #faq-section .accordion-body {
        background-color: #191b35 !important;
        color: #cfd3ff !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.95rem;
    }

    /* Make dropdown arrow light */
    #faq-section .accordion-button::after {
        filter: invert(1) brightness(1.8);
    }

    /* Smooth transition */
    #faq-section .accordion-collapse {
        transition: all 0.35s ease;
    }

    /* === FINAL DARK THEME FIX FOR FAQ SECTION === */
    section#faq-section {
        background-color: transparent !important;
        color: #fff !important;
    }

    /* Make accordion background dark */
    section#faq-section .accordion-item {
        background-color: #0d0f1c !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px;
        overflow: hidden;
    }

    /* Button (question) styling */
    section#faq-section .accordion-button {
        background-color: #14162b !important;
        color: #f2f3ff !important;
        font-weight: 600;
        border: none !important;
        box-shadow: none !important;
        transition: background-color 0.3s ease;
    }

    /* Hover + open state */
    section#faq-section .accordion-button:hover,
    section#faq-section .accordion-button:not(.collapsed) {
        background-color: #1a1d3a !important;
        color: #a6b3ff !important;
    }

    /* The small arrow icon */
    section#faq-section .accordion-button::after {
        filter: invert(1) brightness(2);
    }

    /* Accordion body (answer area) */
    section#faq-section .accordion-body {
        background-color: #0f1125 !important;
        color: #d1d4ff !important;
        font-size: 0.95rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* === DARK THEME FIX FOR FAQ SECTION === */
    #faq-section {
        background-color: transparent !important;
        color: #fff !important;
    }

    /* Each FAQ box */
    #faq-section .accordion-item {
        background-color: #0d0f1c !important;
        /* dark navy background */
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px;
        margin-bottom: 10px;
        overflow: hidden;
    }

    /* FAQ question button */
    #faq-section .accordion-button {
        background-color: #14162b !important;
        /* darker bluish tone */
        color: #ffffff !important;
        font-weight: 600;
        border: none !important;
        box-shadow: none !important;
    }

    /* Hover and active (open) state */
    #faq-section .accordion-button:hover,
    #faq-section .accordion-button:not(.collapsed) {
        background-color: #1c1f3a !important;
        color: #a6b3ff !important;
    }

    /* Arrow color fix */
    #faq-section .accordion-button::after {
        filter: invert(1) brightness(2);
    }

    /* FAQ answer area */
    #faq-section .accordion-body {
        background-color: #0d0f1c !important;
        /* match with question background */
        color: #d1d4ff !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* === Override FAQ row backgrounds to dark theme === */
    #faq-section .accordion-item {
        background-color: #0a0c1f !important;
        /* dark background for the whole row */
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    #faq-section .accordion-button {
        background-color: #141830 !important;
        /* dark background for header row */
        color: #eef0ff !important;
        /* light text color */
    }

    #faq-section .accordion-button:not(.collapsed) {
        background-color: #1e2050 !important;
        /* darker when expanded */
        color: #a8b7ff !important;
    }

    #faq-section .accordion-body {
        background-color: #12142d !important;
        /* dark background for answer area */
        color: #cdd2ff !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* ===== FAQ Section Styling ===== */
    #faq-section .accordion-item {
        background-color: #1b1b1b;
        /* dark background for rows */
        border: none;
        margin-bottom: 12px;
        border-radius: 10px;
        overflow: hidden;
    }

    #faq-section .accordion-button {
        background-color: #242424;
        /* color of the question row */
        color: #fff;
        font-weight: 600;
        border: none;
        box-shadow: none;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    #faq-section .accordion-button:not(.collapsed) {
        background-color: #007bff;
        /* color when expanded */
        color: #fff;
    }

    #faq-section .accordion-body {
        background-color: #2a2a2a;
        /* color inside the answer row */
        color: #ddd;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Optional: tweak hover */
    #faq-section .accordion-button:hover {
        background-color: #333;
    }

    /* Force dark FAQ rows */
    #faq-section {
        background-color: #111;
        /* entire FAQ section background */
        padding: 60px 0;
    }

    #faq-section .accordion-item,
    #faq-section .accordion-button,
    #faq-section .accordion-body {
        background-color: #1b1b1b !important;
        /* dark gray background for all rows */
        color: #fff !important;
        border: none !important;
    }

    #faq-section .accordion-item {
        margin-bottom: 15px;
        border-radius: 10px;
        overflow: hidden;
    }

    #faq-section .accordion-button.collapsed {
        background-color: #242424 !important;
        color: #fff !important;
    }

    #faq-section .accordion-button:not(.collapsed) {
        background-color: #007bff !important;
        /* blue when open */
        color: #fff !important;
    }

    #faq-section .accordion-button::after {
        filter: invert(1);
        /* makes the arrow white */
    }

    #faq-section .accordion-body {
        background-color: #2a2a2a !important;
        color: #ddd !important;
    }

    /* FORCE DARK THEME FOR FAQ SECTION ON ALL SCREENS */
    #faq-section {
        background-color: #111 !important;
        padding: 60px 0;
    }

    /* All accordion parts */
    #faq-section .accordion-item,
    #faq-section .accordion-button,
    #faq-section .accordion-body {
        background-color: #1a1a1a !important;
        color: #fff !important;
        border: none !important;
    }

    /* Ensure open and closed states look correct */
    #faq-section .accordion-button.collapsed {
        background-color: #222 !important;
        color: #fff !important;
    }

    #faq-section .accordion-button:not(.collapsed) {
        background-color: #007bff !important;
        color: #fff !important;
    }

    /* White arrow icon */
    #faq-section .accordion-button::after {
        filter: invert(1);
    }

    /* Inside body content */
    #faq-section .accordion-body {
        background-color: #2a2a2a !important;
        color: #eee !important;
    }

    /* Force override Bootstrap color variables */
    #faq-section .accordion {
        --bs-accordion-bg: #1a1a1a !important;
        --bs-accordion-active-bg: #007bff !important;
        --bs-accordion-color: #fff !important;
        --bs-accordion-active-color: #fff !important;
        --bs-accordion-btn-focus-box-shadow: none !important;
    }

    /* ==== FORCE DARK THEME FOR FAQ SECTION ON ALL DEVICES ==== */
    #faq-section {
        background-color: #0e0e0e !important;
    }

    #faq-section .accordion-item,
    #faq-section .accordion-button,
    #faq-section .accordion-body {
        background-color: #151515 !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* When collapsed */
    #faq-section .accordion-button.collapsed {
        background-color: #1a1a1a !important;
        color: #fff !important;
    }

    /* When open */
    #faq-section .accordion-button:not(.collapsed) {
        background-color: #3a1c5d !important;
        /* purple tone to match theme */
        color: #fff !important;
    }

    /* Arrow color */
    #faq-section .accordion-button::after {
        filter: invert(1) brightness(1.8);
    }

    /* Accordion variable overrides (for all screen sizes) */
    #faq-section .accordion {
        --bs-accordion-bg: #151515 !important;
        --bs-accordion-active-bg: #3a1c5d !important;
        --bs-accordion-color: #ffffff !important;
        --bs-accordion-active-color: #ffffff !important;
        --bs-accordion-border-color: transparent !important;
    }

    /* Prevent Bootstrap light mode override on desktops */
    :root {
        color-scheme: dark !important;
    }

    :root {
        --bs-accordion-bg: #151515 !important;
    }

    /* === FINAL FIX: Force Dark FAQ Theme === */
    #faq-section {
        background: linear-gradient(135deg, #0b0b18, #151531);
        padding: 60px 0;
    }

    #faq-section .accordion .accordion-item {
        background-color: #14142b !important;
        border: 1px solid rgba(111, 66, 193, 0.3);
        border-radius: 10px !important;
        margin-bottom: 15px;
        overflow: hidden;
    }

    #faq-section .accordion .accordion-button {
        background-color: #1c1c3a !important;
        color: #e4e4ff !important;
        font-weight: 500;
        box-shadow: none !important;
    }

    #faq-section .accordion .accordion-button:not(.collapsed) {
        background-color: #25254a !important;
        color: #c9a6ff !important;
        box-shadow: inset 0 -1px 0 rgba(111, 66, 193, 0.6) !important;
    }

    #faq-section .accordion .accordion-body {
        background-color: #101025 !important;
        color: #d0cfff !important;
        border-top: 1px solid rgba(111, 66, 193, 0.3) !important;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Optional width control for better look on big screens */
    @media (min-width: 992px) {
        #faq-section .container {
            max-width: 800px;
        }
    }

    /* === ULTRA OVERRIDE: Ensure dark theme applies === */
    #faq-section .accordion-item,
    #faq-section .accordion-button,
    #faq-section .accordion-body {
        background-color: #13132b !important;
        color: #e0dfff !important;
    }

    #faq-section .accordion-button:not(.collapsed) {
        background-color: #1d1d3d !important;
        color: #c9a6ff !important;
        box-shadow: none !important;
    }

    #faq-section .accordion-item {
        border: 1px solid rgba(111, 66, 193, 0.4) !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    #faq-section .accordion {
        background-color: transparent !important;
    }

    /* === GLOBAL DARK FAQ THEME (applies to all screen sizes) === */
    #faq-section {
        background: linear-gradient(135deg, #0b0b18, #151531);
        padding: 60px 0;
    }

    #faq-section .accordion-item {
        background-color: #14142b !important;
        border: 1px solid rgba(111, 66, 193, 0.3);
        border-radius: 10px !important;
        margin-bottom: 15px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    #faq-section .accordion-button {
        background-color: #1c1c3a !important;
        color: #e4e4ff !important;
        font-weight: 500;
        box-shadow: none !important;
        transition: background-color 0.3s ease;
    }

    #faq-section .accordion-button:not(.collapsed) {
        background-color: #25254a !important;
        color: #c9a6ff !important;
        box-shadow: inset 0 -1px 0 rgba(111, 66, 193, 0.6) !important;
    }

    #faq-section .accordion-body {
        background-color: #101025 !important;
        color: #d0cfff !important;
        border-top: 1px solid rgba(111, 66, 193, 0.3) !important;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* === OPTIONAL: Tighter layout on laptop screens === */
    @media (min-width: 992px) {
        #faq-section .container {
            max-width: 800px;
        }
    }

    /* === FINAL FIX: Dark Bluish FAQ Section === */
    #faq-section {
        background: linear-gradient(135deg, #0b0b18, #151531);
        padding: 60px 0;
    }

    /* Override Bootstrap’s accordion variables */
    #faq-section .accordion {
        --bs-accordion-bg: #14142b !important;
        --bs-accordion-border-color: rgba(111, 66, 193, 0.3) !important;
        --bs-accordion-active-bg: #25254a !important;
        --bs-accordion-active-color: #c9a6ff !important;
        --bs-accordion-btn-color: #e4e4ff !important;
        --bs-accordion-btn-focus-border-color: rgba(111, 66, 193, 0.4) !important;
        --bs-accordion-btn-focus-box-shadow: none !important;
        --bs-accordion-body-bg: #101025 !important;
    }

    /* Accordion Items */
    #faq-section .accordion-item {
        background-color: var(--bs-accordion-bg) !important;
        border: 1px solid var(--bs-accordion-border-color) !important;
        border-radius: 10px !important;
        margin-bottom: 15px;
        overflow: hidden;
    }

    /* Accordion Buttons */
    #faq-section .accordion-button {
        background-color: var(--bs-accordion-bg) !important;
        color: var(--bs-accordion-btn-color) !important;
        font-weight: 500;
        box-shadow: none !important;
    }

    /* Active Button (when opened) */
    #faq-section .accordion-button:not(.collapsed) {
        background-color: var(--bs-accordion-active-bg) !important;
        color: var(--bs-accordion-active-color) !important;
    }

    /* Accordion Body */
    #faq-section .accordion-body {
        background-color: var(--bs-accordion-body-bg) !important;
        color: #d0cfff !important;
        border-top: 1px solid var(--bs-accordion-border-color) !important;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Width control for large screens */
    @media (min-width: 992px) {
        #faq-section .container {
            max-width: 850px;
        }
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 3rem);
        /* scales font size with viewport */
        line-height: 1.2;
        /* tighter line spacing */
        word-wrap: break-word;
        /* allow long words to wrap */
        overflow-wrap: break-word;
        /* modern browser support */
        margin-bottom: 1rem;
        /* ensures spacing doesn’t push text out */
    }


}