/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900&display=swap');

:root {
    --color1: #213e8c; /* #1a9dd5 */
    --color2: #ffffff;
    --color3: #f0f0f0;
    --highlight: #213e8c;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    max-width: 100vw;
    color: var(--color1);
    background-color: var(--color3);
    -webkit-tap-highlight-color: transparent;
    
}
/* Navigation Bar */
nav {
    height: 90px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--color2);
    padding: 0 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

nav img {
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 60%;
}

nav ul li {
    padding: 0 15px;
}

nav ul a {
    text-decoration: none;
    color: var(--color1);
    font-weight: bold;
}


/* Banner Section */
.banner {
    min-height: fit-content;
    width: 100%;
    margin-top: 90px;
    aspect-ratio: 16/9;
    max-height: calc(100vh - 90px);
    overflow: hidden;
    background-image: url(/images/cover.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.banner h1 {
    height: 100%;
    width: 100%;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color2);
    font-size: 60px;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
/* About Us Section - Enhanced Interactivity */
#about-us {
    padding: 105px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color3);
}

#about-us .content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 7vh 0;
}

#about-us h1, #products h1, #payment h1, #track h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color1);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

#about-us h1::after, #products h1::after, #payment h1::after, #track h1::after{
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--highlight);
    margin: 10px auto 0;
    position: relative;
    transition: width 0.3s ease-in-out;
}

#about-us h1:hover::after, #products h1:hover::after, #payment h1:hover::after, #track h1:hover::after{
    width: 120px;
}

#about-us h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color1);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

#about-us h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--highlight);
    margin: 8px auto 0;
    position: relative;
    transition: width 0.3s ease-in-out;
}

#about-us h2:hover::after {
    width: 100px;
}


#about-us p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color1);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

#about-us p.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Background Effects */
#about-us::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: var(--highlight);
    border-radius: 50%;
    /* z-index: 1; */
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

#about-us::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: var(--highlight);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}


/* Card Container */
.card-container, .product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.card, .product-card {
    background-color: var(--color2);
    padding: 10px; /* Removed padding from the card itself */
    border-radius: 16px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 290px;
    max-width: 330px;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
}

.product-card img {
    width: 100%;
    height: 295px;
    border-radius: 2px;
}

/* Our Products Section */
#products {
    padding: 100px 30px;
    background-color: var(--color2);
    text-align: center;
}

#products h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color1);
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Contact Us Section */
/* Contact Us Section */
#contact-us {
    padding: 50px 20px 20px;
    background-color: var(--color1); /* Adjust this to match your website’s background */
    color: var(--color2);
    text-align: center;
    background-image: linear-gradient(135deg, var(--color1), var(--color1) 50%, var(--highlight) 50%);
    background-size: 200% 200%;
    animation: background-shift 5s ease-in-out infinite;
}

@keyframes background-shift {
    0%, 100% {
        background-position: left bottom;
    }
    50% {
        background-position: right top;
    }
}

#contact-us h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color2);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    margin-bottom: 35px;
}

#contact-us h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color2);
    margin: 10px auto 0;
    position: relative;
    transition: width 0.3s ease-in-out;
}

#contact-us h1:hover::after {
    width: 120px;
}

.contact-info {
    max-width: 500px;
    margin: 0 auto;
    font-size: 18px;
    text-align: left;
}

.contact-info p, .contact-info a, .social-media a{
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    color: var(--color2);
}

.contact-info i, .contact-info i, .social-media i{
    font-size: 24px;
}

.social-media{
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    background-color: var(--color1);
    padding: 20px;
}

/* Footer */
footer {
    padding: 20px;
    background-color: var(--color1); /* Adjust this to match your website’s color scheme */
    color: var(--color2);
    text-align: center;
    font-size: 16px;
    letter-spacing: 1.5px;
}

footer p {
    margin: 0;
    position: relative;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 90px; /* Position below the nav bar */
        left: 0;
        width: 100%;
        background-color: var(--color2);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        flex-direction: column;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }

    nav ul.responsive {
        max-height: 500px; /* Adjust based on content */
        opacity: 1;
    }

    nav ul li {
        width: 100%;
        padding: 15px 0;
        text-align: center;
        transition: background-color 0.3s ease;
    }

    .menu-toggle {
        display: block;
    }

    .banner h1, #contact-us h1, #about-us h1, #products h1{
        font-size: 35px;
    }
}

/* ===== Flip Card Styles ===== */
.cl-card { 
    perspective: 1200px; 
    cursor: pointer; 
}

