/* ==========================================================================
   Base styles & Variables
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

:root {
    --primary: #01AFFF;
    --secondary: #0151A0;
    --accent: #ff4a4a;
    --text: #ffffff;
    --text-dark: #0F53A3;
    --card: rgba(255, 255, 255, 0.95);
    --shadow: rgba(0, 0, 0, 0.15);
    --duration: 0.4s;
    --dark-bg: #121212;
    --dark-text: #e0e0e0;
    --dark-text-muted: #cccccc;
    --gradient-start: rgb(24, 29, 51);
    --gradient-end: rgb(34, 54, 141);
    --wave-color: #121212;
    --about-bg-start: rgb(24, 29, 51);
    --about-bg-end: rgb(34, 54, 141);
    --transition-duration: 0.6s;
    /* --transition-easing: cubic-bezier(0.33, 1, 0.68, 1); */
    --transition-easing: cubic-bezier(0.45, 0, 0.55, 1);
    --third-bg-start: rgb(10, 20, 40);
    --third-bg-end: rgb(60, 10, 90);
    --rwb-gradient: linear-gradient(180deg, #dc5656 33.3%, #ffffff 33.3%, #ffffff 66.6%, #50aa4d 66.6%);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    background-attachment: fixed;
    overflow-x: hidden;
    font-size:1rem;
}

/* Add page background that transitions on scroll */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10; /* Lower z-index for proper stacking */
    background: radial-gradient(var(--primary) 0%, var(--secondary) 100%);
    transition: opacity var(--transition-duration) var(--transition-easing);
}

.page-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 2 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.second-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9; /* Higher than first background */
    background: linear-gradient(215deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-size: 200% 200%;
    /* animation: gradientShift 15s ease infinite alternate; */
    opacity: 0;
    transition: opacity var(--transition-duration) var(--transition-easing);
}

.second-background.active {
    opacity: 1;
}

.second-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23ffffff' fill-opacity='0.07' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* Separate sloth image from background for independent control */
/* .sloth-image {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    background-image: url('assets/sloth4.avif');
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    z-index: -8;
    opacity: 0;
    transition: opacity calc(var(--transition-duration)*3) linear;
    pointer-events: none;
}

.sloth-image.active {
    opacity: 1;

}

.sloth-image-left {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 100%;
    background-image: url('assets/sloth5.avif');
    background-size: contain;
    background-position: bottom left;
    background-repeat: no-repeat;
    z-index: -8;
    opacity: 0;
    transition: opacity calc(var(--transition-duration)*3) linear;
    pointer-events: none;
}

.sloth-image-left.active {
    opacity: 1;
} */

/* Add third section background */
.third-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8; /* Highest z-index of backgrounds */
    background: linear-gradient(135deg, var(--third-bg-start) 0%, var(--third-bg-end) 100%);
    background-size: 200% 200%;
    animation: gradientShift 18s ease infinite alternate;
    opacity: 0;
    transition: opacity var(--transition-duration) var(--transition-easing);
}

.third-background.active {
    opacity: 1;
}

.third-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.fourth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8; /* Highest z-index of backgrounds */
    /* background: linear-gradient(135deg, var(--third-bg-start) 0%, var(--third-bg-end) 100%); */
    background: linear-gradient(135deg, var(--third-bg-start) 0%, rgb(24, 29, 51) 100%);
    background-size: 200% 200%;
    animation: gradientShift 18s ease infinite alternate;
    opacity: 0;
    transition: opacity var(--transition-duration) var(--transition-easing);
}
.fourth-background.active {
    opacity: 1;
}
/* Section base styles */
section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.container {
    width: 100%;
    max-width: 1100px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

h1, .good-news, .subtitle, .counter-label, .falling-text, .counter-value, p{
    font-family: 'Montserrat', sans-serif;
}

/* Typography here */
.emphasis
{
    display:inline-block;
    padding: 0 0.1em;
    background-color:#FFC704;
    background: linear-gradient(45deg, #ffdc32, #FFC704);

}
/* ==========================================================================
   Counter Section Styles
   ========================================================================== */

/* Counter section background */
#counter-section {
    /* Background is now controlled by the fixed page-background element */
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    padding-bottom: 60px; /* Add some space at the bottom */
}

#counter-section::before {
    content: none;
}

