/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.15);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: #f8fafc;
}

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

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 12px 0;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.logo .logo-light {
    font-weight: 300;
    color: var(--text-light);
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

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

.admin-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.admin-link::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    animation: gradientMove 20s ease-in-out infinite alternate;
}

.gradient-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
}

.layer-1 {
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    top: 10%;
    left: 5%;
    animation: float1 25s ease-in-out infinite alternate;
}

.layer-2 {
    width: 50%;
    height: 50%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    bottom: 10%;
    right: 5%;
    animation: float2 30s ease-in-out infinite alternate;
}

.layer-3 {
    width: 40%;
    height: 40%;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 20s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(10deg) scale(1.05); }
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10%, -10%) scale(1.1); }
    66% { transform: translate(-5%, 15%) scale(0.9); }
    100% { transform: translate(5%, -5%) scale(1.05); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-10%, 10%) scale(0.9); }
    66% { transform: translate(15%, -5%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(1); }
}

@keyframes float3 {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-45%, -55%) scale(1.2); }
    100% { transform: translate(-55%, -45%) scale(0.8); }
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translate(calc(var(--x) * 0.1), calc(var(--y) * 0.1)) scale(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(var(--x) * 0.3), calc(var(--y) * 0.3)) scale(0);
        opacity: 0;
    }
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icons i {
    position: absolute;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.1);
    animation: iconFloat 15s ease-in-out infinite;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(10px, -10px) rotate(3deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 550px;
}

/* ============================================
   TRACKING FORM
   ============================================ */
.tracking-form {
    max-width: 600px;
    margin-bottom: 50px;
}

.input-group {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    padding: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.input-group:focus-within {
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.input-icon {
    padding: 0 20px;
    color: var(--text-light);
}

.input-group input {
    flex: 1;
    padding: 18px 0;
    border: none;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    background: transparent;
    color: var(--text);
}

.input-group input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.btn-track {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.btn-track:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4);
}

.btn-track:active {
    transform: scale(0.98);
}

.pulse {
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }
}

.tracking-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.trust-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.trust-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    background: white;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features span {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features span i {
    color: var(--success);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-light);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-light);
    font-size: 15px;
}

.step-connector {
    font-size: 30px;
    color: var(--text-light);
    padding: 0 20px;
    flex-shrink: 0;
}

/* ============================================
   TRACKING RESULTS
   ============================================ */
.tracking-results {
    padding: 40px 0;
    min-height: 600px;
}

.back-link {
    margin-bottom: 30px;
}

.back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link a:hover {
    color: var(--primary-dark);
}

.tracking-result {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.package-card {
    background: white;
    border-radius: var(--radius);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.tracking-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.tracking-number i {
    color: var(--primary);
    margin-right: 10px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-picked_up { background: #dbeafe; color: #1e40af; }
.status-in_transit { background: #ede9fe; color: #5b21b6; }
.status-out_for_delivery { background: #fce4ec; color: #b91c1c; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-failed_delivery { background: #fef2f2; color: #991b1b; }
.status-returned { background: #fef3c7; color: #92400e; }

.package-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.section {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.section h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section h4 i {
    margin-right: 8px;
}

.section p {
    margin-bottom: 8px;
    font-size: 15px;
}

.section .label {
    font-weight: 600;
    color: var(--text);
}

.package-info {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 30px;
}

.package-info h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.package-info h4 i {
    margin-right: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-grid div {
    font-size: 15px;
}

.info-grid .label {
    font-weight: 600;
    color: var(--text);
}

/* Timeline */
.timeline {
    margin-top: 30px;
}

.timeline h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.timeline h4 i {
    margin-right: 10px;
    color: var(--primary);
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding: 15px 0 15px 30px;
    border-left: 2px solid #e2e8f0;
    position: relative;
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 20px;
    border: 2px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item .time {
    min-width: 150px;
    color: var(--text-light);
    font-size: 14px;
}

.timeline-item .content {
    flex: 1;
}

.timeline-item .content .status {
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-item .content .location {
    color: var(--text-light);
    font-size: 14px;
}

.timeline-item .content .location i {
    margin-right: 5px;
}

.timeline-item .content .notes {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

.timeline-item .content .notes i {
    margin-right: 5px;
}

/* Track Another */
.track-another {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.track-another h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.track-another .input-group {
    max-width: 500px;
    margin: 0 auto;
}

/* Error Message */
.error-message h3 {
    font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section .logo {
    margin-bottom: 15px;
}

.footer-description {
    color: #94a3b8;
    margin-bottom: 20px;
    font-size: 15px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.contact-info li {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info li i {
    width: 20px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        border-top: 1px solid #e2e8f0;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        width: 100%;
        padding: 10px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .input-group input {
        width: 100%;
        padding: 16px 20px;
        background: white;
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-bottom: 10px;
    }
    
    .btn-track {
        width: 100%;
        justify-content: center;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 20px;
    }
    
    .trust-divider {
        display: none;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-connector {
        transform: rotate(90deg);
        padding: 10px 0;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .package-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 5px;
        padding-left: 20px;
    }
    
    .timeline-item .time {
        min-width: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tracking-result {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .tracking-number {
        font-size: 16px;
    }
}