/* Emsal Global Logistics Custom Styles */

:root {
    --primary-color: #00193c;
    --secondary-color: #002d62;
    --accent-color: #abc7ff;
    --surface-color: #f8f9fa;
    --text-on-surface: #191c1d;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--text-on-surface);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.25rem; font-weight: 800; }
h3 { font-size: 1.875rem; font-weight: 800; }
h4 { font-size: 1.5rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }    /* 16px */
h6 { font-size: 0.875rem; font-weight: 600; } /* 14px */

/* Header Styling */
header {
    background: white;
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Premium Button Transitions */
.btn-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-premium:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-premium:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Slider Animations */
.slide-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Bento Grid Hover Effects */
.bento-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* FAQ Styles */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.active-faq .faq-content {
    opacity: 1;
}
/* Footer Refinements */
footer a {
    text-decoration: none !important;
    font-size: 0.875rem; /* 14px */
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Counter Style */
.counter {
    font-variant-numeric: tabular-nums;
}

.active-faq span.material-symbols-outlined {
    transform: rotate(180deg);
}

span.material-symbols-outlined {
    transition: transform 0.3s ease;
}

/* Footer Social Icon Hover Fix */
footer a.rounded-full:hover i {
    color: #ffffff !important;
}

footer a.rounded-full i {
    transition: color 0.3s ease;
}

/* Sidebar Refinement */
.sidebar-link {
    font-size: 0.9375rem; /* 15px */
    border-radius: 12px !important;
}

.sidebar-container {
    border-radius: 20px !important;
    overflow: hidden;
}
/* Typography for Information Pages */
.prose {
    color: #475569 !important; /* text-slate-600 */
    line-height: 1.8 !important;
    text-align: justify !important;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #002D62 !important;
    font-weight: 900 !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.3 !important;
    display: block !important;
}

.prose h1 { font-size: 2.25rem !important; }
.prose h2 { font-size: 1.875rem !important; border-bottom: 2px solid #f1f5f9 !important; padding-bottom: 0.5rem !important; }
.prose h3 { font-size: 1.5rem !important; }
.prose h4 { font-size: 1.25rem !important; }

.prose p {
    margin-bottom: 1.5rem !important;
    line-height: 1.8 !important;
    display: block !important;
}

.prose ul, .prose ol {
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
    padding-left: 1.5rem !important;
    list-style-type: none !important;
}

.prose li {
    margin-bottom: 0.75rem !important;
    position: relative !important;
    line-height: 1.6 !important;
}

.prose ul li::before {
    content: "•";
    color: #002D62 !important;
    font-weight: bold !important;
    position: absolute !important;
    left: -1.25rem !important;
}

.prose strong {
    color: #002D62 !important;
    font-weight: 700 !important;
}

/* Fix for nested elements from Admin Editor */
.prose * {
    font-family: 'Inter', sans-serif !important;
}

/* Logo Background Animation */
#bg-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
    overflow: hidden;
}

.floating-emblem {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    animation: float-around linear infinite;
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: var(--max-opacity);
    }
    90% {
        opacity: var(--max-opacity);
    }
    100% {
        transform: translate(var(--move-x), var(--move-y)) rotate(var(--rotation)) scale(var(--scale));
        opacity: 0;
    }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00193c 0%, #002d62 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader-logo {
    width: 180px;
    height: auto;
    z-index: 2;
    animation: preloader-logo-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


@keyframes preloader-logo-in {
    0% { transform: translateX(100%) scale(0.8); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

.preloader-exit {
    transform: translateX(-100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
}

/* Page content animation when preloader exits */
.page-content {
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1), opacity 1s ease;
}

body.preloader-done .page-content {
    opacity: 1;
}

body:not(.preloader-done) .page-content {
    opacity: 0;
}
