:root {
    --color-dark-green: #112d20;
    --color-gold: #c5a974;
    --color-gold-light: #dfc89d;
    --color-beige: #f5f0e6;
    --color-white: #faf9f6;
    --color-text-dark: #2c2c2c;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Alex Brush', cursive;
}

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

/* Ocultar barra de rolagem em todos os navegadores */
::-webkit-scrollbar {
    display: none;
}
html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body {
    background-color: #eaddd3; /* Soft elegant beige/blush for desktop background */
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
}

.mobile-frame {
    width: 100%;
    max-width: 440px; /* Matching reference site width */
    min-height: 100vh;
    background-color: var(--color-dark-green);
    color: var(--color-beige);
    font-family: var(--font-serif);
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.2); /* Soft paper shadow */
    -webkit-font-smoothing: antialiased;
}

/* Intro Screen (Envelope) */
#intro-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    background-color: var(--color-beige);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out;
    cursor: pointer;
}

#intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations & Particles */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

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

.section {
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Section 1: Cover */
.sec-cover {
    background-image: url('assets/images/dark_green_texture.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.torn-paper {
    background-color: var(--color-white);
    width: 85%;
    max-width: 400px;
    padding: 60px 30px;
    position: relative;
    color: var(--color-text-dark);
    text-align: center;
    /* Simulate ripped edges */
    clip-path: polygon(0% 2%, 5% 0%, 15% 3%, 25% 1%, 35% 4%, 45% 0%, 55% 3%, 65% 1%, 75% 4%, 85% 0%, 95% 2%, 100% 0%, 100% 98%, 95% 100%, 85% 97%, 75% 100%, 65% 98%, 55% 100%, 45% 97%, 35% 100%, 25% 98%, 15% 100%, 5% 97%, 0% 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid var(--color-gold-light);
}

.subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #666;
}

.names {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--color-dark-green);
    margin-bottom: 15px;
}

.ampersand {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--color-gold);
}

.divider-icon {
    font-size: 1.5rem;
    margin: 15px 0;
    color: var(--color-gold);
}

.date {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: var(--color-dark-green);
}

.wax-seal {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: -30px;
    left: 20px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    mix-blend-mode: multiply; /* Helps blend white background of the seal */
}
/* If the image has a white bg, multiply blend mode works great on white paper */

/* Section 2: Photo + Player */
.sec-photo {
    padding: 0;
}

.photo-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

.photo-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to top, #272a1b 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.photo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, #201f0f 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.couple-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-widget.new-design {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 334px;
    height: 259px;
    background: #383a2c;
    border: 1px solid #f6f6e7;
    border-radius: 30px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.new-design .song-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 36px;
    color: #b4b2a4;
    margin: 0 0 30px 0;
    line-height: 1.2;
    font-weight: 400;
}

.new-design .progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
}

.new-design .time {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #ffffff;
}

.new-design .progress-bar {
    flex-grow: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 0 10px;
}

.new-design .progress {
    height: 100%;
    background: #ffffff;
}

.controls-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    padding: 0 5px;
}

.btn-control {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    opacity: 0.8;
}

.btn-control:hover {
    transform: scale(1.1);
    opacity: 1;
}

.btn-play-main {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-play-main:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

/* Section 3: Timeline */
.sec-timeline {
    background-color: var(--color-dark-green);
    padding: 60px 20px;
    position: relative;
}

.sec-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, #272a1b 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.title-gold {
    font-size: 2rem;
    text-align: center;
    color: var(--color-gold);
    margin-bottom: 50px;
    line-height: 1.2;
    letter-spacing: 2px;
}

.timeline {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--color-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-icon {
    position: absolute;
    left: 4px;
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.timeline-content h3 {
    font-family: var(--font-sans);
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.timeline-content p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #ccc;
}

/* Section 4: Gifts */
.sec-gifts {
    background-color: var(--color-dark-green);
    padding: 80px 30px;
    text-align: center;
    position: relative;
}

.sec-gifts::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, #272a1b 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.gold-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
    border: none;
    margin-bottom: 30px;
}

.gift-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gift-icon {
    font-size: 1.5rem;
}

.elegant-text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 400px;
    margin: 30px auto;
    font-style: italic;
    color: var(--color-beige);
}

.wax-seal-center {
    width: 70px;
    height: 70px;
    margin-top: 20px;
    border-radius: 50%;
    mix-blend-mode: screen; /* Trying to blend out white bg on dark */
}

/* Section 5: RSVP */
.sec-rsvp {
    background-image: url('assets/images/watercolor_texture.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-dark);
    position: relative;
}

.sec-rsvp::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #f6efe4 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.mb-1 {
    margin-bottom: 20px;
    mix-blend-mode: multiply; /* Blend on light background */
}

.title-dark {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-dark-green);
    margin-bottom: 40px;
    line-height: 1.4;
}

.title-dark span {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-top: 10px;
}

.btn-rsvp {
    background-color: var(--color-dark-green);
    color: var(--color-beige);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(17, 45, 32, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.btn-rsvp:active {
    transform: scale(0.95);
}

.small-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #555;
}

/* Section 6: Quote */
.sec-quote {
    background-color: var(--color-beige);
    padding: 40px 20px;
    color: var(--color-dark-green);
}

.quote-frame {
    border: 1px solid var(--color-gold);
    padding: 50px 30px;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.quote-marks {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--color-gold-light);
    line-height: 0.5;
    margin-bottom: 20px;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.8;
    font-style: italic;
}

/* Section 7: Final Photo */
.sec-final {
    background-color: var(--color-beige);
    padding: 60px 20px;
}

.arched-frame {
    width: 90%;
    max-width: 400px;
    height: 70vh;
    border: 2px solid var(--color-gold);
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    padding: 5px; /* Creates a double border effect */
}

.arched-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 200px 200px 0 0;
}
