:root {
    --purple: #5b2ca1;
    --purple-dark: #3d1c72;
    --light: #f6f6f6;
    --gray: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Segoe UI, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--light);
    color: #333;
}

/* HEADER */

header {
    background: var(--purple);
    color: white;
    padding: 18px;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    font-weight: bold;
    padding: 15px;
}

.site-name {
    color: #fff;
}

nav {
    background: var(--purple-dark);
    position: sticky;
    top: 0;
    z-index: 999;
}

nav ul {
    list-style: none;
    display: none;
    flex-direction: column;
}

nav ul li a {
    display: block;
    padding: 14px;
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    background: var(--purple);
}

.menu-toggle {
    color: white;
    padding: 12px;
    font-size: 1.4rem;
    cursor: pointer;
}

/* HERO */

/* HERO */

#hero {
    height: 80vh;

    /* Correct image path */
    background: url(images/bg.jpeg) center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

/* Dark overlay for readability */

#hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0, 0, 0, 0.45);

    /* Allows clicking the input */
    pointer-events: none;

    z-index: 1;
}

/* Content must stay above overlay */

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeUp 1s ease;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.track-box {
    background: white;
    padding: 10px;
    border-radius: 50px;
    display: flex;
    overflow: hidden;
    max-width: 450px;
    margin: auto;
}

.track-box input {
    border: none;
    padding: 12px;
    flex: 1;
    outline: none;
}

.track-box button {
    background: var(--purple);
    border: none;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
}

/* CARDS */

#cards {
    padding: 40px 20px;
    display: grid;
    gap: 25px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 10px;
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* FAQ */

#faq {
    background: #ececec;
    padding: 40px 20px;
}

#faq h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--purple);
}

.faq-item {
    background: white;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background: var(--purple);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    padding: 0 15px;
}

.faq-answer p {
    padding: 15px 0;
}

/* CONTACT */

#address {
    padding: 40px 20px;
    display: grid;
    gap: 20px;
}

.contact-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-box i {
    color: var(--purple);
    margin-right: 8px;
}

/* FOOTER */

footer {
    background: var(--purple-dark);
    color: white;
    text-align: center;
    padding: 25px;
}

.social {
    margin-top: 10px;
}

.social i {
    margin: 0 10px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: .3s;
}

.social i:hover {
    color: #ccc;
}

/* DESKTOP */

@media(min-width:768px) {

    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .menu-toggle {
        display: none;
    }

    #cards {
        grid-template-columns: repeat(3, 1fr);
    }

    #address {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

}

/* ANIMATION */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeUp .4s ease;
}

.modal-content h2 {
    color: var(--purple);
    margin-bottom: 15px;
}

.close-modal {
    float: right;
    font-size: 22px;
    cursor: pointer;
}

.tracking-info {
    margin-top: 10px;
}

.tracking-info p {
    margin: 8px 0;
}

.tracking-info strong {
    color: var(--purple-dark);
}
.status {
    color: green;
    font-weight: bold;
}
