/* Critical CSS - Load first */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Dancing+Script:wght@600;700&display=swap');

.font-signature {
    font-family: 'Dancing Script', cursive;
}

.font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Hero headline – modern gradient accent */
.hero-title {
    font-family: 'Outfit', sans-serif;
}

.hero-title-accent {
    display: inline-block;
    background: linear-gradient(135deg, #fff 0%, #bfdbfe 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.02em;
    text-shadow: none;
}

.hero-title .hero-title-accent + span {
    color: rgba(255, 255, 255, 0.98);
}

/* Outline "Global" – thinner on mobile, balanced on desktop (legacy) */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.95);
    paint-order: stroke fill;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.2), 0 1px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .outline-text {
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.95);
    }
}

@media (min-width: 1024px) {
    .outline-text {
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.95);
    }
}

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {

    .no-print,
    nav,
    #scroll-top,
    button,
    .theme-toggle,
    .nav-cta,
    .slider-prev,
    .slider-next,
    .slide-indicator,
    footer {
        display: none !important;
    }

    body {
        color: #000 !important;
        background: #fff !important;
        font-size: 12pt !important;
    }

    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    h1,
    h2,
    h3,
    h4 {
        page-break-after: avoid;
    }
}

/* Scrolling Text Animation */
.scrolling-container {
    position: relative;
    height: 2rem;
    width: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.scrolling-text {
    font-family: 'Outfit', sans-serif;
    position: absolute;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #041a4aff;
    line-height: 1;
    opacity: 0;
    animation: scrollUp 8s infinite;
}

:root[data-theme="dark"] .scrolling-text {
    color: #cbd5ff;
}

.title-1 {
    animation-delay: 0s;
}

.title-2 {
    animation-delay: 2s;
}

.title-3 {
    animation-delay: 4s;
}

.title-4 {
    animation-delay: 6s;
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    10% {
        transform: translateY(0);
        opacity: 1;
    }

    20% {
        transform: translateY(0);
        opacity: 1;
    }

    25% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Responsive scrolling text */
@media (min-width: 640px) {
    .scrolling-container {
        height: 2.25rem;
        width: 180px;
    }

    .scrolling-text {
        font-size: 1rem;
        letter-spacing: 0.75px;
    }
}

@media (min-width: 1024px) {
    .scrolling-container {
        height: 2.5rem;
        width: 220px;
    }

    .scrolling-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* Carousel Animation */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    z-index: 10;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-bottom {
    animation: slideInBottom 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* UI variables and refinements */
:root {
    --brand-primary: #0f172a;
    --brand-accent: #2563eb;
    --text-strong: #0b162a;
    --muted: #64748b;
    --card-border: #e2e8f0;
    --card-surface: #ffffff;
    --page-bg: #f8fafc;
    --shadow-strong: 0 18px 50px rgba(15, 23, 42, 0.08);
    --radius-lg: 18px;
}

:root[data-theme="dark"] {
    --brand-primary: #60a5fa;
    --brand-accent: #3b82f6;
    --text-strong: #e2e8f0;
    --muted: #94a3b8;
    --card-border: #1f2a44;
    --card-surface: #0f172a;
    --page-bg: #0b1220;
    --shadow-strong: 0 18px 50px rgba(0, 0, 0, 0.6);
}

body {
    color: var(--text-strong);
    background: var(--page-bg);
}

/* Navigation */
.nav-shell {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.nav-shell.scrolled {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

:root[data-theme="dark"] .nav-shell {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(31, 41, 55, 0.9);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.38);
}

:root[data-theme="dark"] .nav-shell.scrolled {
    border-color: rgba(96, 165, 250, 0.35);
}

.mobile-panel {
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

:root[data-theme="dark"] .mobile-panel {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(96, 165, 250, 0.22);
}

:root[data-theme="dark"] #mobile-menu-btn,
:root[data-theme="dark"] #menu-icon {
    color: var(--text-strong);
}

.nav-link {
    position: relative;
    padding-bottom: 6px;
    font-weight: 600;
    color: #1f2937;
    transition: color .2s ease;
}

:root[data-theme="dark"] .nav-link {
    color: #e2e8f0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--brand-primary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.7);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.theme-toggle.is-dark {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(37, 99, 235, 0.16);
    color: #60a5fa;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle.compact {
    width: 36px;
    height: 36px;
    padding: 0;
}

.nav-cta {
    border-radius: 9999px;
    padding: 0.6rem 1.1rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    opacity: .98;
}

:root[data-theme="dark"] .nav-cta {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Minimal business shell */
.shell {
    position: relative;
    background: var(--card-surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.stat-card,
.about-card,
.about-metric {
    background: var(--card-surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.stat-card:hover,
.about-card:hover,
.about-metric:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .about-card,
:root[data-theme="dark"] .about-metric {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* About section polishing */
.about-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

:root[data-theme="dark"] .about-card {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    color: white;
    padding: .6rem 1.25rem;
    border-radius: .75rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(14, 30, 80, 0.14);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: .98;
}

.btn-primary:focus {
    outline: 3px solid rgba(59, 130, 246, 0.18);
    outline-offset: 3px;
}

:root[data-theme="dark"] .btn-primary {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.metric-icon {
    color: var(--brand-primary);
}

.about-metric {
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    padding: 1.25rem;
}

:root[data-theme="dark"] .about-metric {
    background: linear-gradient(180deg, #0f172a, #0c1324);
}

.metric-number {
    font-weight: 800;
    color: var(--text-strong);
}

/* Timeline visuals */
.timeline-node {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(14, 30, 80, 0.12);
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 24px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.12), rgba(59, 130, 246, 0.08));
    transform: translateX(-50%);
}

@media(max-width:768px) {
    .timeline-line {
        display: none;
    }
}

/* Gentle entrance */
.fade-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Minimal reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Section-level animation */
.section-animate {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}

.section-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Executive leadership micro-animations */
.lead-anim {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
    transition: opacity .55s ease, transform .55s ease;
}

.lead-anim.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 {
    transition-delay: .06s;
}

.delay-2 {
    transition-delay: .12s;
}

.delay-3 {
    transition-delay: .18s;
}

.lead-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .55s ease, transform .55s ease;
}

.lead-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .55s ease, transform .55s ease;
}

.lead-slide-right.in-view,
.lead-slide-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Softer hero overlay */
.carousel-overlay {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.35));
}

/* Tabs refinement */
.service-tab.active {
    color: var(--brand-primary);
    border-color: rgba(37, 99, 235, 0.65);
    background: rgba(37, 99, 235, 0.08);
}

/* Pulsing accent orb */
.stat-pulse {
    animation: pulseSlow 8s ease-in-out infinite;
}

@keyframes pulseSlow {

    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.9;
    }
}

/* Scroll-to-top control */
.scroll-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Smaller floating controls on small screens */
@media (max-width: 640px) {
    .scroll-top {
        right: 0.75rem;
        bottom: 4.25rem;
        /* lift above bottom CTA */
        width: 40px;
        height: 40px;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    }

    .scroll-top i {
        font-size: 0.85rem;
    }

    /* Compact mobile bottom CTA without affecting header CTA */
    .md\:hidden.fixed.inset-x-0.bottom-0.z-50 a.nav-cta {
        padding: 0.55rem 1rem;
        font-size: 0.95rem;
        border-radius: 14px;
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
    }

    .md\:hidden.fixed.inset-x-0.bottom-0.z-50 .pb-4 {
        padding-bottom: calc(env(safe-area-inset-bottom, 0) + 0.5rem);
    }
}

.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

:root[data-theme="dark"] .scroll-top {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(96, 165, 250, 0.28);
    color: #e2e8f0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

/* Dark mode overrides for common utility backgrounds */
:root[data-theme="dark"] .bg-white {
    background-color: #0f172a !important;
}

:root[data-theme="dark"] .bg-gray-50 {
    background-color: #0b1220 !important;
}

:root[data-theme="dark"] .bg-gray-100 {
    background-color: #0c1628 !important;
}

:root[data-theme="dark"] .bg-blue-50 {
    background-color: #0e1c2f !important;
}

:root[data-theme="dark"] .bg-blue-100 {
    background-color: #0f2540 !important;
}

:root[data-theme="dark"] .text-secondary {
    color: var(--text-strong) !important;
}

:root[data-theme="dark"] .text-gray-600,
:root[data-theme="dark"] .text-gray-500,
:root[data-theme="dark"] .text-gray-400 {
    color: var(--muted) !important;
}

:root[data-theme="dark"] .border-gray-200 {
    border-color: rgba(148, 163, 184, 0.25) !important;
}

:root[data-theme="dark"] .border-blue-200 {
    border-color: rgba(96, 165, 250, 0.3) !important;
}

:root[data-theme="dark"] #services {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

:root[data-theme="dark"] #services .service-tab {
    color: var(--muted);
    border-color: transparent;
    background: transparent;
}

:root[data-theme="dark"] #services .service-tab.active {
    color: var(--text-strong);
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(37, 99, 235, 0.14);
}

/* Contact dark mode */
:root[data-theme="dark"] #contact {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

:root[data-theme="dark"] #contact input,
:root[data-theme="dark"] #contact select,
:root[data-theme="dark"] #contact textarea {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.28);
    color: var(--text-strong);
}

:root[data-theme="dark"] #contact input::placeholder,
:root[data-theme="dark"] #contact select,
:root[data-theme="dark"] #contact textarea::placeholder {
    color: var(--muted);
}

:root[data-theme="dark"] #contact .bg-white {
    background-color: #0f172a !important;
}

:root[data-theme="dark"] #contact .shadow {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] #contact .text-secondary {
    color: var(--text-strong) !important;
}

/* Careers dark mode */
:root[data-theme="dark"] #careers {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

:root[data-theme="dark"] #careers .bg-gray-50,
:root[data-theme="dark"] #careers .bg-white {
    background-color: #0f172a !important;
}

