* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    animation: pageBreath 20s ease-in-out infinite;
}

@keyframes pageBreath {
    0%, 100% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.02) contrast(1.01); }
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #1a2e1a, #2e1a1a);
    background-size: 600% 600%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 25%; }
    50% { background-position: 100% 75%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(100, 200, 255, 0.15), rgba(255, 100, 200, 0.15), rgba(100, 255, 150, 0.15));
    background-size: 200% 200%;
    animation: float 25s infinite linear, shapeShimmer 8s infinite ease-in-out;
    filter: blur(1px);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 70%;
    animation-delay: -15s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    top: 40%;
    left: 50%;
    animation-delay: -7s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-40px) rotate(90deg) scale(1.1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(20px) rotate(180deg) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0px) rotate(360deg) scale(1);
        opacity: 0.7;
    }
}

@keyframes shapeShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Additional Floating Particles */
.floating-shapes::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(100, 196, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 100, 196, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(196, 255, 100, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(100, 255, 196, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 196, 100, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 15s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateY(0px) translateX(0px); opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.animated-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.animated-icon i {
    font-size: 80px;
    color: #64c4ff;
    z-index: 2;
    position: relative;
    animation: iconPulse 3s ease-in-out infinite, iconRotate 15s linear infinite;
    filter: drop-shadow(0 0 20px rgba(100, 196, 255, 0.5));
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1) rotateX(0deg); }
    50% { transform: scale(1.15) rotateX(10deg); }
}

@keyframes iconRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid rgba(100, 196, 255, 0.4);
    border-radius: 50%;
    animation: pulseRing 3s infinite ease-out;
}

.pulse-ring.delay-1 {
    animation-delay: 1s;
    border-color: rgba(255, 100, 196, 0.4);
}

.pulse-ring.delay-2 {
    animation-delay: 2s;
    border-color: rgba(196, 255, 100, 0.4);
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 1;
        border-width: 3px;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
        border-width: 2px;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
        border-width: 1px;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #64c4ff, #ff64c4, #c4ff64, #ff6464, #64ffff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 4s ease infinite, textFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(100, 196, 255, 0.3));
}

@keyframes textGradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.typing-text {
    display: inline-block;
}

.cursor {
    animation: blink 1.2s infinite, cursorPulse 3s infinite;
    color: #64c4ff;
    text-shadow: 0 0 10px rgba(100, 196, 255, 0.7);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes cursorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    animation: subtitlePulse 4s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% { 
        opacity: 0.7; 
        transform: translateY(0px);
        text-shadow: 0 0 0 transparent;
    }
    50% { 
        opacity: 0.9; 
        transform: translateY(-2px);
        text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    }
}

/* Tracking Card */
.tracking-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: cardFloat 8s ease-in-out infinite, cardGlow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-15px) rotateX(2deg); }
}

@keyframes cardGlow {
    0%, 100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(100, 196, 255, 0); }
    50% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px 5px rgba(100, 196, 255, 0.1); }
}

.tracking-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #64c4ff, #ff64c4, #c4ff64, #ff6464);
    background-size: 300% 300%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    animation: borderGlow 6s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0; background-position: 0% 50%; }
    50% { opacity: 0.3; background-position: 100% 50%; }
}

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.input-container,
.select-container {
    position: relative;
}

.input-container input,
.select-container select {
    width: 100%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-container input:hover,
.select-container select:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(100, 196, 255, 0.1);
}

.input-container input:focus,
.select-container select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(100, 196, 255, 0.3), 0 0 20px rgba(100, 196, 255, 0.2);
    animation: inputPulse 2s infinite;
}

@keyframes inputPulse {
    0%, 100% { box-shadow: 0 15px 35px rgba(100, 196, 255, 0.3), 0 0 20px rgba(100, 196, 255, 0.2); }
    50% { box-shadow: 0 20px 40px rgba(100, 196, 255, 0.4), 0 0 30px rgba(100, 196, 255, 0.3); }
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-border,
.select-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #64c4ff, #ff64c4, #c4ff64);
    background-size: 200% 200%;
    transition: width 0.4s ease;
    border-radius: 2px;
    animation: borderShimmer 3s ease-in-out infinite;
}

@keyframes borderShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.input-container input:focus + .input-border,
.select-container select:focus + .select-border {
    width: 100%;
}

.select-container select option {
    background: #1a1a2e;
    color: #ffffff;
}

/* Track Button */
.track-btn {
    position: relative;
    padding: 20px 40px;
    background: linear-gradient(45deg, #64c4ff, #ff64c4, #c4ff64);
    background-size: 300% 300%;
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: buttonGradient 5s ease infinite;
    filter: drop-shadow(0 8px 20px rgba(100, 196, 255, 0.3));
}

@keyframes buttonGradient {
    0%, 100% { background-position: 0% 50%; }
    33% { background-position: 100% 0%; }
    66% { background-position: 100% 100%; }
}

.track-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(100, 196, 255, 0.5);
    animation: buttonHover 0.6s ease infinite;
}

@keyframes buttonHover {
    0%, 100% { filter: drop-shadow(0 8px 20px rgba(100, 196, 255, 0.5)) brightness(1); }
    50% { filter: drop-shadow(0 12px 30px rgba(100, 196, 255, 0.7)) brightness(1.1); }
}

.track-btn:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.track-btn:hover .btn-icon {
    transform: translateX(5px);
}

.track-btn.loading .btn-text,
.track-btn.loading .btn-icon {
    opacity: 0;
}

