/* ==========================================================================
   BINGO TECH - MASTER STYLESHEET
   ========================================================================== */

/* --- 1. Global Variables & Dark Neon Theme --- */
:root {
    --bg-main: #0a0e17;
    --bg-card: #121824;
    --bg-hover: #1a2333;
    --primary-blue: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.3);
    --accent-green: #00ff88;
    --accent-red: #ff3366;
    --accent-yellow: #ffcc00;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* --- 2. Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* --- 3. Typography & Section Headers --- */
h1, h2, h3, h4 {
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- 4. Buttons & Badges --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: #fff;
}

.btn-add {
    background: rgba(0, 210, 255, 0.15);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-add:hover {
    background: var(--primary-blue);
    color: #fff;
}

.full-width {
    width: 100%;
}

.badge {
    background: rgba(0, 210, 255, 0.15);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-blue);
    display: inline-block;
    margin-bottom: 15px;
}

/* --- 5. Main Header & Mobile Navigation --- */
.main-header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-white);
    white-space: nowrap;
}

.logo-text span {
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    position: relative;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 5px;
}

/* --- 6. Hero Section --- */
.hero-section {
    padding: 60px 0;
    background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.1) 0%, transparent 60%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.banner-hero {
    width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- 7. Product Cards Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.15);
}

.product-img-wrapper {
    position: relative;
    height: 200px;
    background: #182232;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 14, 23, 0.8);
    color: var(--primary-blue);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-info .description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-footer .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-blue);
}

/* --- 8. Forms & Inputs --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* --- 9. Service Box & Forms --- */
.service-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* --- 10. Shopping Cart Modal Sidebar --- */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-card);
    z-index: 2000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.open {
    right: 0;
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 25px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* --- 11. Footer --- */
footer {
    background: #06090f;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet Fixes)
   ========================================================================== */

@media (max-width: 768px) {
    /* --- Mobile Navigation --- */
    .mobile-toggle {
        display: block !important;
    }
    /* --- Fix Mascot Image Size --- */
#serviceResult img,
.service-box img {
    max-width: 70px !important;
    max-height: 70px !important;
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        gap: 0;
        border-bottom: 2px solid var(--primary-blue);
        display: none;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    /* --- Hero Mobile Layout --- */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    /* --- Service Box Mobile Layout (1 Column Fix) --- */
    .service-box {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 20px !important;
    }

    /* --- Cart Modal Width on Mobile --- */
    .cart-modal {
        max-width: 100%;
    }
}