/* CSS Variables reflecting the requested palette */
:root {
    --bg-main: #fff8f1;   /* Warm off-white */
    --bg-alt: #e7dada;    /* Muted grayish pink */
    --text-dark: #3d3938; /* Dark brownish gray */
    --text-light: #fff8f1;
    --transition-speed: 0.4s;
}

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

body, html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scroll Container */
.scroll-container {
    width: 100vw;
    position: relative;
    background-color: var(--bg-main);
}

/* Sections */
.snap-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 5%;
    z-index: 1;
}

/* Utility Classes */
.bg-secondary {
    background-color: var(--bg-alt);
}
.bg-dark {
    background-color: var(--text-dark);
    color: var(--text-light);
}

/* Typography Highlights */
.highlight {
    background-color: var(--text-dark);
    color: var(--bg-main);
    padding: 2px 12px;
    border-radius: 6px;
    display: inline-block;
    transform: rotate(-1deg);
}
.highlight-invert {
    background-color: var(--bg-main);
    color: var(--text-dark);
    padding: 2px 12px;
    border-radius: 6px;
    display: inline-block;
    transform: rotate(1deg);
}
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.bg-dark .badge {
    border-color: var(--text-light);
}

/* Navbar Background */
.navbar-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 84px;
    z-index: 99;
    background: transparent;
    transition: all var(--transition-speed) ease;
    pointer-events: none;
}
.navbar-bg.scrolled {
    height: 68px;
    background: rgba(255, 248, 241, 0.05); 
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 248, 241, 0.1);
}

/* Navbar Content */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: padding var(--transition-speed) ease;
    mix-blend-mode: difference;
    color: #fff;
    pointer-events: auto;
}
.navbar.scrolled {
    padding: 16px 5%;
}
.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #fff;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.navbar .btn-primary {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}
.navbar .btn-primary:hover {
    background-color: transparent;
    color: #fff;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}
.btn-primary {
    background-color: var(--text-dark);
    color: var(--bg-main);
    border: 1px solid var(--text-dark);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--text-dark);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}
.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--bg-main);
    transform: translateY(-2px);
}
.bg-dark .btn-primary {
    background-color: var(--bg-main);
    color: var(--text-dark);
    border-color: var(--bg-main);
}
.bg-dark .btn-primary:hover {
    background-color: transparent;
    color: var(--bg-main);
}
.btn-nav {
    padding: 10px 24px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
    overflow: hidden;
}

.hero-marquee-bg {
    position: absolute;
    top: -50%; left: -20%;
    width: 140%; height: 200%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    z-index: 1;
    transform: rotate(-8deg);
    /* Fade out at the bottom to blend seamlessly with the vision section */
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 90%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 90%);
}

.marquee-row {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    flex-direction: row;
    gap: 30px;
    height: 100%;
    width: max-content;
    will-change: transform;
}

.marquee-track img {
    width: 480px;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.track-left {
    animation: marquee-left linear infinite;
}
.track-right {
    animation: marquee-right linear infinite;
}

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

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

.row-speed-1 .marquee-track { animation-duration: 40s; }
.row-speed-2 .marquee-track { animation-duration: 50s; }

/* Wash overlay to ensure dark text is readable against the images */
.hero-wash {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 248, 241, 0.5); /* low opacity white wash */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2;
}

