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

:root {
  --bg-color: #050505;
  --bg-surface: #0D0D12;
  --bg-glass: rgba(13, 13, 18, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --primary: #A855F7;
  --accent: #22D3EE;
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--bg-color); color: var(--text-main); font-family: var(--font-body); }
body { overflow-x: hidden; position: relative; padding-top: 80px; } 

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }

.text-gradient { background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 30px; font-family: var(--font-display); font-weight: 600; transition: var(--transition); cursor: pointer; border: none; font-size: 1rem; text-align: center;}
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%); color: var(--bg-color); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }

/* Global Header */
.global-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: var(--bg-glass); border-bottom: 1px solid var(--border-glass); }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; max-width: 1500px; margin: 0 auto; }
.logo-link { display: flex; align-items: center; gap: 15px; }
.logo-link img { height: 35px; }
.bizzi-badge { font-size: 0.75rem; color: var(--text-muted); border: 1px solid var(--border-glass); padding: 4px 10px; border-radius: 20px; }
.mega-menu ul { display: flex; gap: 2rem; align-items: center; }
.mega-menu a { color: var(--text-main); font-size: 0.95rem; font-weight: 500; transition: var(--transition); }
.mega-menu a:hover { color: var(--accent); }

/* Global Footer */
.global-footer { border-top: 1px solid var(--border-glass); padding: 5rem 5% 2rem; margin-top: 5rem; background: var(--bg-surface); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: 1500px; margin: 0 auto; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-main); }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 0.8rem; font-size: 0.9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); transform: translateX(5px); }
.footer-bottom { text-align: center; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-glass); color: var(--text-muted); font-size: 0.85rem; }

/* Product Dashboard Horizontal Layout */
.mobile-category-selector { display: none; }
.products-page { padding: 4rem 5%; max-width: 1500px; margin: 0 auto; }
.products-hero { text-align: center; margin-bottom: 4rem; }
.products-hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.products-container-full { width: 100%; display: flex; flex-direction: column; gap: 2rem; }

/* Sleek Horizontally Scrolling Tabs */
.category-tabs-horizontal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-glass); margin-bottom: 1rem; }
.tab-btn-hz { white-space: nowrap; background: var(--bg-surface); border: 1px solid var(--border-glass); color: var(--text-muted); padding: 0.8rem 1.5rem; border-radius: 30px; cursor: pointer; transition: var(--transition); font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; }
.tab-btn-hz:hover { color: var(--text-main); border-color: rgba(255,255,255,0.2); }
.tab-btn-hz.active { background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%); border-color: var(--primary); color: var(--accent); box-shadow: 0 0 15px rgba(168, 85, 247, 0.2); }

.products-content { flex: 1; }
.products-content h2 { font-size: 2rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border-glass); }

/* Generic Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }
.product-card { background: var(--bg-surface); border: 1px solid var(--border-glass); border-radius: 12px; padding: 2rem; transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 15px 30px -15px rgba(0,0,0,0.8); }
.product-card h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-main); }
.product-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* Internal Pages (About, Contact) */
.internal-hero { text-align: center; padding: 6rem 5%; max-width: 800px; margin: 0 auto; }
.internal-hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
.internal-content { max-width: 800px; margin: 0 auto 5rem; color: var(--text-muted); line-height: 1.8; font-size: 1.1rem; }
.internal-content h2 { color: var(--text-main); margin: 3rem 0 1rem; font-size: 2rem; }

/* Index Canvas specific */
.index-hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; margin-top: -80px; padding: 0 5%; }
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Mobile Responsiveness Matrix */
@media (min-width: 769px) {
    .mobile-toggle { display: none; }
}

@media (max-width: 768px) {
    /* Header Toggle */
    .header-container { flex-direction: row; justify-content: space-between; }
    .mega-menu ul.nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; top: 100%; left: 0; width: 100%; 
        background: var(--bg-surface); padding: 2rem; 
        border-bottom: 1px solid var(--border-glass); gap: 1.5rem; 
        text-align: center;
    }
    .mega-menu ul.nav-links.active { display: flex; }
    .mobile-toggle { 
        display: block; background: transparent; border: none; 
        color: var(--text-main); font-size: 1.8rem; cursor: pointer; 
    }
    
    /* Layout Scaling */
    .product-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .products-page, .internal-hero { padding: 2rem 5%; }
    .products-hero h1 { font-size: 2.5rem; }
    .index-hero h1 { font-size: 3rem !important; }
    
    /* UI Buttons Scaling */
    .btn { padding: 10px 20px; font-size: 0.9rem; width: 100%; display: block; margin-bottom: 0.5rem; }
    
    /* Canvas Offset Update for Mobile */
    .index-hero { min-height: 80vh; padding-top: 100px; }
    
    /* Category Pill Tag Condensing & Dropdown Switch */
    .category-tabs-horizontal { display: none !important; }
    .mobile-category-selector { display: block !important; width: 100%; margin-bottom: 1rem; position: relative; }
    .mobile-category-selector select { 
        width: 100%; appearance: none;
        background: var(--bg-surface); 
        color: var(--text-main); 
        padding: 1rem; font-size: 1rem; 
        border: 1px solid rgba(168, 85, 247, 0.4); 
        border-radius: 8px; 
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
        cursor: pointer;
        outline: none; font-family: var(--font-body);
    }
    .mobile-category-selector::after {
        content: "▼"; position: absolute; right: 1.2rem; top: 1rem; color: var(--accent); pointer-events: none; font-size: 1rem;
    }
}

/* Floating Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6), 0 0 40px rgba(168, 85, 247, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.9), 0 0 60px rgba(168, 85, 247, 0.7);
    transform: translateY(-5px);
}