:root[data-theme="dark"] #careers .border-gray-200 {
    border-color: rgba(148, 163, 184, 0.25) !important;
}

:root[data-theme="dark"] #careers .text-gray-600,
:root[data-theme="dark"] #careers .text-gray-500,
:root[data-theme="dark"] #careers .text-gray-400 {
    color: var(--muted) !important;
}

:root[data-theme="dark"] #careers .text-secondary {
    color: var(--text-strong) !important;
}

:root[data-theme="dark"] #careers .bg-blue-100 {
    background-color: #0f2540 !important;
}

:root[data-theme="dark"] #careers .bg-blue-50 {
    background-color: #0e1c2f !important;
}

:root[data-theme="dark"] #careers .shadow,
:root[data-theme="dark"] #careers .hover\\:shadow-lg:hover {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45) !important;
}

/* Branches section dark mode */
:root[data-theme="dark"] #branches {
    background: #0f172a !important;
}

:root[data-theme="dark"] #branches .text-secondary {
    color: var(--text-strong) !important;
}

:root[data-theme="dark"] #branches .text-gray-600,
:root[data-theme="dark"] #branches .text-gray-700 {
    color: var(--muted) !important;
}

/* Branch cards dark mode */
:root[data-theme="dark"] #branches>div>div>div>div {
    background: #0b1220 !important;
}

