/* Custom Properties */
:root {
    --primary-brown: #8B4513;
    --secondary-brown: #DEB887;
    --accent-brown: #D2691E;
    --light-brown: #F5DEB3;
    --dark-brown: #654321;
    --text-dark: #2C1810;
    --text-light: #FFF;
}

/* Global Styles */
body {
    font-family: 'Ubuntu', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--ivory-coast) 0%, #FFFFFF 100%);
    margin-bottom: 60px; /* Height of the footer */
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.navbar-brand {
    color: var(--light-brown) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.navbar-brand i {
    color: var(--soft-gold);
    margin-right: 0.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link:hover {
    color: var(--light-brown) !important;
    transform: translateY(-2px);
}

.btn-login, .btn-register {
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    margin-left: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-login {
    border: 2px solid var(--light-brown);
    color: var(--light-brown) !important;
    background: transparent;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--earth-shadow) !important;
    box-shadow: 0 4px 15px rgba(241, 194, 50, 0.3);
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, var(--secondary-brown) 0%, var(--accent-brown) 100%);
    border: none;
    color: var(--text-dark) !important;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-selector select {
    background-color: transparent !important;
    border: 1px solid var(--light-brown);
    color: var(--light-brown) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.language-selector select option {
    background-color: var(--earth-shadow);
    color: var(--warm-sand);
}

/* Hero Section */
.hero-section {
    background: none;
    background-image: linear-gradient(rgba(139, 69, 19, 0.2), rgba(101, 67, 33, 0.3)), url('https://pamwela.co.zm/assets/images/african-landscape.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 6rem 0;
    color: var(--text-light);
    position: relative;
    margin-top: 76px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    display: none;
}

.hero-content {
    text-align: left;
    max-width: 800px;
    margin: 0;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
    max-width: 600px;
}

/* Search Form */
.search-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.search-form .input-group {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form .input-group-text {
    background: var(--primary-brown);
    border: none;
    color: var(--light-brown);
    padding: 0.8rem 1.2rem;
}

.search-form .form-select {
    border: none;
    color: var(--text-dark);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    color: var(--text-light) !important;
    padding: 1rem 2rem;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 100%;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.features-section h2 {
    color: var(--text-light);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-brown), var(--primary-brown));
    opacity: 0;
    transition: all 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--light-brown);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--text-light);
}

.feature-card h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.feature-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Popular Routes Section */
.popular-routes {
    padding: 5rem 0;
    background: linear-gradient(135deg, #FFF 0%, var(--light-brown) 100%);
    position: relative;
}

.popular-routes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--soft-gold), transparent);
}

.popular-routes h2 {
    color: var(--primary-brown);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.popular-routes h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--soft-gold), var(--desert-dusk));
    transform: translateX(-50%);
}

