/* Fonts loaded via index.html for faster parallel fetch */

/* --- DESIGN SYSTEM TOKENS --- */
:root {
    --bg-color: #0C0E12;

    --text-primary: #ffffff;
    --text-secondary: #adadad;
    --text-muted: #646a8a;

    --accent-blue: #3b82f6;
    --color-icon-bar: #A6B2EB;

    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}


/* --- RESET & FOUNDATION --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-padding-top: 120px;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Isolate blending context for sections to prevent rendering issues with mix-blend-mode */
.hero,
.brands-section,
.capabilities-section,
.guide-audience-section,
.why-choose-section,
.about-section,
.testimonials-section,
.contact-section {
    isolation: isolate;
}

/* Pause heavy CSS animations until sections are near viewport */
#brands:not(.is-animating) .marquee-group,
#card-automation:not(.is-animating) .automation-list {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .marquee-group,
    .automation-list {
        animation: none !important;
    }
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1460px;
    height: 76px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 0 40px;
    border-radius: 9999px;
    /* Floating pill shape from reference image */
    background: rgba(12, 14, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    background: rgba(12, 14, 18, 0.85);
    /* Darker scrolled state without shrink */
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    height: 64px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.04);
}

.desktop-nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #9CA7DC;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.desktop-nav a:hover {
    color: var(--text-primary);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 9999px;
    /* Pill button shape from reference image */
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #0c0e12 !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cta:hover {
    background: transparent;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* --- MOBILE NAVIGATION TOGGLE & OVERLAY --- */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hamburger active animation */
.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(12, 14, 18, 0.98);
    z-index: 999;
    display: flex;
    justify-content: flex-start;
    /* Align contents to left */
    align-items: flex-start;
    /* Align contents to top-left */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    /* Handle short screen heights/landscape dynamically */
    padding: 100px 32px 60px 32px;
    /* Gutter breathing space on left/right matching screenshot */
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Stretch links to full width */
    gap: 0;
    /* Gap handled by vertical link padding and dividers */
    width: 100%;
    text-align: left;
    margin-top: 40px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    width: 100%;
    padding: 20px 0;
    /* Snug top/bottom padding as in the reference image */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Divider line as in reference screenshot */
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--color-icon-bar);
    padding-left: 4px;
    /* Subtle left slide micro-animation */
}

.mobile-cta-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 28px 0 16px 0;
}

.mobile-cta {
    margin: 0 !important;
    width: 100%;
    max-width: 260px;
    /* Snug width for mobile CTA */
    justify-content: center;
}

.mobile-social-links {
    display: flex;
    gap: 24px;
    padding-top: 28px;
    width: 100%;
    justify-content: flex-start;
}

.mobile-social-links a {
    color: var(--text-secondary);
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-social-links a:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 120px 40px 60px 40px;
    position: relative;
    gap: 40px;
}

.hero-vector-left {
    position: absolute;
    top: -220px;
    left: -280px;
    z-index: 1;
    pointer-events: none;
    width: min(800px, 65vw);
    height: auto;
    opacity: 1;
    mix-blend-mode: plus-lighter;
}

@media (max-width: 1024px) {
    .hero-vector-left {
        width: min(500px, 60vw);
        top: -120px;
        left: -180px;
        opacity: 1;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 10;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    /* Space between tag pill and heading */
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    text-shadow: rgba(255, 255, 255, 0.25) 0px 4.867px 17.522px, rgba(159, 159, 159, 0.2) 0px -4.867px 17.522px, rgba(190, 190, 190, 0.4) 0px -4.867px 32.123px;
    opacity: 1;
    filter: blur(0px);
    transform: none;
}

.hero-subheading {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    text-shadow: rgba(255, 255, 255, 0.25) 0px 4.867px 17.522px, rgba(159, 159, 159, 0.2) 0px -4.867px 17.522px, rgba(190, 190, 190, 0.4) 0px -4.867px 32.123px;
    opacity: 1;
    filter: blur(0px);
    transform: none;
    max-width: 620px;
}

.hero-description {
    font-size: 1.15rem;
    color: #adadad;
    max-width: 620px;
    line-height: 1.6;
}


/* --- INTERACTIVE 3D GLOW BUTTON SYSTEM --- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 9999px;
    /* rounded-full */
    cursor: pointer;
    text-decoration: none;
    transition: all 100ms cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border: none;
    outline: none;
}

/* Ensure contents sit above the background glow layer */
.btn>*:not(.btn-glow) {
    position: relative;
    z-index: 2;
}

/* Disabled State */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 1. Variant: Small White Button */
.btn-small {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 12px 20px;
    /* py-3 px-5 */
    font-size: 12px;
    /* text-xs */
}

/* 2. Variant: Large White Button */
.btn-large {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 13px 30px;
    /* py-[13px] px-[30px] */
    font-size: 16px;
    /* text-md */
}

/* 3. Variant: Small Inverse/Dark Button */
.btn-smallin {
    background-color: rgba(10, 11, 17, 0.3);
    /* bg-dark-100/30 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* border-white/15 */
    color: #ffffff;
    backdrop-filter: blur(12px);
    /* backdrop-blur-md */
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 20px;
    /* py-3 px-5 */
    font-size: 12px;
    /* text-xs */
}



/* Desktop Hover Transitions (only on devices that support hover, or screen > 768px) */
@media (min-width: 768px) {

    .btn-small:not(.btn-no-hover):hover,
    .btn-large:not(.btn-no-hover):hover {
        color: #ffffff;
        background-color: rgba(10, 11, 17, 0.3);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-color: rgba(255, 255, 255, 0.15);
    }
}

/* 2XL Desktop Screens (min-width: 1536px) matching 2xl: tailwind rules */
@media (min-width: 1536px) {
    .btn-small {
        padding: 16px 28px;
        /* 2xl:py-4 px-7 */
        font-size: 14px !important;
        /* 2xl:!text-[14px] */
    }

    .btn-large {
        font-size: 18px;
        /* 2xl:text-lg */
    }

    .btn-smallin {
        padding: 16px 28px;
        /* 2xl:py-4 px-7 */
        font-size: 14px !important;
        /* 2xl:!text-[14px] */
    }


}

/* Mobile Screens (max-width: 767px) matching mobilebuttonStyles */
@media (max-width: 767px) {
    .btn-small {
        padding: 12px 20px;
        /* py-3 px-5 */
        font-size: 12px;
    }

    .btn-large {
        padding: 10px 24px;
        /* py-[10px] px-[24px] */
        font-size: 14px;
        /* text-sm */
    }

    .btn-smallin {
        padding: 12px 20px;
        /* py-3 px-5 */
        font-size: 12px;
    }


}

.btn-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 100ms ease;
    border-radius: inherit;
    z-index: 1;
    background: radial-gradient(50px circle at var(--x, 0px) var(--y, 0px), rgba(166, 178, 235, 0.45), transparent 80%);
    will-change: transform, opacity;
}