:root[data-theme="dark"] #branches .border-blue-200 {
    border-color: rgba(59, 130, 246, 0.4) !important;
}

:root[data-theme="dark"] #branches .border-orange-200 {
    border-color: rgba(249, 115, 22, 0.4) !important;
}

:root[data-theme="dark"] #branches .border-green-200 {
    border-color: rgba(34, 197, 94, 0.4) !important;
}

:root[data-theme="dark"] #branches .border-purple-200 {
    border-color: rgba(168, 85, 247, 0.4) !important;
}

:root[data-theme="dark"] #branches .border-red-200 {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

:root[data-theme="dark"] #branches .border-cyan-200 {
    border-color: rgba(6, 182, 212, 0.4) !important;
}

/* Branch cards gradient dark mode */
:root[data-theme="dark"] #branches .from-blue-50.to-white,
:root[data-theme="dark"] #branches .from-orange-50.to-white,
:root[data-theme="dark"] #branches .from-green-50.to-white,
:root[data-theme="dark"] #branches .from-purple-50.to-white,
:root[data-theme="dark"] #branches .from-red-50.to-white,
:root[data-theme="dark"] #branches .from-cyan-50.to-white {
    background: #0b1220 !important;
}

:root[data-theme="dark"] #branches .shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

:root[data-theme="dark"] #branches .hover\\:shadow-md:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
}

