/* ==========================================================================
   Design System & Base Styling
   ========================================================================== */

:root {
    /* Color Palette - HSL Tailored Dark Theme */
    --bg-dark: hsl(224, 25%, 8%);
    --bg-card: hsla(224, 25%, 12%, 0.6);
    --border-color: hsla(225, 20%, 80%, 0.1);
    
    --primary: hsl(280, 85%, 65%);
    --primary-hover: hsl(280, 95%, 70%);
    --primary-glow: hsla(280, 85%, 65%, 0.35);
    
    --accent: hsl(190, 90%, 55%);
    --accent-hover: hsl(190, 100%, 60%);
    
    --text-main: hsl(220, 15%, 90%);
    --text-muted: hsl(220, 10%, 65%);
    
    --danger: hsl(350, 80%, 60%);
    --success: hsl(145, 80%, 50%);
    
    /* Font Configurations */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Box Shadows & Blurs */
    --panel-blur: blur(12px) saturate(180%);
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px var(--primary-glow);
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Glow Background Elements
   ========================================================================== */

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.glow-1 {
    width: 450px;
    height: 450px;
    background-color: var(--primary);
    top: -100px;
    right: -50px;
    animation: pulse-glow 8s infinite alternate;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background-color: var(--accent);
    bottom: -150px;
    left: -100px;
    animation: pulse-glow 12s infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.2; }
    100% { transform: scale(1.2) translate(30px, 30px); opacity: 0.4; }
}

/* ==========================================================================
   Glass Panels & Cards
   ========================================================================== */

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: hsla(280, 85%, 65%, 0.25);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 15px hsla(280, 85%, 65%, 0.05);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(13, 17, 28, 0.4);
    backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.95); }
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    position: relative;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
    pointer-events: none;
}

.cart-trigger {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-icon {
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: translateY(2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 35px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 10px;
    transition: var(--transition);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Filter Bar & Section Headers
   ========================================================================== */

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 8px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.filter-btn.active {
    color: white;
    background: var(--primary);
    box-shadow: 0 0 15px rgba(280, 85, 65, 0.25);
}

/* ==========================================================================
   Products Grid & Cards
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.product-image-container {
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, rgba(280, 85, 65, 0.1), rgba(190, 90, 55, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.product-placeholder-icon {
    font-size: 4rem;
    color: hsla(280, 85%, 65%, 0.4);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: rgba(13, 17, 28, 0.8);
    backdrop-filter: var(--panel-blur);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
}

.product-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

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

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.loading-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-section {
    padding: 100px 0;
    background: rgba(13, 17, 28, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(280, 85, 65, 0.15), rgba(190, 90, 55, 0.15));
    border: 1px solid hsla(280, 85%, 65%, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(280, 85, 65, 0.05);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Contact Section & Forms
   ========================================================================== */

.contact-section {
    padding: 100px 0 150px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    align-items: center;
}

.contact-text {
    color: var(--text-muted);
    margin: 20px 0 40px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.info-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.info-val {
    font-size: 1rem;
    font-weight: 500;
}

.contact-form-panel {
    padding: 40px;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(280, 85, 65, 0.15);
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* ==========================================================================
   Modals & Sidebars
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 20, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-product-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modal-product-tech {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

.modal-product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.modal-features-list {
    margin-bottom: 30px;
    padding-left: 20px;
}

.modal-features-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    z-index: 150;
    border-radius: 0;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px;
    transition: var(--transition);
}

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

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

.cart-close {
    font-size: 1.8rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

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

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 20px;
}

#cartTotalVal {
    color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.glass-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(10, 12, 20, 0.8);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu can be simplified */
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
