:root {
    --primary-purple: #7c3aed;
    --purple-dark: #6d28d9;
    --purple-light: #a78bfa;
    --purple-lighter: #ddd6fe;
    --white: #ffffff;
    --gray-light: #f3f4f6;
    --gray-medium: #9ca3af;
    --gray-dark: #4b5563;
    --error-red: #ef4444;
    --success-green: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--purple-lighter);
    border: 2px solid var(--primary-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-link:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 50%, var(--primary-purple) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-icon {
    margin: 0 auto 2rem;
    width: 200px;
    height: 200px;
    animation: float 3s ease-in-out infinite;
}

.hero-icon svg {
    width: 100%;
    height: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-purple);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.box-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.box-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation: float 5s ease-in-out infinite 1s;
}

.box-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation: float 6s ease-in-out infinite 2s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-align: center;
    margin-bottom: 3rem;
}

.tracking-section {
    padding: 6rem 0;
    background: var(--gray-light);
}

.tracking-card {
    max-width: 600px;
    margin: 0 auto 2rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
}

.tracking-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tracking-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--purple-lighter);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.tracking-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.track-button {
    padding: 1rem 2rem;
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-button:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.track-button:active {
    transform: translateY(0);
}

.tracking-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.error-message {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.25rem 1.5rem;
    background: #fee2e2;
    border-left: 4px solid var(--error-red);
    border-radius: 12px;
    color: #991b1b;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.tracking-results {
    max-width: 800px;
    margin: 3rem auto 0;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
    animation: slideDown 0.5s ease;
}

.results-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--purple-lighter);
}

.results-title {
    font-size: 1.75rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 600;
    color: var(--gray-dark);
}

.info-value {
    color: var(--primary-purple);
    font-weight: 600;
}

.info-separator {
    color: var(--purple-light);
    font-size: 1.25rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--purple-lighter);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
    animation: fadeInLeft 0.5s ease backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
.timeline-item:nth-child(9) { animation-delay: 0.9s; }
.timeline-item:nth-child(10) { animation-delay: 1s; }

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-purple);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--purple-lighter);
    z-index: 1;
}

.timeline-content {
    background: var(--gray-light);
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background: var(--purple-lighter);
    transform: translateX(5px);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.25rem;
}

.timeline-detail {
    font-size: 0.95rem;
    color: var(--gray-medium);
}

.about-section {
    padding: 6rem 0;
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--gray-dark);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.country-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.country-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.country-flag {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.country-name {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.country-description {
    color: var(--gray-medium);
}

.contact-section {
    padding: 6rem 0;
    background: var(--gray-light);
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--purple-lighter);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-details {
    flex: 1;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

.contact-text {
    color: var(--gray-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.footer {
    background: var(--primary-purple);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    margin: 0;
    opacity: 0.9;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

    .logo-placeholder {
        width: 32px;
        height: 32px;
        font-size: 0.6rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tracking-input-group {
        flex-direction: column;
    }

    .countries-grid {
        grid-template-columns: 1fr;
    }

    .results-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-separator {
        display: none;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.3rem;
        font-size: 0.7rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }
}
