/* Custom base styles and utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar glass effect */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.nav-scrolled #logo-text,
.nav-scrolled a:not(.bg-primary),
.nav-scrolled button {
    color: #111827 !important; /* Tailwind gray-900 */
}

/* Fix mobile menu background and text when scrolled */
.nav-scrolled #mobileMenu {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

.nav-scrolled #mobileMenu a:hover,
.nav-scrolled #mobileMenu button:hover {
    background-color: #f3f4f6 !important; /* Tailwind gray-100 */
}

/* Ensure text is readable on hero images if any */
#logo-text, nav a, nav button {
    color: white;
}

.bg-primary {
    background-color: #0a192f !important;
    color: white !important;
}

/* Form inputs styling for premium feel */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.input-field:focus {
    outline: none;
    border-color: #0a192f;
    ring: 2px;
    ring-color: rgba(10, 25, 47, 0.2);
    background-color: white;
}

/* Smooth reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

.marquee-group {
    display: flex;
    overflow: hidden;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.animate-marquee {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    align-items: center;
    white-space: nowrap;
    animation: marquee 35s linear infinite;
}

.animate-marquee-slow {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    align-items: center;
    white-space: nowrap;
    animation: marquee 80s linear infinite;
}

.animate-marquee > *,
.animate-marquee-slow > * {
    flex-shrink: 0;
}

.marquee-group:hover .animate-marquee,
.marquee-group:hover .animate-marquee-slow {
    animation-play-state: paused;
}

/* Text justification utility */
.text-justified {
    text-align: justify;
    text-justify: inter-word;
}

