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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(30, 30, 30, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #5e5e5e;
    --accent-hover: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --success: #2ecc71;
    --danger: #e74c3c;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.85);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--text-secondary);
}

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

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

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

input:focus {
    border-color: var(--text-primary);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Utility */
.text-center { text-align: center; }
.mt-100 { margin-top: 100px; }
.pb-100 { padding-bottom: 100px; }

/* Responsive Navigation (Hamburger Menu) */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    background: transparent;
    border: none;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links, .nav-icons {
        display: none; /* Hidden by default on mobile */
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }
    
    nav {
        flex-wrap: wrap;
    }
    
    .nav-active .nav-links, .nav-active .nav-icons {
        display: flex;
        background: rgba(10, 10, 10, 0.95);
        border-bottom: 1px solid var(--border);
    }
    
    /* Make the hero look okay on mobile */
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero {
        padding-top: 80px;
    }
    
    /* Make all inline custom grid columns stack vertically on mobile */
    [style*="grid-template-columns"]:not([style*="repeat"]) {
        grid-template-columns: 1fr !important;
    }

    /* Convert tables into scrollable blocks so they don't widen the screen */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust heavy paddings and margins for mobile screens */
    .glass {
        padding: 20px !important;
    }
    
    /* Make inline structural flex containers stack vertically */
    .container div[style*="display: flex; gap: 50px"],
    .container div[style*="display: flex; gap: 60px"],
    .container div[style*="display: flex; gap: 80px"] {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    /* Remove breaking min-widths (like in product display) */
    div[style*="min-width: 400px"] {
        min-width: 100% !important;
    }
    
    /* Sidebar specific width override */
    aside[style*="width: 250px"] {
        width: 100% !important;
    }

    .mt-100 { margin-top: 60px; }
    .pb-100 { padding-bottom: 60px; }
}
