/* === CSS Variables & Golden Theme === */
:root {
    --gold-base: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa8529;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #f5f5f5;
    --text-muted: #b0b0b0;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Cormorant Garamond', serif;
}

/* === Fast Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography Classes */
h1, h2, h3, h4, .entrance-title {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === Utility Classes === */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }
.hidden { display: none !important; }
.relative-z { position: relative; z-index: 2; }

.gold-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-base), var(--gold-dark));
    color: #000;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.gold-btn.outline-btn {
    background: transparent;
    border: 1px solid var(--gold-base);
    color: var(--gold-base);
    box-shadow: none;
}

.gold-btn.outline-btn:hover {
    background: var(--gold-base);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* === Entrance Screen === */
.entrance-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.entrance-bg {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background-image: url('assets/portada.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: blur(5px);
    z-index: 1;
}

.entrance-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.logo-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}



.monogram-logo {
    max-width: 150px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.entrance-title {
    font-size: 2.5rem;
    color: var(--gold-base);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.entrance-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

.enter-btn-wrapper {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.golden-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: glow-pulse 4s infinite alternate;
}

@keyframes glow-pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

/* === Main Content === */
.main-content {
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

/* === Music Control === */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--gold-base);
    color: var(--gold-base);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.music-btn:hover {
    background: var(--gold-base);
    color: #000;
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#particles-js {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* better for slider performance */
    transition: background-image 2s ease-in-out;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.8) 80%, var(--bg-dark) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.pre-title {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--gold-light);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.main-names {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.ampersand {
    font-family: var(--font-script);
    color: var(--gold-base);
    font-size: 5rem;
    padding: 0 10px;
}

.hero-date {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-main);
    border-top: 1px solid rgba(212, 175, 55, 0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    display: inline-block;
    padding: 10px 30px;
    margin-top: 10px;
}

.scroll-indicator {
    position: absolute;
    bottom: -80px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* === Shared Section Styles === */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gold-base);
    margin-bottom: 40px;
}

/* === Romantic Quote === */
.quote-section {
    text-align: center;
    padding: 100px 0 60px;
}

.gold-icon {
    font-size: 2rem;
    color: var(--gold-base);
    margin-bottom: 20px;
}

.romantic-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--gold-light);
    max-width: 800px;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--gold-base);
    margin: 40px auto 0;
}

/* === Countdown Section === */
.countdown-section {
    position: relative;
    padding: 100px 0;
}

.countdown-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 70%);
    z-index: 1;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-box {
    background: transparent;
    padding: 10px 20px;
    min-width: 90px;
    text-align: center;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.time-box:last-child {
    border-right: none;
}

.time-box span {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold-base);
    display: block;
    margin-bottom: 5px;
}

.time-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* === Details Section === */
.details-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.ceremony-card, .dresscode-card {
    background: transparent;
    padding: 0;
    text-align: center;
    border: none;
    transition: transform 0.3s;
    max-width: 600px;
    width: 100%;
}

.ceremony-card:hover, .dresscode-card:hover {
    transform: translateY(-5px);
}

.ceremony-icon {
    font-size: 3rem;
    color: var(--gold-base);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.card-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-details strong {
    color: var(--gold-light);
    font-weight: 500;
}

.ceremony-card .gold-btn {
    margin-top: 20px;
}

.dress-main {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.dress-note {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-left: 3px solid var(--gold-base);
}

.dress-note i {
    color: var(--gold-base);
    font-size: 1.2rem;
}

.dress-note p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.dress-note strong {
    color: #ff8a65; /* A color to emphasize the warning about chocolate color */
}

/* === Gifts Section === */
.gifts-section {
    background: var(--bg-card);
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.gift-icon {
    font-size: 3.5rem;
    color: var(--gold-base);
    margin-bottom: 20px;
}

.gift-text {
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.bank-details {
    display: inline-block;
    text-align: center;
    background: transparent;
    padding: 30px 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.bank-details h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.bank-details p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.bank-details strong {
    color: var(--text-muted);
}

/* === Gallery Section === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    transition: transform 0.5s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 60px 0 30px;
    background: #050505;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--gold-base);
    text-transform: none;
    margin-bottom: 10px;
}

.thanks {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.footer-branding {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fusion-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-weight: 500;
    transition: color 0.3s;
}

.fusion-link:hover {
    color: #fff;
}

/* === Responsive === */
@media (max-width: 768px) {
    .main-names { font-size: 3rem; }
    .ampersand { font-size: 3.5rem; }
    .romantic-text { font-size: 1.8rem; padding: 0 20px; }
    
    .details-section .container {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .entrance-title { font-size: 2rem; }
}