.btn:hover .btn-glow {
    opacity: 1;
}



/* --- THE PREMIUM CTA & TESTIMONIAL CONTAINER --- */
.hero-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15), var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.25), 0 0 1px 1px rgba(255, 255, 255, 0.2) inset;
}

.cta-avatar-container {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-avatar-container {
    transform: rotate(5deg) scale(1.05);
}

.cta-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-text-wrapper {
    display: flex;
    flex-direction: column;
}

.cta-text {
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

.cta-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* Testimonial block styling */
.testimonial-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 280px;
}

.testimonial-quote {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    letter-spacing: 0.1px;
    font-style: italic;
}

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

/* --- THE HERO IMAGE CONTAINER --- */
.hero-visual {
    position: relative;
    width: 100%;
    height: min(540px, 68vh); /* Keep container height smaller and balanced */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Fix shadow cut-off */
    perspective: 1000px;
}

.hero-book-img {
    max-height: 95%; /* Fills parent height safely with breathing room */
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(168, 85, 247, 0.15);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    animation: floatBook 6s ease-in-out infinite;
    will-change: transform;
}

.hero-book-img:hover {
    transform: translateY(-10px) rotateY(-5deg) rotateX(5deg) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 10px 25px rgba(0, 0, 0, 0.4),
        0 0 50px color-mix(in srgb, var(--accent-blue) 45%, transparent),
        0 0 30px color-mix(in srgb, var(--color-icon-bar) 30%, transparent);
}

@keyframes floatBook {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(0.5deg);
    }
}

/* Screen scaling to keep the book sized elegantly without being overly large */
@media (min-width: 1200px) {
    .hero-visual {
        height: min(600px, 72vh);
    }
}

@media (min-width: 1440px) {
    .hero-visual {
        height: min(680px, 76vh);
    }
}





/* --- FOOTER --- */
footer {
    position: relative;
    padding: 100px 40px 140px 40px;
    background-color: #020108;
    background-image: url('images/footer_bg.avif');
    background-size: cover;
    background-position: center bottom -150px;
    background-repeat: no-repeat;
    z-index: 10;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg-color) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.footer-stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/footer_bg_star.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.footer-container {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo-img {
    height: 64px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.04);
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-col-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social-icons a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-actions {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.footer-btn {
    min-width: 220px;
    justify-content: center;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

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

/* --- KEYFRAME ANIMATIONS --- */

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        padding: 40px 24px;
        /* Reduced top/bottom padding to 40px */
        text-align: left;
        gap: 32px;
        min-height: auto;
        /* Reset min-height vh on tablet for natural content fit */
        margin-top: 100px;
        /* Push below floating header to avoid layout overlap */
    }

    .hero-content {
        align-items: flex-start;
        order: 1;
    }

    .hero-tag {
        align-self: flex-start;
        margin-bottom: 16px;
        /* Space between tag pill and heading on tablet */
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subheading {
        font-size: 18px;
        margin: 0;
    }

    .hero-description {
        font-size: 15.2px;
        margin: 0;
    }

    .hero-cta-wrapper {
        justify-content: flex-start;
        gap: 20px;
    }

    .hero-visual {
        height: 480px;
        max-width: 100%;
        margin: 0;
        order: 2;
    }
}

@media (max-width: 1024px) {
    header {
        width: 94%;
        padding: 0 24px;
        height: 68px;
    }


    .desktop-nav {
        display: none;
    }

    header #header-cta-btn {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    /* Tablet Footer Styling */
    footer {
        padding: 80px 32px 100px 32px;
        background-position: center bottom;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 32px;
    }

    .footer-col-logo {
        grid-column: span 2;
        align-items: flex-start;
        justify-content: flex-start;
        margin-bottom: 20px;
    }

    .footer-logo-img {
        height: 52px;
    }
}

@media (max-width: 767px) {
    header {
        padding: 0 20px;
    }

    .logo-icon {
        height: 52px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 120px 16px 40px 16px;
        /* Uniform mobile padding */
        text-align: center;
        gap: 40px;
        margin-top: 0;
        /* Reset tablet top margin on mobile */
    }

    .hero-content {
        align-items: center;
        order: 2;
        /* Move heading and copy below the video on mobile viewports */
    }

    .hero-tag {
        align-self: center;
    }

    .hero-visual {
        height: 450px;
        max-width: 500px;
        margin: 40px auto 0 auto !important;
        /* Premium vertical top margin to breathe under header */
        order: 1;
        /* Move video visual first on mobile viewports */
    }

    .hero-title {
        font-size: 24px !important;
        /* Main heading scaled to 24px as requested */
        word-break: break-word;
    }

    .hero-subheading {
        font-size: 1.15rem !important;
        /* Premium scaled subtitle size ~18px */
        word-break: break-word;
        margin: 0 auto;
    }

    .hero-description {
        font-size: 0.9rem !important;
        /* snuggest readability text size ~14px */
        margin: 0 auto;
    }

    .hero-cta-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .testimonial-block {
        text-align: center;
    }

    /* Premium Responsive Typography Sizing */
    .section-title {
        font-size: 24px !important;
        /* Standardized section titles to 24px as requested */
        line-height: 1.25 !important;
    }

    .section-subtitle {
        font-size: 14px !important;
        /* Cohesive section description text */
        line-height: 1.5 !important;
    }

    .capability-card h3,
    .guide-card-info h3 {
        font-size: 17px !important;
        /* Crisp, perfectly-balanced card headers */
    }

    .capability-card p,
    .guide-card-info p {
        font-size: 13px !important;
        /* Premium card content sizing */
        line-height: 1.5 !important;
    }

    .testimonial-quote {
        font-size: 13px !important;
    }

    .about-desc {
        font-size: 14px !important;
        /* Snug biographical text copy */
        line-height: 1.6 !important;
    }

    /* Standardized Mobile Horizontal Section Padding */
    .capabilities-section {
        padding: 60px 16px 40px 16px !important;
    }

    .card-info {
        text-align: center !important;
        /* Center heading and descriptions in Capabilities */
        align-items: center !important;
    }

    .guide-audience-section {
        padding: 40px 16px 80px 16px !important;
    }

    .why-choose-section {
        padding: 60px 16px 80px 16px !important;
    }

    .about-inner {
        padding: 40px 16px 60px 16px !important;
    }

    .contact-section {
        padding: 60px 16px 80px 16px !important;
    }

    .contact-form-card {
        padding: 40px 20px !important;
    }

    footer {
        padding: 60px 20px 80px 20px !important;
        background-position: center bottom !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px 20px !important;
        text-align: left !important;
    }

    .footer-col-logo {
        grid-column: span 2 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        margin-bottom: 10px;
    }

    .footer-logo-img {
        height: 44px !important;
    }

    .footer-col:nth-child(2) {
        grid-column: span 1 !important;
    }

    .footer-col:nth-child(3) {
        grid-column: span 1 !important;
    }

    .footer-col:nth-child(4) {
        grid-column: span 2 !important;
    }

    .footer-col:nth-child(5) {
        grid-column: span 2 !important;
    }

    .footer-col h3 {
        margin-bottom: 16px;
        font-size: 15px !important;
    }

    .footer-col-links a {
        font-size: 13px !important;
    }

    .footer-col-links a:hover {
        transform: none;
        /* Disable slide hover effect on touch screens */
    }

    .footer-social-icons {
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    .footer-social-icons a {
        font-size: 1.15rem !important;
    }

    .footer-actions {
        margin-top: 32px;
        flex-direction: column;
        align-items: center;
    }

    .footer-btn {
        width: auto;
        min-width: 220px;
        max-width: 100%;
    }

    .footer-bottom {
        margin-top: 40px;
        padding-top: 24px !important;
        justify-content: flex-start !important;
    }

    .copyright {
        font-size: 0.8rem !important;
    }

    /* Chart bar adjustments for mobile layout scaling */
    .chart-bar-wrapper {
        margin: 0 4px;
    }
}

@media (max-height: 580px) and (max-width: 1024px) {
    .mobile-nav-link {
        padding: 12px 0 !important;
        /* Shorter padding on landscape/short viewports */
        font-size: 1.05rem !important;
    }

    .mobile-cta-wrap {
        padding: 16px 0 8px 0 !important;
    }

    .mobile-social-links {
        padding-top: 16px !important;
    }
}

/* Extra small mobile visual balances */
@media (max-width: 480px) {
    .hero-visual {
        height: 300px;
    }
}

@media (max-width: 350px) {
    .recaptcha-card {
        transform: scale(0.85);
        /* Prevent Simulated reCAPTCHA from causing horizontal scroll */
        transform-origin: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form-card {
        padding: 40px 12px !important;
        /* Maximise layout breathing space */
    }
}


/* --- CAPABILITIES SHOWCASE SECTION --- */
.capabilities-section {
    padding: 100px 40px 50px 40px;
    background-color: var(--bg-color);
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    overflow: visible;
    /* Allow absolute bleed-out decorative elements to reach screen edges */
}

.capabilities-vector-right {
    position: absolute;
    top: 0;
    right: calc(-50vw + 50%);
    z-index: 1;
    pointer-events: none;
    width: min(520px, 45vw);
    height: auto;
    opacity: 1;
    mix-blend-mode: screen;
}

.capabilities-star-left {
    position: absolute;
    top: 80px;
    left: calc(-50vw + 50%);
    z-index: 1;
    pointer-events: none;
    width: auto;
    height: auto;
    opacity: 1;
    mix-blend-mode: screen;
}

.section-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    margin-bottom: 16px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: rgba(255, 255, 255, 0.25) 0px 4.867px 17.522px, rgba(159, 159, 159, 0.2) 0px -4.867px 17.522px, rgba(190, 190, 190, 0.4) 0px -4.867px 32.123px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 1200px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
}

/* Capabilities Bottom Description */
.capabilities-bottom-text {
    margin-top: 50px;
    padding-top: 60px;
    font-size: 20px !important;
    max-width: 700px;
    text-align: center;
    margin-bottom: 0 !important;
    /* Remove trailing margin to balance section padding */
}


/* Capability Card Base Styling */
.capability-card {
    position: relative;
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow: hidden;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.capability-card:hover {
    border-color: rgba(166, 178, 235, 0.25);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-6px);
}

/* Custom interactive spotlight borders / background using variables */
.capability-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(166, 178, 235, 0.12), transparent 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

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

.card-visual {
    position: relative;
    width: 100%;
    height: 240px;
    background: rgba(3, 2, 13, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.card-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}


/* --- CARD 1: SMART AUTOMATION & OPTIMIZATION --- */
.visual-automation {
    position: relative;
    padding: 16px 0;
    /* Add top/bottom padding to isolate the moving items from the rounded borders */
    overflow: hidden;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 2, 13, 0.55);
}

.automation-list-wrapper {
    width: 90%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Premium hardware-accelerated CSS mask fading. Works on any background! */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, transparent 100%);
}

.automation-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    animation: scrollListUp 36s linear infinite;
}

/* Pause the animation on card hover so users can read details comfortably */
.capability-card:hover .automation-list {
    animation-play-state: paused;
}

@keyframes scrollListUp {
    0% {
        transform: translateY(0);
    }

    100% {
        /* With margin-bottom instead of gap, translating by exactly -50% is mathematically perfect and loop-stable */
        transform: translateY(-50%);
    }
}

.automation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 12px;
    /* Margin-bottom ensures 100% loop seam matching */
}

