@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('image.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    position: relative;
    /* Adding a subtle background color backup in case the image fails to load */
    background-color: #0f172a;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay for better text readability */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(15, 23, 42, 0.7) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    max-width: 900px;
    width: 90%;
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 3.5rem;
    /* Increased margin to account for visual scale */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 100px;
    /* Base height for the layout container */
    width: auto;
    max-width: 100%;
    display: block;
    transform: scale(6);
    /* This "zooms" the logo content without growing the div size */
    /* transition: transform 0.3s ease; */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* .logo:hover {
    transform: scale(1.02);
} */

.message-container h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.message-container p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    overflow-x: auto;
    padding: 10px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.cards-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.cards-container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 140px;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 32px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;

    /* Background Image Setup */
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Hover effects */
.card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

/* Background Brand Colors */
.amazon-card {
    background-image: url('amazon.png');
    background-color: #ffffff;
    background-size: 85%;
    /* Zoomed in */
}

.amazon-card:hover {
    box-shadow: 0 15px 30px rgba(255, 153, 0, 0.3);
}

.bestbuy-card {
    background-image: url('bestbuy.png');
    background-color: #003fac;
}

.bestbuy-card:hover {
    box-shadow: 0 15px 30px rgba(0, 70, 190, 0.3);
}

.walmart-card {
    background-image: url('walmart.webp');
    background-color: hsl(0, 0%, 100%);
    background-size: 90%;
    /* Zoomed in */
}

.walmart-card:hover {
    box-shadow: 0 15px 30px rgba(0, 113, 206, 0.3);
}

/* Shine effect */
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: 0.6s;
    pointer-events: none;
}

.card:hover::after {
    left: 100%;
    top: 100%;
}

/* Responsive Design Overrides */
@media (max-width: 768px) {
    .cards-container {
        gap: 1rem;
        padding-bottom: 20px;
    }

    .card {
        width: 100px;
        /* Smaller squares for smaller phones */
        border-radius: 24px;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .content {
        padding: 2.5rem;
    }

    .message-container h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
        gap: 1rem;
    }

    .content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .message-container h1 {
        font-size: 2.2rem;
    }

    .logo {
        max-height: 60px;
    }

    .card {
        padding: 1.5rem;
    }
}