/* style/style.css */

/* ========== Header styles (moved from header.html) ========== */
#fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* White Header After Scroll */
#fixed-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0 !important;
}

.dropdown-menu {
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    min-width: 180px;
}

.nav-link {
    color: #222 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #09b4e6 !important;
}

/* Neon glow for centered nav links when header is over the hero (not scrolled) */
/* Uses :not(.scrolled) so glow fades away when header becomes solid */
#fixed-header:not(.scrolled) .navbar-nav .nav-link {
    color: #ffffff !important;
    /* ensure visible on dark hero */
    text-shadow: 0 0 6px rgba(10, 23, 27, 0.9), 0 0 12px rgba(83, 7, 82, 0.8);
    transition: color 220ms ease, text-shadow 320ms ease;
}

#fixed-header:not(.scrolled) .navbar-nav .nav-link:hover,
#fixed-header:not(.scrolled) .navbar-nav .nav-link:focus {
    text-shadow: 0 0 10px rgba(9, 180, 230, 1), 0 0 18px rgba(77, 21, 76, 0.95);
    color: #ffffff !important;
}

/* When header has scrolled state, remove neon glow and use the normal dark link color */
#fixed-header.scrolled .navbar-nav .nav-link {
    color: #222 !important;
    text-shadow: none !important;
    transition: color 220ms ease, text-shadow 220ms ease;
}


.dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #4d154c !important;
}

.btn-outline-primary {
    border-color: #09b4e6 !important;
    color: #09b4e6 !important;
}

.btn-outline-primary:hover {
    background-color: #000000 !important;
    color: #fff !important;
}

.nav-item.login-border .nav-link {
    border: 2px solid #09b4e6;
    border-radius: 8px;
    padding: 5px 15px;
}

.nav-item.login-border:hover .nav-link {
    background-color: #09b4e6;
    color: #fff !important;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}


/* Mobile: fixed header becomes relative to avoid overlay issues */
@media (max-width: 991px) {
    #fixed-header {
        position: relative;
        background-color: #fff;
        box-shadow: none;
    }

    #fixed-header:not(.scrolled) .navbar-nav .nav-link {
        color: #121728 !important;
        /* ensure visible on dark hero */
        text-shadow: 0 0 1px rgba(55, 124, 145, 0.4), 0 0 12px rgba(174, 17, 171, 0.4);
        transition: color 220ms ease, text-shadow 320ms ease;
    }
}

/* Ensure page content isn't hidden under the fixed transparent header on desktop */
@media (min-width: 992px) {
    body {
        padding-top: 0;
        /* matches header height (adjust if header height changes) */
    }
}

/* ========== Footer styles ========== */
.site-footer {
    background: #0f1720;
    /* dark professional background */
    color: #0f191d42;
    margin-top: 1px;
    font-size: 15px;
}

.site-footer a {
    color: #bfe5c9;
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Column titles */
.site-footer .footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

/* lists */
.site-footer ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.site-footer .footer-col {
    padding-left: 12px;
    padding-right: 12px;
}

/* contact block */
.footer-contact p {
    margin-bottom: 6px;
    color: #cfe9db;
}

/* social icons row */
.social-line {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 20px;
    color: #bfe5c9;
}

.social-link:hover {
    transform: translateY(-3px) rotate(8deg);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Brand colors on hover */
.social-link.facebook:hover {
    color: #1877f2;
}

.social-link.whatsapp:hover {
    color: #25d366;
}

.social-link.instagram:hover {
    color: #e4405f;
}

.social-link.youtube:hover {
    color: #ff0000;
}

/* Specific hover effects */
.social-link.facebook:hover {
    background: rgba(24, 119, 242, 0.1);
}

.social-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
}

.social-link.instagram:hover {
    background: rgba(228, 64, 95, 0.1);
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
}

/* svg icon size and fill */
.icon {
    width: 20px;
    height: 20px;
    fill: #bfe5c9;
    display: block;
}

/* small divider */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 18px 0 14px;
}

