/* style.css - Landing Page Alexia 15 Anos */

/* ==========================================
   Variables & Theme Setup
   ========================================== */
:root {
    /* Color Palette */
    --primary-rose: #f472b6;
    --accent-pink: #ff7096;
    --accent-gold: #ff85a2;
    --sunset-orange: #ff5c8a;
    --sunset-pink: #ec4899;
    --sunset-purple: #c084fc;
    --deep-burgundy: #3d0c1b;
    --cream-light: #fff5f6;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --gold-border: rgba(244, 114, 182, 0.35);
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-cursive: 'Great Vibes', cursive;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 30px rgba(236, 72, 153, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(236, 72, 153, 0.1);
}

/* ==========================================
   Global & Reset Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream-light);
    color: #443c3d;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   Background Butterfly Animation
   ========================================== */
.butterfly-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.css-butterfly {
    position: absolute;
    width: 30px;
    height: 30px;
    perspective: 500px;
    transform-style: preserve-3d;
    opacity: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: fly-up var(--fly-time, 8s) linear infinite;
}

.css-butterfly .wing {
    position: absolute;
    width: 15px;
    height: 25px;
    border-radius: 50% 50% 0 50%;
    background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-pink));
    opacity: 0.8;
}

.css-butterfly .wing.left {
    left: 0;
    transform-origin: right center;
    animation: flap-left 0.15s ease-in-out infinite alternate;
}

.css-butterfly .wing.right {
    right: 0;
    transform-origin: left center;
    border-radius: 50% 50% 50% 0;
    animation: flap-right 0.15s ease-in-out infinite alternate;
}

@keyframes flap-left {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(75deg); }
}

@keyframes flap-right {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(-75deg); }
}

@keyframes fly-up {
    0% {
        transform: translateY(105vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--fly-x, 80px)) rotate(var(--fly-r, 25deg));
        opacity: 0;
    }
}

/* ==========================================
   Reusable Component Styles
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 8rem 0;
}

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

.section-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--sunset-orange);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--deep-burgundy);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b5a5c;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-pink) 50%, var(--sunset-purple) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    background-size: 200% auto;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--deep-burgundy);
    border: 1px solid var(--primary-rose);
    padding: 0.75rem 1.75rem;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: var(--primary-rose);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('img/foto-01.jpg') no-repeat center top/cover;
    overflow: hidden;
    padding: 0 1rem;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 12, 27, 0.75) 0%, rgba(236, 72, 153, 0.5) 50%, rgba(244, 114, 182, 0.45) 100%);
    z-index: 1;
}

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

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffccd5;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: fadeInDown 1.2s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: var(--font-cursive);
    font-size: 7.5rem;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.3);
    animation: zoomIn 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: 8px;
    color: #ffe4e6;
    margin-bottom: 3.5rem;
    animation: fadeInUp 1.2s ease-out 0.3s backwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    animation: fadeInUp 1.2s ease-out 0.6s backwards;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(61, 12, 27, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    min-width: 90px;
    padding: 1rem 0.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: #ffffff;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffccd5;
    margin-top: 0.25rem;
    font-weight: 500;
}

.countdown-divider {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #ffffff;
    font-weight: 300;
}

.hero-content .btn {
    animation: fadeInUp 1.2s ease-out 0.9s backwards;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down-arrow a {
    color: var(--sunset-pink);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.scroll-down-arrow a:hover {
    color: var(--sunset-orange);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    background: linear-gradient(135deg, #ffe5ec 0%, #ffc2d1 30%, #fbcfe8 65%, #f5a3b7 100%) no-repeat;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

.about-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    padding: 5rem 3rem;
    border-radius: 24px;
    position: relative;
    border-image: linear-gradient(to bottom, var(--glass-border), var(--gold-border)) 1;
}

/* Box Gold borders simulation for rounded border image */
.about-box::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    pointer-events: none;
}

.about-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: #5c4e50;
    line-height: 2;
    margin-bottom: 2rem;
}

.butterflies-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-rose);
}

.butterflies-divider i.fa-circle-nodes {
    font-size: 0.4rem;
    opacity: 0.5;
}

/* ==========================================
   Details Section
   ========================================== */