/* Leaflet map in dark mode */
:root[data-theme="dark"] #branches-map {
    filter: brightness(0.9) contrast(1.1);
}

/* Map container dark mode */
:root[data-theme="dark"] #branches>div>div>div:nth-child(2) {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Contact note dark mode */
:root[data-theme="dark"] #branches .bg-blue-50 {
    background-color: #0e1c2f !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

:root[data-theme="dark"] #careers .bg-gradient-to-r.from-blue-50.to-blue-100 {
    background: linear-gradient(90deg, #0f172a, #0c1628) !important;
}

/* Tracking dark mode */
:root[data-theme="dark"] #tracking {
    background: linear-gradient(135deg, #0f172a, #111c30);
    color: var(--text-strong);
}

:root[data-theme="dark"] #tracking .text-blue-100 {
    color: var(--muted) !important;
}

:root[data-theme="dark"] #tracking .bg-white {
    background-color: #0f172a !important;
}

:root[data-theme="dark"] #tracking input {
    background: #0b1220;
    color: var(--text-strong);
}

:root[data-theme="dark"] #tracking input::placeholder {
    color: var(--muted);
}

:root[data-theme="dark"] #tracking button {
    background: var(--brand-primary);
}

/* Executive Leadership dark mode */
:root[data-theme="dark"] #about .bg-gradient-to-r.from-primary.to-accent {
    background: linear-gradient(135deg, #0f172a 0%, #0c1628 100%) !important;
}

:root[data-theme="dark"] #about .text-blue-100 {
    color: var(--muted) !important;
}

:root[data-theme="dark"] #about .shadow-lg,
:root[data-theme="dark"] #about .hover\\:shadow-xl:hover {
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48) !important;
}

/* Accreditations & Memberships dark mode */
:root[data-theme="dark"] #about .bg-gradient-to-br.from-blue-50.to-white {
    background: linear-gradient(135deg, #0f172a 0%, #0c1628 100%) !important;
}

:root[data-theme="dark"] #about .border-blue-100\/50 {
    border-color: rgba(96, 165, 250, 0.2) !important;
}

:root[data-theme="dark"] #about .bg-blue-100 {
    background-color: rgba(96, 165, 250, 0.15) !important;
}

:root[data-theme="dark"] #about .text-primary {
    color: #60a5fa !important;
}

/* Director's Message dark mode */
:root[data-theme="dark"] #about .bg-gradient-to-br.from-amber-50.via-blue-50.to-white {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
}

:root[data-theme="dark"] #about .border-amber-100\/50 {
    border-color: rgba(96, 165, 250, 0.2) !important;
}

:root[data-theme="dark"] #about .bg-gradient-to-tl.from-blue-100\/30 {
    background: linear-gradient(to top left, rgba(96, 165, 250, 0.1), transparent) !important;
}

:root[data-theme="dark"] #about .text-gray-700 {
    color: #cbd5e1 !important;
}

:root[data-theme="dark"] #about .font-signature {
    color: #60a5fa !important;
}

:root[data-theme="dark"] #about .border-gray-200 {
    border-color: rgba(148, 163, 184, 0.25) !important;
}

/* Home/Hero dark mode */

:root[data-theme="dark"] #home {
    background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.15), transparent 32%), #0b1220;
}

:root[data-theme="dark"] #home .carousel-overlay {
    background: linear-gradient(160deg, rgba(6, 11, 20, 0.9), rgba(11, 18, 32, 0.65));
}

:root[data-theme="dark"] #home .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

:root[data-theme="dark"] #home .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

:root[data-theme="dark"] #home .bg-white {
    background-color: #0f172a !important;
    color: var(--text-strong);
}

:root[data-theme="dark"] #home .text-blue-100 {
    color: var(--muted) !important;
}

:root[data-theme="dark"] #home .slide-indicator {
    background: rgba(255, 255, 255, 0.45);
}

:root[data-theme="dark"] #home .slider-prev,
:root[data-theme="dark"] #home .slider-next {
    background: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] #home .slider-prev:hover,
:root[data-theme="dark"] #home .slider-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] #home .shadow-2xl {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55) !important;
}

