:root {
    --primary-purple: #4D148C;
    --primary-orange: #FF6600;
    --dark-purple: #2a0a4a;
    --light-gray: #f5f5f5;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    color: white !important;
    letter-spacing: -1px;
}

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

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-orange) !important;
}

.nav-link.active {
    color: var(--primary-orange) !important;
}

.nav-buttons .btn {
    border-radius: 0;
    font-weight: 600;
    padding: 8px 20px;
}

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

.btn-orange:hover {
    background-color: #e55c00;
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
}

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

.hero-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/hero-bg.png') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

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

.hero-section.hero-small {
    min-height: 200px;
    padding: 40px 0;
}

.tracking-box {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.tracking-box h2 {
    color: var(--primary-purple);
    font-size: 24px;
    margin-bottom: 20px;
}

.tracking-input {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.btn-track {
    background-color: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-track:hover {
    background-color: var(--dark-purple);
    color: white;
}

.quick-actions {
    background-color: var(--light-gray);
    padding: 40px 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.action-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.action-card i {
    font-size: 32px;
    color: var(--primary-purple);
    margin-bottom: 15px;
}

.action-card h4 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.why-section {
    padding: 80px 0;
    background: white;
}

.why-section h2 {
    color: var(--primary-purple);
    font-size: 36px;
    margin-bottom: 15px;
}

.feature-card {
    padding: 30px;
    border-radius: 8px;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 40px;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-purple);
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/cta-bg.png') no-repeat center;
    background-size: cover;
    opacity: 0.2;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background-color: #e55c00;
    color: white;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    padding: 60px 0;
    color: white;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.content-section {
    padding: 60px 0;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 40px;
    color: var(--primary-purple);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-purple);
    margin-bottom: 15px;
}

.form-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-card label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-card .form-control {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
}

.form-card .form-control:focus {
    border-color: var(--primary-purple);
    outline: none;
    box-shadow: none;
}

footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid #555;
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-orange);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
}

.logo-text .poly {
    color: white;
}

.logo-text .ex {
    color: var(--primary-orange);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-card .card-body {
    padding: 20px;
}

.location-card h4 {
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.location-card p {
    color: #666;
    margin-bottom: 5px;
}

.alert-card {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-card.warning {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.alert-card.info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item h4 {
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

.contact-info {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info i {
    font-size: 48px;
    color: var(--primary-purple);
    margin-bottom: 20px;
}

.contact-info h3 {
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.contact-info p {
    color: #666;
}

.features-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-row .feature-img {
    flex: 1;
}

.feature-row .feature-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-row .feature-text {
    flex: 1;
}

.feature-row h2 {
    color: var(--primary-purple);
    margin-bottom: 20px;
}

.feature-row p {
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .tracking-box {
        padding: 20px;
    }
    
    .why-section h2 {
        font-size: 28px;
    }
    
    .feature-row {
        flex-direction: column !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        margin-top: 15px;
    }
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-purple);
    border: 2px solid white;
}

.timeline-item:last-child::before {
    background: var(--primary-orange);
}

.timeline-date {
    font-size: 12px;
    color: #888;
}

.timeline-status {
    font-weight: 600;
    color: var(--primary-purple);
}

.timeline-location {
    font-size: 14px;
    color: #666;
}

.tracking-result-header {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tracking-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tracking-logo img {
    height: 50px;
}

.tracking-logo .logo-text {
    font-size: 28px;
    font-weight: 800;
}

.tracking-logo .logo-text .poly {
    color: var(--primary-purple);
}

.tracking-logo .logo-text .ex {
    color: var(--primary-orange);
}

.package-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.package-image-container img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-image-container:hover img {
    transform: scale(1.05);
}

.package-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#tracking-map {
    height: 100%;
    width: 100%;
}

.map-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.map-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.map-legend-dot.origin { background: #28a745; }
.map-legend-dot.current { background: #dc3545; }
.map-legend-dot.destination { background: #007bff; }

@media (max-width: 768px) {
    .tracking-result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .map-container {
        height: 300px;
    }
}