.automation-item.completed {
    color: var(--text-primary);
}

.automation-item.pending {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.005);
    border-color: rgba(255, 255, 255, 0.01);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    /* Enable flex-shrink behavior */
}

.item-icon {
    color: var(--color-icon-bar);
    font-size: 0.95rem;
    filter: drop-shadow(0 0 4px rgba(166, 178, 235, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-text {
    letter-spacing: -0.1px;
    white-space: normal;
    flex: 1;
    min-width: 0;
}

.item-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-status.status-check {
    color: var(--color-icon-bar);
    filter: drop-shadow(0 0 6px rgba(166, 178, 235, 0.55));
    font-size: 0.85rem;
}

.item-status.status-clock {
    color: var(--color-icon-bar);
    font-size: 0.85rem;
}

/* Spinner rotation animation for active tasks */
@keyframes spinPending {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.automation-item.pending .status-clock i {
    animation: spinPending 4s linear infinite;
    color: var(--color-icon-bar);
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(166, 178, 235, 0.45));
}

/* Automation row hover interaction */
.automation-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(166, 178, 235, 0.35);
    transform: translateX(4px);
}


/* --- CARD 2: AI-POWERED CHATBOTS --- */
.chat-mockup {
    width: 88%;
    height: 80%;
    background: rgba(10, 8, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.chat-body {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.chat-bubble.user-bubble {
    background: rgba(166, 178, 235, 0.08);
    border: 1px solid rgba(166, 178, 235, 0.25);
    border-radius: 12px 12px 0 12px;
    padding: 10px 14px;
    max-width: 85%;
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-end;
}

/* AI Bubble Style & Reveal Animation */
.chat-bubble.ai-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px 12px 12px 0;
    padding: 10px 14px;
    max-width: 90%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    animation: revealAIBubble 8s infinite ease-in-out;
}

.ai-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.ai-avatar svg {
    width: 12px;
    height: 12px;
}

@keyframes revealAIBubble {

    0%,
    15% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    25%,
    85% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    95%,
    100% {
        opacity: 0;
        transform: translateY(-5px) scale(0.98);
    }
}

.bubble-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

.bubble-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--color-icon-bar);
    box-shadow: 0 0 6px rgba(166, 178, 235, 0.45);
    flex-shrink: 0;
}

.bubble-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-footer {
    height: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.chat-input-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input-icon {
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chat-input-icon:hover {
    color: var(--text-primary);
}

.chat-placeholder {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 2px;
}

.chat-send-btn {
    color: var(--color-icon-bar);
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    color: #c7d2fe;
}

/* --- CARD 3: CUSTOM AI INTEGRATIONS --- */
.visual-integrations {
    background: #090a0f !important;
    border: 1px solid rgba(255, 255, 255, 0.015) !important;
}

.network-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.network-lines path {
    fill: none;
}

.net-line-base {
    stroke: #222222;
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}

.net-line-glow {
    stroke: var(--color-icon-bar);
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-dasharray: 16 116;
    stroke-dashoffset: 0;
    opacity: 0.45;
    filter: drop-shadow(0 0 5px var(--color-icon-bar));
    animation: flowWave 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    vector-effect: non-scaling-stroke;
    will-change: stroke-dashoffset;
}

.net-line-core {
    stroke: #ffffff;
    stroke-width: 1.2px;
    stroke-linecap: round;
    stroke-dasharray: 16 116;
    stroke-dashoffset: 0;
    opacity: 0.85;
    filter: drop-shadow(0 0 2px #ffffff);
    animation: flowWave 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    vector-effect: non-scaling-stroke;
}

@keyframes flowWave {
    0% {
        stroke-dashoffset: 132;
    }

    100% {
        stroke-dashoffset: 0;
    }
}


.network-node.node-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 178, 235, 0.15) 0%, rgba(166, 178, 235, 0.35) 60%, #090a0f 100%);
    border: 1.5px solid rgba(166, 178, 235, 0.55);
    box-shadow: 0 0 20px rgba(166, 178, 235, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.node-icon-center {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.node-icon-center svg {
    animation: pulseStar 4s infinite ease-in-out;
}

@keyframes pulseStar {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    }
}

.network-node:not(.node-center) {
    position: absolute;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    box-shadow: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate(-50%, -50%);
}

.network-node:not(.node-center) svg,
.network-node:not(.node-center) i {
    width: 24px;
    height: 24px;
    font-size: 1.35rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.network-node:not(.node-center):hover {
    transform: translate(-50%, -50%) scale(1.22);
}

.network-node:not(.node-center):hover svg,
.network-node:not(.node-center):hover i {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Spokes coordinates centered exactly using percentages */
.node-tl {
    left: 20%;
    top: 25%;
}

.node-top {
    left: 50%;
    top: 15%;
}

.node-tr {
    left: 80%;
    top: 25%;
}

.node-bl {
    left: 20%;
    top: 75%;
}

.node-bottom {
    left: 50%;
    top: 85%;
}

.node-br {
    left: 80%;
    top: 75%;
}


/* --- CARD 4: REAL-TIME INSIGHTS --- */
.chart-container {
    width: 86%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-purple {
    background: var(--color-icon-bar);
    box-shadow: 0 0 8px rgba(166, 178, 235, 0.6);
}

.dot-gray {
    background: rgba(255, 255, 255, 0.2);
}

.legend-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-bars {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 110px;
    padding-top: 10px;
}

.chart-bar-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: flex-end;
    margin: 0 8px;
}

.chart-bar {
    width: 100%;
    max-width: 28px;
    border-radius: 6px 6px 0 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bar-gray {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.015);
}

.bar-purple {
    background: linear-gradient(180deg, var(--color-icon-bar) 0%, rgba(166, 178, 235, 0.2) 100%);
    border: 1px solid rgba(166, 178, 235, 0.25);
    box-shadow: 0 0 12px rgba(166, 178, 235, 0.2);
}

/* Hover scales bar and intensifies gradient glow */
.chart-bar-wrapper:hover .chart-bar {
    transform: scaleY(1.05);
}

.chart-bar-wrapper:hover .bar-purple {
    box-shadow: 0 0 20px rgba(166, 178, 235, 0.5);
    filter: brightness(1.1);
}

/* --- SVG Line Graph Overlay V2 --- */
.chart-bars {
    position: relative;
    /* Relative anchor for absolute positioned SVG */
}

.chart-line-svg {
    position: absolute;
    top: 10px;
    /* Aligns with padding-top of .chart-bars */
    left: 0;
    width: 100%;
    height: calc(100% - 10px);
    z-index: 5;
    pointer-events: none;
    /* Let hover pass through to bars */
    overflow: visible;
}

/* Background Faint Track Line */
.chart-line-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 1px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Primary Glowing Trendline (Thin, clean white line with 424px dash-size) */
.chart-line-flow {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.35));
    /* Exact path length matching coordinates */
    stroke-dasharray: 424;
    stroke-dashoffset: 424;
    transition: stroke-width 0.3s ease, filter 0.3s ease;
}



/* Card Hover enhances graph glow slightly */
.capability-card:hover .chart-line-flow {
    stroke-width: 1.4px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}


/* --- RESPONSIVE CAPABILITIES MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .capabilities-section {
        padding: 80px 24px 100px 24px;
    }

    .capabilities-vector-right,
    .testimonial-vector-right {
        width: min(400px, 40vw);
        opacity: 1;
    }

    .testimonial-vector-right {
        top: -300px;
    }

    .capabilities-star-left {
        width: min(45px, 8vw);
        opacity: 1;
    }

    .capabilities-grid {
        grid-template-columns: 1fr 1fr;
        /* Keep 2-column layout on tablet as requested */
        gap: 24px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 15.2px;
    }

    .capability-card {
        padding: 20px;
        gap: 16px;
    }

    .capability-card h3 {
        font-size: 16px;
    }

    .capability-card p {
        font-size: 14px;
    }

    .card-visual {
        height: 180px;
        /* Reduced height to keep content visible in narrower 2-column layout */
    }

    .visual-automation {
        height: 180px;
    }

    .automation-list-wrapper {
        width: 95%;
    }

    .automation-item {
        font-size: 0.65rem;
        /* Reduced text size to fit narrower tablet card */
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .item-icon {
        font-size: 0.7rem;
    }

    .chat-mockup {
        width: 92%;
        height: 85%;
    }

    .bubble-text {
        font-size: 0.62rem;
        /* Reduced chat bubble text for tablet 2-column cards */
    }

    .chat-bubble.user-bubble,
    .chat-bubble.ai-bubble {
        padding: 7px 10px;
    }

    .chat-footer {
        height: 34px;
        padding: 0 10px;
    }

    .chat-placeholder,
    .chat-input-icon,
    .chat-send-btn {
        font-size: 0.6rem;
    }

    .bubble-avatar,
    .ai-avatar {
        width: 16px;
        height: 16px;
    }

    .chart-container {
        width: 92%;
    }

    .legend-text {
        font-size: 0.65rem;
    }

    .network-container {
        transform: scale(0.85);
    }

    .capabilities-bottom-text {
        margin-top: 44px;
        font-size: 18px !important;
    }
}

@media (max-width: 767px) {

    .capabilities-vector-right,
    .testimonial-vector-right {
        width: min(280px, 35vw);
        opacity: 1;
    }

    .testimonial-vector-right {
        top: -80px;
    }

    .capabilities-star-left {
        width: 30px;
        opacity: 1;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        /* Stack into single column on mobile */
        gap: 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .card-visual {
        height: 220px;
    }

    .automation-list {
        width: 95%;
    }

    .chat-mockup {
        width: 95%;
    }

    .chart-container {
        width: 95%;
    }

    .capabilities-bottom-text {
        margin-top: 36px;
        font-size: 15px !important;
    }

}

/* --- GUIDE AUDIENCE SECTION --- */
.guide-audience-section {
    padding: 70px 40px 120px 40px;
    background-color: var(--bg-color);
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    overflow: visible;
    /* Allow absolute background decorative vector graphic to bleed to screen edge */
}

.guide-vector-left {
    position: absolute;
    top: -180px;
    left: calc(-50vw + 50%);
    z-index: 1;
    pointer-events: none;
    width: min(720px, 55vw);
    height: auto;
    opacity: 0.7;
    mix-blend-mode: screen;
}

.guide-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: start;
    gap: 18px;
    width: 100%;
}

#guide-card-1 {
    grid-column: 1 / span 2;
    grid-row: 1;
}

#guide-card-2 {
    grid-column: 3;
    grid-row: 1;
}

#guide-card-3 {
    grid-column: 1;
    grid-row: 2;
}

#guide-card-4 {
    grid-column: 2;
    grid-row: 2;
}

