/* 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;
}

/* --- GLOBAL OVERFLOW FIXES --- */

/* Prevents content from leaking out during slide animations */
section {
    overflow-x: hidden;
}

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

    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 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 */
}

/* Specific style for the process step circle */
.process-step-circle {
    background-color: var(--color-h2);
    /* Blue background for the circle */
    color: var(--color-text-on-bg-image);
    /* White text for the number */
    width: 60px;
    /* Size of the circle */
    height: 60px;
    /* Size of the circle */
    min-width: 60px;
    /* Ensure it doesn't shrink */
    min-height: 60px;
    /* Ensure it doesn't shrink */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    /* Size of the number */
    font-weight: 700;
    margin-right: 2rem;
    /* Space between circle and content */
}

/* Responsive adjustments for process step circle margin */
@media (max-width: 767px) {
    .process-step-circle {
        margin-right: 0;
        /* Remove right margin on small screens */
        margin-bottom: 1rem;
        /* Add bottom margin instead */
    }
}


/* 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 */
}

/* --- HARDWARE ACCELERATED DOTS --- */
    /* These properties force the laptop's GPU to keep the dots visible */
    .hotspot {
        position: absolute;
        cursor: pointer;
        z-index: 50;
        width: 40px; /* Slightly larger hit area */
        height: 40px;
        transform: translate(-50%, -50%) translateZ(0);
        will-change: transform;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pulse-dot {
        width: 14px;
        height: 14px;
        background: #3b82f6;
        border-radius: 50%;
        position: relative;
        transform: translateZ(0); /* GPU Trigger */
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
        transition: all 0.3s ease;
    }

    .pulse-dot::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: inherit;
        animation: pulse-ring 2.5s infinite;
        will-change: transform, opacity;
    }

    @keyframes pulse-ring {
        0% { transform: scale(1) translateZ(0); opacity: 0.8; }
        100% { transform: scale(4) translateZ(0); opacity: 0; }
    }

    .active-dot {
        background: #ef4444 !important;
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
        transform: scale(1.2) translateZ(0);
    }

/* 3. Animations for the text transitions */
#details-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* --- UI UTILITIES --- */
.is-visible { opacity: 1 !important; transform: translate(0, 0) !important; }
.animate-slide-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }


/* --- 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);
}