#counter-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(1rem, 3vw, 2rem);
    gap: 2em;
}


/* Counter section title styles */
#counter-section h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    text-transform: uppercase;
}

#counter-section h1 a {
    color: white;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

#counter-section h1 a::after {
    content: '';
    position: absolute;
    width: 105%;
    height: 0%;
    left: -2.5%;
    bottom: -0.07em;
    background: linear-gradient(45deg, #ffdc32, #FFC704);
    color:transparent;
    transition: height calc(var(--duration)/1.5) ease-out;
    z-index:-1;
    border-radius:0.07em;
    /* overflow: hidden; */
}

#counter-section h1 a::before {
    content: '';
    position: absolute;
    width: 105%;
    height: 1px;
    left: -2.5%;
    bottom: -0.07em;
    background-color: rgba(255, 255, 255, 0.527);
}

#counter-section h1 a:hover::after {
    height: 105%;
}
#counter-section .subtitle {
    font-size: clamp(1rem, 3vw, 2rem);
    text-transform: uppercase;
}
/* Good news banner */
.good-news {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 700;
    color: #0F53A3;
    text-transform: uppercase;
    margin-top: 2em;
    margin-bottom:2em;
    position: relative;
    display: inline-block;
    text-align: center;
    background: white;
    padding: 0.15em 0.6em;
    border-radius: 0.1em;
    transform: skew(0deg, -3deg);
    animation: swingSign 2s ease-in-out infinite;
    transform-origin: 50% -500%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#counter-section .good-news {
    margin-bottom:0;
}

@keyframes swingSign {
    0% { transform: skew(0deg, -3deg) rotate(2deg); }
    50% { transform: skew(0deg, -3deg) rotate(-2deg); }
    100% { transform: skew(0deg, -3deg) rotate(2deg); }
}

/* Flag animations */
.good-news .flag1,
.good-news .flag2,
.good-news .flag3 {
    position: absolute;
    width: 3.2em;
    height: 0.45em;
    z-index: 2;
    transform-origin: left center;
}

.good-news .flag1 {
    top: -0.2em;
    left: -1.6em;
    background: #50aa4d;
    animation: flagWave 3s ease-in-out infinite;
}

.good-news .flag2 {
    top: -0.65em;
    left: -1.3em;
    background: #ffffff;
    animation: flagWave 2.7s ease-in-out infinite;
    animation-delay: 0.3s;
}

.good-news .flag3 {
    top: -1.1em;
    left: -1.8em;
    background: #dc5656;
    animation: flagWave 3.3s ease-in-out infinite;
    animation-delay: 0.6s;
}

@keyframes flagWave {
    0% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(5deg) translateX(0.2em); }
    50% { transform: rotate(-2deg) translateX(-0.1em); }
    75% { transform: rotate(3deg) translateX(0.1em); }
    100% { transform: rotate(0deg) translateX(0); }
}

/* Counter grid */
.counter-grid {
    display: grid;
    max-width: 900px;
    margin: auto;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}

