/* --- GOOGLE FONT --- */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Roboto:wght@400;700&display=swap');

/* --- CSS VARIABLES (Theme Colors) --- */
:root {
    --color-dark: #121212;
    --color-dark-2: #1E1E1E;
    --color-gray: #333;
    --color-light: #f4f4f4;
    --color-text: #ffffff;
    --color-primary: #9f50ff; /* Vibrant Purple */
    --color-secondary: #00ff9d; /* Neon Green */
    --color-accent: #00c3ff;   /* Neon Blue */
    --font-heading: 'Russo One', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- GLOBAL RESET & STYLING --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-heading);
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

.btn:hover {
    background-color: var(--color-text);
    color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-accent), 0 0 25px var(--color-accent);
}

.btn.btn-success {
    background-color: var(--color-secondary);
    color: var(--color-dark-2);
    box-shadow: 0 0 10px var(--color-secondary), 0 0 20px var(--color-secondary);
}

.btn.btn-success:hover {
    background-color: var(--color-text);
    color: var(--color-dark-2);
}

/* --- HEADER & WALLET --- */
header {
    background-color: var(--color-dark-2);
    padding: 15px 0;
    border-bottom: 2px solid var(--color-primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px; /* Ensure logo is visible and sized appropriately */
    width: auto; /* Maintain aspect ratio */
}

.header-right {
    display: flex;
    align-items: center;
}

.wallet-container {
    display: flex;
    align-items: center;
    background-color: var(--color-gray);
    border-radius: 25px;
    padding: 5px;
    cursor: pointer; /* ADDED: Makes it feel clickable */
    transition: all 0.3s ease;
}

.wallet-container:hover {
    background-color: #444; /* Slight hover effect */
    transform: scale(1.05);
}

.wallet-container .fa-wallet {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin: 0 10px;
    animation: glow 2s infinite alternate;
}

.wallet-button {
    background-color: var(--color-primary);
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: bold;
    font-family: var(--font-heading);
    color: var(--color-text);
    box-shadow: 0 0 10px var(--color-primary);
}

/* --- BRAND INTRO SECTION --- */
.brand-intro {
    background-color: var(--color-dark-2);
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid var(--color-secondary);
    box-shadow: 0 0 20px rgba(0,255,157,0.5); /* Green glow effect */
}

.animated-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-secondary); /* Solid neon green color */
    text-shadow: 0 0 10px var(--color-secondary); /* A single, subtle shadow */
    margin: 0;
}

/* --- BANNER --- */
.banner {
    margin-bottom: 30px; /* Add some space below the banner */
}
.banner img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
}

/* --- PRODUCTS SECTION --- */
.products {
    padding: 40px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-secondary);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--color-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--color-dark-2);
    border: 1px solid var(--color-gray);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 15px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--color-primary);
    border-color: var(--color-primary);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
}

.product-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-light);
    margin-bottom: 10px;
}

.price {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.price del {
    color: #888;
    margin-right: 10px;
    font-size: 1rem;
}

.price span {
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.4rem;
}

.product-card .btn {
    margin-top: auto; /* Pushes button to the bottom */
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-dark-2);
    color: #888;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 2px solid var(--color-gray);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--color-accent);
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- MODAL (POPUP) STYLES --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-dark-2);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--color-light);
}

.modal-content h2,
.modal-content h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

/* Specific modal for QR code */
.qr-modal .modal-content {
    max-width: 350px;
    text-align: center;
    border-color: var(--color-secondary);
    box-shadow: 0 0 30px var(--color-secondary);
}

.qr-modal h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

/* NEW: Wallet Modal Title Style */
.wallet-modal-title {
    color: var(--color-secondary) !important; /* !important to override the default purple */
    text-shadow: 0 0 10px var(--color-secondary);
    text-align: center;
}


/* --- ANIMATIONS --- */
@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent);
    }
    to {
        text-shadow: 0 0 20px var(--color-accent), 0 0 30px var(--color-accent);
    }
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 5px var(--color-secondary), 0 0 10px var(--color-secondary);
    }
    50% {
        text-shadow: 0 0 10px var(--color-secondary), 0 0 20px var(--color-secondary);
    }
    100% {
        text-shadow: 0 0 5px var(--color-secondary), 0 0 10px var(--color-secondary);
    }
}

/* --- RESPONSIVE DESIGN (Mobile Friendly) --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .animated-text {
        font-size: 2rem; /* Smaller font on mobile */
    }

    .section-title {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr; /* Stack products on mobile */
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 40px;
    }
    .wallet-container {
        padding: 3px;
    }
    .wallet-button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    .wallet-container .fa-wallet {
        font-size: 1.2rem;
    }
    .animated-text {
        font-size: 1.5rem; /* Even smaller font on very small screens */
    }
}