* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #F9F8F6 !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html.landing-visible,
body.landing-visible {
    overflow: hidden;
    height: 100vh;
    width: 100%;
    position: fixed;
}

:root {
    --wide-max-width: 1200px;
    --wide-gutter: 50px;
}

/* @media (min-width: 1440px) {
    :root {
        --wide-max-width: clamp(1400px, 82vw, 2400px);
        --wide-gutter: clamp(60px, 5vw, 160px);
    }
} */

/* Side Navigation */
.side-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border-radius: 38px;
    padding: 15px 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid #958888;
    transition: border-color 0.3s ease, opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.side-nav.show {
    opacity: 1;
    visibility: visible;
}

.side-nav.black-border {
    border: 1px solid #a9a4a4;
}

.nav-item {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    position: relative;
}

.nav-item.active {
    background: white;
}

.nav-icon {
    width: 18px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease;
}

.nav-icon img {
    width: 18px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1000%) hue-rotate(315deg) brightness(95%) contrast(85%);
    transition: filter 0.3s ease;
}

.nav-item.active .nav-icon img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(2000%) hue-rotate(315deg) brightness(80%) contrast(120%);
}

/* All nav items should be #4E233B on hover */
.nav-item:hover .nav-icon img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(2000%) hue-rotate(315deg) brightness(80%) contrast(120%);
}

.nav-item.active:hover .nav-icon img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(2000%) hue-rotate(315deg) brightness(80%) contrast(120%);
}

/* Nav Label Styles */
.nav-label {
    position: absolute;
    left: 50px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #4E233B;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
}

.nav-item:hover .nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Home section nav label should be white */
.side-nav:not(.black-border) .nav-item:hover .nav-label {
    color: white;
}

/* Other sections nav label should be dark */
.side-nav.black-border .nav-item:hover .nav-label {
    color: #4E233B;
}

.logo-container {
    position: fixed;
    top: 40px;
    left: 50px;
    right: 50px;
    display: flex;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logo-container.show {
    opacity: 1;
    visibility: visible;
}

.logo {
    height: 43px;
    width: auto;
}

.brand-text {
    color: white;
    font-weight: 500;
    font-size: 40px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    margin-left: 20px;
}

.brand-text.dark-text {
    color: #4E233B;
}

/* Logo container in dark sections */
.logo-container.dark-section .brand-text {
    color: #4E233B;
}

.logo-container.dark-section .logo {
    filter: brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(2000%) hue-rotate(315deg) brightness(80%) contrast(120%);
}

/* Logo container visibility is controlled by JavaScript */

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Dark hamburger for light sections */
.logo-container.dark-section .hamburger-menu span {
    background-color: #333;
}

/* Mobile Side Navigation */
.mobile-side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    /* Small Viewport Height - safer for mobile browsers */
    height: 100dvh;
    /* Dynamic Viewport Height - adapts to UI bars */
    z-index: 9999;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-side-nav.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    /* Allow clicks when menu is open */
}

.mobile-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-nav-content {
    position: absolute;
    top: 100px;
    /* Slightly higher to fit more items on small screens */
    right: 12px;
    width: 60%;
    max-height: calc(100svh - 120px);
    /* Height based on system minus top offset */
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    /* Ensure content is reachable if it exceeds max-height */
    background: transparent;
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    border: 1px solid rgba(204, 204, 204, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    -webkit-overflow-scrolling: touch;
    /* Smoother scrolling on iOS */
}

.mobile-side-nav.active .mobile-nav-content {
    transform: translateX(0);
}

/* White background for non-home sections */
.mobile-side-nav:not(.home-section) .mobile-nav-content,
.mobile-side-nav.dark-section .mobile-nav-content {
    background: rgba(255, 255, 255, 0.95);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 12px;
    /* background: rgba(255, 255, 255, 0.1); */
    backdrop-filter: blur(10px);
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-item.active {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-side-nav.dark-section .mobile-nav-item:hover {
    background: rgba(78, 35, 59, 0.2);
}

.mobile-side-nav.dark-section .mobile-nav-item.active {
    background: rgba(78, 35, 59, 0.3);
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(100%);
    object-fit: contain;
}

/* Dark icons for non-home sections */
.mobile-side-nav.dark-section .mobile-nav-icon img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(2000%) hue-rotate(315deg) brightness(80%) contrast(120%);
}

.mobile-nav-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

/* Dark text for non-home sections */
.mobile-side-nav.dark-section .mobile-nav-text {
    color: #333;
}

/* Landing Section */
.landing-section {
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    transition: opacity 0.5s ease, visibility 0.5s ease, pointer-events 0.5s ease, background-color 0.5s ease;
    pointer-events: auto;
}

/* .landing-section.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
} */

/* Remove background when video transition starts */
.landing-section.video-transitioning {
    background-color: transparent;
    pointer-events: none;
}

/* Allow pointer events to pass through after video transitions (so content below is clickable) */
.landing-section.video-transitioned {
    pointer-events: none;
    background-color: transparent;
}

body.landing-visible {
    overflow: hidden;
}

.landing-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease, opacity 0.5s ease, top 1s ease, left 1s ease, width 1s ease, height 1s ease, filter 1s ease, visibility 0.5s ease;
    z-index: 10002;
    opacity: 1;
    visibility: visible;
    filter: none;
    pointer-events: auto;
}

.landing-video.slide-to-corner {
    top: -30px;
    left: 50px;
    transform: translate(0, 0);
    width: 320px;
    height: 225px;
    opacity: 1;
}

.landing-video.turn-white,
.landing-video.slide-to-corner.turn-white {
    filter: brightness(0) saturate(100%) invert(100%) !important;
}

.landing-video.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#lottie-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 1.5s ease, top 1.5s ease, left 1.5s ease, width 1.5s ease, height 1.5s ease, filter 1.5s ease, opacity 0.5s ease;
}

#lottie-container.lottie-hidden {
    opacity: 0;
    visibility: hidden;
}

#lottie-container.slide-to-corner {
    top: 40px;
    left: 50px;
    transform: translate(0, 0);
    width: 378px;
    height: 101px;
}

#lottie-container.turn-white {
    filter: brightness(0) saturate(100%) invert(100%) !important;
}

/* Mobile/Tablet Override */
@media (max-width: 1024px) {
    #lottie-container.slide-to-corner {
        top: -17px;
        left: 20px;
        width: 260px;
        height: 170px;
    }
}

/* Tablet Override */
@media (min-width: 768px) and (max-width: 1024px) {
    #lottie-container.slide-to-corner {
        top: 60px;
        left: 30px;
        width: 361px;
        height: 111px;
    }
}

#lottie-container svg {
    width: 100%;
    height: 100%;
}

.landing-logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 87px;
    opacity: 0;
    visibility: hidden;
    z-index: 10002;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: transform 1s ease-out, opacity 0.8s ease, width 1s ease-out, height 1s ease-out, gap 1s ease-out, top 1s ease-out, left 1s ease-out;
}

.landing-logo-container.show {
    opacity: 1;
    visibility: visible;
}

.landing-logo-container.hidden-away {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-logo-container.slide-to-corner {
    top: 40px;
    left: 50px;
    width: auto;
    height: auto;
    gap: 10px;
    /* Transform will be handled by JavaScript for diagonal movement */
}

.landing-logo-container.turn-white .landing-logo {
    filter: none;
}

.landing-logo-container.turn-white .landing-brand-text {
    color: white;
}

.landing-logo-container.slide-to-corner .landing-logo {
    height: 43px;
    width: auto;
    max-height: 43px;
    max-width: none;
}

.landing-logo-container.slide-to-corner .landing-brand-text {
    font-size: 40px;
    letter-spacing: 1px;
    margin-left: 10px;
    color: white;
}

.landing-logo {
    width: auto;
    height: 38.5vh;
    max-width: 93%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    transition: height 2s ease, width 2s ease, max-width 2s ease, max-height 2s ease, filter 0.3s ease;
}

.landing-brand-text {
    font-size: 197.5px;
    font-weight: 500;
    color: #4E233B;
    letter-spacing: 5px;
    text-align: center;
    transition: font-size 2s ease, letter-spacing 2s ease, color 0.3s ease, margin-left 2s ease;
}

/* Landing section styles moved to main mobile/tablet media query below */

.carousel-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100vh);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-container.show {
    opacity: 1;
    transform: translateY(0);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-slide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 1;
}

