:root {
    /* Brand Colors - Electric Theme */
    --primary-color: #00f3ff;
    /* Cyan/Electric Blue */
    --primary-glow: rgba(0, 243, 255, 0.6);
    --secondary-color: #7000ff;
    /* Deep purplish blue */

    --bg-color: #050505;
    --dark-bg-2: #0f1014;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;

    --font-main: 'Outfit', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    --border-radius: 12px;
    --transition-speed: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: var(--spacing-lg) 0;
}

.text-accent {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow), inset 0 0 0 transparent;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 10px var(--primary-glow);
}

.btn-outline {
    border-color: var(--text-color);
    color: var(--text-color);
}

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

.btn-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-nav:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0;
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo img {
    height: 90px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.4) 50%, var(--bg-color) 100%);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Store / Products Section */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--dark-bg-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover,
.product-card.active {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.2);
    border-color: var(--primary-color);
}

/* Product Gallery */
.product-gallery {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.main-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: #000;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain ensures the whole product is seen */
    transition: opacity 0.3s;
}

.thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.2s;
}

.thumbnails img:hover,
.thumbnails img.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(to bottom, var(--dark-bg-2), #0a0a0c);
}

.product-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.price {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px var(--primary-glow);
}

.short-desc {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Hover Reveal Effect */
.product-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.product-card:hover .product-details,
.product-card.active .product-details {
    max-height: 400px;
    /* Increased slightly to prevent cutoff */
    opacity: 1;
    margin-top: 1rem;
}

.specs-list {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    text-align: left;
}

.specs-list li {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
}

.specs-list li::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--dark-bg-2);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--dark-bg-2);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.copyright {
    color: #555;
    font-size: 0.9rem;
}

/* Animations & Effects */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
        /* Ensure toggle is above the overlay */
    }

    /* Animate Hamburger to X */
    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background-color: var(--primary-color);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        background-color: var(--primary-color);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        /* Safari support */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;

        /* Hidden State */
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        /* Visible State */
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease forwards;
    }

    /* Staggered Animation for Links */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li a {
        font-size: 2rem;
        /* Larger font for mobile */
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .nav-links li a:hover {
        color: var(--primary-color);
        letter-spacing: 4px;
        /* Slight expansion effect */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }

    .product-card:hover .product-details {
        max-height: 500px;
    }
}