:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --text-color: #ffffff;
    --primary-color: #ff0000;
    --secondary-color: #333333;
    --neon-green: #39FF14;
    --neon-green-hover: #32CD32;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-red { color: var(--primary-color); }
.text-center { text-align: center; }

/* Header & Nav */
header {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
    height: 60px; /* Large logo as requested */
    display: block;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-speed);
}

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

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

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), var(--bg-color)), url('assets/hero_custom.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-text p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* Feature Section (Cybertruck) */
.feature-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-speed);
}

.btn-primary:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 30px;
    border: 1px solid white;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 15px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    transition: var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.product-img {
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    position: relative;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    padding-bottom: 60px; /* Space for absolute elements */
}

.product-info.no-img {
    min-height: 200px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary-color);
}

/* References */
.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ref-card {
    text-align: center;
}

.ref-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-speed);
}

.footer-info a:hover {
    color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: var(--surface-color);
    z-index: 2000;
    padding: 40px;
    transition: 0.5s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

#close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.add-to-cart {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background-color: var(--neon-green);
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-speed);
    width: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart:hover {
    background-color: var(--neon-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--neon-green);
}


/* Responsive */
@media (max-width: 991px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .references-grid {
        grid-template-columns: 1fr;
    }
}