.counter-box {
    background-color: var(--card);
    border-radius: 0.6em;
    font-size: clamp(0.8rem, 2vw, 1.3rem);
    padding: 1em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 30px -5px var(--shadow), 0 15px 15px -5px var(--shadow);
    transition: box-shadow calc(var(--duration)/1.5) ease-in-out, transform calc(var(--duration)/1.5) ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.counter-box:hover {
    box-shadow:  0 15px 15px -5px var(--shadow);
    transform: translateY(5px);

}

.counter-value {
    color: transparent;
    background: linear-gradient(313deg, #ff4a4a, #f19f9f);
    background-clip: text;
    font-size:3em;
    /* font-size: clamp(1.7rem, 5.2vw, 3.8rem); */
    font-weight: 700;
    /* color: var(--secondary); */
    display: block;
}

.counter-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Counter box hover accent */
.counter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: 100% 0;
    transition: transform var(--duration) ease-out;
}

.counter-box:hover::before {
    transform: scaleX(1);
    transform-origin: 0 0;
}


/* ==========================================================================
   About Section Styles
   ========================================================================== */

#about-section {
    position: relative;
    overflow: hidden;
    z-index: 2;
    color: var(--dark-text);
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.about-content.visible {
    transform: translateY(0);
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calculator Styles */
.calculator-section {
    margin-top: 4rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.07);
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
    display:none;



}

.calculator-section.visible {
    transform: translateY(0);
    opacity: 1;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(1, 175, 255, 0.08) 0%, rgba(255, 74, 74, 0.08) 100%);
    z-index: -1;
}

.calculator-title {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* animation: fadeIn 1.5s ease-out; */
    transform: translateY(60px);
    transition: transform 1s ease-out, opacity 1s ease-out;
    transition-delay: 0.2s;
}

.calculator-input {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator-input label {
    font-size: 1.1rem;
}

.input-with-controls {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.input-with-controls input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 4px;
    padding: 0;
}

/* Hide number input arrows */
.input-with-controls input::-webkit-outer-spin-button,
.input-with-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-with-controls button {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-with-controls button:hover {
    background: var(--secondary);
}

.dec-button {
    margin-right: 0.5rem;
}

.inc-button {
    margin-left: 0.5rem;
}

.calculator-result {
    flex: 1 1 300px;
}

.result-card {
    padding: 1.5rem;
    background: var(--primary);
    color: var(--text);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-header {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-weight: 500;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: white;
}

.result-unit {
    font-size: 1.3rem;
    margin-left: 0.5rem;
}

.result-description {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 250px;
    margin: 0.5rem auto 0;
}

@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }

    .calculator-input {
        text-align: center;
    }

    .input-with-controls {
        justify-content: center;
    }
}

/* ==========================================================================
   Timeline Section Styles
   ========================================================================== */

.timeline-section {
    margin: 6rem 0;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    opacity:1;
}

.timeline-container {
    position: relative;
    display:grid;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    /* height: auto; Ensure height is auto to contain all items */
    padding: 0 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow:visible;
}

.timeline-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* .timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.0),
        rgba(255,255,255,0.3) 15%,
        rgba(255,255,255,0.3) 85%,
        rgba(255,255,255,0.0)
    );
    border-radius: 2px;
} */

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 100%;
    width: 43px;
    background: linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 15%) 15%, rgb(0 0 0 / 15%) 85%, rgb(0 0 0 / 0%));
    border-left: #616161 dashed 2px;
    border-right: #ffffff4f dashed 2px;
    mask-image: linear-gradient( to bottom, hsl(0 0% 0% / 0), 120px, hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0) 95% );
  }

#timeline-bus-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 1;
    margin: auto;
    pointer-events: none;
    /* background:red; */
    overflow: visible;
    opacity: 1;
    transition: opacity 0.5s var(--transition-easing);
    mask-image: linear-gradient(
        to bottom,
        hsl(0 0% 0% / 0), 120px,
        hsl(0 0% 0% / 1) 20%,
        hsl(0 0% 0% / 1) 80%,
        hsl(0 0% 0% / 0) 95%
      );
}
#timeline-bus-container.visible {
    opacity: 1;
}

#timeline-bus {
    will-change: transform; /* Hint to browser to use GPU acceleration */
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Helps with GPU rendering */
    position: sticky;
    top: 50vh;
    width: 30px;
    height: 100px;
    z-index: 5;
    background: url('assets/bus1.avif') no-repeat center;
    background-size: contain;
    pointer-events: none;
    margin-top:-130px;
    opacity: 1;
    box-shadow:0px 46px 16px -6px #fff6ed, 0px 62px 14px -10px #ffffff, -5px -40px 16px -13px #ff0000, 6px -40px 14px -11px #ff4a4a;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem; /* Increased from 2rem to provide more spacing */
    padding: 0 2rem;
    /* width: 50%; */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Remove the overlapping positioning at larger screens */
