@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap");

:root {
    --color-dark: #0a0a0a;
    --color-light: #fff;
    --color-primary: #ff0000;
    --color-primary-dark: #cc0000;
    --color-secondary: #1a1a1a;
    --shadow-red-sm: 0 5px 20px rgba(255, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    background: var(--color-dark);
    color: var(--color-light);
}

/* Nav & Header */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, red, #888);
    -webkit-background-clip: text;
    background-clip: text;
    background-clip: text;
    background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    letter-spacing: 5px;
}

.nav-link {
    color: var(--color-light) !important;
    font-weight: 600;
    margin: 0 15px;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), #ff6b6b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: var(--color-primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-primary);
    color: var(--color-light);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            var(--color-dark) 0%,
            var(--color-secondary) 50%,
            var(--color-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: 20px;
    background: linear-gradient(135deg, var(--color-light) 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: glitch 3s infinite;
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    padding: 18px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg,
            var(--color-primary),
            var(--color-primary-dark));
    border: none;
    border-radius: 50px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.6);
}

/* Sections & Titles */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin-bottom: 60px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #ff6b6b);
    border-radius: 2px;
}

/* Product Cards */
.product-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
}

.product-image {
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.product-card:hover .product-image::after {
    left: 100%;
}

.card-body {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--color-light);
}

.price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.add-to-cart {
    background: transparent;
    border: 2px solid var(--color-light);
    color: var(--color-light);
    padding: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-light);
    transition: all 0.3s ease;
    z-index: -1;
}

.add-to-cart:hover::before {
    left: 0;
}

.add-to-cart:hover {
    color: var(--color-dark);
    border-color: var(--color-light);
}

/* Feature Cards */
.feature-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 0, 0, 0.5);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 20px;
}

.footer-links a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg,
            var(--color-primary),
            var(--color-primary-dark));
    color: var(--color-light);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-red-sm);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
}

.scroll-top.show {
    display: flex;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 4rem;
        letter-spacing: 10px;
    }

    .hero p {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Testimonials */
.testimonial-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.08);
    color: #fff;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-card .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--color-primary);
}

.testimonial-card .name {
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-card .stars {
    color: #ffd700;
    margin-bottom: 10px;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg,
            var(--color-secondary) 0%,
            var(--color-dark) 100%);
    padding: 60px 0;
}

.newsletter-form input[type="email"] {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    border: none;
    padding: 15px 30px;
    background: linear-gradient(135deg,
            var(--color-primary),
            var(--color-primary-dark));
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg,
            var(--color-primary-dark),
            var(--color-primary));
}