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

:root {
    /* Brand Colors */
    --primary-color: #0c8dd8;   /* Aqua Blue */
    --primary-dark: #075e8f;
    --primary-glow: rgba(12, 141, 216, 0.5);
    
    --secondary-color: #f7a00f; /* Cargo Orange */
    --secondary-glow: rgba(247, 160, 15, 0.4);

    --accent-color: #03e8a4;    /* Success Green */
    --accent-glow: rgba(3, 232, 164, 0.5);

    /* Neutral Colors - Dark Mode */
    --bg-main: #0a0e17;         /* Deep Navy Background */
    --bg-surface: #131b2c;      /* Surface Card Background */
    --bg-overlay: rgba(19, 27, 44, 0.8);

    --text-main: #ffffff;
    --text-muted: #9ba5b6;
    
    /* Layout */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-overlay);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

/* Inputs & Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo svg {
    height: 30px;
    width: 30px;
    fill: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-main);
}

/* Footer */
footer {
    background: var(--bg-surface);
    padding: 60px 0 20px;
    border-top: var(--glass-border);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* ─── Service Cards ─────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
    cursor: pointer;
}

.service-card.hovered {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(12,141,216,0.2);
}

.service-img-wrap {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.service-card.hovered .service-img-wrap img {
    transform: scale(1.07);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(10,14,23,0.85) 100%);
}

.service-info {
    padding: 24px 28px;
}

.service-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(12,141,216,0.1);
    border: 1px solid rgba(12,141,216,0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: gap 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    color: var(--accent-color);
    gap: 10px;
}

/* ─── Toast Notifications ────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-surface);
    border-left: 4px solid var(--primary-color);
    color: var(--text-main);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
}

/* Live Chat Widget */
.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: transform var(--transition-fast);
}

.chat-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 480px;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: var(--glass-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.3s ease;
}

.chat-window.active {
    display: flex;
}

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-dark), #0a1e35);
    border-bottom: var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-size: 1rem;
    margin: 0;
}

.chat-header .online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-right: 6px;
    animation: beaconPulse 2s infinite;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.chat-input-area {
    padding: 12px 15px;
    border-top: var(--glass-border);
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.2);
}

.chat-msg {
    max-width: 82%;
    padding: 10px 15px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.07);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--text-main);
}

.chat-msg.user {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 20px;
        border-bottom: var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .service-img-wrap {
        height: 180px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* ─── Shipment Document Styles (PDF Generation) ──────────────── */
.doc-render-container {
    background: white;
    color: #1a202c;
    font-family: 'Inter', sans-serif;
    font-size: 9pt;
    line-height: 1.3;
    width: 210mm;
    min-height: 297mm;
    padding: 15mm;
    margin: 0 auto;
    position: relative;
    box-shadow: none;
}

.doc-render-container * { box-sizing: border-box; }

.doc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; border-bottom: 3px solid #0c8dd8; padding-bottom: 10px; }
.doc-logo-area { display: flex; align-items: center; }
.doc-logo-icon { width: 40px; height: 40px; background: #0c8dd8; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 20px; margin-right: 10px; }
.doc-brand-name { font-size: 24px; font-weight: 700; color: #0c8dd8; }
.doc-contact-info { text-align: right; font-size: 10pt; color: #4a5568; }

.doc-title { text-align: center; font-size: 18pt; font-weight: 800; text-transform: uppercase; margin: 15px 0; letter-spacing: 2px; color: #1a202c; border-bottom: 2px solid #e2e8f0; padding-bottom: 5px; }

.doc-info-grid { width: 100%; border: 1px solid #cbd5e0; margin-bottom: 15px; display: table; table-layout: fixed; }
.doc-info-box { border: 0.5px solid #e2e8f0; padding: 8px; display: table-cell; vertical-align: top; background: white; }
.doc-label { font-size: 7pt; font-weight: 700; color: #718096; text-transform: uppercase; margin-bottom: 3px; display: block; }
.doc-value { font-size: 9pt; font-weight: 600; color: #1a202c; }

.doc-section-header { background: #edf2f7; padding: 6px 10px; font-weight: 700; font-size: 9pt; color: #2d3748; text-transform: uppercase; border: 1px solid #cbd5e0; }

.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; background: white; }
.doc-table th, .doc-table td { border: 1px solid #cbd5e0; padding: 8px; text-align: left; vertical-align: top; color: #1a202c; }
.doc-table th { background: #f7fafc; font-size: 7pt; font-weight: 700; color: #718096; text-transform: uppercase; }

.doc-footer { position: absolute; bottom: 15mm; left: 15mm; right: 15mm; border-top: 1px solid #e2e8f0; padding-top: 10px; font-size: 8pt; color: #a0aec0; }
.doc-footer-left { float: left; }
.doc-footer-right { float: right; }

.doc-notice-box { background: #fffaf0; border: 1px solid #feebc8; padding: 10px; border-radius: 4px; margin: 15px 0; text-align: center; }
.doc-notice-title { font-weight: 700; color: #c05621; margin-bottom: 5px; font-size: 8pt; }
.doc-notice-text { font-size: 8pt; color: #7b341e; line-height: 1.4; }

.doc-signatures { width: 100%; margin-top: 20px; display: table; table-layout: fixed; border-spacing: 10px 0; }
.doc-sig-box { display: table-cell; border: 1px solid #cbd5e0; padding: 10px; height: 80px; vertical-align: bottom; background: white; }
.doc-sig-label { border-top: 1px solid #e2e8f0; padding-top: 5px; font-size: 7pt; font-weight: 700; text-align: center; }

.doc-flex-row { display: flex; width: 100%; border: 1px solid #cbd5e0; background: white; }
.doc-flex-col { flex: 1; border-right: 1px solid #cbd5e0; background: white; }
.doc-flex-col:last-child { border-right: none; }

#doc-hidden-container {
    position: absolute;
    top: -20000px;
    left: 0;
    width: 210mm;
    z-index: -1000;
    overflow: hidden;
}

@media print {
    body * { visibility: hidden; }
    .doc-render-container, .doc-render-container * { visibility: visible; }
    .doc-render-container { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
}
