/* Base Styles */
:root {
    --glass-bg: rgba(35, 35, 35, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent: #00f3ff;
}

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

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0a0a0a;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

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

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 2;
}

.hero .content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding-top: 20vh;
}

.hero .content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 0.2em;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.hero .content p {
    font-size: 1.2em;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* --- Header --- */
header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border-radius: 50px;
    padding: 10px 15px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    gap: 20px;
    transition: top 0.3s;
}

.logo {
    font-size: 1.4em;
    font-weight: 700;
    color: white;
    padding: 0 15px;
}

header .nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

header .nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 0.95em;
}

header .nav a:hover, header .nav a.active {
    background-color: white;
    color: #111;
    transform: translateY(-2px);
}

/* --- Sections --- */
.section {
    padding: 120px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 3.2em;
    margin-bottom: 60px;
    font-weight: 700;
    text-align: center;
    max-width: 800px;
    line-height: 1.2;
}

/* --- Features Section --- */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.feature-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

.feature-item h3 {
    font-size: 1.8em;
    margin: 20px 0;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* --- Process Section --- */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.step {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #111;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--accent);
}

.step h3 {
    font-size: 1.6em;
    margin: 30px 0 15px;
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.testimonial {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.testimonial p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
    color: var(--text-primary);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client {
    font-weight: 600;
    color: var(--accent);
}

/* --- Signature --- */
.signature {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: black;
    color: white;
    padding: 20px 40px;
    z-index: 5;
    font-size: 1.2em;
    border-top-left-radius: 10px;
}

/* --- Shop Page --- */
.shop-section {
    justify-content: flex-start;
    padding-top: 100px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: wave 8s infinite linear;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* --- Product Gallery --- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px; /* Or your desired max-width */
    width: 100%;
}

.main-image-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px; /* Adjust height as needed */
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* This prevents distortion */
    border-radius: 15px;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid var(--glass-border);
    transition: all 0.3s;
    opacity: 0.7;
}

.thumbnail-container img:hover,
.thumbnail-container img.active {
    border-color: var(--accent);
    opacity: 1;
    transform: scale(1.05);
}

.product-detail.section {
    justify-content: center;
    padding-top: 150px;
    padding-bottom: 150px;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
}

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

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-price {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--accent);
    margin: 15px 0;
}

/* --- Product Page --- */
.dropdown {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 10px;
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 5px;
}

.option-group label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
}

.product-options {
    margin: 20px 0;
}

.add-to-cart {
    background: var(--accent);
    color: #111;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin: 15px 0;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
}

.comments-section {
    padding-bottom: 120px;
}

.comments-container {
    max-width: 800px;
    width: 100%;
    margin-bottom: 60px;
}

.comment {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

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

.comment-author {
    font-weight: 600;
    font-size: 1.1em;
}

.comment-rating {
    color: var(--accent);
    font-size: 1.2em;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-form {
    max-width: 800px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.comment-form h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.rating-input {
    margin: 20px 0;
    cursor: pointer;
}

.rating-input span {
    font-size: 2.5em;
    color: #444;
    transition: color 0.2s;
    margin: 0 5px;
}

.rating-input span:hover,
.rating-input span.selected {
    color: var(--accent);
}

.comment-form textarea {
    width: 100%;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 15px;
    margin: 10px 0 20px;
    height: 120px;
    font-family: 'Space Grotesk', sans-serif;
    resize: vertical;
}

.submit-review {
    background: var(--accent);
    color: #111;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
}

/* --- Cart Page --- */
.cart-section {
    justify-content: flex-start;
    padding-top: 150px;
}

.cart-container {
    width: 100%;
    max-width: 900px;
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    gap: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h3 {
    margin-bottom: 10px;
}

.cart-item-actions {
    text-align: right;
}

.cart-item-actions .remove-btn {
    background: none;
    border: none;
    color: #ff5555;
    cursor: pointer;
    font-size: 1.2em;
}

.cart-summary {
    width: 100%;
    max-width: 900px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    text-align: right;
}

.cart-summary h3 {
    margin-bottom: 20px;
    text-align: left;
}

.cart-summary p {
    font-size: 1.2em;
    margin: 10px 0;
}

.checkout-btn {
    background: var(--accent);
    color: #111;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
    margin-top: 20px;
}

/* --- Checkout Page --- */
.checkout-section {
    justify-content: flex-start;
    padding-top: 150px;
}

.checkout-form {
    width: 100%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 12px 15px;
    font-family: 'Space Grotesk', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* --- Success Page --- */
.success-section {
    justify-content: center;
    text-align: center;
    padding-top: 150px;
    padding-bottom: 150px;
}

.success-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

/* --- Add to Cart Popup --- */
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.4s ease-in-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.popup.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
.footer {
    background: #111;
    padding: 60px 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-logo {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-links a, .footer-social a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--accent);
}

.footer-social {
    margin: 20px 0;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.5;
}


/* --- Mobile Responsive --- */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 768px) {
    .hero .content h1 { font-size: 2.5em; }
    .section-title { font-size: 2.4em; }

    header {
        width: 90%;
        justify-content: space-between;
    }
    .nav {
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 95%;
        background: rgba(35, 35, 35, 0.85);
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
        border-radius: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    header .nav ul {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    header .nav a {
        display: block;
        text-align: center;
    }
    .nav-toggle-label {
        display: flex;
        cursor: pointer;
        width: 30px;
        height: 30px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: white;
        height: 2px;
        width: 25px;
        border-radius: 2px;
        position: relative;
        transition: all 0.3s ease-in-out;
    }
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }
    .nav-toggle-label span::before { top: -8px; }
    .nav-toggle-label span::after { top: 8px; }
    .nav-toggle:checked ~ .nav {
        max-height: 300px;
    }
    .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
    .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }
}