/* Stats dark mode */
:root[data-theme="dark"] #stats {
    background: linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
}

:root[data-theme="dark"] #stats .bg-white\/80 {
    background-color: rgba(15, 23, 42, 0.7) !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
    color: var(--text-strong);
}

:root[data-theme="dark"] #stats .stat-pulse {
    background-color: rgba(96, 165, 250, 0.18);
}

:root[data-theme="dark"] #stats .text-secondary {
    color: var(--text-strong) !important;
}

:root[data-theme="dark"] #stats .text-gray-500 {
    color: var(--muted) !important;
}

/* -------------------------------------------------------------------------- */
/* Restored Animations from index3.html                                       */
/* -------------------------------------------------------------------------- */

/* Gentle entrance */
.fade-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Minimal reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Section-level animation */
.section-animate {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}

.section-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Executive leadership micro-animations */
.lead-anim {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
    transition: opacity .55s ease, transform .55s ease;
}

.lead-anim.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 {
    transition-delay: .06s;
}

.delay-2 {
    transition-delay: .12s;
}

.delay-3 {
    transition-delay: .18s;
}

.lead-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .55s ease, transform .55s ease;
}

.lead-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .55s ease, transform .55s ease;
}

.lead-slide-right.in-view,
.lead-slide-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Pulsing accent orb for stats */
.stat-pulse {
    animation: pulseSlow 8s ease-in-out infinite;
}

@keyframes pulseSlow {

    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.9;
    }
}

/* ========================================================================== */
/* TIMELINE ANIMATIONS - Our Journey & Legacy Section                        */
/* ========================================================================== */

/* Timeline Progress Line */
.timeline-progress {
    background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%);
    transition: height 0.3s ease-out;
    z-index: 5;
}

:root[data-theme="dark"] .timeline-progress {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}

/* Timeline Icon Wrapper */
.timeline-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
}