@media (min-width: 769px) {
    /* Left side items */
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: calc(2rem + 30px);
        text-align: right;
        margin-top: 0; /* Remove negative margin that causes overlap */
    }

    /* Right side items */
    .timeline-item:nth-child(even) {
        left: 0%;
        padding-left: calc(2rem + 30px);
        text-align: left;
        margin-top: 4rem; /* Remove negative margin that causes overlap */
    }

    /* Position dots properly */
    .timeline-dot {
        position: absolute;
        top: 0;
    }
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(1, 175, 255, 0.2);
    z-index: 2;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display:none;
}

/* Dot positions */
.timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background-color: var(--accent);
}

.timeline-date {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary);
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(1, 175, 255, 0.1);
    border-radius: 4px;
    /* backdrop-filter: blur(5px); */
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Ensure proper stacking context */
    z-index: 1; /* Ensure content is above the timeline line */
}

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

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    /* color: var(--text); */
}

.timeline-text {
    color: var(--dark-text);
    line-height: 1.6;
}

/* Timeline question mark styling */
.timeline-question {
    grid-column: 1 / -1; /* Span all columns */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-question.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.question-mark {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
                inset 0 2px 10px rgba(255, 255, 255, 0.2);
    animation: pulseLight 3s infinite alternate;
}

@keyframes pulseLight {
    0% { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
                    inset 0 2px 10px rgba(255, 255, 255, 0.2); }
    100% { box-shadow: 0 15px 35px rgba(1, 175, 255, 0.3),
                      inset 0 2px 15px rgba(255, 255, 255, 0.4); }
}

@media (max-width: 768px) {


/* Responsive timeline */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }

    .timeline-container {
        grid-template-columns: 1fr;
        /* padding: 2rem 0; */
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px !important; /* Use !important to override the nth-child rules */
        padding-right: 1.5rem !important; /* Use !important to override the nth-child rules */
        text-align: left !important; /* Use !important to override the nth-child rules */
        left: 0 !important; /* Use !important to override the nth-child rules */
        margin-bottom: 3rem; /* Ensure adequate spacing between items */
    }

    .timeline-dot {
        left: 18px !important;
        right: auto !important;
    }

    /* Fix date alignment on mobile */
    .timeline-date {
        text-align: left;
        display: block;
    }

    /* Ensure consistent content alignment */
    .card {
        text-align: left;
    }
    .timeline-question {
        margin-top: 1rem;
        margin-left: 18px; /* Align with the timeline on mobile */
    }

    .question-mark {
        width: 80px;
        height: 80px;
        font-size: 3.5rem;
    }
}
    #timeline-bus-container {
        left: 30px; /* Match the timeline position on mobile */
    }
}

/* Timeline conclusion styling */
#timeline-conclusion {
    text-align: center;
    width: 100%;
    margin-top: 2em;
    padding: 0 2rem;
    max-width: 1100px;
}

#timeline-conclusion .card {
    max-width: 100%;
    margin: 0 auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 1rem;
    transition: transform 0.3s ease;
}

#timeline-conclusion .card:hover {
    transform: none;
    box-shadow: none;
}

#timeline-conclusion .card-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: var(--text);
    line-height: 1.2;
    text-align: center;

}

#timeline-conclusion .timeline-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto;
    text-align:center;
    color: var(--text);
}


/* Adjust timeline conclusion for mobile */
@media (max-width: 768px) {
    #timeline-conclusion {
        text-align: center; /* Keep centered on mobile */
        padding: 0 1.5rem !important;
    }

    #timeline-conclusion .card {
        margin: 0 auto;
        padding: 0;
    }

    #timeline-conclusion .timeline-date {
        text-align: center;
        margin: 0 auto 1.5rem;
    }
}

