/* --- Modern Variables --- */
:root {
    --brand-red: #e31837;
    --dark-custom: #0f1014;
    --light-custom: #f5f5f7;
    --body-text: #4a4a4a;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--body-text);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Headings Font Override */
.font-heading {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.5px;
}
.brand-red { color: var(--brand-red); }
.bg-dark-custom { background-color: var(--dark-custom); }
.bg-light-custom { background-color: var(--light-custom); }
.tracking-wide { letter-spacing: 2px; }

/* --- Glassmorphic Navbar --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    padding: 15px 0;
}
.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 10px 0;
}
.navbar-nav .nav-link {
    color: var(--dark-custom);
    position: relative; text-transform: uppercase;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--brand-red);
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after { width: 100%; }

/* --- Modern Buttons --- */
.btn-modern {
    background: var(--dark-custom); color: white;
    padding: 12px 24px; border-radius: 0px; /* Sharp corners for corporate look */
    font-weight: 500; border: 1px solid var(--dark-custom);
    transition: all 0.3s;
}
.btn-modern:hover {
    background: var(--brand-red); border-color: var(--brand-red); color: white;
}
.btn-modern-solid {
    background: var(--brand-red); color: white; border-radius: 0;
    font-weight: 500; transition: all 0.3s;
}
.btn-modern-solid:hover {
    background: white; color: var(--brand-red);
}
.btn-modern-outline {
    border: 1px solid white; color: white; border-radius: 0; transition: 0.3s;
}
.btn-modern-outline:hover {
    background: white; color: var(--dark-custom);
}

/* --- Hero Section --- */
.hero-modern {
    height:50vh;
    background-size: cover; background-position: center;
    position: relative;
}
.hero-gradient-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,16,20,0.9) 0%, rgba(15,16,20,0.4) 60%, rgba(0,0,0,0) 100%);
}

/* --- Overlapping Layouts --- */
.image-offset-wrapper { position: relative; }
.modern-img-shadow { box-shadow: -20px 20px 0px rgba(227, 24, 55, 0.1); }
.glass-stat-box {
    position: absolute; bottom: -30px; right: -30px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0; min-width: 200px; text-align: center;
}

/* --- Swiper Modern Cards --- */
.modern-card { border: none; overflow: hidden; }
.card-img-wrapper { overflow: hidden; }
.modern-card img {
    height: auto; width: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modern-card:hover img { transform: scale(1.08); }
.card-body-modern {
    transform: translateY(-20px); width: 90%; margin: 0 auto;
    position: relative; z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.btn-nav { background: white; border-radius: 50%; width: 50px; height: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.btn-nav:hover { background: var(--brand-red); color: white; }

/* --- Service Cards (Hover Effects) --- */
.service-card {
    background: var(--light-custom); border: 1px solid transparent;
    transition: all 0.4s ease; cursor: pointer;
}
.service-card::before {
    content: ''; position: absolute; inset: 0;
    background: var(--brand-red); transform: scaleY(0); transform-origin: bottom;
    transition: transform 0.4s ease; z-index: 1;
}
.service-card:hover { border-color: var(--brand-red); }
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover h4, .service-card:hover p, .service-card:hover .icon-circle { color: white !important; }
.icon-circle i { font-size: 2rem; color: var(--brand-red); transition: color 0.4s ease; }

/* --- Footer --- */
.footer-links a { color: #888; text-decoration: none; transition: 0.3s; display: block; margin-bottom: 8px;}
.footer-links a:hover { color: white; padding-left: 5px; }
.social-links a { color: #888; text-decoration: none; transition: 0.3s; }
.social-links a:hover { color: var(--brand-red); }

/* --- Hero Swiper Tweaks --- */
/* Change this: */
.hero-wrapper {
    height: 80vh;
    min-height: 650px;
}

/* To this: */
.hero-wrapper {
    width: 100%;
}
.hero-slide {
    width: 100%;
    /* Use an aspect ratio so it scales perfectly on all devices. 
       16/9 is standard widescreen. */
    aspect-ratio: 16 / 6; 
    background-size: cover;
    background-position: center;
}
/* --- Testimonials Styling --- */
.testimonialSwiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.3;
}
.testimonialSwiper .swiper-pagination-bullet-active {
    background: var(--brand-red);
    opacity: 1;
}
.testimonial-pagination {
    text-align: left !important;
}

/* --- Modern Form Inputs --- */
.modern-form-box {
    border-radius: 0; /* Sharp corners */
}
.modern-input {
    border: none;
    border-bottom: 2px solid #e9ecef;
    border-radius: 0;
    padding: 12px 0;
    background: transparent !important;
    font-size: 1rem;
    color: var(--dark-custom);
    transition: all 0.3s ease;
    box-shadow: none !important; /* Remove bootstrap default blue glow */
}
.modern-input:focus {
    border-bottom-color: var(--brand-red);
}
.modern-input::placeholder {
    color: #adb5bd;
    font-weight: 300;
}
select.modern-input {
    cursor: pointer;
}
/* --- Inner Pages Helpers --- */
.inner-hero {
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed; /* Parallax effect */
}
.transition-all {
    transition: all 0.4s ease;
}

/* Mission & Vision Hover Effects */
.hover-border-red:hover {
    border-color: var(--brand-red) !important;
    background: rgba(227, 24, 55, 0.05);
}

/* Core Pillars Hover Effects */
.border-transparent {
    border-color: transparent !important;
}
.hover-top-red:hover {
    border-color: var(--brand-red) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}
.hover-top-red:hover i {
    color: var(--brand-red) !important;
    transition: color 0.3s ease;
}
/* --- Fleet Filter Buttons --- */
.btn-filter {
    background: transparent;
    border: 1px solid #dee2e6;
    color: var(--body-text);
    padding: 8px 20px;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-filter:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}
.btn-filter.active {
    background: var(--dark-custom);
    border-color: var(--dark-custom);
    color: white;
}

/* --- Fleet Grid Animations --- */
.fleet-item {
    transition: all 0.4s ease-in-out;
}
.fleet-item.hide-item {
    display: none;
}
/* Ensure the image scales nicely on hover without breaking the card */
.object-fit-cover {
    object-fit: cover;
}