* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #e30613;
    --dark-black: #0a0a0a;
    --medium-black: #1a1a1a;
    --light-black: #2a2a2a;
    --white: #ffffff;
    --light-gray: #f1f1f1;
    --dark-gray: #777777;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--dark-black) 0%, var(--light-black) 100%);
    color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: rgba(0, 0, 0, 0.95);
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--primary-red);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-red);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1528&q=80') no-repeat center center/cover;
    position: relative;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 span {
    color: var(--primary-red);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
    animation: fadeIn 2s ease-in-out;
}

.cta-button {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin: 60px 0 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-red);
}

.products {
    padding: 40px 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s, transform 0.6s;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.product-description {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.product-rating {
    color: #ffcc00;
    margin-bottom: 15px;
}

.order-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background 0.3s;
}

.order-btn:hover {
    background: #cc0000;
}

.ad-container {
    background: linear-gradient(to right, #000000, #2a0e0e);
    padding: 30px;
    margin: 50px 0;
    text-align: center;
    border-top: 2px solid var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

.ad-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.ad-text {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

.ad-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: linear-gradient(45deg, var(--medium-black), var(--light-black));
    margin: 20px auto;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: bold;
    border: 1px solid var(--primary-red);
}

.ad-banner.mobile {
    max-width: 300px;
    height: 250px;
    margin: 30px auto;
}

footer {
    background: #000;
    padding: 40px 5%;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #777;
}

/* Modal Popup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, var(--medium-black) 0%, var(--light-black) 100%);
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    position: relative;
    animation: modalFade 0.5s;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--white);
    background: var(--primary-red);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.close-btn:hover {
    background: #cc0000;
}

.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.gallery-main {
    height: 300px;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.thumb {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    transition: border 0.3s;
}

.thumb:hover, .thumb.active {
    border-color: var(--primary-red);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
    min-width: 300px;
}

.product-details h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-red);
}

.detail-price {
    font-size: 1.8rem;
    color: var(--primary-red);
    font-weight: 700;
    margin: 15px 0;
}

.product-specs {
    margin: 20px 0;
}

.product-specs h4, .product-comments h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-red);
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.spec-item {
    display: flex;
    margin-bottom: 8px;
}

.spec-name {
    flex: 1;
    color: #bbb;
}

.spec-value {
    flex: 2;
    color: var(--white);
}

.product-comments {
    margin-top: 30px;
}

.comment {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.comment-user {
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.comment-text {
    color: #ddd;
}

.comment-form {
    margin-top: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--white);
    margin-bottom: 10px;
    resize: vertical;
    min-height: 80px;
}

.comment-form button {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.show-more {
    text-align: center;
    margin: 40px 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-detail {
        flex-direction: column;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .ad-banner {
        max-width: 300px;
        height: 250px;
    }
}
