/* Base Variables */
:root {
    --primary-color: #f05a28;
    --primary-hover: #d04518;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a202c;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.brand-icon {
    font-size: 1.8rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links a {
    color: var(--text-main);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.navbar-links a:hover, .navbar-links a.active {
    color: var(--primary-color);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-links a:hover::after, .navbar-links a.active::after {
    width: 100%;
}

.navbar-links a.nav-track-btn {
    color: white;
    padding: 0.6rem 1.5rem;
}

.navbar-links a.nav-track-btn:hover {
    color: white;
}

.navbar-links a.nav-track-btn::after {
    display: none;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    color: white;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 35, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    opacity: 0.9;
}

/* Tracking Form */
.tracking-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.tracking-input-group {
    display: flex;
    gap: 10px;
}

.tracking-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.tracking-input:focus {
    border-color: var(--primary-color);
}

.tracking-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a202c;
}

.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.page-header--about {
    background-image: url('../images/hero-4.jpg');
}

.page-header--contact {
    background-image: url('../images/hero-6.jpg');
}

.page-header--track {
    background-image: url('../images/hero-2.jpg');
}

.page-header--about,
.page-header--contact,
.page-header--track {
    color: white;
}

.page-header--about::before,
.page-header--contact::before,
.page-header--track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 35, 0.5);
    z-index: 0;
}

.page-header--about > *,
.page-header--contact > *,
.page-header--track > * {
    position: relative;
    z-index: 1;
}

.page-header--about h1,
.page-header--contact h1,
.page-header--track h1 {
    color: white;
}

.page-header--about p,
.page-header--contact p,
.page-header--track p {
    color: rgba(255, 255, 255, 0.85);
}

.page-header-sm {
    padding: 30px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tracking-id {
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem auto;
    background: linear-gradient(135deg, var(--primary-color), #ff7a45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(240, 90, 40, 0.3);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke: white;
}

/* Stats Section */
.stats {
    background-color: #1a202c;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #111827;
    color: #e5e7eb;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #9ca3af;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Tracking Details - Cards */
.tracking-result {
    padding: 40px 0;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Status Banner */
.status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--text-muted);
}

.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-text {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Status Colors */
.status-registered { border-left-color: var(--info-color); }
.status-registered .status-dot { background-color: var(--info-color); }

.status-picked_up, .status-in_transit, .status-out_for_delivery { border-left-color: var(--primary-color); }
.status-picked_up .status-dot, .status-in_transit .status-dot, .status-out_for_delivery .status-dot { background-color: var(--primary-color); }

.status-delivered { border-left-color: var(--success-color); }
.status-delivered .status-dot { background-color: var(--success-color); }

.status-customs_hold { border-left-color: var(--warning-color); }
.status-customs_hold .status-dot { background-color: var(--warning-color); }

.status-exception, .status-cancelled { border-left-color: var(--danger-color); }
.status-exception .status-dot, .status-cancelled .status-dot { background-color: var(--danger-color); }

/* Info Grids */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
}

.delivery-instructions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
}

/* Route Display */
.route-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.route-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 4px solid var(--primary-color);
}

.route-dot.destination {
    border-color: var(--success-color);
}

.route-line {
    flex: 2;
    height: 2px;
    background-image: linear-gradient(to right, var(--primary-color) 50%, transparent 50%);
    background-size: 10px 100%;
    margin: 0 20px;
    position: relative;
}

.route-plane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: var(--bg-white);
    padding: 0 10px;
    color: var(--primary-color);
}
/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 1px var(--border-color);
}

.timeline-item-active .timeline-dot {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.timeline-item-active .timeline-status {
    color: var(--primary-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.timeline-status {
    font-weight: 700;
    font-size: 1.1rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.timeline-location {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.location-icon {
    color: var(--primary-color);
}

.timeline-description {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    background: var(--bg-light);
    padding: 10px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

/* Packages Table */
.table-responsive {
    overflow-x: auto;
}

.packages-table {
    width: 100%;
    border-collapse: collapse;
}

.packages-table th, .packages-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.packages-table th {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    background-color: var(--bg-light);
}

.packages-table tbody tr:hover {
    background-color: var(--bg-light);
}

/* About & Contact */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.values-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.values-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Messages */
.messages-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1050;
    width: 100%;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    padding-right: 3rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.alert-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

.alert-close:hover { opacity: 1; }

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

.track-another {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        gap: 1rem;
        text-align: center;
    }

    .navbar-links.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .tracking-input-group {
        flex-direction: column;
    }

    .route-display {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .route-line {
        width: 2px;
        height: 50px;
        margin: 0 0 0 9px;
        background-image: linear-gradient(to bottom, var(--primary-color) 50%, transparent 50%);
        background-size: 100% 10px;
    }
}
