/* Base Styles & Custom Utilities */
body { -webkit-tap-highlight-color: transparent; }

/* Page Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphic Upgrades */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(12, 36, 64, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(12, 36, 64, 0.05);
}

/* Navigation Hover Indicator Effect */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #C9A23F;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Mobile App Bottom Nav adjustments */
.mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
.nav-item.active { color: #C9A23F; }
.nav-item.active i { transform: translateY(-2px); transition: all 0.3s; }

/* Swiper Custom Pagination & Navigation */
.swiper-pagination-bullet-active { background-color: #C9A23F !important; }
.swiper-button-next, .swiper-button-prev { color: #C9A23F !important; transform: scale(0.7); }

/* Hide scrollbar for horizontal scrolling containers */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Form inputs focus state styling */
input:focus, select:focus, textarea:focus { outline: none; border-color: #C9A23F; box-shadow: 0 0 0 2px rgba(201, 162, 63, 0.2); }

/* Dynamic spinner loader */
.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Global card lift-on-hover (applies retroactively to existing cards) */
.hover\:shadow-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.hover\:shadow-card:hover {
    transform: translateY(-6px);
}
.hover-lift {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(12, 36, 64, 0.08);
}

/* Sticky header shrink-on-scroll */
.glass-header { transition: all 0.35s ease; }
.glass-header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(12, 36, 64, 0.06);
}
.glass-header.header-scrolled .header-inner { height: 4.5rem; }

/* Top utility bar */
.top-bar { font-size: 0.75rem; }
.top-bar a { transition: color 0.2s ease; }

/* Mega menu */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.group:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.mega-menu-item:hover {
    transform: translateX(4px);
}
.mega-menu-item img {
    transition: transform 0.4s ease;
}
.mega-menu-item:hover img {
    transform: scale(1.08);
}

/* Mobile menu staggered link entrance */
#mobileMenu nav > * {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobileMenu.menu-open nav > * {
    opacity: 1;
    transform: translateX(0);
}
#mobileMenu.menu-open nav > *:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.menu-open nav > *:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.menu-open nav > *:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.menu-open nav > *:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.menu-open nav > *:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.menu-open nav > *:nth-child(6) { transition-delay: 0.3s; }
#mobileMenu.menu-open nav > *:nth-child(7) { transition-delay: 0.35s; }
#mobileMenu.menu-open nav > *:nth-child(8) { transition-delay: 0.4s; }

/* Sector logo strip marquee */
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.sector-track {
    animation: marqueeScroll 30s linear infinite;
}
.sector-track:hover { animation-play-state: paused; }

.hide-scrollbar {
    overflow-x: hidden;
}

/* Gradient text accent */
.text-gradient-gold {
    background: linear-gradient(90deg, #C9A23F, #f0d98c, #C9A23F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Generated Content Styling for Gemini AI tools output */
.prose-ai h1, .prose-ai h2, .prose-ai h3 { color: #0C2440; font-family: 'Poppins', sans-serif; font-weight: 700; margin-top: 1.5em; margin-bottom: 0.5em; }
.prose-ai h2 { font-size: 1.5rem; }
.prose-ai h3 { font-size: 1.25rem; }
.prose-ai p { margin-bottom: 1em; line-height: 1.6; color: #475569; }
.prose-ai ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1em; color: #475569; }
.prose-ai li { margin-bottom: 0.5em; }
.prose-ai strong { color: #0C2440; font-weight: 600; }
