:root {
    --primary-color: #d1bfae; /* Dusty rose/taupe */
    --secondary-color: #a3b19b; /* Sage green */
    --accent-color: #e8d8ce; /* Blush */
    --text-color: #4a443f;
    --bg-color: #faf7f2; /* Off white / cream */
    --card-bg: rgba(255, 255, 255, 0.85);
    --font-heading: 'Playfair Display', serif;
    --font-text: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-text);
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Floral decorations */
.flower-decoration {
    position: fixed;
    width: 300px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.top-left {
    top: -50px;
    left: -50px;
    /* Placeholder SVG for floral pattern */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23a3b19b" d="M30 50 Q 50 20, 70 50 Q 50 80, 30 50" opacity="0.5"/><circle cx="50" cy="50" r="10" fill="%23d1bfae"/></svg>');
    transform: rotate(45deg);
}

.bottom-right {
    bottom: -50px;
    right: -50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23a3b19b" d="M30 50 Q 50 20, 70 50 Q 50 80, 30 50" opacity="0.5"/><circle cx="50" cy="50" r="10" fill="%23d1bfae"/></svg>');
    transform: rotate(-135deg);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #7d756d;
    font-style: italic;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Upload Section */
.upload-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 4rem;
    text-align: center;
}

.drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 3rem 1rem;
    transition: var(--transition);
    cursor: pointer;
    background-color: rgba(255,255,255,0.5);
}

.drop-zone.dragover {
    background-color: var(--accent-color);
    border-color: var(--secondary-color);
    transform: scale(1.02);
}

.drop-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-zone h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.hidden-input {
    display: none;
}

/* Buttons */
.btn {
    font-family: var(--font-text);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(209, 191, 174, 0.4);
}

.primary-btn:hover {
    background-color: #bfab99;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 191, 174, 0.6);
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.icon-btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Progress Bar */
.progress-container {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

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

/* Gallery Section */
.gallery-section {
    padding: 2rem 0;
}

.gallery-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .container {
        padding: 1rem;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