/* Timeline Icon Background */
.timeline-icon-bg {
    position: relative;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.timeline-icon {
    font-size: 1.5rem;
    color: #2563eb;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Featured Milestone (2000 - MSA Shipping Born) */
.timeline-icon-featured {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #1e40af;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.timeline-icon-featured .timeline-icon {
    color: #ffffff;
    font-size: 2rem;
}

/* Future Milestone */
.timeline-icon-future {
    border-style: dashed;
    border-color: #93c5fd;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.timeline-icon-future .timeline-icon {
    color: #3b82f6;
}

/* Dark Mode Timeline Icons */
:root[data-theme="dark"] .timeline-icon-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #60a5fa;
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

:root[data-theme="dark"] .timeline-icon {
    color: #60a5fa;
}

:root[data-theme="dark"] .timeline-icon-featured {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-color: #60a5fa;
    box-shadow: 0 12px 30px rgba(96, 165, 250, 0.5);
}

:root[data-theme="dark"] .timeline-icon-future {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #60a5fa;
}

/* Pulsing Ring Animation */
.timeline-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border: 3px solid #2563eb;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 1;
}

.timeline-pulse-featured {
    width: 72px;
    height: 72px;
    border-width: 4px;
    border-color: #3b82f6;
}

.timeline-pulse-future {
    border-style: dashed;
    border-color: #93c5fd;
}

:root[data-theme="dark"] .timeline-pulse-ring {
    border-color: #60a5fa;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* Icon Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Timeline Content Animations */
.timeline-content-left,
.timeline-content-right,
.timeline-content-mobile {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content-left {
    transform: translateX(-40px);
}

.timeline-content-right {
    transform: translateX(40px);
}

.timeline-content-mobile {
    transform: translateY(20px);
}

.timeline-item.in-view .timeline-content-left,
.timeline-item.in-view .timeline-content-right,
.timeline-item.in-view .timeline-content-mobile {
    opacity: 1;
    transform: translate(0, 0);
}

/* Milestone Hover Effects */
.timeline-item:hover .timeline-icon-bg {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.15);
}

:root[data-theme="dark"] .timeline-item:hover .timeline-icon-bg {
    box-shadow: 0 12px 30px rgba(96, 165, 250, 0.45);
}

/* Featured Milestone Hover */
.timeline-featured:hover .timeline-icon-featured {
    transform: scale(1.15);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5);
}

:root[data-theme="dark"] .timeline-featured:hover .timeline-icon-featured {
    box-shadow: 0 16px 40px rgba(96, 165, 250, 0.6);
}

/* Staggered Animation Delays */
.timeline-item:nth-child(1) .timeline-content-left,
.timeline-item:nth-child(1) .timeline-content-right,
.timeline-item:nth-child(1) .timeline-content-mobile {
    transition-delay: 0ms;
}

.timeline-item:nth-child(2) .timeline-content-left,
.timeline-item:nth-child(2) .timeline-content-right,
.timeline-item:nth-child(2) .timeline-content-mobile {
    transition-delay: 100ms;
}

.timeline-item:nth-child(3) .timeline-content-left,
.timeline-item:nth-child(3) .timeline-content-right,
.timeline-item:nth-child(3) .timeline-content-mobile {
    transition-delay: 200ms;
}

.timeline-item:nth-child(4) .timeline-content-left,
.timeline-item:nth-child(4) .timeline-content-right,
.timeline-item:nth-child(4) .timeline-content-mobile {
    transition-delay: 300ms;
}

.timeline-item:nth-child(5) .timeline-content-left,
.timeline-item:nth-child(5) .timeline-content-right,
.timeline-item:nth-child(5) .timeline-content-mobile {
    transition-delay: 400ms;
}

.timeline-item:nth-child(6) .timeline-content-left,
.timeline-item:nth-child(6) .timeline-content-right,
.timeline-item:nth-child(6) .timeline-content-mobile {
    transition-delay: 500ms;
}

.timeline-item:nth-child(7) .timeline-content-left,
.timeline-item:nth-child(7) .timeline-content-right,
.timeline-item:nth-child(7) .timeline-content-mobile {
    transition-delay: 600ms;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .timeline-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .timeline-icon-bg {
        width: 48px;
        height: 48px;
    }

    .timeline-icon {
        font-size: 1.25rem;
    }

    .timeline-icon-featured {
        width: 60px;
        height: 60px;
    }

    .timeline-icon-featured .timeline-icon {
        font-size: 1.75rem;
    }

    .timeline-pulse-ring {
        width: 48px;
        height: 48px;
    }

    .timeline-pulse-featured {
        width: 60px;
        height: 60px;
    }
}

/* Table Styling Enhancements */
table {
    border-collapse: collapse;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Form Input Enhancements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Label Styling */
label {
    display: block;
    font-weight: 600;
    color: #0f172a;
}

.dark label {
    color: #f1f5f9;
}

/* Button Enhancements */
button[type="submit"] {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

button[type="submit"]:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Professional Cards */
.card {
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .timeline-progress,
    .timeline-icon,
    .timeline-content-left,
    .timeline-content-right,
    .timeline-content-mobile {
        animation: none;
        transition: none;
    }

    .timeline-pulse-ring {
        display: none;
    }

    input,
    textarea,
    select,
    button,
    .card {
        transition: none !important;
    }
}

/* Local Tariffs - Dark Mode */
:root[data-theme="dark"] #local-tariffs {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

:root[data-theme="dark"] #local-tariffs .bg-gray-100 {
    background-color: #0f172a !important;
}

:root[data-theme="dark"] #local-tariffs .bg-white {
    background-color: #0f172a !important;
}

:root[data-theme="dark"] #local-tariffs .bg-blue-50 {
    background-color: #0e1c2f !important;
}

:root[data-theme="dark"] #local-tariffs .bg-yellow-50 {
    background-color: #0f1a20 !important;
}

/* Table Dark Mode */
:root[data-theme="dark"] #local-tariffs table tbody tr {
    border-color: rgba(148, 163, 184, 0.2) !important;
}

:root[data-theme="dark"] #local-tariffs table tbody tr:hover {
    background-color: rgba(96, 165, 250, 0.08) !important;
}

:root[data-theme="dark"] #local-tariffs table td {
    color: var(--text-strong) !important;
}

:root[data-theme="dark"] #local-tariffs .text-gray-800,
:root[data-theme="dark"] #local-tariffs .text-gray-700 {
    color: var(--text-strong) !important;
}

:root[data-theme="dark"] #local-tariffs table thead tr {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.2), rgba(59, 130, 246, 0.2)) !important;
}