.details-section {
    background: linear-gradient(135deg, #ffe5ec 0%, #ffc2d1 30%, #fbcfe8 65%, #f5a3b7 100%) no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.details-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.details-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.15);
    border-color: rgba(244, 114, 182, 0.5);
}

.card-icon {
    font-size: 3rem;
    color: var(--sunset-orange);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.details-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--sunset-pink);
}

.details-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--deep-burgundy);
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-highlight {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a3c3e;
    margin-bottom: 0.5rem;
}

.card-subtext {
    font-size: 0.95rem;
    color: #7c686a;
    max-width: 280px;
    margin-bottom: 1.5rem;
}

/* ==========================================
   Dress Code Section
   ========================================== */
.dresscode-section {
    background: linear-gradient(135deg, #ffe5ec 0%, #ffc2d1 30%, #fbcfe8 65%, #f5a3b7 100%) no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.dresscode-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    padding: 5rem 3rem;
    border-radius: 24px;
}

.dresscode-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--sunset-pink);
    font-weight: 600;
    margin-bottom: 1rem;
}

.dresscode-desc {
    font-size: 1.1rem;
    color: #5c4e50;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dresscode-alert {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--primary-rose);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    text-align: left;
    max-width: 650px;
    margin: 0 auto;
}

.dresscode-alert i {
    font-size: 1.5rem;
    color: var(--primary-rose);
    margin-top: 0.2rem;
}

.dresscode-alert p {
    font-size: 0.95rem;
    color: #6b575a;
    line-height: 1.5;
}

/* ==========================================
   Gallery Section
   ========================================== */
.gallery-section {
    background: linear-gradient(135deg, #ffe5ec 0%, #ffc2d1 30%, #fbcfe8 65%, #f5a3b7 100%) no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(46, 8, 17, 0.6) 0%, rgba(236, 72, 153, 0.2) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Grid sizes variation */
.gallery-item.size-large {
    grid-row: span 2;
    grid-column: span 2;
}

.gallery-item.size-wide {
    grid-column: span 2;
}

/* ==========================================
   RSVP Section
   ========================================== */
.rsvp-section {
    background: linear-gradient(135deg, #ffe5ec 0%, #ffc2d1 30%, #fbcfe8 65%, #f5a3b7 100%) no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.rsvp-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.1);
    padding: 5rem 4rem;
    border-radius: 24px;
    text-align: center;
}

.rsvp-deadline {
    font-size: 1.1rem;
    color: #6b575a;
    margin-bottom: 3rem;
}

.rsvp-form {
    text-align: left;
}

.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.flex-1 {
    flex: 1;
}

label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7c6568;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(224, 169, 109, 0.25);
    border-radius: 12px;
    color: #4a3c3e;
    transition: var(--transition-smooth);
    outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-pink);
    background: white;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.15);
}

textarea {
    resize: vertical;
}

.rsvp-form .btn-primary {
    padding: 1.1rem 2rem;
    margin-top: 1rem;
}

.rsvp-form .btn-primary i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.rsvp-footer {
    font-size: 0.85rem;
    color: #8c7678;
    margin-top: 2rem;
}

.rsvp-footer a {
    color: var(--sunset-pink);
    text-decoration: none;
    font-weight: 600;
}

.rsvp-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   Footer
   ========================================== */
footer {
    background: var(--deep-burgundy);
    color: #ffe4e6;
    padding: 5rem 0 3rem;
    position: relative;
    z-index: 2;
}

.footer-text {
    font-family: var(--font-cursive);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.footer-butterflies {
    color: var(--accent-pink);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    animation: hover-slow 3s ease-in-out infinite alternate;
}

@keyframes hover-slow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.footer-sub {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 8, 17, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.15);
    animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--accent-pink);
    transform: rotate(90deg);
}

/* ==========================================
   Animations on Scroll classes
   ========================================== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .hero-title {
        font-size: 4.8rem;
    }
    
    .hero-date {
        font-size: 1.4rem;
        letter-spacing: 5px;
    }
    
    .countdown-container {
        gap: 0.75rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.75rem 0.25rem;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .about-box, .dresscode-box, .rsvp-box {
        padding: 3.5rem 1.5rem;
    }
    
    .about-text {
        font-size: 1.15rem;
        line-height: 1.8;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .details-card {
        padding: 3rem 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 1rem;
    }
    
    .gallery-item.size-large,
    .gallery-item.size-wide {
        grid-row: span 1;
        grid-column: span 1;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .countdown-container {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
}
