
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Animations */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-slow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: 200%;
    animation: marquee 20s linear infinite;
}

.animate-marquee-slow {
    display: flex;
    width: fit-content;
    animation: marquee-slow 60s linear infinite;
}

/* Spacing for marquee children */
.animate-marquee-slow > div {
    margin-right: 2rem;
    flex-shrink: 0;
}

/* Accordion Styling */
.accordion-content {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-item.active .accordion-header {
    color: #2563eb;
    background-color: #f8fafc;
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
}

/* Button & Link Active State */
button:active, a:active {
    transform: scale(0.96);
}

#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
}


/* Prevent horizontal overflow from marquee animations (tablet fix) */
.animate-marquee,
.animate-marquee-slow {
    overflow-x: hidden;
}

/* Flag-like ripple animation */
@keyframes flag-ripple {
    0% {
        transform: perspective(600px) rotateY(0deg) translateY(0);
    }
    25% {
        transform: perspective(600px) rotateY(-3deg) translateY(-1px);
    }
    50% {
        transform: perspective(600px) rotateY(0deg) translateY(0);
    }
    75% {
        transform: perspective(600px) rotateY(3deg) translateY(1px);
    }
    100% {
        transform: perspective(600px) rotateY(0deg) translateY(0);
    }
}

.flag-ripple {
    position: relative;
    animation: flag-ripple 6s ease-in-out infinite;
    transform-origin: left center;
    will-change: transform;
}

/* Moving light sheen to simulate fabric */
.flag-ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 70%
    );
    opacity: 0.25;
    transform: translateX(-100%);
    animation: flag-sheen 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes flag-sheen {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .flag-ripple,
    .flag-ripple::after {
        animation: none;
    }
}

/* Professional wave / shimmer effect for CTA */
@keyframes cta-wave {
    0% {
        transform: translateX(-120%);
    }
    50% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(120%);
    }
}

.cta-wave {
    position: relative;
    overflow: hidden;
}

.cta-wave::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: translateX(-120%);
    animation: cta-wave 6s ease-in-out infinite;
    pointer-events: none;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .cta-wave::before {
        animation: none;
    }
}

:root {
  --nav-height: 5rem;
}

.hero-section {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 2rem;
  box-sizing: border-box;
}

/* Sticky footer ONLY for md and larger screens */
@media (min-width: 768px) {
  .page-wrapper {
    min-height: 73vh;
    display: flex;
    flex-direction: column;
  }

  .page-wrapper main {
    flex: 1;
  }
}

/* Footer spacing on small devices only */
@media (max-width: 767px) {
  footer {
    margin-top: 10px;
  }
}

/* Remove margin on md and larger (safety) */
@media (min-width: 768px) {
  footer {
    margin-top: 0;
  }
}