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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #2C3E50;
    padding-top: 70px;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    background: linear-gradient(135deg, #2C3E50 0%, #1A242F 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand .logo {
    height: 40px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand:hover .logo {
    transform: rotate(10deg) scale(1.1);
}

.navbar-nav .nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #E67E22;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler i {
    font-size: 24px;
    color: #E67E22;
}

/* Hero Section */
.hero-section .carousel-item {
    height: 650px;
    background-position: center;
    background-size: cover;
    position: relative;
    transition: transform 0.6s ease-in-out;
}

.hero-section .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-section .carousel-inner {
    position: relative;
    z-index: 2;
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    background: rgba(44, 62, 80, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.carousel-caption h1 {
    font-size: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 22px;
    font-weight: 300;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.carousel-caption .btn-primary {
    margin-top: 25px;
    padding: 12px 35px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(45deg, #E67E22, #D35400);
    border: none;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transition: all 0.3s ease;
}

.carousel-caption .btn-primary:hover {
    background: linear-gradient(45deg, #D35400, #E67E22);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #E67E22;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.1);
}

/* General Section Styles */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #E67E22;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* History Section */
.history-section {
    background: #ffffff;
}

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #E67E22, #2C3E50);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 70px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #E67E22;
    border: 4px solid #fff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -12px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -12px;
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 16px;
    color: #7f8c8d;
}

/* Services Section */
.services-section {
    background: #ecf0f1;
}

.service-card {
    padding: 35px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
}

.service-card i {
    font-size: 45px;
    color: #E67E22;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 16px;
    color: #7f8c8d;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card:hover i {
    transform: rotate(10deg);
}

/* Shipping Section */
.shipping-section {
    background: linear-gradient(135deg, #2C3E50 0%, #1A242F 100%);
    color: #ffffff;
}

.shipping-card {
    padding: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
}

.shipping-card i {
    font-size: 45px;
    color: #E67E22;
    margin-bottom: 20px;
}

.shipping-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.shipping-card p {
    font-size: 16px;
    color: #ecf0f1;
}

.shipping-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

/* Routes Section */
.routes-section {
    background: #ffffff;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#map {
    height: 400px;
    background: #ddd;
    border-radius: 10px;
}

.routes-section p {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 20px;
}

/* Booking Section */
.booking-section {
    background: #ecf0f1;
}

.booking-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.booking-form:hover {
    transform: translateY(-5px);
}

.booking-form .form-control {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: all 0.3s ease;
}

.booking-form .form-control:focus {
    border-color: #E67E22;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.3);
}

.booking-form .btn-primary {
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(45deg, #E67E22, #D35400);
    border: none;
    transition: all 0.3s ease;
}

.booking-form .btn-primary:hover {
    background: linear-gradient(45deg, #D35400, #E67E22);
    transform: scale(1.05);
}

/* Tracking Section */
.tracking-section {
    background: #f7f7f7;
}

.tracking-form {
    max-width: 600px;
    margin: 0 auto;
}

.tracking-form .input-group {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    background: #ffffff;
}

.tracking-form .form-control {
    border: none;
    padding: 15px 25px;
    font-size: 18px;
}

.tracking-form .btn-dark {
    border-radius: 0 50px 50px 0;
    background: #2C3E50;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tracking-form .btn-dark:hover {
    background: #1A242F;
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #2C3E50 0%, #1A242F 100%);
    color: #ffffff;
}

.contact-info {
    padding: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-info i {
    font-size: 35px;
    color: #E67E22;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 18px;
    color: #ecf0f1;
    margin: 0;
}

.contact-info:hover {
    transform: translateY(-5px);
}

/* Footer */
.footer {
    padding: 40px 0;
    background: #333333;
    color: #cccccc;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #ffffff;
    font-size: 22px;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #E67E22;
    transform: translateY(-3px);
}

/* Modal Enhancements */
.modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: #2C3E50;
    color: #ffffff;
    border-radius: 15px 15px 0 0;
}

.modal-title img {
    height: 30px;
    margin-right: 10px;
}

/* Media Queries */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 20px;
        background: #2C3E50;
        border-radius: 0 0 15px 15px;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px;
    }

    .hero-section .carousel-item {
        height: 500px;
    }

    .carousel-caption h1 {
        font-size: 36px;
    }

    .carousel-caption p {
        font-size: 18px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    .navbar-brand {
        font-size: 22px;
    }

    .navbar-brand .logo {
        height: 30px;
    }

    .hero-section .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        padding: 15px;
    }

    .carousel-caption h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .carousel-caption .btn-primary {
        padding: 10px 25px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title::after {
        width: 60px;
    }

    .service-card, .shipping-card {
        padding: 25px;
    }

    .service-card i, .shipping-card i {
        font-size: 35px;
    }

    .booking-form {
        padding: 25px;
    }

    .booking-form .form-control {
        padding: 12px;
    }

    .tracking-form .form-control {
        padding: 12px 20px;
    }

    .tracking-form .btn-dark {
        padding: 12px 25px;
    }
}

@media (max-width: 400px) {
    .carousel-caption h1 {
        font-size: 20px;
    }

    .carousel-caption p {
        font-size: 12px;
    }

    .carousel-caption .btn-primary {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* About Section */
.about-section {
    background: #f7f7f7;
}

.about-section .lead {
    font-size: 20px;
    color: #2C3E50;
}

.about-section img {
    max-height: 400px;
    object-fit: cover;
}

/* Network Section */
.network-section {
    background: #ffffff;
}

.network-card {
    padding: 25px;
    background: #f7f7f7;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.network-card h3 {
    font-size: 22px;
    color: #2C3E50;
    margin-bottom: 15px;
}

.network-card p {
    font-size: 16px;
    color: #7f8c8d;
}

.network-card:hover {
    transform: translateY(-5px);
    background: #ecf0f1;
}

/* Why Us Section */
.why-us-section {
    background: #ecf0f1;
}

.why-us-card {
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.why-us-card i {
    font-size: 40px;
    color: #E67E22;
    margin-bottom: 20px;
}

.why-us-card h3 {
    font-size: 22px;
    color: #2C3E50;
    margin-bottom: 15px;
}

.why-us-card p {
    font-size: 16px;
    color: #7f8c8d;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Testimonials Section */
.testimonials-section {
    background: #ffffff;
}

.testimonial-card {
    padding: 25px;
    background: #f7f7f7;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card p {
    font-size: 16px;
    font-style: italic;
    color: #2C3E50;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #E67E22;
}

.testimonial-card .text-muted {
    font-size: 14px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: #ecf0f1;
}

/* FAQ Section */
.faq-section {
    background: #f7f7f7;
}

.accordion-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    background: #ffffff;
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    color: #E67E22;
    background: #ffffff;
    box-shadow: none;
}

.accordion-body {
    font-size: 16px;
    color: #7f8c8d;
    padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .about-section img {
        margin-top: 20px;
    }

    .network-card, .why-us-card, .testimonial-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .about-section .lead {
        font-size: 18px;
    }

    .network-card h3, .why-us-card h3, .testimonial-card h4 {
        font-size: 20px;
    }
}

/* FAQ Section Enhancements */
.faq-section {
    background: #f7f7f7;
    padding: 80px 0;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-3px);
}

.accordion-button {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    background: #ffffff;
    border-radius: 10px !important;
    padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
    color: #E67E22;
    background: #ffffff;
    box-shadow: none;
}

.accordion-button::after {
    background-size: 12px;
    width: 20px;
    height: 20px;
}

.accordion-body {
    font-size: 16px;
    color: #7f8c8d;
    padding: 20px 25px;
    line-height: 1.6;
}

/* Scrollable FAQ on smaller screens */
@media (max-width: 768px) {
    .faq-section .accordion {
        max-height: 600px;
        overflow-y: auto;
        padding-right: 10px;
    }

    .accordion-button {
        font-size: 16px;
        padding: 12px 15px;
    }

    .accordion-body {
        font-size: 14px;
        padding: 15px 20px;
    }
}

/* Calculator Section */
.calculator-section {
    background: #ecf0f1;
    padding: 80px 0;
}

.calculator-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.calculator-form:hover {
    transform: translateY(-5px);
}

.calculator-form .form-control {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: all 0.3s ease;
}

.calculator-form .form-control:focus {
    border-color: #E67E22;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.3);
}

.calculator-form .btn-primary {
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(45deg, #E67E22, #D35400);
    border: none;
    transition: all 0.3s ease;
}

.calculator-form .btn-primary:hover {
    background: linear-gradient(45deg, #D35400, #E67E22);
    transform: scale(1.05);
}

#calculatorResult {
    font-size: 18px;
    color: #2C3E50;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 10px;
    display: none;
}

#calculatorResult.success {
    background: #d4edda;
    color: #155724;
}

#calculatorResult.error {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-form {
        padding: 25px;
    }

    .calculator-form .form-control {
        padding: 12px;
        font-size: 14px;
    }

    .calculator-form .btn-primary {
        padding: 10px;
        font-size: 16px;
    }

    #calculatorResult {
        font-size: 16px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .calculator-form .col-md-4, .calculator-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Map Container */
.map-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
}

/* Custom Marker */
.custom-marker {
    background: none !important;
    border: none !important;
}

/* Ensure Leaflet popup styles match your theme */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 10px 15px;
}

.leaflet-popup-tip {
    background: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .map-container {
        padding: 15px;
    }

    #map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    #map {
        height: 250px;
    }
}