#guide-card-5 {
    grid-column: 3;
    grid-row: 2;
}

.guide-card {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.4s ease, background 0.4s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.guide-card:hover {
    border-color: rgba(166, 178, 235, 0.25);
    background: rgba(255, 255, 255, 0.02);
}

.guide-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(166, 178, 235, 0.12), transparent 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
    /* Rendered over image */
}

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

.guide-card-visual {
    width: 100%;
    height: 200px;
    /* Reduced visual container height to make cards more compact */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-card-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:hover .guide-card-img {
    transform: scale(1.04);
}

.guide-card-info {
    padding: 24px;
    /* Reduced text padding to align with compact cards */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
    flex-grow: 1;
    /* Pushes the card contents to expand and match heights seamlessly */
}

.guide-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    min-height: 3.2rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.guide-card-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    min-height: 4.65em;
    margin: 0;
}

@media (max-width: 1024px) {
    .guide-audience-section {
        padding: 80px 24px 100px 24px;
    }

    .guide-vector-left {
        width: min(460px, 42vw);
        opacity: 0.55;
        top: -120px;
    }

    /* Removed card padding override */
    .guide-card-visual {
        height: 160px;
        /* Reduced visual container height on tablet */
    }

    .guide-card-info {
        padding: 20px;
        /* Tighter padding on tablet */
    }

    .guide-audience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .guide-card-info h3 {
        font-size: 16px;
    }

    .guide-card-info p {
        font-size: 14px;
    }

    #guide-card-1,
    #guide-card-2,
    #guide-card-3,
    #guide-card-4,
    #guide-card-5 {
        grid-column: span 1;
        grid-row: auto;
    }

    #guide-card-5 {
        grid-column: 1 / span 2;
        max-width: calc(50% - 12px);
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .guide-vector-left {
        width: 280px;
        top: -60px;
        opacity: 1;
    }

    .guide-card-visual {
        height: 110px !important;
        /* Scaled down height for 2-column mobile layout */
    }

    .guide-card-info {
        padding: 12px !important;
        /* Snug padding for compact mobile cards */
        gap: 8px !important;
        text-align: center !important;
        /* Center text inside all guide cards */
        align-items: center !important;
        /* Center flex items */
    }

    .guide-card-info h3 {
        font-size: 16px !important;
        /* Unified heading 16px */
        line-height: 1.35 !important;
    }

    .guide-card-info p {
        font-size: 12px !important;
        /* Unified description 12px */
        line-height: 1.4 !important;
    }

    .guide-audience-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    #guide-card-1,
    #guide-card-2,
    #guide-card-3,
    #guide-card-4,
    #guide-card-5 {
        grid-column: span 1 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    #guide-card-5 {
        grid-column: 1 / span 2 !important;
        max-width: calc(50% - 6px) !important;
        /* Restrict width to match other cards exactly */
        margin: 0 auto !important;
        /* Center horizontally at the bottom */
        width: 100% !important;
    }
}

