/* ====================================
   Warehouse Z Logistics - Main Stylesheet
   Version: 1.0
   Author: Warehouse Z
==================================== */

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --secondary-color: #e67e22;
    --secondary-dark: #d35400;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --info-color: #3498db;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ====================================
   Top Bar Styles
==================================== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    z-index: 1001;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.top-bar i {
    margin-right: 8px;
    font-size: 12px;
}

.top-right-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.social-icons {
    display: inline-flex;
    gap: 10px;
    margin-left: 15px;
}

.social-icons a {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ====================================
   Navigation Styles
==================================== */
.main-navbar {
    background: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-navbar.sticky {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

/* Logo Styles */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 2px;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 15px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: var(--transition);
}

.navbar-nav .nav-link i {
    margin-right: 8px;
    font-size: 14px;
    color: var(--secondary-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i {
    color: white;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 10px;
    min-width: 220px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.dropdown-item i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateX(5px);
}

.dropdown-item:hover i {
    color: white;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.btn-track,
.btn-portal,
.btn-quote {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-track {
    background: var(--secondary-color);
    color: white;
}

.btn-track:hover {
    background: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-portal {
    background: var(--primary-color);
    color: white;
}

.btn-portal:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-quote {
    background: linear-gradient(135deg, var(--success-color) 0%, #219a52 100%);
    color: white;
}

.btn-quote:hover {
    background: linear-gradient(135deg, #219a52 0%, var(--success-color) 100%);
    transform: translateY(-2px);
    color: white;
}

/* ====================================
   Hero Section & Slideshow
==================================== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.slide {
    height: 85vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.slide-subtitle {
    display: inline-block;
    background: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Slide Buttons */
.slide-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.slide-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.slide-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Slide Stats */
.slide-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-nav button {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 20px;
}

.slider-nav button:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Mobile Money Partners on Slide */
.mobile-partners {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.mobile-partners img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition);
}

.mobile-partners img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ====================================
   Quick Actions Bar
==================================== */
.quick-actions-bar {
    background: white;
    padding: 30px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    margin-left: 30px;
    margin-right: 30px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.quick-action-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.quick-action-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.quick-action-item:hover::before {
    transform: scaleX(1);
}

.quick-action-item .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: var(--transition);
}

.quick-action-item:hover .icon {
    background: var(--secondary-color);
    transform: rotate(360deg);
}

.quick-action-item .content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.quick-action-item .content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ====================================
   Statistics Section
==================================== */
.stats-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(230,126,34,0.1) 0%, rgba(44,62,80,0.1) 100%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.stat-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-trend {
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Mini Stats */
.mini-stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mini-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.mini-stat i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.mini-stat .value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.mini-stat .label {
    font-size: 12px;
    color: #666;
}

/* ====================================
   Live Map Section
==================================== */
.live-map-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.btn-map-control {
    display: block;
    width: 100%;
    padding: 8px 15px;
    margin-bottom: 10px;
    border: none;
    background: var(--light-bg);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-map-control:hover {
    background: var(--secondary-color);
    color: white;
}

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
}

.map-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Active Deliveries Panel */
.active-deliveries-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background: white;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.active-deliveries-panel h5 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.delivery-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-item {
    padding: 10px;
    background: var(--light-bg);
    border-radius: 5px;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.delivery-item .tracking {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.delivery-item .status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
}

.status-awaiting-pickup { background: #f1c40f; color: #000; }
.status-in-transit { background: #3498db; color: white; }
.status-out-for-delivery { background: #e67e22; color: white; }
.status-delivered { background: #27ae60; color: white; }
.status-delivery-attempted { background: #e74c3c; color: white; }

/* ====================================
   Services Section
==================================== */
.services-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light h2,
.section-header.light p {
    color: white;
}

.section-header.light h2::after {
    background: white;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: translateX(-100%);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 40px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    transform: rotate(360deg);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}

.service-features li {
    margin-bottom: 10px;
    font-size: 14px;
}

.service-features i {
    color: var(--success-color);
    margin-right: 10px;
}

.service-price {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.service-price span {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
}

.btn-service {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-service:hover {
    background: var(--secondary-color);
    transform: translateX(5px);
    color: white;
}

/* Chart Card */
.chart-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.chart-card h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Performance Card */
.performance-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.agent-rank {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.agent-rank:hover {
    background: var(--light-bg);
    transform: translateX(5px);
}

.agent-rank .rank {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
}

.agent-rank .name {
    font-weight: 600;
    flex: 2;
}

.agent-rank .code {
    color: #666;
    font-size: 12px;
    flex: 1;
}

.agent-rank .parcels {
    font-weight: 600;
    color: var(--primary-color);
    flex: 1;
}

.agent-rank .revenue {
    font-weight: 700;
    color: var(--success-color);
    flex: 1;
    text-align: right;
}

/* ====================================
   Contact Section
==================================== */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.contact-info-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    height: 100%;
}

.contact-info-card h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-info-card p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-item p {
    margin: 0;
    font-size: 14px;
}

/* Quick Support */
.quick-support {
    margin-top: 40px;
}

.quick-support h4 {
    margin-bottom: 20px;
}

.support-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.support-btn {
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.support-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

.support-btn i {
    margin-right: 8px;
}

/* Contact Form */
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group .required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.response-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
    font-size: 14px;
}

.response-guarantee i {
    color: var(--success-color);
    font-size: 20px;
}

/* ====================================
   FAQ Section
==================================== */
.faq-section {
    padding: 80px 0;
    background: white;
}

.accordion-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    padding: 20px;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 20px;
    background: var(--light-bg);
}

.still-questions {
    font-size: 18px;
}

.still-questions a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.still-questions a:hover {
    text-decoration: underline;
}

/* ====================================
   Partners Section
==================================== */
.partners-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.partner-slider {
    padding: 20px 0;
}

.partner-item {
    padding: 30px;
    background: white;
    border-radius: 10px;
    text-align: center;
    margin: 0 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ====================================
   Newsletter Section
==================================== */
.newsletter-section {
    padding: 60px 0;
    background: white;
}

.newsletter-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px;
    border-radius: 20px;
    color: white;
}

.newsletter-wrapper h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-wrapper p {
    opacity: 0.9;
    margin: 0;
}

.newsletter-form .input-group {
    box-shadow: var(--shadow);
}

.newsletter-form input {
    height: 55px;
    border: none;
    padding: 0 20px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 0 30px;
    background: var(--secondary-color);
    border: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-dark);
}

.newsletter-form small {
    display: block;
    margin-top: 10px;
    opacity: 0.8;
}

/* ====================================
   Footer Styles
==================================== */
.main-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #999;
    position: relative;
    padding-top: 60px;
}

/* Footer Top */
.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.company-description {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Cert Badges */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-badges .badge {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.cert-badges .badge i {
    margin-right: 5px;
    color: var(--secondary-color);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a i {
    font-size: 12px;
    margin-right: 8px;
    color: var(--secondary-color);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* Contact Items */
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact-item .text {
    font-size: 14px;
}

.contact-item .text strong {
    color: white;
    display: block;
    margin-bottom: 5px;
}

.contact-item a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* App Download */
.app-download h5 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.app-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-btn {
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.app-btn i {
    margin-right: 5px;
}

.app-btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Footer Middle */
.footer-middle {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-middle h5 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.payment-methods,
.mobile-money {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-methods span,
.mobile-money span {
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 13px;
    color: #999;
}

.download-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.download-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.download-links a i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.download-links a:hover {
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
}

.copyright {
    margin: 0;
    font-size: 14px;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.legal-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.chat-toggle:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
}

.chat-box.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-size: 16px;
}

.chat-header h5 i {
    margin-right: 8px;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.chat-body {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    background: var(--light-bg);
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.message.received {
    background: white;
    align-self: flex-start;
    box-shadow: var(--shadow);
}

.message.sent {
    background: var(--secondary-color);
    color: white;
    margin-left: auto;
}

.chat-footer {
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
}

.chat-footer input:focus {
    border-color: var(--secondary-color);
}

.chat-footer button {
    padding: 8px 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-footer button:hover {
    background: var(--primary-color);
}

/* ====================================
   Responsive Design
==================================== */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) {
    .slide-title {
        font-size: 54px;
    }
    
    .quick-actions-bar {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Laptop (992px to 1199px) */
@media (max-width: 1199px) {
    .slide-title {
        font-size: 48px;
    }
    
    .nav-actions {
        margin-left: 10px;
    }
    
    .btn-track,
    .btn-portal,
    .btn-quote {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .agent-rank {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .agent-rank .revenue {
        flex: 100%;
        text-align: left;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .top-bar {
        display: none;
    }
    
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: var(--shadow-lg);
        margin-top: 15px;
    }
    
    .nav-actions {
        margin: 20px 0 0;
        justify-content: center;
    }
    
    .hero-section,
    .slide {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-title {
        font-size: 42px;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .slide-buttons .btn {
        width: 100%;
    }
    
    .quick-actions-bar {
        margin: -30px 15px 0;
        padding: 20px;
    }
    
    .quick-action-item {
        padding: 15px;
    }
    
    .quick-action-item .icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .slider-nav {
        bottom: 30px;
        right: 30px;
    }
    
    .active-deliveries-panel {
        width: 250px;
    }
    
    .agent-rank .parcels,
    .agent-rank .revenue {
        flex: 100%;
        text-align: left;
    }
    
    .footer-middle .text-end {
        text-align: left !important;
        margin-top: 20px;
    }
    
    .download-links {
        justify-content: flex-start;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    .slide-title {
        font-size: 36px;
    }
    
    .slide-description {
        font-size: 16px;
    }
    
    .slide-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .slider-nav {
        bottom: 20px;
        right: 20px;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .quick-actions-bar {
        margin: -20px 10px 0;
        padding: 15px;
    }
    
    .quick-action-item {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .service-card.featured {
        transform: scale(1);
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .map-controls {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 15px;
    }
    
    .active-deliveries-panel {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 15px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 30px;
    }
    
    .support-buttons {
        flex-direction: column;
    }
    
    .support-btn {
        text-align: center;
    }
    
    .newsletter-wrapper {
        padding: 40px 30px;
    }
    
    .legal-links {
        justify-content: flex-start;
        margin-top: 15px;
        flex-wrap: wrap;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .logo-title {
        font-size: 20px;
    }
    
    .logo-subtitle {
        font-size: 10px;
    }
    
    .hero-section,
    .slide {
        height: 80vh;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-content {
        text-align: center;
    }
    
    .slide-buttons {
        align-items: center;
    }
    
    .slide-stats {
        justify-content: center;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .mobile-partners {
        justify-content: center;
    }
    
    .quick-action-item {
        margin-bottom: 10px;
    }
    
    .stat-card {
        text-align: center;
    }
    
    .stat-icon {
        margin: 0 auto 20px;
    }
    
    .stat-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .agent-rank {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .agent-rank .rank {
        margin-bottom: 10px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item i {
        margin: 0 auto;
    }
    
    .chat-box {
        width: 300px;
    }
}

/* Small Mobile (up to 400px) */
@media (max-width: 400px) {
    .slide-title {
        font-size: 28px;
    }
    
    .slide-buttons .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .mini-stat .value {
        font-size: 20px;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item .icon {
        margin: 0 auto;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .payment-methods,
    .mobile-money {
        justify-content: center;
    }
}

/* ====================================
   Animations
==================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Apply animations */
.fade-in {
    animation: fadeIn 1s ease;
}

.slide-in-left {
    animation: slideInLeft 1s ease;
}

.slide-in-right {
    animation: slideInRight 1s ease;
}

.slide-in-up {
    animation: slideInUp 1s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ====================================
   Utility Classes
==================================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background: var(--primary-color) !important; }
.bg-secondary { background: var(--secondary-color) !important; }
.bg-success { background: var(--success-color) !important; }
.bg-danger { background: var(--danger-color) !important; }
.bg-warning { background: var(--warning-color) !important; }
.bg-info { background: var(--info-color) !important; }
.bg-light { background: var(--light-bg) !important; }
.bg-dark { background: var(--dark-bg) !important; }

.shadow-sm { box-shadow: var(--shadow) !important; }
.shadow-md { box-shadow: var(--shadow-lg) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded-sm { border-radius: 5px !important; }
.rounded-md { border-radius: 10px !important; }
.rounded-lg { border-radius: 20px !important; }
.rounded-circle { border-radius: 50% !important; }

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-bg);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====================================
   Print Styles
==================================== */
@media print {
    .top-bar,
    .main-navbar,
    .hero-section,
    .quick-actions-bar,
    .live-map-section,
    .footer,
    .back-to-top,
    .live-chat-widget {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
}