:root {
    /* Normal Mode (Boutique Elegant) */
    --primary-color: #5c0000;
    /* Deep Romantic Red */
    --secondary-color: #ff4d6d;
    /* Vivid Rose Pink */
    --accent-color: #c5a059;
    /* Classic Gold */
    --gold-foil: linear-gradient(45deg, #c5a059 0%, #e8d2a0 50%, #c5a059 100%);
    --bg-color: #fffafb;
    /* Soft Rose Tinted White */
    --text-color: #1a1a1a;
    --light-text: #fff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --header-height: 90px;
    --glass-bg: rgba(255, 250, 251, 0.98);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 20px 60px rgba(255, 77, 109, 0.05);
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --pattern-opacity: 0.15;
    --pattern-url: url("https://www.transparenttextures.com/patterns/p6.png");
    /* Grain */
}

/* Valentine Mode Overrides */
body.theme-valentine {
    --primary-color: #ff4d6d;
    /* Vibrant Rose */
    --secondary-color: #ff758f;
    /* Hot Pink */
    --accent-color: #ff8fa3;
    /* Soft Pink */
    --gold-foil: linear-gradient(45deg, #ff4d6d 0%, #ff8fa3 50%, #ff4d6d 100%);
    /* Pink Foil */
    --bg-color: #fff5f7;
    /* Intended Pink Background */
    --pattern-opacity: 0.25;
    --pattern-url: url("https://www.transparenttextures.com/patterns/hearts.png");
    /* Hearts Pattern */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-url);
    opacity: var(--pattern-opacity);
    pointer-events: none;
    z-index: 10000;
}

/* Preloader Upgrade: Blooming Experience */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffe4e9;
    /* Pastel Pink */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.flower-grow-container {
    width: 250px;
    /* Larger Flower */
    height: 250px;
    margin: 0 auto 40px;
}

.flower-svg {
    width: 100%;
    height: 100%;
}

.stem {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: grow-stem 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.leaf {
    transform: scale(0);
    transform-origin: 50px 80px;
    animation: grow-leaf 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.leaf-left {
    animation-delay: 0.8s;
    transform-origin: 50% 80%;
}

.leaf-right {
    animation-delay: 1.2s;
    transform-origin: 50% 70%;
}

.petals path {
    transform: scale(0);
    transform-origin: 50px 40px;
    animation: bloom 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1.8s;
}

.flower-center {
    transform: scale(0);
    transform-origin: 50px 40px;
    animation: bloom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 2.2s;
}

@keyframes grow-stem {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes grow-leaf {
    to {
        transform: scale(1);
    }
}

@keyframes bloom {
    to {
        transform: scale(1);
    }
}

.preloader-text {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    /* Massive Premium Text */
    color: var(--primary-color);
    letter-spacing: 5px;
    font-weight: 400;
}

.split-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--transition);
}

.split-text span.active {
    opacity: 1;
    transform: translateY(0);
}

/* Petal Particles */
.petal {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes petal-fall {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg) translateX(100px);
        opacity: 0;
    }
}

/* Liquid Reveal Effect */
.reveal-curtain {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250vmax;
    height: 250vmax;
    background-color: var(--bg-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 3;
    transition: transform 1.5s cubic-bezier(0.8, 0, 0.2, 1);
}

#preloader.finish .reveal-curtain {
    transform: translate(-50%, -50%) scale(1);
}

#preloader.finish .preloader-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
#main-header {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--secondary-color);
    padding: 0;
    /* Remove padding to let image fill */
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    /* Ensure image follows the oval shape */
    height: 70px;
    width: 140px;
}

.logo:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.15);
    border-color: var(--accent-color);
}

.logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 8px;
}

.logo:hover img {
    transform: scale(1.08);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    /* Bolder for luxury feel */
    transition: all 0.3s;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.menu-close {
    display: none;
}

.nav-overlay {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/hero_flower_arrangement.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--light-text);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

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

.hero h1 {
    font-family: var(--font-serif);
    font-size: 5rem;
    margin-bottom: 25px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -1px;
    color: #ffe4e9;
    /* Pastel Claro for contrast */
}

.hero p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffe4e9;
    /* Pastel Claro for contrast */
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 0;
    /* Square edges feel more exclusive */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: #fff;
    border: 1px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: none;
}