.hero-content-massive {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

.hero-title-massive {
    font-size: 15vw;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0;
    line-height: 0.85;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-title-logo {
    height: 15vw;
    width: auto;
    object-fit: contain;

    margin-right: -3vw; /* Creates the overlap effect by pulling text over the image */
    z-index: 0;
}

.hero-title-massive .reg {
    font-size: 3.5vw;
    vertical-align: super;
    font-weight: 600;
}

.hero-subtitle-massive {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-top: 4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Vision Section */
.vision-section {
    overflow: hidden;
}
.vision-content.image-based {
    max-width: 1920px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
.vision-text-img {
    position: absolute;
    left: -4%;
    top:57%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 1490px;
    z-index: 2;
    object-fit: contain;
    animation: float-vision-text 3s ease-in-out infinite alternate;
}

@keyframes float-vision-text {
    0% { transform: translateY(-50%) translateY(0px); }
    100% { transform: translateY(-50%) translateY(-10px); }
}
.vision-arch-img {
    position: absolute;
    right: -17%;
    bottom: -11%; 
    width: 100%;
    max-width: 1920px;
    z-index: 1;
    object-fit: contain;
}

/* Services Section */
.services-wrapper {
    width: 100%;
    max-width: 1700px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}
.services-header .header-text {
    text-align: left;
}
.services-header .badge {
    margin-bottom: 1rem;
    background: transparent;
    color: var(--text-dark);
}
.services-header .section-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 0;
    letter-spacing: -1.5px;
    text-align: left;
    line-height: 1.1;
}
.services-header .round-btn {
    background-color: var(--text-dark);
    color: var(--text-light);
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    padding-right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}
.services-header .round-btn .arrow-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.3s ease;
}
.services-header .round-btn:hover {
    transform: translateY(-2px);
    background-color: #000;
}
.services-header .round-btn:hover .arrow-icon {
    background: rgba(255, 255, 255, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card-new {
    position: relative;
    height: 550px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}
.service-card-new:hover {
    transform: translateY(-10px);
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-card-new:hover .service-bg {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.service-link-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #fff;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    z-index: 3;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.service-card-new:hover .service-link-icon {
    transform: scale(1.1);
}

.service-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 3;
    color: #fff;
    text-align: left;
}
.service-info h3 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.service-info p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-allignt: justify;
}

/* Horizontal Scroll Products Section */
.horizontal-scroll-container {
    background-color: var(--bg-alt);
    overflow: hidden;
    position: relative;
}

.horizontal-scroll-pinned {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5vh;
}

.horizontal-title-container {
    padding: 0 5%;
    margin-bottom: 2rem;
}

.horizontal-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.horizontal-scroll-track {
    display: flex;
    gap: 4rem;
    padding: 0 5%;
    width: max-content;
}

.horizontal-product-card {
    width: 85vw;
    max-width: 1300px;
    height: 70vh;
    min-height: 500px;
    flex-shrink: 0;
}

.h-card-inner {
    display: flex;
    background-color: var(--text-light);
    border-radius: 32px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.h-card-text {
    flex: 1;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.h-card-text .badge {
    background-color: var(--bg-alt);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.h-card-text .product-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.h-card-text .product-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(61, 57, 56, 0.7);
    margin-bottom: 2.5rem;
}

.h-card-text .round-btn {
    background-color: var(--text-dark);
    color: var(--text-light);
    border-radius: 40px;
    padding: 12px 24px;
    padding-right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: none;
    text-decoration: none;
    font-weight: 500;
}

.h-card-text .round-btn .arrow-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.h-card-text .round-btn:hover {
    background-color: #000;
}

.h-card-text .round-btn:hover .arrow-icon {
    background: rgba(255,255,255,0.3);
}

@keyframes floatProduct {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.h-card-image {
    flex: 1.2;
    position: relative;
    background-color: #fff8f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-card-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    animation: floatProduct 5s ease-in-out infinite;
}

/* Footer Section */
.footer-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.partners-wrapper {
    text-align: center;
    width: 100%;
    margin-top: 3rem;
    padding-top: 0rem;
}
.partners-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 248, 241, 0.5);
}
.partners-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 25s linear infinite;
    align-items: center;
}
.ticker-track img {
    height: 150px;
    object-fit: contain;
    padding: 0 3.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.ticker-track img:hover {
    opacity: 1;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer {
    width: 100%;
    border-top: 1px solid rgba(255, 248, 241, 0.1);
    padding-top: 3rem;
    padding-bottom: 1rem;
    margin-top: 5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-top: 2rem;
    padding-bottom: 12rem;
    margin-bottom: 0rem;
}
.footer-brand h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.footer-brand p {
    color: rgba(255, 248, 241, 0.6);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 300px;
}
.newsletter-form {
    display: flex;
    align-items: center;
    background: rgba(255, 248, 241, 0.05);
    border: 1px solid rgba(255, 248, 241, 0.1);
    border-radius: 15px;
    padding: 6px 6px 6px 20px;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.newsletter-form:hover {
    border-color: rgba(255, 248, 241, 0.3);
    background: rgba(255, 248, 241, 0.08);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: var(--text-light);
    outline: none;
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.newsletter-form input::placeholder {
    color: rgba(255, 248, 241, 0.4);
}

.newsletter-form button {
    background: var(--text-light);
    color: var(--text-dark);
    border: none;
    border-radius: 40px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: 90px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.newsletter-form button .btn-text {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.newsletter-form button:hover .btn-text {
    transform: translateY(-30px);
    opacity: 0;
}

.newsletter-form button .btn-sent-icon {
    position: absolute;
    width: 80px;
    height: 40px;
    left: 50%;
    bottom: 50%;
    /* Start position: offset to bottom-left */
    transform: translate(-150%, 150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(0) invert(0.2); /* Make icon dark to contrast with light button */
}

.newsletter-form button:hover .btn-sent-icon {
    /* End position: dead center */
    transform: translate(-50%, 50%);
    opacity: 1;
}
.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 248, 241, 0.8);
}
.footer-links a {
    display: block;
    font-size: 1.1rem;
    color: rgba(255, 248, 241, 0.6);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--text-light);
}
.footer-contact p {
    color: rgba(255, 248, 241, 0.6);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.socials a {
    position: relative;
    width: 170px; /* Adjust this to change the logo width */
    height: 90px; /* Adjust this to change the logo height */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    transition: transform 0.3s ease;
}

.socials a img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.socials a .social-img-hover {
    opacity: 0;
}

.socials a:hover .social-img-hover {
    opacity: 1;
}

.socials a:hover .social-img-default {
    opacity: 0;
}

.socials a:hover {
    transform: translateY(-2px);
}
.footer-bottom {
    text-align: center;
    color: rgba(255, 248, 241, 0.4);
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 0rem;
}

.footer-section {
    min-height: 800px !important;
    padding-bottom: 1rem !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-bottom-image {
        width: 300px;
        bottom: -5%;
    }
    .float-logo {
        display: none;
    }
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .services-header .section-title {
        font-size: 2.8rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .horizontal-scroll-container {
        padding: 80px 0;
        height: auto;
    }
    .horizontal-scroll-pinned {
        height: auto;
        padding-top: 0;
        display: block;
    }
    .horizontal-title-container {
        margin-bottom: 3rem;
    }
    .horizontal-scroll-track {
        flex-direction: column;
        width: 100%;
        gap: 3rem;
        padding: 0 5%;
    }
    .horizontal-product-card {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .h-card-inner {
        flex-direction: column;
    }
    .h-card-text {
        padding: 3rem 2rem;
    }
    .h-card-text .product-title {
        font-size: 2.5rem;
    }
    .h-card-image {
        height: 350px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .vision-title {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .newsletter-form {
        margin: 0 auto;
    }
    .socials {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
    .footer-brand p {
        margin: 0 auto 2rem auto;
    }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .vision-title {
        font-size: 2rem;
    }
    .services-header .section-title {
        font-size: 2.2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card-new {
        height: 400px;
    }
    .product-info-block .product-title, .mobile-text .product-title {
        font-size: 2.5rem;
    }
    .btn-nav {
        display: none;
    }
}