/* Custom CSS variables for your palette */
:root {
    --color-background: #ffffff;
    --color-h3: #000000;
    --color-h2: #007bff;
    --color-subheader: #888e9c;
    --color-preheader: #b3c0d5;
    --color-footer-bg: #333333;
    --color-footer-paragraph: #a0a0a0;
    --color-text-on-bg-image: #ffffff; /* For h3 footer and fonts on background image/video */
}

body.loading {
    overflow: hidden;
}

/* State when loading is finished */
#preloader.preloader-hidden {
    opacity: 0;
    pointer-events: none;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: #333; /* Default text color, can be overridden by Tailwind */
}

/* Custom styles for specific elements if Tailwind classes aren't enough */
.h2-custom {
    color: var(--color-h2);
}
.h3-custom {
    color: var(--color-h3);
}
.subheader-custom {
    color: var(--color-subheader);
}
.preheader-custom {
    color: var(--color-preheader);
}
.text-on-bg-image {
    color: var(--color-text-on-bg-image);
}
.footer-bg {
    background-color: var(--color-footer-bg);
}
.footer-paragraph {
    color: var(--color-footer-paragraph);
}
.footer-heading {
    color: var(--color-text-on-bg-image); /* h3 footer */
}
.footer-link {
    color: var(--color-footer-paragraph); /* Default link color in footer */
}
.footer-link:hover {
    color: var(--color-text-on-bg-image); /* Hover link color in footer */
}

/* Learn More button arrow animation */
.learn-more-link .fas {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.learn-more-link:hover .fas {
    opacity: 1 !important; /* Override Tailwind's initial opacity-0 */
    transform: translateX(4px);
}

/* Custom scrollbar for carousel (optional, for better aesthetics) */
.carousel-container::-webkit-scrollbar {
    height: 8px;
}
.carousel-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.carousel-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.carousel-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Hide scrollbar for carousel containers */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


/* Styles for scroll animations */
.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
    will-change: opacity;
}
.animate-fade-in.is-visible {
    opacity: 1; /* Ensure this overrides the initial 0 */
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px); /* Starts from below */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.animate-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0); /* Moves to its final position */
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px); /* Starts from left */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0); /* Moves to its final position */
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px); /* Starts from right */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0); /* Moves to its final position */
}

.animate-slide-down {
    opacity: 0;
    transform: translateY(-50px); /* Starts from up */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.animate-slide-down.is-visible {
    opacity: 1;
    transform: translateY(0); /* Moves to its final position */
}

/* 1. Hide scrollbars while maintaining functionality */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 2. Fixed-height container to align all images perfectly */
.product-image-container {
    width: 100%;
    height: 250px; /* Forces every image slot to be exactly this high */
    overflow: hidden;
    background-color: #f8f9fa; /* Placeholder color */
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image to fill the container without distortion */
    object-position: center;
}

/* 3. Ensure cards have a consistent look */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* --- MOBILE MENU ANIMATION --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    pointer-events: none;
}

#mobile-menu.menu-active {
    max-height: 100vh; /* Allows the menu to expand fully */
    opacity: 1;
    pointer-events: auto;
}

/* --- HAMBURGER ICON ANIMATION --- */
#mobile-menu-button i {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu-button.btn-active i {
    transform: rotate(90deg);
}