.track-btn.loading .btn-loader {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Demo Controls */
.demo-controls {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-controls button {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.demo-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(100, 196, 255, 0.2);
}

/* Loading Animation */
.loading-container {
    margin-top: 40px;
    text-align: center;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.package-icon {
    font-size: 60px;
    color: #64c4ff;
    animation: packageBounce 2s ease-in-out infinite, packageGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(100, 196, 255, 0.5));
}

@keyframes packageBounce {
    0%, 100% { transform: translateY(0) rotateY(0deg) scale(1); }
    25% { transform: translateY(-25px) rotateY(90deg) scale(1.1); }
    50% { transform: translateY(0) rotateY(180deg) scale(1); }
    75% { transform: translateY(-25px) rotateY(270deg) scale(1.1); }
}

@keyframes packageGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(100, 196, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(100, 196, 255, 0.8)); }
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #64c4ff, #ff64c4);
    border-radius: 50%;
    animation: dotPulse 1.6s infinite ease-in-out, dotFloat 3s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(100, 196, 255, 0.5);
}

.loading-dots span:nth-child(1) { 
    animation-delay: -0.32s, 0s; 
    background: linear-gradient(45deg, #64c4ff, #64ffff);
}
.loading-dots span:nth-child(2) { 
    animation-delay: -0.16s, -0.5s; 
    background: linear-gradient(45deg, #ff64c4, #ff6464);
}
.loading-dots span:nth-child(3) { 
    animation-delay: 0s, -1s; 
    background: linear-gradient(45deg, #c4ff64, #64ff64);
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.4);
        opacity: 1;
    }
}

@keyframes dotFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Result Container */
.result-container {
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: cardEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.package-visual {
    font-size: 50px;
    color: #64c4ff;
    animation: iconPulse 2s ease-in-out infinite, packageVisualPulse 3s ease-in-out infinite, packageVisualRotate 10s linear infinite;
}

@keyframes packageVisualPulse {
    0%, 100% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(1.1) rotateY(5deg); }
}

@keyframes packageVisualRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.result-info {
    flex: 1;
}

.resi-number {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.courier-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.status-indicator {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    animation: statusPulse 2s infinite;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: statusShine 3s ease-in-out infinite;
}

.status-icon {
    font-size: 18px;
    margin-bottom: 5px;
}

.delivery-state {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.15);
}

@keyframes statusShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(100, 196, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(100, 196, 255, 0); }
}

/* Delivery Details */
.delivery-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.detail-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(100, 196, 255, 0.2);
    border-color: rgba(100, 196, 255, 0.3);
}

.detail-item:hover::before {
    left: 100%;
}

.detail-item .label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item .value {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

/* Timeline */
.timeline-container h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #64c4ff, #ff64c4, #c4ff64, rgba(100, 196, 255, 0.3));
    animation: timelineGlow 4s ease-in-out infinite;
}

@keyframes timelineGlow {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(100, 196, 255, 0.4);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 10px 2px rgba(100, 196, 255, 0.3);
        filter: brightness(1.2);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 40px;
    animation: timelineSlide 0.8s ease forwards, timelineFloat 4s ease-in-out infinite;
    opacity: 0;
    transform: translateX(-30px);
}

.timeline-item:nth-child(1) { animation-delay: 0.1s, 0s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s, 0.5s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s, 1s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s, 1.5s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s, 2s; }

@keyframes timelineSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes timelineFloat {
    0%, 100% { transform: translateX(0) translateY(0px); }
    50% { transform: translateX(0) translateY(-5px); }
}

.timeline-icon {
    position: absolute;
    left: -47px;
    top: 5px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #64c4ff, #ff64c4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    z-index: 2;
    animation: iconGlow 2s infinite;
}

@keyframes iconGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(100, 196, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(100, 196, 255, 0); }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 196, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    border-color: rgba(100, 196, 255, 0.3);
    box-shadow: 0 10px 30px rgba(100, 196, 255, 0.2);
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.timeline-status {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Error Container */
.error-container {
    margin-top: 40px;
    text-align: center;
    animation: slideInUp 0.6s ease;
}

.error-card {
    background: rgba(255, 100, 100, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    animation: errorEntrance 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes errorEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateZ(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateZ(0deg);
    }
}

.error-icon {
    font-size: 60px;
    color: #ff6464;
    margin-bottom: 20px;
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-card h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
}

.error-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.retry-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6464, #ff9a9a);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 100, 100, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .animated-icon i {
        font-size: 60px;
    }
    
    .tracking-card {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .delivery-details {
        grid-template-columns: 1fr;
    }
    
    .demo-controls {
        flex-direction: column;
    }
    
    .package-visual {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .main-container {
        padding: 15px;
    }
    
    .tracking-card {
        padding: 25px 15px;
    }
    
    .track-btn {
        padding: 18px 30px;
        font-size: 16px;
    }
}

/* Status Update Animation */
@keyframes statusUpdate {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.status-updated {
    animation: statusUpdate 0.5s ease-out;
}

/* Status icon animations */
.status-icon.fas.fa-check-circle {
    animation: iconSuccess 2s infinite;
    color: rgba(255, 255, 255, 0.9);
}

.status-icon.fas.fa-truck {
    animation: truckMoving 3s infinite;
    color: rgba(255, 255, 255, 0.9);
}

.status-icon.fas.fa-route {
    animation: iconPulse 2s infinite;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes iconSuccess {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
}

@keyframes truckMoving {
    0% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(-5px); }
}