/* --- WHY CHOOSE DR JEROME SECTION --- */
.why-choose-section {
    padding: 100px 40px 120px 40px;
    background-color: var(--bg-color);
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    overflow: visible;
    /* Allow absolute background vector graphics to bleed to screen edge */
}

.why-choose-star-left {
    position: absolute;
    top: 60px;
    left: calc(-50vw + 50%);
    z-index: 1;
    pointer-events: none;
    width: auto;
    height: auto;
    opacity: 1;
    mix-blend-mode: screen;
}

.why-choose-star-right {
    position: absolute;
    bottom: 60px;
    right: calc(-50vw + 50%);
    z-index: 1;
    pointer-events: none;
    width: auto;
    height: auto;
    opacity: 1;
    mix-blend-mode: screen;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    width: 100%;
    position: relative;
}

.why-choose-item {
    position: relative;
    height: 100%;
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: background 0.4s ease, border-color 0.4s ease;
    z-index: 2;
    overflow: hidden;
}

.why-choose-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(166, 178, 235, 0.09), transparent 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.why-choose-item:hover::after {
    opacity: 1;
}

.why-choose-item:hover {
    background: rgba(255, 255, 255, 0.015);
}

/* Establish standard borders for 4-column Desktop layout */
.why-choose-item:not(:nth-child(4n)) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.why-choose-item:nth-child(-n+4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.why-choose-icon-wrap {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-choose-item:hover .why-choose-icon-wrap {
    transform: scale(1.1) translateY(-4px);
}

.why-choose-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(166, 178, 235, 0.25));
    transition: filter 0.3s ease;
}

.why-choose-item:hover .why-choose-icon {
    filter: drop-shadow(0 0 16px rgba(166, 178, 235, 0.65));
}

.why-choose-item h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    z-index: 2;
    width: 100%;
    min-height: 3rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-choose-item p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    z-index: 2;
    width: 100%;
    min-height: 4.65em;
    margin: 0;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .why-choose-section {
        padding: 80px 24px 100px 24px;
    }

    .why-choose-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4-column layout on tablet as requested */
    }

    /* Reset desktop borders */
    .why-choose-item {
        border-right: none !important;
        border-bottom: none !important;
        padding: 28px 14px;
    }

    /* Apply 4-column borders */
    .why-choose-item:not(:nth-child(4n)) {
        border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .why-choose-item:nth-child(-n+4) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .why-choose-item h4 {
        font-size: 16px;
        min-height: 2.6rem;
    }

    .why-choose-item p {
        font-size: 14px;
        min-height: 4.2em;
    }

    .why-choose-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .why-choose-star-left {
        width: min(45px, 8vw);
        opacity: 1;
        top: 40px;
    }

    .why-choose-star-right {
        width: min(45px, 8vw);
        opacity: 1;
        bottom: 40px;
    }
}