:root[data-theme="dark"] #local-tariffs table thead tr.bg-primary {
    background: rgba(96, 165, 250, 0.25) !important;
}

:root[data-theme="dark"] #local-tariffs table thead tr.bg-accent {
    background: rgba(96, 165, 250, 0.3) !important;
}

:root[data-theme="dark"] #local-tariffs table thead th {
    color: var(--text-strong) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Border Colors */
:root[data-theme="dark"] #local-tariffs .border-gray-100,
:root[data-theme="dark"] #local-tariffs .border-gray-200 {
    border-color: rgba(148, 163, 184, 0.25) !important;
}

:root[data-theme="dark"] #local-tariffs .border-b-2.border-primary {
    border-color: rgba(96, 165, 250, 0.5) !important;
}

/* Dropdown/Select Dark Mode */
:root[data-theme="dark"] #destination-select {
    background-color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    color: var(--text-strong) !important;
}

:root[data-theme="dark"] #destination-select option {
    background-color: #0f172a;
    color: var(--text-strong);
}

/* Info/Alert Boxes */
:root[data-theme="dark"] #local-tariffs .bg-blue-50.rounded-lg,
:root[data-theme="dark"] #local-tariffs .bg-yellow-50.rounded-lg {
    background-color: rgba(96, 165, 250, 0.1) !important;
}

:root[data-theme="dark"] #local-tariffs .border-l-4.border-primary {
    border-color: rgba(96, 165, 250, 0.6) !important;
}

:root[data-theme="dark"] #local-tariffs .border-l-4.border-yellow-400 {
    border-color: rgba(234, 179, 8, 0.5) !important;
}

/* Text in info boxes */
:root[data-theme="dark"] #local-tariffs .bg-blue-50 .text-gray-700,
:root[data-theme="dark"] #local-tariffs .bg-yellow-50 .text-gray-700 {
    color: var(--text-strong) !important;
}

/* Clients Auto-Scrolling Container */
.clients-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-scroll-container {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    animation: scroll-clients 45s linear infinite;
    width: fit-content;
    will-change: transform;
}

.clients-scroll-item {
    flex: 0 0 auto;
    width: 192px;
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clients-scroll-item:hover {
    opacity: 1;
    transform: scale(1.08);
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move by exactly half (since content is duplicated) */
        transform: translateX(calc(-50% - 0.5rem));
    }
}

@keyframes scroll-clients-reverse {
    0% {
        transform: translateX(calc(-50% - 0.5rem));
    }

    100% {
        transform: translateX(0);
    }
}

/* Pause animation on hover */
.clients-scroll-wrapper:hover .clients-scroll-container {
    animation-play-state: paused;
}

.clients-scroll-container-reverse {
    animation: scroll-clients-reverse 45s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .clients-section-title {
        font-size: 1.25rem !important;
        /* text-xl */
        margin-bottom: 1.25rem !important;
    }

    .clients-badge {
        font-size: 10px !important;
        padding: 0.15rem 0.5rem !important;
        margin-left: 0.5rem !important;
    }
}

@media (max-width: 640px) {
    .clients-section-title {
        font-size: 1.125rem !important;
        /* text-lg */
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .clients-scroll-item {
        width: 140px;
        /* Slightly smaller for mobile but wider than 120px */
        min-width: 140px;
    }

    .clients-scroll-container {
        animation-duration: 30s !important;
        /* Faster for mobile */
        gap: 0.75rem;
    }

    /* Affiliations grid padding */
    .affiliations-grid {
        gap: 0.75rem !important;
    }

    .affiliations-item {
        height: 5rem !important;
        /* h-20 instead of h-24 */
        padding: 0.75rem !important;
    }
}

/* Leadership Philosophy Icon Animations */
.animate-heritage {
    display: inline-block;
    animation: heritage-spin 10s linear infinite;
}

@keyframes heritage-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-innovation {
    display: inline-block;
    animation: innovation-glow 3s ease-in-out infinite;
}

@keyframes innovation-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
        transform: scale(1.1);
        opacity: 1;
    }
}

.animate-partnership {
    display: inline-block;
    animation: partnership-shake 4s ease-in-out infinite;
}

@keyframes partnership-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}