:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --primary-color: #bf00ff;
    /* Electric Purple */
    --secondary-color: #5e0080;
    /* Darker Purple */
    --text-color: #e0e0e0;
    --accent-glow: 0 0 20px rgba(191, 0, 255, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --smooth-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    animation: fadeInPage 0.8s ease-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--smooth-transition);
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--glass-border);
    transition: var(--smooth-transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    transition: var(--smooth-transition);
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.currency-toggle {
    background: transparent;
    border: var(--glass-border);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--smooth-transition);
}

.currency-toggle:hover {
    background: var(--primary-color);
    box-shadow: var(--accent-glow);
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* Use video as bg, fallback color underneath */
    background: #000;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Adjust brightness */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(94, 0, 128, 0.4) 0%, rgba(5, 5, 5, 0.9) 80%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(191, 0, 255, 0.6);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: #bbb;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-btn {
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    box-shadow: var(--accent-glow);
    transition: var(--smooth-transition);
}

.cta-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- Products Grid --- */
.products-section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--smooth-transition);
    position: relative;
    max-width: 380px;
    /* Prevent banner look on wide screens */
    margin: 0 auto;
    /* Center in grid column if single item */
    width: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--accent-glow);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 320px;
    /* Taller for better aspect ratio */
    object-fit: cover;
    background: #111;
    transition: var(--smooth-transition);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
    height: 40px;
    /* Limit height for uniformity */
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.buy-btn {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--smooth-transition);
}

.buy-btn:hover {
    background: var(--primary-color);
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 40px 5%;
    text-align: center;
    margin-top: 80px;
    border-top: var(--glass-border);
    color: #666;
}

/* --- Admin Styles (for later) --- */
.admin-login-container {
    padding: 100px 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(191, 0, 255, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
    display: flex;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.modal-img-wrapper {
    flex: 2;
    min-width: 300px;
    background: #050505;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-img {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    border-radius: 5px;
    transition: 0.3s;
}

.nav-arrow:hover {
    background: var(--primary-color);
}

#prev-arrow {
    left: 10px;
}

#next-arrow {
    right: 10px;
}

.modal-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-left: 1px solid #333;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.2;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    width: fit-content;
    letter-spacing: 1px;
}

.status-available {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status-soldout {
    background: rgba(255, 0, 0, 0.1);
    color: #ff3333;
    border: 1px solid #ff3333;
}

#modal-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 40px;
}

.modal-price-box {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.modal-price-box .price {
    font-size: 2rem;
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-content {
        flex-direction: column;
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .modal-img-wrapper {
        flex: none;
        height: 40vh;
        width: 100%;
        border-bottom: 1px solid #333;
    }

    .modal-info {
        height: auto;
        padding: 25px;
        border-left: none;
    }

    .modal-info h2 {
        font-size: 1.8rem;
    }

    .close-modal {
        top: 15px;
        right: 15px;
    }
}

/* --- About Page Styles --- */
.about-hero {
    padding: 100px 5%;
    text-align: center;
    background: radial-gradient(circle at top, #1a0b2e 0%, var(--bg-color) 70%);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-content {
    max-width: 800px;
}

.about-content h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(191, 0, 255, 0.4);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.contact-section {
    padding: 60px 5%;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: 0.3s;
    border: var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    min-width: 250px;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--accent-glow);
}

.insta-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}