@media (max-width: 767px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2-column layout as per reference screenshot */
    }

    /* Apply 2-column borders and tight mobile padding */
    .why-choose-item {
        border-right: none !important;
        border-bottom: none !important;
        padding: 24px 12px;
    }

    .why-choose-item:not(:nth-child(4n)) {
        border-right: none !important;
        border-bottom: none !important;
    }

    .why-choose-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .why-choose-item:nth-child(-n+6) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .why-choose-icon-wrap {
        width: 44px;
        /* Balanced icon size for mobile 2-column layout */
        height: 44px;
        margin-bottom: 16px;
    }

    .why-choose-item h4 {
        font-size: 16px !important;
        /* 16px Heading font-size as requested */
        margin-bottom: 8px;
        min-height: 2.6rem;
    }

    .why-choose-item p {
        font-size: 12px !important;
        /* 12px Description font-size as requested */
        line-height: 1.45;
        min-height: 4em;
    }

    .why-choose-star-left {
        width: 30px;
        opacity: 1;
    }

    .why-choose-star-right {
        width: 30px;
        opacity: 1;
    }
}

/* --- BRANDS SHOWCASE SECTION --- */
.brands-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    width: 100%;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.brands-vector-left {
    position: absolute;
    top: -170px;
    left: -280px;
    z-index: 1;
    pointer-events: none;
    width: min(600px, 70vw);
    height: auto;
    opacity: 1;
    mix-blend-mode: screen;
}

.brands-vector-right {
    position: absolute;
    top: -170px;
    right: 0px;
    z-index: 1;
    pointer-events: none;
    width: auto;
    height: auto;
    opacity: 1;
    mix-blend-mode: screen;
}

.brands-section .section-header {
    padding: 0 40px;
}

.marquee-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
    position: relative;
}

.marquee-track {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
    align-items: center;
    min-height: 56px;
    /* Create a fading gradient mask on left and right edges for a premium seamless blend */
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    min-width: max-content;
    padding-right: 48px;
    transform: translateZ(0);
}

.track-left .marquee-group {
    animation: marquee-left 45s linear infinite;
}

.track-right .marquee-group {
    animation: marquee-right 45s linear infinite;
}

/* Pause marquee animation on hover to allow detailed viewing */
.marquee-track:hover .marquee-group {
    animation-play-state: paused;
}

.marquee-group img {
    height: 44px;
    width: 100px;
    max-width: 100px;
    flex: 0 0 100px;
    object-fit: contain;
    object-position: center;
    margin: 0;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.marquee-group img:hover {
    transform: scale(1.08);
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-100%);
    }

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

/* Responsive Styles for Brands Showcase */
@media (max-width: 1024px) {
    .brands-section {
        padding: 60px 0;
    }

    .brands-section .section-header {
        padding: 0 24px;
    }

    .brands-vector-left {
        width: min(500px, 60vw);
        top: -140px;
        left: -180px;
        opacity: 0.55;
    }

    .brands-vector-right {
        width: min(500px, 60vw);
        top: -140px;
        right: -180px;
        opacity: 1;
    }

    .marquee-track {
        min-height: 48px;
    }

    .marquee-group {
        gap: 36px;
        padding-right: 36px;
    }

    .marquee-group img {
        height: 36px;
        width: 80px;
        max-width: 80px;
        flex: 0 0 80px;
    }

    .marquee-container {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .brands-section {
        padding: 50px 0;
    }

    .brands-section .section-header {
        padding: 0 16px;
    }

    .brands-vector-left {
        width: min(350px, 50vw);
        top: -80px;
        left: -120px;
        opacity: 1;
    }

    .brands-vector-right {
        width: min(350px, 50vw);
        top: -80px;
        right: -120px;
        opacity: 1;
    }

    .marquee-track {
        min-height: 40px;
    }

    .marquee-group {
        gap: 28px;
        padding-right: 28px;
    }

    .marquee-group img {
        height: 30px;
        width: 72px;
        max-width: 72px;
        flex: 0 0 72px;
    }

    .marquee-container {
        gap: 18px;
    }
}

/* --- ABOUT THE AUTHOR SECTION --- */
.about-section {
    position: relative;
    width: 100%;
    min-height: 640px;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    overflow: visible;
    /* Allow absolute decorative elements to bleed to screen edge */
    padding: 120px 0;
    z-index: 10;
}

.about-inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 3;
    position: relative;
}

/* Left Content Styles */
.about-content {
    width: 52%;
    padding-right: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    text-shadow: rgba(255, 255, 255, 0.25) 0 4.86px 17.5px, rgba(159, 159, 159, 0.2) 0 -4.86px 17.5px, rgba(190, 190, 190, 0.4) 0 -4.86px 32.1px;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}

