/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff6b6b;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --light-color: #f8f9fa;
    --gray-color: #2d2d2d;
    --light-gray: #4a4a4a;
    --success-color: #4CAF50;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darker-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.logo-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.zarr-logo, .store-logo {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 5px;
    position: relative;
}

.zarr-logo {
    color: var(--primary-color);
    animation: bounce 1.5s infinite alternate;
}

.store-logo {
    color: var(--secondary-color);
    animation: bounce 1.5s infinite alternate 0.3s;
}

.loading-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 2s infinite;
}

.loading-bar {
    width: 300px;
    height: 6px;
    background-color: var(--gray-color);
    border-radius: 10px;
    margin: 0 auto 10px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    animation: loading 2s ease-in-out forwards;
}

.loading-subtext {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, #eee, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 10px 160px, #eee, transparent),
        radial-gradient(1px 1px at 60px 20px, #fff, transparent),
        radial-gradient(2px 2px at 110px 90px, #ddd, transparent),
        radial-gradient(1px 1px at 150px 40px, #fff, transparent),
        radial-gradient(1px 1px at 190px 150px, #eee, transparent);
    background-size: 250px 250px;
    animation: starsMove 80s linear infinite;
}

.stars3 {
    background-image: 
        radial-gradient(1px 1px at 50px 100px, #eee, transparent),
        radial-gradient(1px 1px at 100px 50px, #fff, transparent),
        radial-gradient(2px 2px at 150px 150px, #ddd, transparent),
        radial-gradient(1px 1px at 200px 100px, #fff, transparent),
        radial-gradient(1px 1px at 250px 50px, #eee, transparent);
    background-size: 300px 300px;
    animation: starsMove 100s linear infinite reverse;
}

.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 95%, rgba(255,255,255,0.8) 100%),
        linear-gradient(-45deg, transparent 90%, rgba(255,255,255,0.6) 95%),
        linear-gradient(60deg, transparent 85%, rgba(255,255,255,0.4) 90%);
    background-repeat: no-repeat;
    background-size: 200% 200%;
    animation: shootingStars 20s linear infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation: float 25s infinite ease-in-out;
}

.element-2 {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 10%;
    animation: float 20s infinite ease-in-out reverse;
}

.element-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation: float 30s infinite ease-in-out;
}

.element-4 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 20%;
    animation: float 15s infinite ease-in-out reverse;
}

.element-5 {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 15%;
    animation: float 35s infinite ease-in-out;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Header & Navigation */
.header {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.zarr {
    color: var(--primary-color);
}

.store {
    color: var(--secondary-color);
}

.tagline {
    font-size: 0.8rem;
    color: var(--light-gray);
    margin-top: -5px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 180px);
    padding: 40px 0;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    color: var(--light-gray);
    font-size: 1.1rem;
}

/* Home Section */
.home-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.welcome-card, .info-card {
    background-color: rgba(45, 45, 45, 0.7);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.welcome-card:hover, .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.welcome-icon, .info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.welcome-card h3, .info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.order-steps {
    margin-left: 20px;
    margin-top: 15px;
}

.order-steps li {
    margin-bottom: 10px;
    position: relative;
}

.order-steps li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature {
    background-color: rgba(45, 45, 45, 0.7);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    background-color: rgba(55, 55, 55, 0.8);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature p {
    color: var(--light-gray);
}

/* Products Section */
.search-container {
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(45, 45, 45, 0.7);
    border-radius: 50px;
    padding: 15px 25px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-box i {
    color: var(--light-gray);
    margin-right: 15px;
    font-size: 1.2rem;
}

#productSearch {
    flex: 1;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1rem;
    outline: none;
}

#productSearch::placeholder {
    color: var(--light-gray);
}

.categories-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 25px;
    background-color: rgba(45, 45, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: rgba(45, 45, 45, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-category {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--light-color);
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.product-description {
    color: var(--light-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-order {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(106, 17, 203, 0.4);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: rgba(45, 45, 45, 0.7);
    border-radius: 15px;
    font-size: 1.2rem;
    color: var(--light-gray);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info, .support-info {
    background-color: rgba(45, 45, 45, 0.7);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h3, .support-info h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--light-color);
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn i {
    margin-right: 15px;
    font-size: 1.3rem;
}

.whatsapp {
    background-color: #25D366;
}

.telegram {
    background-color: #0088cc;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.tiktok {
    background-color: #000000;
}

.email {
    background-color: #EA4335;
}

.github {
    background-color: #333333;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.collaborators {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.collab-tag {
    background-color: rgba(106, 17, 203, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--light-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--dark-color);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--light-color);
}

.close-modal {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 30px;
}

.product-info {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-color);
}

.modal-product-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--light-color);
}

.modal-product-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--light-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(45, 45, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-color);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-color);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--light-gray);
}

.payment-details {
    background-color: rgba(45, 45, 45, 0.7);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--light-color);
}

.payment-details p {
    margin-bottom: 5px;
}

.payment-details strong {
    color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(106, 17, 203, 0.4);
}

/* Footer */
.footer {
    background-color: rgba(18, 18, 18, 0.9);
    padding: 30px 0;
    margin-top: 60px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo p {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes starsMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

@keyframes shootingStars {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 99;
    }
    
    .navbar.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-item {
        margin: 0 0 15px 0;
    }
    
    .nav-link {
        padding: 10px 0;
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .welcome-card, .info-card, .contact-info, .support-info {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
