/* ============================================
   UTOPIA BRANDS - STYLE CONFIGURATION
   ============================================ */

/* CSS Variables for Easy Updates */
:root {
    /* Colors */
    --color-primary: #123235;
    --color-accent: #d4e157;
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
    --color-bg-light: #f5f5f5;
    --color-text-headings: #014F43;

    /* Fonts */
    --font-heading: 'Belleza', sans-serif;
    --font-body: 'Jost', sans-serif;

    /* Spacing */
    --spacing-section: 80px;
    --spacing-container: 1200px;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.font-heading {
    font-family: var(--font-heading);
}

.font-body {
    font-family: var(--font-body);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.bg-bg-light {
    background-color: var(--color-bg-light);
}

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

.text-accent {
    color: var(--color-accent);
}

.text-text-dark {
    color: var(--color-text-dark);
}

.text-heading {
    color: var(--color-text-headings);
}

/* ============================================
   NAV SECTION STYLES
   ============================================ */
.nav-link.active {
    color: var(--color-accent);
    position: relative;
}

/* .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
}
 */

/* ============================================
   HERO SECTION STYLES
   ============================================ */

.hero-image-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-image-wrapper {
    position: absolute;
    right: -100px;
    top: 0;
    width: 150%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top right;
    display: block;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            var(--color-primary) 0%,
            var(--color-primary) 10%,
            rgba(26, 59, 58, 0.95) 20%,
            rgba(26, 59, 58, 0.85) 40%,
            rgba(26, 59, 58, 0.65) 40%,
            rgba(26, 59, 58, 0.45) 50%,
            rgba(26, 59, 58, 0.25) 60%,
            rgba(26, 59, 58, 0.1) 70%,
            transparent 80%);
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   BANNER SECTION WITH BACKGROUND IMAGE
   ============================================ */

.banner-section {
    position: relative;
    min-height: 300px;
}

.banner-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('./assets/home/banner\ image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.banner-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(26, 59, 58, 0.95) 0%,
            rgba(26, 59, 58, 0.85) 30%,
            rgba(26, 59, 58, 0.75) 60%,
            rgba(26, 59, 58, 0.85) 100%);
    z-index: 1;
}

/* ============================================
   BRAND CAROUSEL STYLES
   ============================================ */

.carousel-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollBrands 35s linear infinite;
    will-change: transform;
}

.carousel-item {
    padding: 0 60px;
    flex-shrink: 0;
}

.carousel-item img {
    width: 180px;
    display: block;
}


/* ============================================
   OFFICE CAROUSEL STYLES
   ============================================ */

.office-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 0 60px;
}


.office-carousel-item {
    flex-shrink: 0;
    width: 320px;
}

.office-carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================
   MAP STYLES
   ============================================ */

.contact-card {
    background: rgba(14, 79, 67, 0.87);
    color: var(--color-bg-light) !important;
}

/* ============================================
   COUNTRIES CAROUSEL STYLES
   ============================================ */

.countries-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 60px;
}


.countries-carousel-item {
    flex-shrink: 0;
    min-width: 150px;
}

/* Pause animation on hover */
/* .countries-carousel-container:hover .countries-carousel-track {
    animation-play-state: paused;
} */

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --spacing-section: 60px;
    }

    .office-carousel-item {
        width: 280px;
    }

    .hero-image-wrapper {
        right: -100px;
        width: 130%;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 40px;
    }

    .carousel-item {
        padding: 0 24px;
    }

    .carousel-item img {
        width: 140px;
    }

    .office-carousel-item {
        width: 240px;
    }

    .office-carousel-container,
    .countries-carousel-container {
        padding: 0 20px;
    }

    .hero-image-container {
        height: 300px;
    }

    .hero-image-wrapper {
        position: relative;
        right: 0;
        width: 100%;
        margin-top: 20px;
    }

    /* 
    .countries-carousel-track {
        gap: 30px;
    } */

    /* Mobile gradient adjustment */
    .hero-gradient-overlay {
        background: linear-gradient(180deg,
                var(--color-primary) 0%,
                rgba(26, 59, 58, 0.8) 20%,
                rgba(26, 59, 58, 0.4) 50%,
                transparent 80%);
    }
}

/* ============================================
   INFINITE CAROUSEL ENGINE
   ============================================ */

/* Infinite Carousel Styles */

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

/* Support both track naming conventions */
.carousel-track,
.infinite-track {
    display: flex;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* 
 * Generic carousel item styles
 * Item dimensions are controlled via data attributes:
 * - data-item-width="320"  (pixels)
 * - data-item-height="240" (pixels)
 * These are applied by JavaScript to all direct children of the track
 */

/* Optional: Fade edges for seamless look */
.infinite-carousel.fade-edges::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 5%,
            transparent 95%,
            rgba(255, 255, 255, 0.1) 100%);
}


/* ============================================
   SMOOTH SCROLL
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   TRANSITIONS
   ============================================ */

a,
button {
    transition: all 0.3s ease;
}

/* ============================================
   CUSTOM SCROLLBAR (Optional)
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ============================================
   COUNTER ANIMATION STYLES
   ============================================ */

.counter-item {
    overflow: hidden;
}

.counter-value {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.counter-value.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for each counter */
.counter-item:nth-child(1) .counter-value {
    transition-delay: 0s;
}

.counter-item:nth-child(2) .counter-value {
    transition-delay: 0.15s;
}

.counter-item:nth-child(3) .counter-value {
    transition-delay: 0.3s;
}

.counter-item:nth-child(4) .counter-value {
    transition-delay: 0.45s;
}