/* bottom copyright */
.site-footer .small {
    color: rgba(255, 255, 255, 0.6);
    padding-bottom: 6px;
}

/* quick links right column alignment */
.footer-quicklinks .quick-links,
.footer-nav .quick-links {
    text-align: right;
}

/* Responsive: stack columns on small screens */
@media (max-width: 767px) {
    .footer-contact, .footer-quicklinks, .footer-nav {
        text-align: center !important;
    }

    .social-line {
        justify-content: center;
    }
}

/* Small helper to match header brand spacing with footer */
.site-footer .navbar-brand img {
    height: 36px;
}

/* Utility: ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========= Site logo sizing for header ========= */
.site-logo {
    max-height: 84px;
    /* fits comfortably in the header */
    width: auto;
    display: block;
}

/* ========= Hero / banner ========= */
:root {
    --video-scale: 1;
    --overlay-opacity: 1;
    --scroll-scale: 1;
    --scroll-opacity: 1;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 560px;
    overflow: visible;
    display: block;
    isolation: isolate;
    background: #0b2b46;
    /* fallback */
}

/* Video: covers area and will scale down by CSS var set by JS */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transform: scale(var(--video-scale));
    transition: transform 450ms cubic-bezier(.2, .18, .14, 1);
    will-change: transform, filter;
    filter: brightness(.72);
    z-index: 0;
}

/* Blue tint overlay (on top of video) */
.hero-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 60, 120, 0.34) 0%, rgba(3, 18, 35, 0.14) 70%);
    z-index: 1;
    pointer-events: none;
    opacity: var(--overlay-opacity);
    transition: opacity 550ms cubic-bezier(.2, .18, .14, 1);
}

/* Large center overlay text */
.hero-overlay-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: none;
    gap: 0.6em;
}

.hero-main-title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: clamp(2.4rem, 6.2vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-align: center;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transform-origin: center;
    opacity: 1;
    transition: opacity 520ms cubic-bezier(.2, .18, .14, 1), transform 520ms cubic-bezier(.2, .18, .14, 1);
    will-change: opacity, transform;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1rem);
    font-weight: 200;
    opacity: 0.9;
    text-shadow: none;
    margin: 0;
    /* prevent default <h4> spacing */
    letter-spacing: 0;
    line-height: 1.2;
}

/* Scroll button - pill + label */
.hero-scroll {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    bottom: 38px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: 0;
    gap: 8px;
    cursor: pointer;
    padding: 0;
    color: #fff;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: transform 220ms ease, opacity 220ms ease;
    outline: none;
}

.hero-scroll:active {
    transform: translateX(-50%) translateY(2px);
}

.scroll-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px !important;
    /* make the pill itself bigger */
    height: 70px !important;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1);
    /* flat translucent bg, no gradient */
    backdrop-filter: none !important;
    /* removes blur entirely */
    box-shadow: 0 8px 30px rgba(75, 75, 75, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 320ms cubic-bezier(.2, .18, .14, 1);
    transform-origin: center bottom;
}

.scroll-pill img {
    width: 55px !important;
    /* forcefully enlarge arrow image */
    height: 55px !important;
    display: block;
    transform: scale(1.2);
    /* extra size push if the SVG has inner spacing */
    filter: invert(1) opacity(0.95);
}


/* label */
.scroll-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.96);
    display: block;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
}

/* Subsection under hero, hidden initially until scrolled */
.hero-subsection {
    background: #f7fbff;
    padding: clamp(1.25rem, 4vw, 3rem) 0;
    margin-top: 0;
    position: relative;
    z-index: 0;
}