.cl-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(.77,0,.175,1), box-shadow 0.3s ease-in-out;
    border-radius: 6px; 
    will-change: transform;
}

.cl-card.is-flipped .cl-inner { 
    transform: rotateY(180deg); 
}

.cl-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden; /* very important */
    border-radius: inherit;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(.77,0,.175,1), opacity 0.6s ease-in-out;
}


.cl-front { 
    z-index: 2; 
}

.cl-back {
    transform: rotateY(180deg);
    background-color: var(--color3);
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.cl-back-content {
    position: relative;
    width: 100%;
    padding: 18px 14px;
    font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    text-align: left; /* left-align content */
}

.cl-product-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    margin: 4px 0 10px 0;
    color: var(--color1);
    line-height: 1.25;
    text-align: center; 
}

/* ===== Timeline Styles ===== */
.cl-timeline {
    position: relative;
    width: 100%;
    padding-top: 6px;
    margin-left: 20px; /* offset content from card left edge */
}

.cl-timeline::before {
    content: "";
    position: absolute;
    left: 20px; /* move spine to left edge */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(10, 37, 64, 0.12);
    transform: none;
}

.cl-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cl-feature-item {
    position: relative;
    margin: 12px 0;
    min-height: 18px;
    line-height: 1.35;
    font-size: 13.5px;
    color: #2b2f36;
}

.cl-feature-item::before {
    content: "";
    position: absolute;
    left: 14px; /* align node with spine */
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color1);
    box-shadow: 0 0 0 3px #ffffff inset;
}

.cl-feature-text {
    display: block;
    margin-left: 40px; /* space from spine */
    text-align: left;
    padding: 0;
}

/* Hover & Accessibility */
.cl-card:hover .cl-inner:not(.is-flipped) { filter: none; }

.cl-card:focus { outline: none; }
.cl-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(10, 102, 194, .35);
    border-radius: 12px;
}

/* Small screens */
@media (max-width: 480px) {
    .cl-product-title { font-size: 15px; }
    .cl-feature-item { font-size: 13px; }
}
   
.product-instruction {
    text-align: center;
    font-size: 1rem;
    color: #2b2f36;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Payment Section */
#payment {
    padding: 100px 30px;
    text-align: center;
    background-color: var(--color2);
}

#payment h1 {
    padding: 65px 30px;
}


.payment-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.payment-card {
    background: var(--color3);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
}

.payment-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--highlight);
}

.payment-card img {
    width: 220px;
    height: 220px;
    object-fit: fill;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    border: 2px solid var(--highlight);
}

.payment-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    color: var(--color1);
}

.payment-card ul li {
    font-size: 16px;
    margin: 10px 0;
}

/* Share QR Button */
#shareQrBtn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color2);
    background-color: var(--highlight);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(33, 62, 140, 0.3);
}

#shareQrBtn:hover {
    background-color: #0f296f; /* Slightly darker on hover */
    box-shadow: 0 6px 12px rgba(33, 62, 140, 0.4);
    transform: translateY(-2px);
}

#shareQrBtn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(33, 62, 140, 0.2);
}

/* ================== Parcel Tracking Section ================== */

#track {
    padding: 100px 30px;
    text-align: center;
    background-color: var(--color2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

#track h1 {
    padding: 45px 0 10px 0;
    color: var(--color1);
}

/* Parcel Tracking Card */
.parcel-track-card {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    padding: 35px 25px;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 2px solid #ccc;
}

#track-message {
    font-size: 1rem;
    color: #222;
    line-height: 1.5;
    text-align: center;
}

/* Track Parcel Button - Gradient Style */
#track-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #213e8c, #1a9dd5);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(33, 62, 140, 0.3);
}

#track-btn:hover {
    background: linear-gradient(135deg, #1a9dd5, #213e8c);
    box-shadow: 0 10px 20px rgba(33, 62, 140, 0.35);
}

#track-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Copy AWB Button - Outline Style */
#copy-awb-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    color: #213e8c;
    background-color: transparent;
    border: 2px solid #213e8c;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#copy-awb-btn:hover {
    background-color: #213e8c;
    color: #fff;
    box-shadow: 0 6px 12px rgba(33, 62, 140, 0.25);
}

#copy-awb-btn:disabled {
    background-color: #eee;
    border-color: #ccc;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
}

/* Tracking Note */
#track-note {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .parcel-track-card {
        padding: 25px 20px;
    }

    #track-btn, #copy-awb-btn {
        width: 100%;
        font-size: 16px;
    }

    #track-note {
        font-size: 0.85rem;
    }
}