.btn-primary:hover::after {
    animation: shine 0.75s forwards;
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

/* Catalog section */
.catalog {
    padding: 160px 0;
    /* More white space */
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.title-mask {
    overflow: hidden;
    display: block;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 0px;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.active h2 {
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold-foil);
    margin: 25px auto 0;
}

/* Luxury Grid Lines */
section {
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

section::before,
section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, 0.02);
}

section::before {
    left: 5%;
}

section::after {
    right: 5%;
}

.section-tag {
    display: block;
    text-transform: uppercase;
    color: var(--secondary-color);
    background: var(--gold-foil);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.8rem;
    letter-spacing: 5px;
    margin-bottom: 15px;
    font-weight: 700;
}

.underline {
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    margin: 20px auto;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid #eee;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    border-radius: 50px;
    /* Pill style */
}

.filter-btn:hover,
.filter-btn.active {
    color: #fff;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.2);
    transform: translateY(-2px);
}

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

.card {
    background: #fff;
    border-radius: 12px;
    /* Soft corners */
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 77, 109, 0.1);
}

.card-img {
    height: 300px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.card-info {
    padding: 30px;
    text-align: center;
}

.card-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 400;
}

.card-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
    font-style: italic;
}

.price {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    /* Deep Shiny Black */
    margin-bottom: 25px;
    font-family: var(--font-serif);
    letter-spacing: 1px;
}

.btn-order {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: var(--gold-foil);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-order:hover {
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
}

.btn-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: 0.8s;
}

.btn-order:hover::before {
    left: 100%;
}

/* Contact section */
.contact-section {
    padding: 120px 0;
    background: #111;
    /* Even deeper black for exclusivity */
    color: #fff;
    text-align: center;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.contact-info p {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 40px;
}

.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s;
}

.social-icon:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content p {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.faq-item {
    background: #fff;
    padding: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f9f9f9;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.faq-item h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 400;
}

.faq-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.contact-location {
    margin-bottom: 30px;
}

.map-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.map-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.map-link i {
    font-size: 1.1rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Valentine's Specific Decorations */
.heart {
    position: fixed;
    font-size: 1.5rem;
    color: var(--secondary-color);
    pointer-events: none;
    z-index: 999;
    transition: transform 0.2s;
    animation: heart-float 4s linear forwards;
    opacity: 0.7;
}

@keyframes heart-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Preloader specific hearts - more subtle */
#preloader .heart {
    position: absolute;
    bottom: -20px;
    opacity: 0.4;
    font-size: 1rem;
    animation: preloader-heart-float 3s ease-in forwards;
}

@keyframes preloader-heart-float {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100px) scale(1.2);
        opacity: 0;
    }
}

/* Update hero overlay for warmer romantic feel */
.hero-overlay {
    background: radial-gradient(circle, rgba(92, 0, 0, 0.3) 0%, rgba(43, 10, 10, 0.6) 100%);
}

/* Softer buttons */
.btn-primary {
    border-radius: 30px;
    /* Rounded for "softer" feel */
}

.btn-order {
    border-radius: 20px;
}

/* Responsive */
/* Comprehensive Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .section-title h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        /* Taller for breathing room */
    }

    .logo {
        height: 55px;
        /* Smaller logo */
        width: 110px;
    }

    #main-header {
        padding: 5px 0;
    }

    /* Hero Refinement */
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: 0;
    }

    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }

    /* Section Spacing */
    .catalog,
    .faq-section,
    .contact-section {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    /* Grid Adjustments */
    .arrangements-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    /* Hide luxury lines on mobile for clarity */
    section::before,
    section::after {
        display: none;
    }

    /* Preloader Mobile Scaling */
    .flower-grow-container {
        width: 180px;
        height: 180px;
    }

    .preloader-text {
        font-size: 2rem;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        /* Full screen menu on mobile */
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }

    .nav-links.show {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 2rem;
    }

    .card-img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 75px;
    }

    .logo {
        height: 45px;
        width: 90px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .preloader-text {
        font-size: 1.5rem;
    }

    .filters {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.7rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    /* Stronger premium blur */
    -webkit-backdrop-filter: blur(15px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.6s;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 5px solid #fff;
}

@keyframes zoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Make card images look clickable */
.card-img {
    cursor: pointer;
    position: relative;
}

.card-img::after {
    content: '\f002';
    /* FontAwesome search icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 77, 109, 0.7);
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.card:hover .card-img::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}