.hero-subheading {
    margin: 0;
    color: #0b2b46;
    font-weight: 700;
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 560ms cubic-bezier(.2, .18, .14, 1), transform 560ms cubic-bezier(.2, .18, .14, 1);
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* state when hero is scrolled (class toggled by JS) */
.hero-scrolled .hero-main-title {
    opacity: 0;
    transform: translateY(-10px) scale(.98);
}

.hero-scrolled .hero-tint {
    opacity: 0.0;
}

.hero-scrolled .hero-video {
    transform: scale(.92);
    transition: transform 650ms cubic-bezier(.2, .18, .14, 1);
    pointer-events: none;
    user-select: none;
}

/* when scrolled enough to reveal the lower heading */
.show-subheading .hero-subheading {
    opacity: 1;
    transform: translateY(0);
}

/* hide scroll button when fully scrolled (JS adds .scroll-hidden) */
.scroll-hidden {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(8px) scale(.8) !important;
    pointer-events: none !important;
}

/* responsive tweaks */
@media (max-width:880px) {
    .scroll-pill {
        width: 56px;
        height: 76px;
        border-radius: 30px;
    }

    .scroll-pill img {
        width: 22px;
        height: 22px;
    }

    .hero-main-title {
        font-size: clamp(1.9rem, 8.5vw, 3.2rem);
    }
}

@media (max-width:520px) {
    .hero-section {
        min-height: 520px;
    }

    .hero-main-title {
        font-size: clamp(1.6rem, 8.5vw, 2.6rem);
        text-align: center;
        padding: 0 1rem;
    }

    .scroll-label {
        font-size: .7rem;
    }
}

/* ========= Infinite scrolling cards carousel ========= */
.infinite-carousel-wrap {
    overflow: hidden;
    position: relative;
}

.infinite-carousel {
    display: flex;
    gap: 18px;
    align-items: stretch;
    padding: 12px 0;
}

.infinite-carousel .card-item {
    min-width: 220px;
    max-width: 260px;
    flex: 0 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.infinite-carousel .card-item .card-body {
    padding: 14px;
}

/* Make carousel cards slightly bigger and clearer */
.infinite-carousel .card-item {
    min-width: 240px;
    padding: 1rem 0.9rem;
    transition: transform 0.25s ease;
    background: transparent;
    border: none;
}

/* Image wrapper to allow clipping for zoom effect */
.infinite-carousel .card-item .img-wrap {
    width: 220px;
    height: 220px;
    /* 1:1 aspect ratio */
    margin: 0 auto 0.9rem;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infinite-carousel .card-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    /* ~10% zoom */
    transition: transform 0.5s ease;
    display: block;
}

/* Slightly increase zoom on hover for a subtle effect */
.infinite-carousel .card-item:hover .img-wrap img {
    transform: scale(1.12);
}

/* Keep card body spacing neat */
.infinite-carousel .card-item .card-body {
    padding-top: 0.5rem;
}

/* Make titles and text more readable when cards are larger */
.infinite-carousel .card-item .card-title {
    font-weight: 600;
}

.infinite-carousel .card-item .card-text {
    color: #555;
    font-size: 0.95rem;
}

/* Desktop auto-scroll animation */
@keyframes marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Desktop styles (auto-scroll) */
@media (min-width: 768px) {
    .infinite-carousel {
        animation: marquee-left 10s linear infinite;
    }

    .infinite-carousel-wrap.paused .infinite-carousel {
        animation-play-state: paused;
    }
}

/* Mobile styles (normal scrolling) */
@media (max-width: 767.98px) {
    .infinite-carousel-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    .infinite-carousel {
        animation: none;
        padding: 12px 16px;
        /* Add some side padding */
        width: max-content;
        /* Allow content to expand beyond viewport */
    }

    .infinite-carousel .card-item {
        min-width: 200px;
        /* Slightly smaller cards on mobile */
    }

    .infinite-carousel .card-item .img-wrap {
        width: 180px;
        height: 180px;
    }
}

/* Ensure duplicated content flows inline: make a copy after the set */
.infinite-carousel .card-item img {
    display: block;
    margin: 12px auto 6px;
}

/* ========= Product cards ========= */
.product-card {
    border: 1px solid #f1f1f1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(9, 180, 230, 0.15);
}

.product-card .product-name {
    font-weight: 600;
    margin-bottom: 6px;
    color: #4d154c;
}

/* categories */
.category-card {
    border: 1px solid rgba(9, 180, 230, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #fff;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(9, 180, 230, 0.12);
}

.category-card img {
    /* larger square thumbnail so images fill more of the card (reduces white space) */
    width: 160px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 10px;
    margin: 0.25rem auto 0;
    display: block;
}

/* slightly smaller thumbnails on small screens */
@media (max-width: 767px) {
    .category-card img {
        width: 140px !important;
        height: 140px !important;
    }
}

/* even smaller on very small screens */
@media (max-width: 575px) {
    .category-card img {
        width: 120px !important;
        height: 120px !important;
    }
}

.category-card h6 {
    color: #4d154c;
    margin-top: 0.5rem;
    /* tighten space between image and title */
    font-weight: 600;
}

/* Filter buttons */
.filter-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #444;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #09b4e6;
    color: #09b4e6;
}

.filter-btn.active {
    background: #09b4e6 !important;
    border-color: #09b4e6 !important;
    color: #fff !important;
}

/* testimonials */
.testimonial p {
    font-size: 1.05rem;
}

/* testimonial stars and user logo */
.testimonial .stars {
    color: #f5c518;
    margin-bottom: 8px;
}

.testimonial .stars i {
    margin-right: 2px;
}

.testimonial .user-line {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.testimonial .user-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
}

/* make bootstrap carousel controls hidden (we rely on auto cycling) */
.carousel-control-prev, .carousel-control-next, .carousel-indicators {
    display: none !important;
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .site-logo {
        max-height: 62px;
    }

    .hero-content {
        padding: 70px 12px;
    }

    .infinite-carousel .card-item {
        min-width: 180px;
    }
}

@media (max-width: 575px) {
    .hero-content {
        padding: 56px 12px;
    }

    .infinite-carousel .card-item {
        min-width: 160px;
    }
}

/* Core Strengths icons */
.core-strengths .core-icon {
    display: block;
    margin: 0 auto 14px auto;
    /* center and add spacing */
    width: 150px;
    /* larger, visible size */
    height: 150px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: #61b2e5 0 0 7px;
}

.core-icon:hover {
    transform: scale(1.05);
    box-shadow: rgba(89, 70, 178, 0.4) 0 0 15px;
    transition: all 0.2s ease;
}

@media (max-width: 767px) {
    .core-strengths .core-icon {
        width: 72px;
        height: 72px;
    }
}

/* products list fade transition to smooth filtering */
#products-root {
    transition: opacity .28s ease;
    opacity: 1;
}

/* CTA footer section container */
.cta-footer {
    position: relative;
    overflow: hidden;
    color: #fff;
    /* fallback background if canvas fails */
    background: linear-gradient(90deg, #952993, #067da1);
}

.cta-footer {
    position: relative;
    overflow: hidden;
    color: #fff;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== Page & Scroll Animations (added) ====== */
.page-fade-in {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 450ms ease, transform 450ms ease;
}

.page-loaded .page-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms cubic-bezier(.2, .9, .2, 1), transform 520ms cubic-bezier(.2, .9, .2, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left, .slide-in-right {
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.slide-in-right {
    transform: translateX(14px);
}

.slide-in-left.in-view, .slide-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Scroll-to-top button styling */
.scroll-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #09b4e6;
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    z-index: 1200;
    font-size: 18px;
}

.scroll-to-top.show {
    display: flex;
}

/* Product gallery image container (fixed size, center & cover) */
.product-image-container {
    width: 100%;
    max-width: 480px;
    height: 360px;
    background: #f7f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* utility: small entrance for hero-subsection text when revealed */
.hero-subsection .hero-subheading {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.show-subheading .hero-subsection .hero-subheading {
    opacity: 1;
    transform: translateY(0);
}

.cta-footer canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cta-footer .cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-footer .btn {
    background: #fff;
    color: #333;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.cta-footer .btn:hover {
    background: #2f6a31;
    color: #fff;
}

.card-img-top img {
    max-height: 200px !important;
    max-width: 200px !important;
}