/* 
==================================================
   Arbuda Logistics - Premium Styling
================================================== 
*/

/* --- CSS Variables & Tokens --- */
:root {
    --primary-color: #0B3C6F;       /* Navy Blue */
    --primary-dark: #07284B;
    --primary-light: #135A9C;
    --secondary-color: #F7941D;     /* Orange */
    --secondary-dark: #D47B11;
    --accent-color: #00AEEF;        /* Light Blue */
    
    --text-dark: #2B3035;
    --text-muted: #6C757D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 1rem 3rem rgba(11, 60, 111, 0.15);
    --shadow-hover: 0 1.5rem 3.5rem rgba(11, 60, 111, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
}

/* --- Global Styles --- */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

.text-primary { color: var(--primary-color) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

.bg-light { background-color: var(--bg-light) !important; }

.section-padding {
    padding: 80px 0;
}
@media (min-width: 992px) {
    .section-padding { padding: 100px 0; }
}

.transition { transition: var(--transition); }

.tracking-wide { letter-spacing: 2px; }

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-light);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- Buttons --- */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 60, 111, 0.3);
}
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 148, 29, 0.3);
}
.glass-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}
.glass-btn:hover {
    background: var(--white);
    color: var(--primary-color) !important;
}
.hover-primary:hover { color: var(--primary-color) !important; }

/* --- Header & Navigation --- */
#header {
    background: transparent;
    transition: var(--transition);
    padding: 15px 0;
}
#header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}
#header.header-scrolled .nav-link { color: var(--text-dark); }
#header.header-scrolled .navbar-brand span { color: var(--primary-dark) !important; }

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    font-family: var(--font-heading);
    margin: 0 8px;
    position: relative;
    transition: var(--transition);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 100%; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--secondary-color) !important; }

#header.header-scrolled .nav-link:hover,
#header.header-scrolled .nav-link.active { color: var(--primary-color) !important; }

@media (max-width: 991px) {
    #header { background: var(--white); padding: 10px 0;}
    .navbar-nav .nav-link { color: var(--text-dark); }
    .navbar-brand span { color: var(--primary-dark) !important; }
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(4, 20, 35, 0.92), rgba(0, 10, 20, 0.98)), url('https://images.unsplash.com/photo-1573164713988-8665fc963095?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-parallax;
    z-index: 0;
}
.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.hero-content p.lead {
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
    color: var(--white) !important;
}
.hero-content .text-secondary {
    color: #ffb74d !important; /* Lighter, brighter orange for maximum contrast */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-main-img {
    height: 500px;
    width: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: morph 8s ease-in-out infinite;
    border: 5px solid rgba(255, 255, 255, 0.2);
}
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: absolute;
    animation: float 4s ease-in-out infinite;
}
.card-1 { top: 10%; left: -10%; animation-delay: 0s; }
.card-2 { bottom: 15%; right: -5%; animation-delay: 2s; }
.icon-box { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Services Section --- */
.hover-shadow { transition: var(--transition); }
.hover-shadow:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover) !important;
}
.service-card { border: 1px solid rgba(0,0,0,0.03); }
.service-card .icon-wrapper {
    width: 70px; height: 70px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.service-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
}
.service-card:hover .icon-wrapper i { color: var(--white) !important; }
.service-card .read-more i { transition: transform 0.3s; }
.service-card:hover .read-more i { transform: translateX(5px); }

/* --- Why Choose Us --- */
.blob-bg {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background: linear-gradient(45deg, var(--primary-light), var(--accent-color));
    opacity: 0.1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
}
.feature-list li i {
    width: 40px; height: 40px;
    background: rgba(247, 148, 29, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* --- Statistics --- */
.statistics-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+PGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9zdmc+') repeat;
}
.stat-item { padding: 20px; transition: var(--transition); }
.stat-item:hover { transform: scale(1.05); }

/* --- About --- */
.accordion-button:not(.collapsed) {
    background-color: rgba(11, 60, 111, 0.05);
    color: var(--primary-color);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: rgba(0,0,0,0.1); }

/* --- Industries --- */
.industry-card {
    background: var(--white);
    border-color: rgba(0,0,0,0.05) !important;
}
.industry-card:hover {
    background: var(--primary-color);
    color: var(--white);
}
.industry-card:hover i, .industry-card:hover h5 { color: var(--white) !important; }

/* --- Timeline --- */
.timeline-line {
    position: absolute;
    top: 50%; left: 10%; right: 10%;
    height: 2px;
    background: rgba(11, 60, 111, 0.1);
    transform: translateY(-50%);
    z-index: 1;
}
@media (max-width: 991px) {
    .timeline-line { display: none; }
}
.timeline-icon {
    width: 80px; height: 80px;
}
.timeline-item:hover .timeline-icon {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

/* --- Fleet Swiper --- */
.fleet-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}
.fleet-overlay { z-index: 2; }
.fleet-card img { transition: transform 0.5s; }
.fleet-card:hover img { transform: scale(1.1); }
.swiper-pagination-bullet-active { background: var(--secondary-color) !important; }

/* --- Testimonials --- */
.swiper-btn-prev, .swiper-btn-next {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
}

/* --- Call to Action --- */
.cta-section {
    background: var(--primary-color);
}
.cta-bg {
    background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

/* --- Blog / News --- */
.blog-card .blog-img { height: 250px; object-fit: cover; }
.blog-card:hover .blog-img { transform: scale(1.05); }

/* --- Footer --- */
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}