.video-slide.active {
    transform: translateX(0);
    z-index: 10;
}

.video-slide.prev {
    transform: translateX(-100%);
    z-index: 5;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Management Text */
.management-text {
    position: absolute;
    bottom: 94px;
    left: 110px;
    z-index: 10;
}

.text-line {
    color: white;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

/* Action Buttons */
.action-buttons {
    position: absolute;
    bottom: 42px;
    right: 50px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    font-family: 'Poppins';
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: white;
    color: #4A263B;
    border: 1px solid white;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Dots indicator */
.dots-container {
    position: absolute;
    bottom: 42px;
    left: 117px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    color: white;
    cursor: pointer;
    transition: max-width 0.35s ease, padding 0.35s ease, background 0.35s ease, color 0.35s ease, border 0.35s ease, font-size 0.2s ease 0.1s;
    overflow: hidden;
    white-space: nowrap;
    max-width: 8px;
    min-width: 8px;
    height: 8px;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
    font-weight: 500;
    line-height: 1;
    backdrop-filter: blur(10px);
    gap: 0;
}

.dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform: scale(1);
    opacity: 1;
}

.dot-label {
    font-size: 12px;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-6px);
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.25s ease 0.15s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.4s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    max-width: 220px;
    height: 36px;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 12px;
    gap: 8px;
}

.dot.active::before {
    transform: scale(0.3);
    opacity: 0;
}

.dot.active .dot-label {
    padding: 10px;
    opacity: 1;
    margin-left: -12px;
    transform: translateX(0);
    max-width: 180px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* About Us Section */
.about-section {
    min-height: 100vh;
    background-color: #F9F8F6;
    display: flex;
    width: 100%;
    /* align-items: center; */
    padding: 60px 0;
}

.about-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), margin 1.2s cubic-bezier(0.16, 1, 0.3, 1), padding 1.2s cubic-bezier(0.16, 1, 0.3, 1), gap 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.about-content.scrolled {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: 30px;
    align-items: start;
    text-align: left;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.about-content.scrolled::before {
    content: '';
    position: absolute;
    top: 53%;
    left: 0;
    transform: translateY(-50%);
    width: 800px;
    height: 550px;
    background-image: url(../assets/images/Background_logo.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
}

.about-title {
    font-size: 248px;
    line-height: 323.7px;
    font-weight: 400;
    color: #2D2D2D;
    letter-spacing: -2px;
    transition: font-size 2.2s cubic-bezier(0.19, 1, 0.22, 1), line-height 2.2s cubic-bezier(0.19, 1, 0.22, 1), margin 2.2s cubic-bezier(0.19, 1, 0.22, 1), transform 2.2s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

.about-content.scrolled .about-title {
    margin-top: 293px;
    line-height: 0.9;
    margin-left: 40px;
    font-size: 60px;
    font-weight: 600;
    text-align: left;
}

.about-text {
    font-size: 16px;
    line-height: 1.6;
    color: #2D2D2D;
    margin-left: 405px;
    padding-top: 20px;
    max-width: 642px;
    transition: margin 2.3s cubic-bezier(0.19, 1, 0.22, 1), padding 2.3s cubic-bezier(0.19, 1, 0.22, 1), transform 2.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.about-content.scrolled .about-text {
    padding-top: 0;
    margin-left: 40px;
    width: 675px;
    max-width: none;
    text-align: left;
}

/* About Image Container */
.about-image-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    height: 505px;
    width: auto;
    max-width: 50%;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    display: block;
    transition: opacity 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
    z-index: 0;
}

/* Large Devices (Tablets Landscape / Small Laptops: 992px – 1199px) */
/* Medium Desktop / Large Laptop (1200px – 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .about-image-container {
        right: 0;
        max-width: 100%;
        height: 100%;
    }

    .features-container {
        max-width: 1255px !important;
        padding: 0px 40px 0px 100px !important;
    }

    .clients-container {
        max-width: 1236px !important;
        padding: 0px 40px 0px 100px !important;
    }

    .pricing-container {
        max-width: 1254px !important;
        padding: 0px 40px 0px 100px !important;
    }

    .contact-container {
        max-width: 1275px !important;
        padding: 0px 40px 0px 100px !important;
    }

    .footer-container {
        padding: 0 50px;
    }
}

/* Large Desktop (1400px – 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
    .about-content.scrolled .about-text {
        padding: 50px;
    }

    .about-image-container {
        right: 0;
        max-width: 100%;
        height: 100%;
    }

    .features-container {
        max-width: 1255px !important;
        padding: 0px 60px !important;
    }

    .clients-container {
        max-width: 1236px !important;
        padding: 0px 60px !important;
    }

    .pricing-container {
        max-width: 1254px !important;
        padding: 0px 60px !important;
    }

    .contact-container {
        max-width: 1275px !important;
        padding: 0px 60px !important;
    }

    .footer-container {
        padding: 0 60px;
    }
}

/* Extra Large Desktop (1600px and above) */
@media (min-width: 1600px) {
    .about-image-container {
        right: 0;
        max-width: 100%;
        height: 100%;
    }

    .features-container {
        max-width: 1255px !important;
        padding: 0px !important;
    }

    .clients-container {
        max-width: 1236px !important;
        padding: 0px !important;
    }

    .pricing-container {
        max-width: 1254px !important;
        padding: 0px !important;
    }

    .contact-container {
        max-width: 1275px !important;
        padding: 0px !important;
    }
}

@media (min-width: 1600px) and (max-width: 1920px) {
    .about-image-container {
        right: 0;
        max-width: 100%;
        height: 100%;
    }

    .about-content.scrolled::before {
        width: 826px;
        height: 618px;
        left: 0;
        transform: translateY(-50%);
    }

    .about-content.scrolled .about-title {
        margin-top: 425px;
        font-size: 65px;
    }

    .about-content.scrolled .about-text {
        padding-top: 0;
        margin-left: 40px;
        width: 835px;
        font-size: 18px;
    }

    .side-nav {
        padding: 15px 10px;
    }

    .landing-logo-container.slide-to-corner .landing-logo {
        height: 90px;
        max-height: 68px;
    }

    .landing-logo-container.slide-to-corner .landing-brand-text {
        font-size: 60px;
    }

    .text-line {
        font-size: 50px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 16px 36px !important;
        font-size: 18px !important;
        font-weight: 700 !important;
    }

    .features-title {
        font-size: 60px !important;
    }

    .features-intro {
        font-size: 18px !important;
    }

    .category-btn {
        font-size: 16px !important;
    }

    .feature-card span {
        font-size: 15px !important;
    }

    .detail-description {
        font-size: 18px !important;
    }

    .features-container {
        max-width: 1620px !important;
        padding: 0px !important;
    }

    .clients-container {
        max-width: 1593px !important;
        padding: 0px !important;
    }

    .clients-title {
        font-size: 60px !important;
    }

    .clients-description {
        font-size: 18px !important;
    }

    .cta-banner {
        max-width: 80% !important;
        margin: 116px auto 0 !important;
        padding: 60px 75px 45px 30px !important;
    }

    .pricing-container {
        max-width: 1600px !important;
        padding: 0px !important;
    }

    .pricing-title {
        font-size: 60px !important;
    }

    .pricing-description {
        font-size: 18px !important;
    }

    .feature-item {
        width: 350px !important;
        padding: 16px 15px !important;
        font-size: 16px !important;
    }

    .plan-title {
        margin: 0 0 12px 0 !important;
    }

    .plan-price {
        margin: 0 0 10px 0 !important
    }

    .plan-description {
        font-size: 16px !important;
    }

    .plan-button {
        font-size: 16px !important;
    }

    .pricing-right {
        gap: 45px !important;
    }

    .scrolling-text {
        font-size: 250px !important;
    }

    .contact-container {
        max-width: 1555px !important;
        padding: 0px !important;
    }

    .contact-title {
        font-size: 60px !important;
    }

    .contact-description {
        font-size: 18px !important;
    }

    .contact-item {
        font-size: 18px !important;
    }

    .contact-form-card {
        padding: 45px 60px !important;
    }

    .form-title {
        font-size: 25px !important;
    }

    .form-subtitle {
        font-size: 18px !important;
    }

    .form-field label {
        font-size: 18px !important;
    }

    .step-instruction {
        font-size: 18px !important;
    }

    .management-option span {
        font-size: 16px !important;
    }

    .form-back-button {
        font-size: 16px !important;
    }

    .form-next-button {
        font-size: 16px !important;
    }

    .footer-container {
        max-width: 1600px !important;
    }
}

/* @media (max-width: 1366px) {
    .about-image-container {
        right: -409px;
        height: 100%;
    }
} */

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(50% 0 50% 0);
    transition: clip-path 1.2s ease 0.9s;
}

.about-content.scrolled .about-image-container {
    opacity: 1;
    visibility: visible;
    right: 0;
    max-width: 100%;
}

.about-content.scrolled .about-image {
    clip-path: inset(0% 0 0% 0);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================
   Mobile & Tablet: < 1024px (All mobile devices and tablets)
   Small Laptop: 1024px - 1199px
   Desktop: 1200px - 1399px
   Large Desktop: 1400px - 1599px
   Extra Large: 1600px+
   ============================================ */

/* Mobile & Tablet Devices (All sizes up to 1024px) */
@media (max-width: 1024px) {
    .side-nav {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 10px 14px;
        gap: 6px;
        border-radius: 999px;
        border: none;
        backdrop-filter: blur(16px);
        background: rgba(78, 35, 59, 0.85);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        opacity: 1;
        visibility: visible;
        z-index: 1000;
    }

    body.is-navigating-from-about .pricing-section,
    body.is-navigating-from-about .contact-section {
        scroll-margin-top: 110px;
    }

    .nav-item {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: transparent;
    }

    .nav-item.active {
        background: rgba(255, 255, 255, 0.15);
    }

    .nav-icon img {
        filter: brightness(0) saturate(100%) invert(99%) sepia(2%) saturate(663%) hue-rotate(185deg) brightness(111%) contrast(101%);
    }

    .nav-label {
        display: none !important;
    }

    .hamburger-menu {
        display: flex;
    }

    .logo-container {
        justify-content: space-between;
    }

    .features-left .management-categories {
        display: none !important;
    }

    .features-left .features-grid {
        display: none !important;
    }

    .features-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 20px !important;
        /* Sticky behavior: stays at top while tracking through parents height */
        position: sticky !important;
        top: 70px;
        height: calc(100dvh - 90px) !important;
        overflow: hidden !important;
    }

    .features-left {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        flex-shrink: 0;
    }

    .features-right {
        width: 100% !important;
        flex: 1 !important;
        overflow-y: hidden !important;
        /* Controlled by JS scroll sync */
        padding-bottom: 20px;
    }

    .features-section {
        padding: 40px 0 !important;
        position: relative;
        will-change: transform, opacity;
        /* Scroll Track: Large height to allow internal features scroll */
        min-height: 300vh;
    }

    .features-title {
        order: 1 !important;
    }

    .features-intro {
        order: 2 !important;
    }

    /* Remove the old sticky-active fixed logic */
    .features-section.sticky-active {
        position: relative;
    }

    .main-header {
        padding: 15px 0;
    }

    .logo-container {
        position: fixed;
        top: 55px;
        left: 20px;
        right: 20px;
        padding: 0;
        z-index: 10000;
        display: flex !important;
        /* Always show on mobile for hamburger menu */
        opacity: 1 !important;
        visibility: visible !important;
        justify-content: space-between;
        /* Space between logo and hamburger */
        align-items: center;
    }

    .logo-container.dark-section {
        justify-content: flex-end;
        /* Only hamburger in dark sections */
    }



    /* Hide logo and brand text on mobile in non-home sections */
    .logo-container:not(.home-section-mobile) .logo,
    .logo-container:not(.home-section-mobile) .brand-text {
        display: none;
    }

    /* Show logo and brand text only in home section on mobile */
    .logo-container.home-section-mobile {
        justify-content: space-between;
        /* Logo on left, hamburger on right */
    }

    .logo-container.home-section-mobile .logo,
    .logo-container.home-section-mobile .brand-text {
        display: flex;
    }

    .logo {
        height: 40px;
    }

    .brand-text {
        font-size: 33px;
        margin-left: 10px;
    }

    .hamburger-menu {
        display: flex !important;
        /* Always show hamburger menu on mobile */
        margin-left: auto;
        /* Push to right */
    }

    /* Hamburger menu color for dark sections on mobile */
    .logo-container.dark-section .hamburger-menu span {
        background-color: #333;
    }

    /* Hamburger menu color for home section on mobile */
    .logo-container:not(.dark-section) .hamburger-menu span {
        background-color: white;
    }

    .mobile-side-nav {
        display: block !important;
    }

    .management-text {
        bottom: 120px;
        left: 20px;
    }

    .text-line {
        font-size: clamp(28px, 4vw, 32px);
        letter-spacing: 1px;
    }

    .scrolling-text {
        font-size: clamp(50px, 12vw, 80px) !important;
    }

    .action-buttons {
        bottom: 15px;
        width: 100%;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 0 15px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        max-width: 200px;
    }

    .dots-container {
        bottom: 79px;
        left: 20px;
    }

    /* .dot {
        width: 6px;
        height: 6px;
    } */

    .dot.active {
        padding: 6px 12px;
        font-size: 12px;
    }

    .about-section {
        padding: 40px 0;
        align-items: unset;
    }

    .about-content {
        padding: 0px;
        gap: 15px;
        width: calc(100% - 60px);
        max-width: 100%;
        margin-left: 30px;
        align-items: flex-start;
        text-align: left;
        transition: none;
    }

    /* .about-content.scrolled {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        margin-left: 0;
        padding-left: 0;
    } */

    .about-content.scrolled::before {
        display: none;
    }

    .about-image-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        height: 50%;
        margin-top: 20px;
        opacity: 0;
        display: flex;
        flex-direction: row;
        gap: 15px;
        transition: opacity 0.8s ease 0.1s;
        overflow: hidden;
    }

    .about-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        clip-path: inset(50% 0 50% 0);
        opacity: 1;
        transition: clip-path 0.8s ease 0.2s;
    }

    .about-content.scrolled .about-image-container {
        opacity: 1;
    }

    .about-content.scrolled .about-image {
        clip-path: inset(0% 0 0% 0);
    }

    .about-title {
        margin-top: 15px;
        margin-left: 0px;
        font-size: clamp(40px, 8vw, 55px);
        font-weight: 600;
        line-height: 1.2;
        text-align: left;
        width: 100%;
        transition: none !important;
        transform: none !important;
    }

    .about-text {
        font-size: clamp(14px, 3.5vw, 16px);
        line-height: 1.5;
        margin: 0px;
        padding-top: 0;
        max-width: none;
        width: 100%;
        text-align: left;
        transition: none !important;
        transform: none !important;
    }

    .about-content.scrolled .about-title {
        margin-top: 15px !important;
        margin-left: 0px;
        font-size: clamp(32px, 5vw, 55px);
        transition: none !important;
        transform: none !important;
    }

    .about-content.scrolled .about-text {
        padding-top: 0;
        margin: 0px;
        width: 100% !important;
        max-width: none;
        transition: none !important;
        transform: none !important;
    }

    /* Responsive adjustments based on screen size within mobile/tablet range */
    /* Very small mobile adjustments */
    @media (max-width: 374px) {
        .landing-brand-text {
            font-size: 28px;
            letter-spacing: 1.5px;
        }

        .landing-logo {
            max-width: 60%;
            max-height: 40px;
            height: 40px;
        }

        .landing-logo-container.slide-to-corner .landing-brand-text {
            font-size: 28px;
        }

        .about-content {
            width: calc(100% - 40px);
            margin-left: 20px;
        }

        .about-content.scrolled .about-text {
            width: calc(100% - 40px);
        }

        .btn-primary,
        .btn-secondary {
            padding: 8px 16px;
            font-size: 12px;
        }

        .text-line {
            font-size: 28px;
        }

        .features-container {
            padding: 0 15px !important;
        }

        .clients-container,
        .pricing-container,
        .contact-container {
            padding: 0 15px !important;
        }

        .contact-form-card {
            padding: 10px 12px;
        }

        .form-title {
            font-size: 16px;
        }
    }

    /* Tablet specific adjustments (768px and above within mobile/tablet range) */
    @media (min-width: 768px) {
        .landing-brand-text {
            font-size: clamp(36px, 5vw, 40px);
            letter-spacing: 2.5px;
        }

        .landing-logo {
            max-width: 65%;
            max-height: 55px;
            height: 55px;
        }

        .landing-logo-container.slide-to-corner .landing-logo {
            max-height: 45px;
            height: 45px;
        }

        .landing-logo-container.slide-to-corner .landing-brand-text {
            font-size: clamp(34px, 4.5vw, 38px);
        }

        .about-content {
            width: calc(100% - 80px);
            margin-left: 40px;
        }

        .about-content.scrolled .about-text {
            width: calc(100% - 80px);
        }

        .about-title {
            font-size: clamp(50px, 7vw, 60px);
        }

        .about-content.scrolled .about-title {
            font-size: clamp(5vw, 6vw, 60px);
        }

        .text-line {
            font-size: clamp(32px, 5vw, 40px);
        }

        .scrolling-text {
            font-size: clamp(80px, 15vw, 120px);
        }

        .features-container {
            padding: 0 40px !important;
        }

        .clients-container,
        .pricing-container,
        .contact-container {
            padding: 0 20px !important;
        }

        .btn-primary,
        .btn-secondary {
            padding: 12px 24px;
            font-size: 14px;
            width: auto;
        }

        .action-buttons {
            width: 100%;
            right: 40px;
            justify-content: flex-end;
            gap: 20px;
            padding: 0;
        }

        .dots-container {
            bottom: 90px;
        }

        .dot.active {
            padding: 8px 16px;
            font-size: 13px;
        }

        .logo-container {
            top: 60px;
            left: 30px;
            right: 30px;
        }

        .logo {
            height: 45px;
        }

        .brand-text {
            font-size: clamp(32px, 4vw, 36px);
        }

        .contact-form-card {
            padding: 16px 20px;
        }

        .form-title {
            font-size: 20px;
        }

        .footer-container {
            padding: 0 40px;
        }

        .clients-title {
            font-size: clamp(32px, 6vw, 48px) !important;
        }

        .features-title {
            font-size: clamp(32px, 6vw, 50px) !important;
        }

        .about-image-container {
            right: auto;
            height: 100%;
        }
    }

    /* Carousel viewport height for all mobile/tablet */
    .carousel-container,
    .carousel,
    .video-slide,
    .video-slide video {
        height: 100svh;
        min-height: 100svh;
    }

    .mobile-side-nav {
        display: block !important;
    }

    /* Landing section mobile/tablet styles */
    body.landing-visible {
        overflow: auto !important;
    }

    .landing-video.slide-to-corner {
        top: 5px;
        left: 20px;
        width: 240px;
        height: 135px;
    }

    .landing-brand-text {
        font-size: clamp(28px, 4vw, 40px);
        letter-spacing: 2px;
    }

    .landing-logo {
        max-width: 70%;
        max-height: 50px;
        height: 50px;
    }

    .landing-logo-container {
        gap: 20px;
    }

    .landing-logo-container.slide-to-corner {
        top: 55px;
        left: 20px;
        gap: 10px;
    }

    .landing-logo-container.slide-to-corner .landing-logo {
        max-width: auto;
        max-height: 40px;
        height: 40px;
        width: auto;
    }

    .landing-logo-container.slide-to-corner .landing-brand-text {
        font-size: clamp(28px, 3.5vw, 38px);
        letter-spacing: 1px;
        margin-left: 10px;
        color: white;
    }

    /* Clients section mobile/tablet */
    .clients-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .clients-title {
        font-size: clamp(32px, 5vw, 48px);
    }

    .clients-title .title-line {
        display: block;
    }

    .logo-card {
        width: min(100px, 20vw);
        height: min(100px, 20vw);
        padding: 10px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .logo-row-1,
    .logo-row-2 {
        height: 110px;
    }

    .logo-card img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
    }

    /* Pricing section mobile/tablet */
    .feature-item {
        width: min(154px, calc(50vw - 30px));
    }

    .pricing-container {
        grid-template-columns: 1fr !important;
        gap: 32px;
        padding: 0 20px !important;
    }

    /* Hide the horizontal divider in pricing section on mobile */
    .pricing-section .horizontal-line {
        display: none;
    }

    /* Hide original features list inside left column */
    .pricing-left .features-list {
        display: none;
    }

    /* Show the duplicated list placed after pricing-right */
    .features-list-mobile {
        display: grid !important;
    }

    /* Hide plan buttons on mobile */
    .plan-button {
        display: none;
    }

    /* Hide plan descriptions on mobile */
    .plan-description {
        display: none;
    }

    .plan-footer {
        justify-content: flex-start;
    }

    /* Pricing cards in a single row with horizontal scroll */
    .pricing-right {
        display: flex;
        flex-direction: row;
        gap: 12px;
        /* overflow-x: auto; */
        /* overflow-y: hidden; */
        width: 100%;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        scrollbar-width: thin;
        /* Firefox */
    }

    .plan-button {
        width: 100% !important;
    }

    /* Custom scrollbar for webkit browsers */
    .pricing-right::-webkit-scrollbar {
        height: 6px;
    }

    .pricing-right::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .pricing-right::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .pricing-right::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    .pricing-card {
        flex: 0 0 auto;
        width: min(180px, calc(100vw - 60px));
        /* Responsive width with max constraint */
        padding: 12px;
        border-radius: 12px;
        background-size: 50%;
        /* shrink bg logo for compact cards */
    }

    .pricing-card.featured {
        background-size: 50%;
    }

    .plan-title {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .plan-price {
        font-size: 20px;
        font-weight: 700;
        margin: 0;
    }

    /* Mobile-only line breaks for CTA title */
    .br-mobile {
        display: block;
    }

    /* Hide side navigation on mobile/tablet */
    .side-nav {
        display: none !important;
    }

    .cta-tag {
        right: 15px;
    }

    .cta-content {
        padding-left: 0px;
    }

    .text-banner-section {
        padding: 100px 0;
        height: 100vh;
        position: relative;
    }

    /* Contact section: stack right after left on mobile/tablet */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
        height: auto;
    }

    .contact-right {
        padding-top: 0;
        width: 100%;
        height: auto;
    }

    .contact-form-card {
        width: 100%;
        padding: 12px 16px;
    }

    /* Make form fields stack and tighten spacing for mobile/tablet */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-header {
        margin-bottom: 6px;
    }

    .form-title {
        font-size: clamp(16px, 3.5vw, 18px);
    }

    .form-pagination {
        font-size: clamp(11px, 2.5vw, 12px);
    }

    /* Mobile-friendly navigation buttons */
    .form-navigation {
        gap: 10px;
    }

    .form-navigation .form-back-button,
    .form-navigation .form-next-button {
        padding: 10px 12px;
    }

    .cta-banner {
        max-width: min(90%, calc(100vw - 40px));
        margin: 40px 0px 0px 20px;
        padding: clamp(20px, 4vw, 25px);
    }

    .cta-tag img {
        width: 105px;
    }

    /* Ensure space after Contact Us on mobile/tablet */
    .contact-section {
        padding-bottom: 20px;
    }

    /* Step 2: management selection - mobile/tablet fit */
    .management-selection {
        flex-direction: column;
        gap: 12px;
    }

    .management-option {
        padding: clamp(12px, 3vw, 14px) clamp(14px, 3.5vw, 16px);
        gap: 10px;
    }

    .management-option img {
        width: clamp(40px, 8vw, 44px);
        height: clamp(40px, 8vw, 44px);
    }

    .management-option span {
        font-size: clamp(12px, 2.8vw, 13px);
    }

    /* Step 3: textarea sizing for mobile/tablet */
    .form-textarea {
        min-height: clamp(100px, 25vh, 120px);
        padding: 10px;
        font-size: clamp(12px, 2.8vw, 13px);
    }

    /* Footer mobile/tablet layout to match design */
    .footer-container {
        padding: 0 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-left {
        order: 1;
    }

    .footer-right {
        order: 2;
    }

    .footer-middle {
        order: 3;
    }

    .footer-description {
        font-size: clamp(12px, 2.8vw, 13px);
        line-height: 1.4;
    }

    .footer-description br {
        display: block;
    }

    .footer-title {
        font-size: clamp(14px, 3.5vw, 16px);
        margin-bottom: 10px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-links-column a {
        font-size: clamp(12px, 2.8vw, 13px);
    }

    .footer-address {
        font-size: clamp(12px, 2.8vw, 13px);
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon img {
        width: 24px;
        height: 24px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-logo {
        width: 60%;
        height: auto;
    }

    /* Hide manual <br> line breaks in descriptions on mobile/tablet */
    .about-text br,
    .features-intro br,
    .pricing-description br,
    .clients-description br,
    .contact-description br {
        display: none;
    }

    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .terms-content h3 {
        font-size: 16px;
    }

    .terms-content h4 {
        font-size: 15px;
    }

    .terms-main-title {
        font-size: 22px;
    }

    .terms-content p,
    .terms-content li {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Small Laptop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {

    .carousel-container,
    .carousel,
    .video-slide,
    .video-slide video {
        height: 100vh;
        min-height: 100vh;
    }

    .about-image-container {
        right: 0;
        padding: 0% 5%;
        max-width: 45%;
        height: 100%;
    }

    .features-container {
        max-width: 1255px !important;
        padding: 0px 50px !important;
    }

    .clients-container {
        max-width: 1236px !important;
        padding: 0px 50px !important;
    }

    .pricing-container {
        max-width: 1254px !important;
        padding: 0px 50px !important;
    }

    .contact-container {
        max-width: 1275px !important;
        padding: 0px 50px !important;
    }

    .footer-container {
        padding: 0 50px;
    }
}

/* Features Section Animation */
.features-section {
    min-height: 100vh;
    background-color: #F9F8F6;
    padding: 60px 0;
    position: relative;
    top: auto;
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, position;
}

/* Removed sticky behavior - section now scrolls normally */

.features-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.features-section.scrolled .features-left {
    opacity: 1;
    transform: translateY(0);
}

.features-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.5s;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    pointer-events: auto;
}

.features-right::-webkit-scrollbar {
    display: none;
}

.features-section.scrolled .features-right {
    opacity: 1;
    transform: translateY(0);
}

.features-title .title-letter {
    display: inline-block;
    color: #2E2E2E33;
    opacity: 0.2;
}

.features-section.scrolled .features-title .title-letter {
    animation: fadeLetterToBlack 0.4s ease-out forwards;
    animation-delay: calc(var(--base-delay, 0.5s) + var(--delay, 0s));
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 0px 0px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    height: 100vh;
}

/* Left Column */
.features-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-title {
    font-size: 48px;
    font-weight: 600;
    color: #2E2E2E33;
    line-height: 1.2;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
}

.features-intro {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Apply the same title color-reveal animation to other section titles */
.contact-title {
    color: #2E2E2E33;
    /* start faded like features */
}

.contact-title .title-letter {
    display: inline-block;
    color: #2E2E2E33;
    opacity: 0.2;
}

/* Letter-by-letter animation for contact title */
.contact-section.scrolled .contact-title .title-letter {
    animation: fadeLetterToBlack 0.4s ease-out forwards;
    animation-delay: calc(var(--base-delay, 0.1s) + var(--delay, 0s));
}

/* Clients title animation - starts after cta-banner appears */
.clients-title .title-letter {
    display: inline-block;
    color: #2E2E2E33;
    opacity: 0.2;
}

/* Letter-by-letter animation for clients title */
.clients-section.scrolled .clients-title .title-letter {
    animation: fadeLetterToBlack 0.4s ease-out forwards;
    animation-delay: calc(var(--base-delay, 0.1s) + var(--delay, 0s));
}

.management-categories {
    display: flex;
    background: #F8F8F8;
    border: 1px solid #E0E0E0;
    border-radius: 25px;
    padding: 6px;
    gap: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.category-btn {
    flex: 1;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: #333;
    border-radius: 20px;
    font-family: 'Poppins' !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-btn.active {
    background: #4A263B;
    color: white;
    box-shadow: 0 2px 8px rgba(92, 45, 79, 0.3);
}

.category-btn:hover:not(.active) {
    color: #5C2D4F;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* gap: 15px; */
}

.feature-card {
    border-radius: 8px;
    padding: 5px;
    display: flex;
    gap: 10px;
    justify-content: center;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.35s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
    /* Border changes are instant to prevent flicker when switching cards */
}

.feature-card.highlighted,
.feature-card.active {
    border-top: none;
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    /* Border changes are instant - no transition */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Customer Management card (1st card) - never show top border, always remove when others are active */
.features-grid .feature-card:nth-child(1),
.features-grid .feature-card:nth-child(1).active,
.features-grid .feature-card:nth-child(1).highlighted {
    border-top: none !important;
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
}

/* Hide Customer Management border when other cards are active */
.features-grid:has(.feature-card.active:not([data-feature="Customer Management"])) .feature-card[data-feature="Customer Management"],
.features-grid:has(.feature-card.highlighted:not([data-feature="Customer Management"])) .feature-card[data-feature="Customer Management"] {
    border: 1px solid transparent !important;
}

/* Even positioned cards (2, 4, 6, 8) - top border, no bottom border */
.features-grid .feature-card:nth-child(2).active,
.features-grid .feature-card:nth-child(2).highlighted,
.features-grid .feature-card:nth-child(4).active,
.features-grid .feature-card:nth-child(4).highlighted,
.features-grid .feature-card:nth-child(6).active,
.features-grid .feature-card:nth-child(6).highlighted,
.features-grid .feature-card:nth-child(8).active,
.features-grid .feature-card:nth-child(8).highlighted {
    border-top: 1px solid #E0E0E0;
    border-bottom: none;
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
}

/* Room Management card - no border when Salon/Nail is selected */
.features-grid[data-category="salon"] .room-management-card,
.features-grid[data-category="nail"] .room-management-card {
    margin-left: 10px;
}

.features-grid[data-category="salon"] #room-management-card,
.features-grid[data-category="nail"] #room-management-card {
    border: 1px solid transparent !important;
}

.features-grid[data-category="spa"] .room-management-card {
    margin-left: 0;
}

/* Room Management card - top border (no bottom) when Spa is selected and card is active - needs higher specificity */
.features-grid[data-category="spa"] #room-management-card.active,
.features-grid[data-category="spa"] #room-management-card.highlighted {
    border-top: 1px solid #E0E0E0 !important;
    border-bottom: none !important;
    border-left: 1px solid #E0E0E0 !important;
    border-right: 1px solid #E0E0E0 !important;
}

/* Hide Room Management border when Customer Management is active (only in Spa) */
.features-grid[data-category="spa"]:has(.feature-card:nth-child(1).active:not(#room-management-card)) #room-management-card,
.features-grid[data-category="spa"]:has(.feature-card:nth-child(1).highlighted:not(#room-management-card)) #room-management-card {
    border: 1px solid transparent !important;
}



/* .feature-card.highlighted {
    border-left: 1px solid #caacbe;
    border-right: 1px solid #caacbe;
    border-bottom: 1px solid #caacbe;
    border-radius: 0 0 8px 8px;
} */

.feature-card>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    width: 100%;
}

.feature-card img {
    order: 1;
    width: auto;
    height: auto;
}

.feature-card span {
    order: 2;
    font-size: 12px;
    font-weight: 500;
    color: #727272;
}

.feature-card.highlighted span {
    color: #4A263B;
}

/* Right Column - styles consolidated above */

.feature-image {
    border-radius: 12px;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.main-image,
.secondary-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.detail-title {
    font-size: 32px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px 0;
}

.detail-description {
    font-size: 15px;
    color: #6A6A6A;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.feature-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.point {
    display: flex;
    align-items: center;
    gap: 15px;
}

.point-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.point span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.selected-card {
    background-color: #FFECF7;
    padding: 15px 0px;
    border-radius: 8px;
}

.room-management-card {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    /* padding: 10px 10px 10px 18px; */
    position: relative;
    grid-column: span 2;
    display: flex;
    justify-content: flex-start;
}

.room-management-card .feature-card {
    align-self: flex-start;
    margin: 0;
    border: 1px solid transparent !important;
}

.availability-tag {
    position: absolute;
    bottom: 45px;
    right: -1px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 10;
}

.horizontal-line {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #D9D9D9;
    color: #D9D9D9;
}

/* Clients Section */
.clients-section {
    background-color: #F9F8F6;
    padding: 120px 0 60px 0px;
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    /* Snappier distance */
    transition: opacity 0.3s ease-out, transform 0.35s cubic-bezier(0.1, 0.7, 0.1, 1);
    will-change: opacity, transform;
}

.clients-section.scrolled .clients-container {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: stack clients-right below clients-left */
@media (max-width: 768px) {
    .features-list-mobile {
        display: grid !important;
    }

    .clients-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .clients-title {
        font-size: clamp(32px, 5vw, 36px) !important;
    }

    .features-title {
        font-size: clamp(32px, 5vw, 40px) !important;
    }

    .detail-title {
        font-size: 28px !important;
    }

    .pricing-title,
    .contact-title {
        font-size: clamp(32px, 5vw, 40px) !important;
    }

    .clients-title .title-line {
        display: block;
    }

    .logo-card {
        width: min(100px, 20vw);
        height: min(100px, 20vw);
        padding: 10px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .logo-row-1,
    .logo-row-2 {
        height: 110px;
    }

    .logo-card img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .logo-row-content {
        gap: 15px;
    }
}

.clients-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clients-title {
    font-size: 48px;
    font-weight: 600;
    color: #2E2E2E33;
    line-height: 1.2;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.clients-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.clients-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    width: 100%;
}

.logo-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    overflow: hidden !important;
    position: relative;
    z-index: 10;
    contain: layout paint;
    /* Optimize rendering isolation */
}

/* Pseudo-element overlays for fade effect (Safer for Safari than mask-image) */
.logo-scroll-container::before,
.logo-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.logo-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, #F9F8F6, transparent);
}

.logo-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, #F9F8F6, transparent);
}

.logo-row-1,
.logo-row-2 {
    overflow: hidden;
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    position: relative;
    /* Removed heavy GPU promotion here to favor child row performance */
}

.logo-row-content {
    display: flex;
    gap: 20px;
    width: max-content;
    height: 100%;
    align-items: center;
    flex-shrink: 0;
    justify-content: flex-start;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Proper Solution: Animation runs immediately to avoid Safari startup lag */
}

.logo-row-1 .logo-row-content {
    -webkit-animation: scroll-right-to-left 40s linear infinite;
    animation: scroll-right-to-left 40s linear infinite;
    animation-delay: -10s;
    /* Pre-warmed state */
}

.logo-row-2 .logo-row-content {
    -webkit-animation: scroll-left-to-right 40s linear infinite;
    animation: scroll-left-to-right 40s linear infinite;
    animation-delay: -20s;
    /* Pre-warmed state */
}

@-webkit-keyframes scroll-right-to-left {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes scroll-right-to-left {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@-webkit-keyframes scroll-left-to-right {
    0% {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scroll-left-to-right {
    0% {
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.logo-card {
    aspect-ratio: 1;
    border-radius: 12px;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Hide standard video controls (especially on iOS) */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

/* CTA Banner */
.cta-banner {
    max-width: 80%;
    margin: 80px auto 0;
    padding: 0 50px;
    background-image: url('../assets/images/Trial_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 35px 60px 35px 20px;
    position: relative;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.clients-section.scrolled .cta-banner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
    /* Reduced from 1.3s for faster loading */
}

.cta-content {
    padding-left: 20px;
    padding-right: 250px;
    /* Clear the CTA tag */
}

.cta-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.cta-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 22px 0;
}

.cta-button {
    background: #4E233B;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #3d1a2f;
    transform: translateY(-2px);
}

.cta-tag {
    position: absolute;
    top: 0px;
    right: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-tag img {
    width: 150px;
    height: auto;
}

.trial-text {
    position: absolute;
    color: white;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    z-index: 1;
    margin-left: 15px;
}

/* Pricing Section */
.pricing-section {
    background-color: #F9F8F6;
    padding: 60px 0;
}

/* Pricing Container */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-up-section {
    min-height: 70vh;
}

.pricing-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.3s ease;
    transition-delay: 0s;
    /* Pricing-left appears first */
}

.pricing-section.scrolled .pricing-left {
    opacity: 1;
    transform: translateY(0);
}

.pricing-title {
    font-size: 48px;
    font-weight: 600;
    color: #2E2E2E33;
    /* start faded */
    margin: 0;
}

.pricing-title .title-letter {
    display: inline-block;
    color: #2E2E2E33;
    opacity: 0.2;
}

/* Letter-by-letter animation with staggered delays */
/* Starts when pricing section appears */
.pricing-section.scrolled .pricing-title .title-letter {
    animation: fadeLetterToBlack 0.4s ease-out forwards;
    animation-delay: calc(var(--base-delay, 0.1s) + var(--delay, 0s));
}

@keyframes fadeLetterToBlack {
    to {
        color: #000;
        opacity: 1;
    }
}

.pricing-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Hide duplicated features list on desktop/web by default */
.features-list-mobile {
    display: none;
}

.feature-item {
    background: #FFECF7;
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    min-height: 44px;
    position: relative;
    border: 1px solid transparent;
}

.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, #F9F8F6, #FFD6EB);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* When Standard Plan is hovered, style Campaign Management item */
.pricing-container:has(.standard-plan:hover) .features-list .campaign-management-item {
    padding: 10px 0px;
    background: transparent;
    color: #CCCCCC;
}

.pricing-container:has(.standard-plan:hover) .features-list .campaign-management-item::before {
    opacity: 0;
}

.pricing-container:has(.standard-plan:hover) .features-list .campaign-management-item img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%) contrast(90%);
}

/* When Customized Plan is hovered, add moving border animation to feature items */
.pricing-container:has(.customized-plan:hover) .features-list .feature-item::before {
    background: linear-gradient(90deg, #F9F8F6, #FFD6EB, #F9F8F6);
    background-size: 200% 100%;
    animation: moveBorder 2s linear infinite;
}

@keyframes moveBorder {
    0% {
        background-position: 0% 0%;
    }

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


.pricing-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card {
    background-image: url('../assets/images/Logo_Pricing.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 35% auto;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    border: 1px solid #E0E0E0;
    position: relative;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease, background-color 0.15s ease, background-image 0.15s ease, border-color 0.15s ease;
}

/* Pricing cards appear one by one after a pause (0.8s pricing-left animation + 0.2s pause = 1.0s) */
.pricing-section.scrolled .pricing-card:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s, background-color 0.15s ease, background-image 0.15s ease, border-color 0.15s ease;
}

.pricing-section.scrolled .pricing-card:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s, background-color 0.15s ease, background-image 0.15s ease, border-color 0.15s ease;
}

.pricing-section.scrolled .pricing-card:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 1.0s, transform 0.8s ease 1.0s, background-color 0.15s ease, background-image 0.15s ease, border-color 0.15s ease;
}

/* Reset transition-delay for hover effects */
.pricing-card:hover {
    transition: opacity 0.8s ease 0s, transform 0.8s ease 0s, background-color 0.15s ease, background-image 0.15s ease, border-color 0.15s ease;
    background: #FFD6EB;
    background-image: url('../assets/images/Group (2).svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 35% auto;
    border-color: #FFB3D9;
}

.pricing-card.featured {
    background: #FFD6EB;
    background-image: url('../assets/images/Group (2).svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 35% auto;
    border-color: #FFB3D9;
    transition: background-color 0.15s ease, background-image 0.15s ease, border-color 0.15s ease;
}

/* When other cards are hovered, change Enterprise background */
.pricing-card:not(.featured):hover~.pricing-card.featured {
    background-image: url('../assets/images/Group (2).svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 35% auto;
}

.pricing-right:has(.pricing-card:not(.featured):hover) .pricing-card.featured:not(:hover) {
    background-color: #f9f8f6;
    background-image: url('../assets/images/Group (2).svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 35% auto;
}

.plan-title {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 135px;
    border-radius: 35px;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 6px 0;
}

.plan-price {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.plan-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.plan-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.plan-button {
    background: #242424;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 42%;
    flex-shrink: 0;
    font-family: 'Poppins';
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-button img {
    display: inline-block;
    vertical-align: middle;
}

.plan-button .arrow-hover {
    display: none;
}

.pricing-card:hover .plan-button .arrow-default {
    display: none;
}

.pricing-card:hover .plan-button .arrow-hover {
    display: inline-block;
}

/* Enterprise card keeps curved arrow when hovered */
.pricing-card.featured:hover .plan-button .arrow-default {
    display: inline-block;
}

.pricing-card.featured:hover .plan-button .arrow-hover {
    display: none;
}

/* When other cards are hovered, change Enterprise button to straight arrow */
.pricing-card:not(.featured):hover~.pricing-card.featured .plan-button .arrow-default {
    display: none;
}

.pricing-card:not(.featured):hover~.pricing-card.featured .plan-button .arrow-hover {
    display: inline-block;
}

.pricing-right:has(.pricing-card:not(.featured):hover) .pricing-card.featured:not(:hover) .plan-button .arrow-default {
    display: none;
}

.pricing-right:has(.pricing-card:not(.featured):hover) .pricing-card.featured:not(:hover) .plan-button .arrow-hover {
    display: inline-block;
}

.pricing-card.featured .plan-button {
    background: #4E233B;
}

.plan-button:hover {
    background: #3d1a2f;
    transform: translateY(-2px);
}

/* Mobile layout adjustments for Pricing - moved to main mobile/tablet media query */

/* Text Banner Section */
.text-banner-section {
    padding: 100px 0;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 2;
    /* Smooth transitions for all properties */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

/* Text Frame Images */
.text-frame-1 {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    max-width: 100%;
    height: auto;
    transform-origin: top right;
    will-change: transform;
}

.text-frame-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    max-width: 100%;
    height: auto;
    transform-origin: bottom left;
    will-change: transform;
}

.text-banner-container {
    width: 100%;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.text-banner-content {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.scrolling-text {
    font-size: clamp(60px, 15vw, 180px);
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    display: inline-block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

.scrolling-text .text-part-1 {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.scrolling-text .text-part-2 {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    max-width: 0;
    overflow: hidden;
    /* Transition removed - JavaScript handles smooth animation via requestAnimationFrame */
    white-space: nowrap;
    will-change: max-width;
}

.text-banner-section.revealing .text-frame-1 {
    animation: textFrameWave 3.2s ease-in-out infinite;
}

.text-banner-section.revealing .text-frame-2 {
    animation: textFrameWave 2.8s ease-in-out infinite alternate;
}

@keyframes textFrameWave {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    25% {
        transform: translate3d(0, -6px, 0) rotate(1.2deg);
    }

    50% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    75% {
        transform: translate3d(0, 6px, 0) rotate(-1deg);
    }

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

/* Contact Section */
.contact-section {
    background-color: #F9F8F6;
    padding: 60px 0;
    /* Smooth transitions for all properties */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
    /* Ensure contact-section can overlap text-banner-section during transition */
    position: relative;
    z-index: 1;
    will-change: opacity, visibility;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    height: auto;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-right {
    /* display: flex;
    align-items: start; */
    width: 100%;
    height: 100%;
    padding-top: 90px;
    position: relative;
}

.contact-form-card {
    /* Inner fill + gradient border */
    background:
        linear-gradient(165deg, #ffebf6 0%, #FFFFFF 100%) padding-box,
        linear-gradient(90deg, #E7E7E6 0%, #FFD6EB 50%, #E7E7E6 100%) border-box;
    background-clip: padding-box, border-box;
    border-radius: 20px;
    padding: 15px 25px;
    border: 1px solid #f4efef;
    /* lets the gradient show as border */
    overflow: hidden;
    position: relative;
    transition: opacity 0.3s ease;
}

.contact-submit-wrapper {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 100;
}

.contact-submit-wrapper .form-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 15px 25px;
}

.contact-submit-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 1;
}

.contact-submit-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.submit-thank-you {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.submit-message {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

.submit-close-button {
    margin-top: 8px;
    padding: 10px 30px;
    background-color: #4E233B;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-close-button:hover {
    background-color: #5d2a48;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-section.scrolled .contact-left {
    opacity: 1;
    transform: translateY(0);
}

.contact-right {
    /* display: flex;
    align-items: start; */
    width: 100%;
    height: 100%;
    padding-top: 90px;
    position: relative;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 1.3s;
    /* After contact-left (0.8s) + 0.5s pause */
}

.contact-section.scrolled .contact-right {
    opacity: 1;
    transform: translateY(0);
}

.contact-title {
    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.contact-title .title-letter {
    display: inline-block;
    color: #2E2E2E33;
    opacity: 0.2;
}

/* Letter-by-letter animation with staggered delays */
.contact-section.scrolled .contact-title .title-letter {
    animation: fadeLetterToBlack 0.4s ease-out forwards;
    animation-delay: calc(0.9s + var(--delay, 0s));
    /* Delay after contact-left appears */
}

.contact-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #333;
}

.contact-icon {
    font-size: 18px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: -8px;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.form-pagination {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.form-subtitle {
    font-size: 14px;
    color: #2E2E2E;
    margin: 0 0 25px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-field label .required {
    color: #E53E3E;
    margin-left: 2px;
}

.form-field input {
    padding: 10px;
    border: 1px solid #f7f7f7;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: all 0.3s ease;
}

.form-field input:focus {
    border-color: #4E233B;
}

.form-field input.error {
    border-color: #E53E3E;
}

.error-message {
    color: #E53E3E;
    font-size: 12px;
    margin-top: -4px;
    min-height: 16px;
}

.form-textarea {
    width: 100%;
    min-height: 150px;
    resize: none;
    padding: 12px;
    border: 1px solid #ECEFF2;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    border-color: #4E233B;
}

/* Placeholder color for the third step textarea */
.form-textarea::placeholder {
    color: #7E7E7E80;
    /* 50% opacity gray as requested */
}

.pagination-current {
    font-size: 20px;
}

.form-next-button {
    background: #4E233B;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    padding: 13px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    float: right;
    transition: all 0.3s ease;
    clear: both;
}

.form-next-button:hover {
    background: #3d1a2f;
}

.form-back-button {
    background: white;
    color: #333;
    border: 1px solid #747474;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-back-button.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.form-next-button.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.form-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    width: 100%;
    margin: 0 auto;
}

.form-loader.loading {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4E233B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 14px;
    font-weight: 600;
    color: #4E233B;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-top: 30px; */
}

/* When loader is shown, center it */
.form-navigation:has(.form-loader[style*="display: flex"]) {
    justify-content: center;
}

.step-instruction {
    font-size: 14px;
    color: #2E2E2E;
    margin: 0 0 20px 0;
}

.management-selection {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.management-option {
    flex: 1;
    background: white;
    border: 1px solid #f5ecec;
    border-radius: 12px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.management-option:hover {
    border-color: #f4bddc;
    background-color: #ffe7f4;
    transform: translateY(-2px);
    /* box-shadow: 0 4px 12px rgba(78, 35, 59, 0.2); */
}

.management-option.selected {
    background: #4E233B;
}

/* When a management option is selected, make icon and text white */
.management-option.selected img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.management-option.selected span {
    color: #FFFFFF;
}

.management-option img {
    width: 60px;
    height: 60px;
}

.management-option span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* Footer Section */
.footer-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/Footer_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 1;
}

.footer-section.scrolled::before {
    opacity: 1;
    transform: translateY(0);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.5s;
    /* After footer bg (0.8s) + 0.5s pause */
}

.footer-section.scrolled .footer-container {
    opacity: 1;
    transform: translateY(0);
}

.footer-top {
    display: grid;
    grid-template-columns: auto auto auto;
    /* shrink columns to content width */
    column-gap: 60px;
    /* space between columns */
    justify-content: center;
    /* center the three columns within the footer */
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-description {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.footer-copyright {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.footer-address {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #E0E0E0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon img {
    width: 40px;
    height: 40px;
}

/* Mobile-only line breaks for CTA title */
.br-mobile {
    display: none;
}

/* .br-mobile display moved to main mobile/tablet media query */

.footer-links {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 48px;
    /* reduce horizontal gap between columns */
    width: fit-content;
    /* shrink grid to content width so columns sit closer */
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-column a {
    font-size: 14px;
    color: #333;
    text-decoration: underline;
    transition: color 0.3s ease;
}

/* @media (min-width: 1440px){
    .about-image-container {
        right: -47rem;
        height: 100%;
    }
    .features-container {
        max-width: 1255px !important;
        padding:0px !important;
    }
    .clients-container{
        max-width: 1236px !important;
        padding:0px !important;
    }
    .pricing-container {
        max-width: 1254px !important;
        padding:0px !important;
    }
    .contact-container {
        max-width: 1275px !important;
        padding:0px !important;
    }
} */

/* @media (min-width: 1440px) {
    .about-content,
    .clients-container,
    .pricing-container,
    .contact-container,
    .footer-container {
        max-width: var(--wide-max-width);
        padding-left: var(--wide-gutter);
        padding-right: var(--wide-gutter);
    }

    .features-container {
        max-width: var(--wide-max-width);
        padding: 0 var(--wide-gutter);
        gap: clamp(64px, 5vw, 150px);
    }

    .text-banner-content {
        max-width: var(--wide-max-width);
        margin: 0 auto;
        padding: 0 var(--wide-gutter);
    }

    .about-section,
    .clients-section,
    .pricing-section,
    .contact-section,
    .footer-section {
        padding-top: clamp(60px, 7vh, 120px);
        padding-bottom: clamp(60px, 7vh, 120px);
    }

    .features-section {
        padding-top: clamp(40px, 6vh, 90px);
        padding-bottom: clamp(60px, 7vh, 110px);
    }

    .text-banner-section {
        padding-top: clamp(80px, 7vh, 140px);
        padding-bottom: clamp(80px, 7vh, 140px);
    }

    .about-text {
        margin-left: clamp(180px, 15vw, 320px);
        max-width: clamp(680px, 38vw, 980px);
    }

    .about-content.scrolled .about-text {
        margin-left: clamp(80px, 6vw, 150px);
        max-width: clamp(720px, 40vw, 1020px);
    }

    .about-content.scrolled {
        margin-left: clamp(20px, 3vw, 60px);
    }

    .contact-container {
        gap: clamp(60px, 6vw, 140px);
    }

    .footer-top {
        gap: clamp(60px, 5vw, 140px);
    }
} */

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 40px;
}

.footer-logo {
    width: 70%;
    height: 70%;
}

.footer-brand {
    font-size: 32px;
    font-weight: 800;
    color: #4E233B;
    letter-spacing: 2px;
}

@keyframes footerBgReveal {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes footerContentIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .footer-section::before,
    .footer-container {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Hide side navigation on mobile */
@media (max-width: 768px) {
    .side-nav {
        display: none !important;
    }

    .cta-tag {
        right: 15px;
    }

    .cta-title {
        padding-right: 20% !important;
        width: 100%;
    }

    .cta-content {
        padding: 0px !important;
    }

    .text-banner-section {
        /* background-image: url('../assets/images/mobile_Frame.svg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat; */
        padding: 100px 0;
        height: 100vh;
        position: relative;
    }

    /* Contact section: stack right after left on mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
        height: auto;
    }

    .contact-right {
        padding-top: 0;
        width: 100%;
        height: auto;
    }

    .contact-form-card {
        width: 100%;
        padding: 12px 16px;
    }

    /* Make form fields stack and tighten spacing for mobile */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-header {
        margin-bottom: 6px;
    }

    .form-title {
        font-size: clamp(16px, 3.5vw, 18px);
    }

    .form-pagination {
        font-size: clamp(11px, 2.5vw, 12px);
    }

    /* Mobile-friendly navigation buttons */
    .form-navigation {
        gap: 10px;
    }

    .form-navigation .form-back-button,
    .form-navigation .form-next-button {
        padding: 10px 12px;
    }

    .cta-banner {
        max-width: min(90%, calc(100vw - 40px));
        margin: 20px 0px 0px 20px;
        padding: clamp(20px, 4vw, 25px);
    }

    .cta-tag img {
        width: 105px;
    }

    .cta-description {
        width: 100%;
    }

    /* Ensure space after Contact Us on mobile */
    .contact-section {
        padding-bottom: 20px;
        padding-top: 40px !important;
    }

    /* Step 2: management selection - mobile fit */
    .management-selection {
        flex-direction: column;
        gap: 12px;
    }

    .management-option {
        padding: clamp(12px, 3vw, 14px) clamp(14px, 3.5vw, 16px);
        gap: 10px;
    }

    .management-option img {
        width: clamp(40px, 8vw, 44px);
        height: clamp(40px, 8vw, 44px);
    }

    .management-option span {
        font-size: clamp(12px, 2.8vw, 13px);
    }

    /* Step 3: textarea sizing for mobile */
    .form-textarea {
        min-height: clamp(100px, 25vh, 120px);
        padding: 10px;
        font-size: clamp(12px, 2.8vw, 13px);
    }

    /* Footer mobile layout to match design */
    .footer-container {
        padding: 0 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-left {
        order: 1;
    }

    .footer-right {
        order: 2;
    }

    .footer-middle {
        order: 3;
    }

    .footer-description {
        font-size: clamp(12px, 2.8vw, 13px);
        line-height: 1.4;
    }

    .footer-description br {
        display: block;
    }

    .footer-title {
        font-size: clamp(14px, 3.5vw, 16px);
        margin-bottom: 10px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-links-column a {
        font-size: clamp(12px, 2.8vw, 13px);
    }

    .footer-address {
        font-size: clamp(12px, 2.8vw, 13px);
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon img {
        width: 24px;
        height: 24px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-logo {
        width: 60%;
        height: auto;
    }

    /* Hide manual <br> line breaks in descriptions on mobile */
    .about-text br,
    .features-intro br,
    .pricing-description br,
    .clients-description br,
    .contact-description br {
        display: none;
    }
}

.main-about-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Start: hidden from top and bottom */
.main-about {
    width: 100%;
    max-width: 600px;
    clip-path: inset(50% 0 50% 0);
    transition: clip-path 1.5s ease-in-out;
    opacity: 0;
}

/* End: fully visible */
.main-about.reveal-active {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}


.feature-card {
    position: relative;
    overflow: visible;
}

.feature-outline {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
    transform: translate(-5px, -5px);
}

.feature-outline path {
    fill: none;
    stroke: #caacbe;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.5s ease forwards;
    /* slower animation */
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Terms & Condition Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: linear-gradient(165deg, #ffebf6 0%, #FFFFFF 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid #f4efef;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f4efef;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #4E233B;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 36px;
    color: #4E233B;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: rgba(78, 35, 59, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.terms-content {
    color: #333;
}

.terms-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #4E233B;
    margin: 0 0 20px 0;
    text-align: center;
}

.terms-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #4E233B;
    margin: 30px 0 12px 0;
}

.terms-content h3:first-of-type {
    margin-top: 0;
}

.terms-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #4E233B;
    margin: 20px 0 10px 0;
}

.terms-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.terms-content ul,
.terms-content ol {
    margin: 10px 0 15px 20px;
    padding-left: 20px;
}

.terms-content li {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.table-of-contents {
    list-style-type: decimal;
    margin: 20px 0;
    padding-left: 30px;
}

.table-of-contents li {
    margin-bottom: 8px;
    font-weight: 500;
}

.terms-content strong {
    font-weight: 600;
    color: #4E233B;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .clients-section {
        padding: 40px 0;
    }

    .pricing-section {
        padding: 40px 0;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .terms-content h3 {
        font-size: 16px;
    }

    .terms-content h4 {
        font-size: 15px;
    }

    .terms-main-title {
        font-size: 22px;
    }

    .terms-content p,
    .terms-content li {
        font-size: 13px;
        line-height: 1.6;
    }
}