/* General Styles */
:root {
    --dark-bg: #1a1a1a;
    --dark-card: #2c2c2c;
    --neon-blue: #00ffff;
    --neon-purple: #ff00ff;
    --neon-green: #00ff00;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-glow: rgba(0, 255, 255, 0.5);
    --button-glow: rgba(255, 0, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--neon-purple);
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5em;
    padding-bottom: 10px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient_deg, var(--neon-blue), var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-purple);
}

/* Header */
.main-header {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.main-header.sticky {
    background-color: var(--dark-bg);
    box-shadow: 0 2px 15px var(--neon-purple);
}

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

.logo a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green);
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
}

.main-nav .nav-links li {
    margin-left: 30px;
}

.main-nav .nav-links a {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav .nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 8px var(--neon-blue);
}

.hamburger {
    display: none;
    font-size: 1.8em;
    color: var(--neon-blue);
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav-overlay.open {
    transform: translateX(0);
}

.mobile-nav-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3em;
    color: var(--neon-blue);
    cursor: pointer;
}

.mobile-nav-overlay .mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-overlay .mobile-nav-links li {
    margin: 25px 0;
}

.mobile-nav-overlay .mobile-nav-links a {
    font-size: 2em;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
    transition: color 0.3s ease;
}

.mobile-nav-overlay .mobile-nav-links a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('../img/hero.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
    position: relative;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 30px;
    text-shadow: 0 0 15px var(--neon-blue), 0 0 25px var(--neon-purple);
    line-height: 1.2;
}

.btn-shop-now {
    display: inline-block;
    background: linear-gradient_deg, var(--neon-purple), var(--neon-blue);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--neon-purple);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-shop-now::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: 0.5s;
    z-index: -1;
}

.btn-shop-now:hover::before {
    left: 100%;
}

.btn-shop-now:hover {
    box-shadow: 0 0 25px var(--neon-blue), 0 0 40px var(--neon-purple);
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--neon-green);
}

.scroll-indicator span {
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    margin-bottom: 5px;
    opacity: 0;
    animation: scrollBounce 2s infinite ease-in-out;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

/* About Us Section */
.about-section {
    padding: 80px 0;
    background-color: var(--dark-card);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--border-glow);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--neon-purple);
}

/* Product Showcase */
.product-showcase {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

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

.product-item {
    background-color: var(--dark-card);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity 0.5s ease;
    z-index: 0;
}

.product-item:hover::before {
    animation: shineEffect 1.5s infinite;
    opacity: 0.15;
}

@keyframes shineEffect {
    0% {
        transform: rotate(45deg) translate(-50%, -50%);
    }
    100% {
        transform: rotate(45deg) translate(50%, 50%);
    }
}

.product-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 25px var(--neon-purple);
    border-color: var(--neon-blue);
}

.product-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--neon-green);
}

.product-item .price {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--neon-blue);
    margin-bottom: 15px;
}

.btn-add-to-cart {
    background: var(--neon-blue);
    color: var(--dark-bg);
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--neon-blue);
    position: relative;
    z-index: 1;
}

.btn-add-to-cart:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple), 0 0 25px var(--neon-purple);
    transform: translateY(-2px);
}

/* Why Choose Us Section */
.why-choose-us-section {
    padding: 80px 0;
    background-color: var(--dark-card);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-box {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.05);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px var(--neon-blue);
}

.feature-box i {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 8px currentColor;
}

.feature-box .neon-blue { color: var(--neon-blue); }
.feature-box .neon-green { color: var(--neon-green); }
.feature-box .neon-purple { color: var(--neon-purple); }

.feature-box h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.feature-box p {
    font-size: 1em;
    color: var(--text-color);
}

/* Customer Reviews */
.customer-reviews-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.review-item {
    background-color: var(--dark-card);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.1);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    opacity: 0; /* Initial state for animation */
    transform: translateY(20px); /* Initial state for animation */
}

.review-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.review-item .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.review-item p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-color);
}

.review-item h4 {
    color: var(--neon-purple);
    font-size: 1.2em;
}

.review-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--neon-blue);
    border-color: var(--neon-purple);
}

/* Contact Us Section */
.contact-section {
    padding: 80px 0;
    background: url('../img/contact.png') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: rgba(44, 44, 44, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 25px var(--border-glow);
    border: 1px solid var(--neon-blue);
}

.contact-form-container {
    flex: 2;
    min-width: 300px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--neon-green);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-bg);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .error-message {
    color: #ff6347; /* Tomato */
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #ff6347;
    box-shadow: 0 0 10px #ff6347;
}

.btn-submit {
    background: linear-gradient_deg, var(--neon-blue), var(--neon-green);
    color: var(--dark-bg);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px var(--neon-blue);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient_deg, var(--neon-green), var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-green), 0 0 30px var(--neon-blue);
    transform: translateY(-3px);
}

.contact-sidebar {
    flex: 1;
    min-width: 280px;
    padding: 30px;
    background-color: rgba(26, 26, 26, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--neon-purple);
    border: 1px solid var(--neon-purple);
}

.contact-sidebar h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--neon-blue);
    text-align: left;
}

.contact-sidebar p {
    margin-bottom: 15px;
    font-size: 1.05em;
    display: flex;
    align-items: flex-start;
}

.contact-sidebar p i {
    margin-right: 10px;
    color: var(--neon-green);
    font-size: 1.2em;
    flex-shrink: 0;
    padding-top: 2px;
}

.contact-sidebar a {
    color: var(--neon-blue);
    transition: color 0.3s ease;
}

.contact-sidebar a:hover {
    color: var(--neon-purple);
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px var(--neon-green);
    border: 1px solid var(--neon-green);
}

.map-container iframe {
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: #111;
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    border-top: 1px solid rgba(0, 255, 255, 0.05);
}

/* Animations (for sections) */
.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Individual element animations in hero */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

.animate-scale-up {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleUp 0.8s forwards 1s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Media Queries for Responsiveness */

/* Mobile devices (portrait) */
@media (max-width: 768px) {
    .main-nav .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

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

    .btn-shop-now {
        padding: 12px 30px;
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .product-grid,
    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container,
    .contact-sidebar {
        min-width: unset;
        width: 100%;
    }

    .main-header .container {
        padding: 10px 20px;
    }

    .logo a {
        font-size: 1.5em;
    }
}

/* Tablets and larger phones */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5em;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .hero-content h1 {
        font-size: 4em;
    }
}