/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --deep-navy: #0F172A;
    --royal-blue: #2563EB;
    --cyan-accent: #38BDF8;
    --soft-bg: #F8FAFC;
    --dark-text: #111827;
    --muted-text: #64748B;
    --border-color: #E2E8F0;
    --body-font: 'Inter', sans-serif;
    --title-font: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--body-font);
    color: var(--dark-text);
    background-color: var(--soft-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--deep-navy);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--soft-bg);
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Header & Navbar */
.topbar {
    background-color: var(--deep-navy);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.topbar a:hover {
    color: var(--cyan-accent);
}

.main-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    z-index: 1030;
}

.main-navbar.sticky-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--deep-navy) !important;
}

.navbar-brand span {
    color: var(--royal-blue);
}

.nav-link {
    font-weight: 500;
    color: var(--deep-navy) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--royal-blue) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--deep-navy);
    color: var(--deep-navy);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--deep-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-cyan {
    background-color: var(--cyan-accent);
    color: var(--deep-navy);
    border-color: var(--cyan-accent);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-cyan:hover {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    color: var(--deep-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    padding: 100px 0 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--soft-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section h1 span {
    color: var(--cyan-accent);
}

.hero-section p {
    color: #94A3B8;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Trust Badges */
.trust-badges-wrapper {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.trust-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.trust-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Cards styling */
.premium-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-image-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--soft-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.category-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.premium-card:hover .category-image-box img {
    transform: scale(1.1);
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
}

.product-image-wrap {
    background-color: #F8FAFC;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

.product-image-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #EF4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--royal-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.custom-badge {
    position: absolute;
    top: 48px;
    right: 15px;
    max-width: calc(100% - 30px);
    background-color: #0F766E;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted-text);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-title a {
    color: var(--deep-navy);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.product-title a:hover {
    color: var(--royal-blue);
}

.product-rating {
    color: #F59E0B;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.price-box {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--royal-blue);
}

.old-price {
    font-size: 0.95rem;
    color: var(--muted-text);
    text-decoration: line-through;
}

/* Service Card */
.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    transition: var(--transition-smooth);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--cyan-accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    background-color: rgba(56, 189, 248, 0.1);
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* Why Choose & How It Works */
.how-it-works-step {
    position: relative;
}

.step-number {
    width: 45px;
    height: 45px;
    background-color: var(--royal-blue);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 4px solid var(--soft-bg);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Testimonial Section */
.testimonial-section {
    background-color: var(--deep-navy);
    color: white;
    padding: 80px 0;
}

.testimonial-section h2 {
    color: white;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    margin: 10px;
}

.quote-icon {
    color: var(--cyan-accent);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    border-color: var(--royal-blue);
}

/* Call-to-action */
.cta-banner {
    background: linear-gradient(135deg, var(--royal-blue) 0%, #1e4ed8 100%);
    border-radius: 1.25rem;
    padding: 4rem 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.cta-banner h2 {
    color: white;
}

/* Footer Section */
.footer-section {
    background-color: var(--deep-navy);
    color: #94A3B8;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h4 {
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--cyan-accent);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--royal-blue);
    color: white;
}

/* Support Page Accents */
.brand-badge {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--deep-navy);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    font-size: 1.25rem;
}

/* Cart Counter Badge */
.cart-counter {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #EF4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation Hamburger Menu custom toggler styling */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--deep-navy);
    display: inline-block;
    transition: var(--transition-smooth);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    width: 24px;
    height: 2px;
    background-color: var(--deep-navy);
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Pagination Styling */
.pagination {
    gap: 0.35rem;
}

.pagination .page-link {
    color: var(--deep-navy);
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.pagination .page-link:hover {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--royal-blue);
    border-color: var(--royal-blue);
}

.pagination .page-item.active .page-link {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: var(--border-color);
    color: #94A3B8;
}

/* Support Hero & Parallax Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-slide-up-delay {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}

.animate-slide-up-delay-2 {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

/* Custom Static Banners */
.support-hero-banner,
.about-hero-banner,
.contact-hero-banner {
    width: 100%;
    overflow: hidden;
    display: block;
    line-height: 0; /* Prevents tiny sub-pixel gaps below image */
}

/* Contact Us Page Parallax Banner CSS */
.contact-hero-banner #contact-parallax-banner {
    width: 100%;
    position: absolute;
    top: -6%;
    bottom: -6%;
    left: 0;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Product Catalog Views (Grid / List) */
.view-list > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
}

.view-list .product-card {
    flex-direction: row !important;
    height: auto !important;
    align-items: center;
    padding: 1.25rem;
    gap: 1.5rem;
}

.view-list .product-image-wrap {
    width: 180px;
    height: 150px;
    flex-shrink: 0;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background-color: var(--soft-bg);
}

.view-list .product-details {
    padding: 0 !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.view-list .product-brand {
    margin-bottom: 0.25rem;
}

.view-list .product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.view-list .price-box {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.view-list .product-card .row.g-2 {
    max-width: 320px;
    margin-top: auto !important;
}

/* Category Subnavbar Styling */
.category-subnav {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0.4rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.scrollbar-hidden {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.subnav-link {
    color: var(--muted-text);
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.825rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}


.subnav-link:hover {
    color: var(--royal-blue);
    background-color: rgba(37, 99, 235, 0.05);
}

.subnav-link.active {
    color: white !important;
    background-color: var(--royal-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .view-list .product-card {
        padding: 1rem;
        gap: 1rem;
    }
    .view-list .product-image-wrap {
        width: 140px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .view-list .product-card {
        flex-direction: column !important;
        align-items: stretch;
        gap: 1rem;
    }
    .view-list .product-image-wrap {
        width: 100%;
        height: 180px;
    }
    .view-list .product-card .row.g-2 {
        max-width: 100%;
    }
}

/* Custom Hero Carousel Entrance Animations */
.carousel-item.active .img-left {
    animation: slideFromLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.carousel-item.active .img-bottom {
    animation: slideFromBottom 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.carousel-item.active .img-right {
    animation: slideFromRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.carousel-item.active .img-top {
    animation: slideFromTop 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Brand Logo Cards Hover Effects */
.brand-logo-card {
    transition: var(--transition-smooth);
}
.brand-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
}
.brand-logo-card:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

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

.product-title,
.navbar-brand,
.btn,
.badge,
.subnav-link,
.footer-links a {
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 520px !important;
    }

    .hero-section h1 {
        font-size: 2.4rem;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .sticky-lg-top {
        position: static !important;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.08rem;
        max-width: calc(100vw - 92px);
    }

    .navbar-brand img {
        height: 44px !important;
    }

    .hero-section {
        min-height: 460px !important;
    }

    .hero-section h1,
    .display-4 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .display-5,
    .display-6 {
        font-size: 1.75rem;
    }

    .trust-badges-wrapper {
        margin-top: -24px;
    }

    .trust-card,
    .service-card,
    .dashboard-card-body,
    .cta-banner {
        padding: 1.25rem;
    }

    .cta-banner {
        border-radius: 0.75rem;
    }

    .product-image-wrap {
        height: 190px;
        padding: 1rem;
    }

    .product-details {
        padding: 1rem;
    }

    .sale-badge,
    .featured-badge,
    .custom-badge {
        font-size: 0.68rem;
        padding: 0.2rem 0.6rem;
    }

    .custom-badge {
        top: 42px;
    }

    .price-box {
        flex-wrap: wrap;
    }

    .card-footer.d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-footer.d-flex .btn,
    .cta-banner .btn {
        width: 100%;
    }

    .footer-section {
        padding-top: 48px;
    }
}