.price {
    background: linear-gradient(135deg, var(--soft-gold), var(--desert-dusk));
    color: var(--earth-shadow);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(204, 119, 34, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding: 4rem 0;
        margin-top: 60px;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 1rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .search-form {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .search-form .row {
        margin: 0;
    }
    
    .search-form .col-md-5,
    .search-form .col-md-2 {
        padding: 0.5rem;
    }
    
    .btn-login, 
    .btn-register {
        margin: 0.5rem;
        padding: 0.6rem 1.5rem;
        width: auto;
        display: inline-block;
    }
    
    .language-selector {
        margin: 0.5rem;
    }
    
    .language-selector select {
        padding: 0.3rem 1rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .feature-card p {
        font-size: 1rem;
    }
    
    .popular-routes h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .route-header h3 {
        font-size: 1.2rem;
    }
    
    .terms-notice {
        padding: 0.5rem 1rem;
        margin: 1rem auto;
        width: fit-content;
    }
    
    .d-flex.align-items-center {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .search-form .form-select,
    .search-form .btn-search {
        width: 100%;
        margin: 0.5rem 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .btn-cta {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Footer Styles */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px; /* Height of the footer */
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Footer link styles */
.footer a {
    color: #6c757d;
    transition: color 0.2s ease-in-out;
}

.footer a:hover {
    color: #343a40;
    text-decoration: none;
}

/* Terms Notice */
.terms-notice {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    margin-top: 1rem;
}

.terms-notice small {
    color: var(--text-light);
}

.terms-notice a {
    color: var(--text-light) !important;
    text-decoration: underline !important;
    transition: all 0.3s ease;
}

.terms-notice a:hover {
    color: var(--light-brown) !important;
}

/* Terms Section */
.terms-section {
    background: linear-gradient(135deg, var(--light-brown) 0%, #FFF 100%);
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-dark);
}

.terms-content h2 {
    color: var(--primary-brown);
    font-weight: 700;
}

.terms-content h3 {
    color: var(--dark-brown);
    font-weight: 600;
}

.terms-content ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

.terms-content ul li {
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.terms-content ul li::before {
    content: "•";
    color: var(--accent-brown);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.terms-content a {
    color: var(--primary-brown);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-brown);
    transition: all 0.3s ease;
}

.terms-content a:hover {
    color: var(--accent-brown);
    border-bottom-style: solid;
}

@media (max-width: 768px) {
    .terms-content {
        padding: 1rem !important;
    }
    
    .terms-content h3 {
        font-size: 1.1rem;
    }
    
    .terms-content ul {
        padding-left: 1rem;
    }
    
    .terms-content ul li::before {
        left: -1rem;
    }
}

/* CTA Button */
.btn-cta {
    background: linear-gradient(135deg, var(--accent-brown) 0%, var(--primary-brown) 100%);
    color: var(--text-light) !important;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--accent-brown) 100%);
}

.btn-cta i {
    transition: all 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .btn-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: linear-gradient(rgba(139, 69, 19, 0.2), rgba(101, 67, 33, 0.3)), url('https://pamwela.co.zm/assets/images/african-landscape.jpg');
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        margin-top: 76px;
        background-attachment: scroll;
        min-height: calc(100vh - 76px);
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 3rem;
        max-width: 100%;
        padding: 0 1rem;
        line-height: 1.6;
    }

    .btn-cta {
        margin: 2rem auto;
        display: block;
        max-width: 300px;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }

    .search-form {
        padding: 2rem;
        margin: 2rem 1.5rem;
        background: rgba(255, 255, 255, 0.97);
    }

    .search-form .row > div {
        margin-bottom: 1.5rem;
    }

    .search-form .form-select {
        height: 50px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0;
        margin-bottom: 2rem;
    }

    .search-form {
        margin: 1.5rem;
        padding: 1.5rem;
    }

    .search-form .form-select,
    .search-form .btn-search {
        width: 100%;
        margin: 0.8rem 0;
        height: 45px;
    }

    .btn-search {
        margin-top: 1.5rem !important;
        height: 50px;
        font-size: 1.1rem;
    }

    .btn-cta {
        width: calc(100% - 3rem);
        margin: 1.5rem;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Navigation Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
        padding: 0.5rem;
    }

    .navbar-toggler {
        margin-right: 0.5rem;
    }

    .navbar-collapse {
        background: rgba(139, 69, 19, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }

    .nav-link {
        padding: 0.8rem !important;
        text-align: center;
        border-radius: 0.25rem;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .btn-login, 
    .btn-register {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }

    .language-selector {
        margin: 0.5rem 0;
        text-align: center;
    }

    .language-selector select {
        width: 100%;
        max-width: 200px;
    }
}

/* Features Button */
.btn-features {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--accent-brown) 100%);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-features:hover {
    background: linear-gradient(135deg, var(--accent-brown) 0%, var(--primary-brown) 100%);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.btn-features i {
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.btn-features[aria-expanded="true"] {
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 15px rgba(139, 69, 19, 0.2);
}

.btn-features[aria-expanded="true"] i {
    transform: rotate(180deg);
}

#featuresCollapse {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0 0 10px 10px;
    margin-top: 0;
    padding: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .features-section {
        padding: 1rem;
    }

    .collapse:not(.show) {
        display: none !important;
    }

    .feature-card {
        margin-bottom: 1rem;
        transform: none !important;
    }

    #featuresCollapse {
        margin-top: 0;
    }

    .feature-card:hover {
        transform: none !important;
    }
}

.services-hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(rgba(139, 69, 19, 0.3), rgba(101, 67, 33, 0.4)), url('https://pamwela.co.zm/assets/images/african-landscape.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
}

.services-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-brown);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-brown);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.additional-services {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.additional-services h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .services-hero {
        padding-top: 80px;
        padding-bottom: 40px;
        margin-top: 60px;
    }

    .services-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .feature-card {
        margin-bottom: 2rem;
        padding: 2.5rem 1.5rem;
        background: rgba(255, 255, 255, 0.15);
    }

    .feature-card i {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .feature-card p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .additional-services {
        margin-top: 3rem;
        padding: 3rem 1rem 1rem;
    }

    .additional-services h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .service-card {
        margin-bottom: 2.5rem;
        padding: 2.5rem 1.5rem;
    }

    .service-card i {
        font-size: 2.8rem;
        margin-bottom: 1.8rem;
    }

    .service-card h4 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .service-card p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .row.g-4 {
        margin: 0;
        padding: 0 1rem;
    }

    .col-12 {
        padding: 0 0.75rem;
    }
}

@media (max-width: 576px) {
    .services-hero {
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .services-hero h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.8rem;
    }

    .feature-card i {
        font-size: 2.3rem;
    }

    .feature-card h3 {
        font-size: 1.4rem;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .service-card i {
        font-size: 2.5rem;
    }

    .service-card h4 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 1rem;
    }
}