/* Additional mobile adjustments for very small screens */
@media (max-width: 480px) {
    #timeline-conclusion .card-title {
        font-size: 1.8rem;
    }

    #timeline-conclusion .timeline-text {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Contact Section Styles
   ========================================================================== */

#contact-section {
    position: relative;
    overflow: hidden;
    z-index: 3;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(37, 59, 163) 0%, rgb(24, 35, 95) 100%);
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
    padding: 7rem 2rem 5rem;
}

.contact-content {
    display: flex;
    width: 100%;
    max-width: 900px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
}

.contact-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    max-width: 500px;
    position: relative;
    text-align: left;
    padding-left: 25px; /* Add left padding to make space for the vertical line */
}

.contact-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px; /* Make the line thin */
    height: 80%; /* Make the line 80% of the text height */
    background: var(--rwb-gradient); /* Keep the red-white-blue gradient */
    border-radius: 1.5px;
}

.contact-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-link:hover::before {
    left: 100%;
}

/* Adjust mobile styles */
@media (max-width: 768px) {
    .contact-subtitle {
        text-align: center;
        padding-left: 0; /* Remove left padding on mobile */
        padding-top: 25px; /* Add top padding for the horizontal line on mobile */
    }

    .contact-subtitle::after {
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 120px; /* Make the line wider on mobile */
        height: 3px; /* Make the line thin on mobile */
    }
}

.logo-wrapper {
    width: 180px;
    height: auto;
    position: relative;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-5px);
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 1.5px;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.logo-wrapper:hover::before {
    opacity: 1;
    width: 60px;
}

#logo {
    transition: filter 0.3s ease;
}

#logo:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

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

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .contact-subtitle {
        text-align: center;
    }

    .contact-subtitle::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease forwards;
}

.modal.hide {
    animation: fadeOut 0.4s ease forwards;
}

.modal-content {
    position: relative;
    background-color: var(--background, #f8fafc);
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    opacity: 0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.43, 1.19), opacity 0.4s ease;
}

.modal.show .modal-content {
    animation: zoomIn 0.4s 0.1s cubic-bezier(0.18, 0.89, 0.43, 1.19) forwards;
}

.modal.hide .modal-content {
    animation: zoomOut 0.3s ease forwards;
}

.modal-body {
    padding: 0;
    position: relative;
}

.modal-body img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 1px;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

/* ==========================================================================
   Section Transitions
   ========================================================================== */


.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.scroll-indicator::before {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    /* Use two transform properties - one for constant rotation, one for animation */
    rotate: 45deg;
    animation: scrollChevron 1.5s infinite;
}

@keyframes scrollChevron {
    0% { transform: translateY(-4px) translateX(-4px); }
    50% { transform: translateY(4px)translateX(4px); }
    100% { transform: translateY(-4px)translateX(-4px); }
}

/* ==========================================================================
   Tooltip Styles
   ========================================================================== */
/* Modern tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}

.tooltip-content {
    position: absolute;
    top: calc(100% + 10px); /* Position below the element with spacing */
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 300px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform-origin: top center;
    transform: translateX(-50%) scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    text-transform: initial;
}

/* Add arrow pointing up */
.tooltip-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}

.tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tooltip-content {
        width: 200px;
        left: 50%;
        transform: translateX(-50%) scale(0.95);
    }

    .tooltip:hover .tooltip-content {
        transform: translateX(-50%) scale(1);
    }
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: 900px;
    text-align: center;
    padding: 0 1.5rem;
}

.action-intro {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 0;
    font-weight: 600;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75em 1.75em;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff4a4a 0%, #ff9232 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.action-btn:hover::before {
    left: 100%;
}

/* Floating button styles */
.floating-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4a4a 0%, #ff9232 100%);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.floating-btn:active {
    transform: scale(0.95);
}