.about-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.about-desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Right Image Layout (Absolute Full Bleed on Desktop) */
.about-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: brightness(1);
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradient Overlay to blend image into background on the left, top, and bottom */
.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, #0C0E12 0%, rgba(12, 14, 18, 0.98) 8%, rgba(12, 14, 18, 0) 38%),
        linear-gradient(180deg, #0C0E12 0%, rgba(12, 14, 18, 0.8) 4%, rgba(12, 14, 18, 0) 12%),
        linear-gradient(0deg, #0C0E12 0%, rgba(12, 14, 18, 0.8) 4%, rgba(12, 14, 18, 0) 12%);
    pointer-events: none;
    z-index: 2;
    transition: background 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about-section {
        padding: 0;
        display: flex;
        flex-direction: row;
        /* Side-by-side: text left, image right */
        align-items: stretch;
        min-height: 480px;
        position: relative;
    }

    .about-inner {
        padding: 60px 24px 60px 32px;
        order: 1;
        /* Text on the left */
        flex: 0 0 52%;
        max-width: 52%;
        z-index: 3;
    }

    .about-content {
        width: 100%;
        padding-right: 0;
        align-items: flex-start;
        text-align: left;
    }

    .about-tag {
        margin-bottom: 16px;
        /* Add breathing space below the tag on tablet */
    }

    .about-image-wrapper {
        position: relative;
        flex: 0 0 48%;
        max-width: 48%;
        min-height: 700px;
        /* Increased image height on tablet */
        height: auto;
        order: 2;
        /* Image on the right */
    }

    /* Restore horizontal gradient for side-by-side tablet layout */
    .about-image-wrapper::after {
        background:
            linear-gradient(90deg, #0C0E12 0%, rgba(12, 14, 18, 0.95) 8%, rgba(12, 14, 18, 0) 38%),
            linear-gradient(180deg, #0C0E12 0%, rgba(12, 14, 18, 0.8) 4%, rgba(12, 14, 18, 0) 12%),
            linear-gradient(0deg, #0C0E12 0%, rgba(12, 14, 18, 0.8) 4%, rgba(12, 14, 18, 0) 12%);
    }

    .about-title {
        font-size: 26px;
    }

    .about-subtitle {
        font-size: 18px;
    }

    .about-desc {
        font-size: 15.2px;
        line-height: 1.5;
    }

    .about-content {
        gap: 12px;
        /* Reduced paragraph gap on tablet */
    }

    .about-inner {
        padding: 40px 24px 40px 32px;
        /* Tighter top/bottom padding on tablet */
    }
}

@media (max-width: 767px) {
    .about-section {
        margin-top: 40px !important;
        /* Top margin to breathe on mobile viewports as requested */
        flex-direction: column !important;
        align-items: center !important;
        min-height: auto !important;
        padding: 0 !important;
    }

    .about-inner {
        order: 2 !important;
        /* Text content at the bottom */
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 40px 16px 60px 16px !important;
        /* Unified mobile padding */
    }

    .about-content {
        width: 100% !important;
        padding-right: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .about-tag {
        align-self: center !important;
        margin-bottom: 16px !important;
    }

    .about-title {
        font-size: 24px !important;
        /* Standardized section titles to 24px as requested */
        text-align: center !important;
    }

    .about-subtitle {
        font-size: 18px !important;
        /* Standardized to match all other section descriptions */
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    .about-desc {
        font-size: 14px !important;
        text-align: center !important;
    }

    .about-image-wrapper {
        order: 1 !important;
        /* Image at the top */
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 380px !important;
        /* Balanced, premium height for mobile viewports */
        min-height: auto !important;
        position: relative !important;
    }

    .about-image-wrapper::after {
        background:
            linear-gradient(180deg, #0C0E12 0%, rgba(12, 14, 18, 0.8) 10%, rgba(12, 14, 18, 0) 30%),
            linear-gradient(0deg, #0C0E12 0%, rgba(12, 14, 18, 0.8) 15%, rgba(12, 14, 18, 0) 60%) !important;
    }
}

/* --- CONTACT/FORM SECTION --- */
.contact-section {
    padding: 100px 40px 120px 40px;
    background-color: var(--bg-color);
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Contain absolute background graphics */
}

.contact-form-card {
    position: relative;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 60px 50px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Custom interactive spotlight border/background using variables (spotlight animation support) */
.contact-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(166, 178, 235, 0.12), transparent 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.contact-form-card:hover::after {
    opacity: 1;
}

.contact-form-card form {
    position: relative;
    z-index: 2;
}

.form-instruction {
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 36px;
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .contact-form-card {
        padding: 40px 24px;
    }

    .contact-section {
        padding: 80px 20px 100px 20px;
    }
}

/* --- FLOATING PLACEHOLDER INPUTS (Premium Line Border) --- */
.floating-group {
    position: relative;
    width: 100%;
}

.floating-group input,
.floating-group textarea {
    width: 100%;
    background: transparent !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
    color: #1a1d24 !important;
    font-family: var(--font-body);
    font-size: 1rem !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease, padding 0.3s ease;
}

/* Prevent autofill backgrounds or extensions from introducing repeating logos */
.floating-group input:-webkit-autofill,
.floating-group input:-webkit-autofill:hover,
.floating-group input:-webkit-autofill:focus,
.floating-group textarea:-webkit-autofill,
.floating-group textarea:-webkit-autofill:hover,
.floating-group textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #1a1d24 !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.floating-group textarea {
    min-height: 48px;
    height: 48px;
    resize: none;
    line-height: 1.5;
}

.floating-group label {
    position: absolute;
    left: 0;
    top: 12px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Float label up when active (focused or typed/has value) */
.floating-group input:focus~label,
.floating-group input:not(:placeholder-shown)~label,
.floating-group textarea:focus~label,
.floating-group textarea:not(:placeholder-shown)~label {
    top: -16px;
    font-size: 0.8rem;
    color: #1a1d24;
    font-weight: 600;
}

.floating-group input:focus,
.floating-group textarea:focus {
    border-bottom-color: #1a1d24 !important;
}

/* Icons within input fields (e.g. green email logo) */
.field-icon {
    position: absolute;
    right: 0;
    top: 14px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phone prefix styling */
.phone-prefix {
    position: absolute;
    left: 0;
    top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1d24;
    pointer-events: auto;
    z-index: 2;
}

.flag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.flag-chevron {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.45);
}

.dial-code {
    font-size: 1rem;
    font-weight: 600;
}

/* Default left style for phone label to avoid overlapping SG country prefix */
.phone-label {
    left: var(--prefix-width, 95px) !important;
}

/* Float phone label back to left when active */
.phone-group input:focus~.phone-label,
.phone-group input:not(:placeholder-shown)~.phone-label {
    left: 0 !important;
    top: -16px;
    font-size: 0.8rem;
    color: #1a1d24;
    font-weight: 600;
}

/* Country Selector Invisible Overlay Dropdown */
.country-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}



/* Custom Checkbox */
.custom-checkbox-container {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    margin-bottom: 40px;
    user-select: none;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox-container .checkmark {
    position: relative;
    top: 3px;
    height: 20px;
    width: 20px;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    transition: all 0.25s ease;
}

.custom-checkbox-container:hover input~.checkmark {
    border-color: rgba(0, 0, 0, 0.45);
    background-color: rgba(0, 0, 0, 0.06);
}

.custom-checkbox-container input:checked~.checkmark {
    background-color: #1a1d24;
    border-color: #1a1d24;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.custom-checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox-container input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox-container .checkbox-text {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.6;
}



.form-submit-wrap {
    display: flex;
    justify-content: center;
}

/* Submit button override — black on white card */
#submit-btn {
    background-color: #0c0e12;
    border-color: #0c0e12;
    color: #ffffff;
}

#submit-btn:hover {
    background-color: #1a1d24;
    border-color: #1a1d24;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}




/* ============================================================
   THANK YOU POPUP MODAL
   ============================================================ */

/* Overlay Backdrop */
.thankyou-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 14, 18, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.thankyou-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Card */
.thankyou-popup {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #131720 0%, #0e111a 60%, #0c0e12 100%);
    border: none;
    border-radius: 24px;
    padding: 52px 56px 48px 56px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    text-align: center;
    transform: translateY(32px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(166, 178, 235, 0.2) transparent;
}

.thankyou-overlay.active .thankyou-popup {
    transform: translateY(0) scale(1);
}

/* Thin scrollbar for webkit */
.thankyou-popup::-webkit-scrollbar {
    width: 4px;
}

.thankyou-popup::-webkit-scrollbar-track {
    background: transparent;
}

.thankyou-popup::-webkit-scrollbar-thumb {
    background: rgba(166, 178, 235, 0.25);
    border-radius: 2px;
}

/* No top glow bar needed without border */
.thankyou-popup::before {
    display: none;
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1) rotate(90deg);
}

/* Icon hidden */
.popup-icon-wrap {
    display: none;
}

/* Popup Title */
.popup-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 22px;
    letter-spacing: -0.3px;
    text-shadow: rgba(255, 255, 255, 0.15) 0px 2px 12px;
}

/* Body paragraphs */
.popup-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    text-align: center;
}

.popup-body p {
    font-size: 0.975rem;
    line-height: 1.72;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.popup-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Highlighted download link (yellow-tinted like in the image) */
.popup-highlight-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: rgba(253, 224, 71, 0.75);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    background: rgba(253, 224, 71, 0.12);
    border-radius: 3px;
    padding: 1px 4px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.popup-highlight-link:hover {
    background: rgba(253, 224, 71, 0.22);
    color: #fde047;
    text-decoration-color: #fde047;
}

/* Divider before actions */
.popup-body+.popup-actions {
    padding-top: 28px;
}

/* Action Buttons Row — side by side */
.popup-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-btn-primary {
    flex: 1;
    min-width: 180px;
    text-align: center;
    justify-content: center;
    font-size: 13px !important;
    padding: 14px 20px !important;
    border-radius: 9999px;
}

.popup-btn-secondary {
    flex: 1;
    min-width: 180px;
    text-align: center;
    justify-content: center;
    font-size: 13px !important;
    padding: 14px 20px !important;
    border-radius: 9999px;
    border-color: rgba(166, 178, 235, 0.22) !important;
}

.popup-btn-secondary:hover {
    background: rgba(166, 178, 235, 0.08) !important;
    border-color: rgba(166, 178, 235, 0.4) !important;
}

/* Responsive — smaller screens */
@media (max-width: 640px) {
    .thankyou-popup {
        padding: 44px 24px 36px 24px;
        border-radius: 18px;
    }

    .popup-title {
        font-size: 1.3rem;
    }

    .popup-body p {
        font-size: 0.92rem;
    }

    .popup-actions {
        flex-direction: column;
    }

    .popup-btn-primary,
    .popup-btn-secondary {
        flex: unset;
        width: 100%;
    }
}

/* --- WATCH DR JEROME JOSEPH IN ACTION SECTION --- */
.jerome-action-section {
    padding: 100px 40px;
    background-color: var(--bg-color);
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.action-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    width: 100%;
    align-items: stretch;
}

.small-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

.video-card {
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.video-card .border-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 5px solid #374151;
    box-shadow: var(--glass-shadow);
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(2, 1, 8, 0.5);
}

.large-card .border-wrapper {
    height: 100%;
}

.small-card .border-wrapper {
    aspect-ratio: 16 / 9;
}

.video-card .video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover .border-wrapper {
    border-color: rgba(166, 178, 235, 0.65);
    box-shadow: 0 12px 40px rgba(166, 178, 235, 0.15);
}

.video-card:hover .video-img {
    transform: scale(1.03);
}

/* Play Button Styling */
.play-btn-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.play-btn {
    background: #ffffff;
    color: #0c0e12;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.large-card .play-btn {
    width: 72px;
    height: 72px;
    font-size: 22px;
}

.large-card .play-btn i {
    margin-left: 4px;
    /* visually center play icon */
}

.small-card .play-btn {
    width: 48px;
    height: 48px;
    font-size: 14px;
}

.small-card .play-btn i {
    margin-left: 3px;
}

.video-card:hover .play-btn {
    transform: scale(1.08);
    background: #f1f1f1;
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.25);
}

/* Small Cards Hover Reveal Animation */
.small-card .play-btn-wrap.hover-reveal {
    opacity: 0;
    transform: translate(-50%, -35%) scale(0.85);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.small-card:hover .play-btn-wrap.hover-reveal {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.action-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* --- VIDEO POPUP MODAL STYLING --- */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 7, 14, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-popup-card {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #0c0e12;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-popup-overlay.active .video-popup-card {
    transform: scale(1) translateY(0);
}

.video-popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 2010;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-popup-close-btn:hover {
    background: #ffffff;
    color: #0c0e12;
    transform: scale(1.05) rotate(90deg);
}

.video-popup-body {
    width: 100%;
    height: 100%;
}

#video-player-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

/* RESPONSIVE MEDIA QUERIES FOR VIDEO SECTION */
@media (max-width: 1024px) {
    .jerome-action-section {
        padding: 60px 24px 80px 24px !important;
    }

    .action-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 36px;
    }

    .large-card .border-wrapper {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .small-cards-grid {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .jerome-action-section {
        padding: 60px 16px 80px 16px !important;
    }

    .small-cards-grid {
        gap: 12px;
    }

    .video-card .border-wrapper {
        border-radius: 8px;
        border-width: 2px;
    }

    .large-card .play-btn {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }

    .small-card .play-btn {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .video-popup-card {
        width: 95%;
        border-radius: 12px;
    }

    .video-popup-close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ==========================================================================
   --- PREMIUM TESTIMONIALS SECTION ---
   ========================================================================== */
.testimonials-section {
    position: relative;
    padding: 100px 40px;
    background-color: var(--bg-color);
    overflow: hidden;
    z-index: 10;
}

.testimonials-bg-image {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: lighten;
    z-index: 1;
}

.testimonial-vector-right {
    position: absolute;
    top: -170px;
    right: calc(-50vw + 50%);
    z-index: 1;
    pointer-events: none;
    width: min(520px, 45vw);
    height: auto;
    opacity: 1;
    mix-blend-mode: screen;
}

.testimonials-section .section-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

#testimonials .section-header {
    position: relative;
    top: -30px;
    /* Shift the heading up by 30px. Tweak this value to shift it higher or lower. */
}

.section-subtitle-animated {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.testimonials-grid-wrapper {
    position: relative;
    width: 100%;
    height: 780px;
    margin-top: 48px;
    overflow: hidden;
    /* Softly fade cards at the top and bottom of the viewport scrolling areas */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    height: 100%;
}

.marquee-column {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.marquee-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    will-change: transform;
}

.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Glassmorphism Cards with high fidelity aesthetic */
.testimonial-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
}

.card-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0d0f14;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-review {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 20px;
}

.card-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.card-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.author-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.testimonials-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* Testimonial Responsive Layouts */
@media (max-width: 1199px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .column-right {
        display: none;
    }

    .testimonials-grid-wrapper {
        height: 720px;
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 60px 16px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .column-left {
        display: none;
    }

    .testimonials-grid-wrapper {
        height: 640px;
    }

    .section-subtitle-animated {
        font-size: 1.25rem !important;
    }
}