/* style.css - Premium Design System for Complimenti */

:root {
    --primary: #B8860B; /* Opaque Gold */
    --primary-light: #D4AF37;
    --secondary: #1A1A1A; /* Deep Charcoal for contrast */
    --white: #FFFFFF;
    --bg-light: #F9F9F9;
    --text-dark: #333333;
    --text-muted: #666666;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 120px;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

.progress-container {
    width: 200px;
    height: 2px;
    background: #EEE;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 5%;
    background: var(--white);
    box-shadow: var(--shadow);
}

.logo img {
    height: 45px;
    cursor: pointer;
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

/* Sections */
section {
    padding: 100px 5%;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-gold {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    border: 1px solid var(--primary);
}

.btn-gold:hover {
    background: transparent;
    color: var(--primary);
}

/* AI Floating Button */
.ai-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(184, 134, 11, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.ai-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

.ai-trigger svg {
    width: 30px;
    fill: var(--white);
}

/* Product Cards */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title .underline {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 0 auto;
}

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

.product-card {
    background: var(--white);
    border: 1px solid #EEE;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.product-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.product-price .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 10px;
}

/* Footer */
footer {
    background: #111;
    color: var(--white);
    padding: 80px 5% 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a svg {
    width: 24px;
    fill: var(--white);
    transition: var(--transition);
}

.social-links a:hover svg {
    fill: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Mobile Canvas Style */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }
    nav {
        display: none; /* Mobile menu logic later */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-image {
        height: 250px;
    }
}

/* AI Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 0;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.ai-step {
    display: none;
}

.ai-step.active {
    display: block;
}

.ai-upload-area {
    border: 2px dashed var(--primary);
    padding: 40px;
    margin: 20px 0;
    cursor: pointer;
    transition: var(--transition);
}

.ai-upload-area:hover {
    background: rgba(184, 134, 11, 0.05);
}

.ai-loading {
    margin: 20px 0;
    display: none;
}

.ai-results {
    text-align: left;
    margin-top: 20px;
}

.ai-results h4 {
    color: var(--primary);
    margin-bottom: 10px;
}
