/* Global Styles */
:root {
    --bg-color: #fcefe3;
    /* Creamy white for a softer look */
    --text-color: #2d2d2d;
    --primary-color: #6a0dad;
    /* Deep purple */
    --secondary-color: #9370db;
    /* Medium purple */
    --accent-color: #ff6b6b;
    /* Soft coral for accents */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.5);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 1rem;
}

.btn.secondary:hover {
    background: rgba(106, 13, 173, 0.05);
}

/* Glassmorphism - Light Theme Adapted */
.glass-nav,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(106, 13, 173, 0.2);
}

.cta-button:hover {
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    /* Clean background instead of dark image */
    background: radial-gradient(circle at top right, rgba(147, 112, 219, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 107, 107, 0.1), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #555;
    font-weight: 300;
}

/* Services */
.services {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    /* Solid white for cards for better contrast */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: rgba(106, 13, 173, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio */
.portfolio {
    padding: 8rem 2rem;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #333;
}

.portfolio-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

/* Contact */
.contact {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(147, 112, 219, 0.05), transparent 60%);
}

.contact-container {
    padding: 4rem;
    border-radius: 30px;
    width: 100%;
    max-width: 700px;
    text-align: center;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-left: 0.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.file-upload-label {
    width: 100%;
    background: #f8f9fa;
    border: 2px solid #eee;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    color: #333;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.05);
}


.contact-form input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    cursor: pointer;
    text-align: center;
    color: #777;
    border: 2px dashed #ccc;
    background: transparent;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(106, 13, 173, 0.02);
}

.contact-form button {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Image Preview Styles */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.remove-preview:hover {
    background: var(--primary-color);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive & Mobile Menu */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .glass-nav {
        padding: 0.8rem 1.5rem;
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 6rem 2rem 2rem;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        font-size: 1.2rem;
    }

    .contact-container {
        padding: 2rem;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

/* Options de livraison */
.delivery-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.delivery-option {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.delivery-option:hover {
    border-color: var(--secondary-color);
}

.delivery-option input[type="radio"] {
    accent-color: var(--primary-color);
    width: 1.2em;
    height: 1.2em;
}

.delivery-option:has(input:checked) {
    border-color: var(--primary-color);
    background: #fbf5ff;
    color: var(--primary-color);
}

.address-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address-fields input {
    padding: 0.65rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.address-fields input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

#lightbox.open {
    display: flex;
}

#lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: fadeInUp 0.25s ease-out;
}

#lightbox-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}