/* =====================================================================
   Winasia Maritime - Modern Tailwind Custom Styling System
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #1a1bb5;
    --primary-navy: #0c1832;
    --primary-ocean: #0284c7;
    --primary-teal: #14768a;
    --accent-green: #2ecc71;
    --accent-emerald: #10b981;
    --bg-slate: #f8fafc;
}

*,
::before,
::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #334155;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Base Headings & Paragraphs */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0;
}

p {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    line-height: 1.75;
    color: #475569;
}

/* Dark section text contrast fixes */
.text-white p,
.text-slate-100 p,
.text-slate-200 p,
.text-slate-300 p,
.banner_area p,
.main_slider_area p,
.footer_area p,
[class*="bg-navy"] p,
[class*="bg-slate-900"] p,
[class*="bg-slate-950"] p,
[class*="from-navy"] p {
    color: inherit;
}

/* =====================================================================
   Preloader (Homepage Only) - Sober & Clean Minimalist
   ===================================================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.loader.loader-fadeout {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.loader-logo-wrap {
    animation: soberLogoFade 2s ease-in-out infinite;
}

.loader-line-track {
    width: 140px;
    height: 2.5px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-top: 24px;
}

.loader-line-fill {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #1a1bb5, #2ecc71);
    border-radius: 999px;
    animation: soberProgress 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes soberLogoFade {

    0%,
    100% {
        opacity: 0.85;
        transform: scale(0.99);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes soberProgress {
    0% {
        left: -40%;
        width: 30%;
    }

    50% {
        left: 30%;
        width: 50%;
    }

    100% {
        left: 100%;
        width: 30%;
    }
}



/* =====================================================================
   Glassmorphism & Elevation
   ===================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
    background: rgba(12, 24, 50, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modern-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -5px rgba(26, 27, 181, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    border-color: #c7d2fe;
}

/* Gradient Text Utilities */
.text-gradient-maritime {
    background: linear-gradient(135deg, #1a1bb5 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Badges */
.badge-pill-maritime {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(26, 27, 181, 0.08);
    color: #1a1bb5;
    border: 1px solid rgba(26, 27, 181, 0.18);
}

.badge-pill-teal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(20, 118, 138, 0.1);
    color: #14768a;
    border: 1px solid rgba(20, 118, 138, 0.25);
}

.badge-pill-green {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(46, 204, 113, 0.12);
    color: #15803d;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Modern Buttons */
.btn-modern-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #1a1bb5 0%, #2563eb 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: none;
    box-shadow: 0 6px 20px rgba(26, 27, 181, 0.3);
    transition: all 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 27, 181, 0.45);
    background: linear-gradient(135deg, #14158f 0%, #1d4ed8 100%);
    color: #ffffff !important;
}

.btn-modern-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2ecc71 0%, #10b981 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-modern-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.45);
    color: #ffffff !important;
}

.btn-modern-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    background: transparent;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-modern-outline:hover {
    background: #ffffff;
    color: #0c1832 !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Page Section Headers */
.section-header-modern {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.section-header-modern .sub-title {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1bb5;
    background: rgba(26, 27, 181, 0.08);
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.section-header-modern .main-heading {
    font-size: 2.35rem;
    font-weight: 800;
    color: #0c1832;
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-header-modern .lead-text {
    font-size: 1.05rem;
    color: #64748b !important;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .section-header-modern .main-heading {
        font-size: 1.75rem;
    }
}

/* =====================================================================
   Layout Grid & Utility Compatibility (Zero-Bootstrap Standalone)
   ===================================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-md-12,
.col-md-8,
.col-md-7,
.col-md-6,
.col-md-5,
.col-md-4,
.col-md-3,
.col-sm-12,
.col-sm-6 {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .col-sm-6 {
        width: 50%;
    }

    .col-sm-12 {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333333%;
    }

    .col-md-5 {
        width: 41.666667%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-7 {
        width: 58.333333%;
    }

    .col-md-8 {
        width: 66.666667%;
    }

    .col-md-12 {
        width: 100%;
    }
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Modern Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: none;
}

.form-control:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
    height: auto;
    min-height: 110px;
}

/* WhatsApp Floating Pulse */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* =====================================================================
   Smart Reveal Header (Reveal on Scroll Up)
   ===================================================================== */
#siteNavbar {
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease;
    will-change: transform;
}

#siteNavbar.nav-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 50 !important;
    box-shadow: 0 10px 25px -5px rgba(12, 24, 50, 0.1), 0 8px 10px -6px rgba(12, 24, 50, 0.05);
}

#siteNavbar.nav-hidden {
    transform: translateY(-100%) !important;
}

#siteNavbar.nav-revealed {
    transform: translateY(0) !important;
}

#navbarSpacer {
    display: none;
    height: 80px;
    width: 100%;
}

#navbarSpacer.active {
    display: block !important;
}