.floating-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: calc(100% + 15px);
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add a triangle pointing to the button */
.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(100% + 5px);
    transform: translateY(-50%);
    border-width: 8px 0 8px 10px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn:hover::after,
.floating-btn:hover::before {
    opacity: 1;
    right: calc(100% + 10px);
}

/* Make tooltip responsive */
@media (max-width: 768px) {
    .floating-btn {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .floating-btn::after {
        max-width: 180px;
        white-space: normal;
        text-align: right;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 74, 74, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 74, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 74, 74, 0);
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    section {
        padding: 4rem 1rem;
    }

    .about-content {
        flex-direction: column-reverse;
    }

    .about-text {
        text-align: center;
    }

}

@media (max-width: 480px) {
    .counter-grid {
        /* Switch to 2x2 grid at 480px */
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        gap: 1rem; /* Slightly smaller gap on mobile */
    }

    section {
        padding: 3rem 0.5rem;
    }
}

/* ==========================================================================
   Facts Section Styles
   ========================================================================== */
.facts-section {
    padding: 5rem 0 3rem; /* Increased bottom padding to make space for the chevron */
    text-align: center;
    margin: 0 auto -2em;
    transform: translateY(40px);
    background: white;
    color: var(--text-dark);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    position: relative; /* Needed for the pseudo-element positioning */
}

.facts-section.visible {
    transform: translateY(0);
    /* clip-path: polygon(0 0,100% 0,100% calc(100% - 50px),50% 100%,0 calc(100% - 50px)); */
    opacity: 1;
}

/* Add chevron shape to the bottom of the facts section */
.facts-section::after {
    content: '';
    position: absolute;
    bottom: -59px;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 1;
}

.facts-title {
    margin-bottom: 2.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-transform: uppercase;
    font-weight: 700;
}

.facts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.fact-box {
    flex: 1 1 300px;
    max-width: 350px;
    /* overflow: hidden; */
}

.fact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.fact-box:hover::before {
    transform: scaleX(1);
}

.fact-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.fact-number {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
    min-height: 80px; /* Ensure consistent height during animation */
    display: flex;
    align-items: center;
    justify-content: center;
}


.fact-description {
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .facts-container {
        align-items: center;
    }

}

/* ==========================================================================
   Spending Comparison Section Styles
   ========================================================================== */
.spending-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.spending-intro {
    max-width: 800px;
    margin: 0 auto 2vw;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}


.spending-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}




@keyframes scroll-x {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc(-100% - var(--gap)));
    }
}

.spending-card {
    /* min-width: 300px; */
    max-width: 300px;
    overflow: hidden;
    text-align: center;
    backdrop-filter: none;
}

/* .spending-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.8;
} */

.spending-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.spending-amount {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.spending-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.3;
}

.spending-description {
    color: var(--dark-text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
    max-width: 100%;
}

.spending-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 74, 74, 0.3);
    transform: rotate(5deg);
}

.spending-conclusion {
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--text);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.spending-conclusion.visible {
    opacity: 1;
    transform: translateY(0);
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2em;
    mask-image: linear-gradient(
      var(--mask-direction, to right),
      hsl(0 0% 0% / 0),
      hsl(0 0% 0% / 1) 20%,
      hsl(0 0% 0% / 1) 80%,
      hsl(0 0% 0% / 0)
    );
    --gap: 2rem;
    /* transform: skew(35deg, 345deg);  */
    margin: 2rem 0;
    padding: 4rem 0;
    width:100%;
}

.marquee-group {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: var(--gap);
    min-width: 100%;
    animation: scroll-x 30s linear infinite; /* Slowed down for better readability */
}

@media (max-width: 768px) {
    .spending-section {
        padding: 3rem 1rem;
    }

    .spending-cards {
        gap: 1.5rem;
    }
}


.logo-wrapper {
    width: 200px;
}
#logo {
    transition: filter var(--transition);
}

#logo:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.61));
}
#logo object {
    pointer-events: none; /* Pass clicks through to the parent anchor */
}