@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Great+Vibes&family=Lato:wght@300;400;700&family=Playfair+Display:wght@600;700;800&display=swap");
@import url("font-awesome/css/font-awesome.min.css");
@import url("micons/micons.css");

:root {
    --rosa-seco: #E8A0BF;
    --creme: #FFF5F0;
    --vinho: #8B1A4A;
    --dourado: #C9A96E;
    --vinho-escuro: #5F1132;
    --texto: #6F1D3F;
    --texto-suave: #8A3D61;
    --sombra: 0 18px 40px rgba(139, 26, 74, 0.2);
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    padding-top: 7.2rem;
    font-family: "Lato", sans-serif;
    font-size: 1.7rem;
    line-height: 1.75;
    color: var(--texto);
    background:
        radial-gradient(circle at 15% 20%, rgba(232, 160, 191, 0.3) 0%, rgba(255, 245, 240, 0.8) 36%, transparent 62%),
        radial-gradient(circle at 85% 8%, rgba(201, 169, 110, 0.2) 0%, transparent 42%),
        linear-gradient(135deg, #fff5f0 0%, #fde8f1 50%, #fff5f0 100%);
}

#top {
    width: 100%;
    max-width: 100%;
}

h1,
h2 {
    font-family: "Playfair Display", serif;
    color: var(--vinho);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0 0 1.8rem;
}

h1 {
    font-size: clamp(3rem, 5vw, 5.2rem);
}

h2 {
    font-size: clamp(2.2rem, 3vw, 3.2rem);
}

p {
    margin: 0 0 2.2rem;
    color: var(--texto-suave);
}

a,
a:visited {
    color: var(--vinho);
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover,
a:focus {
    color: var(--dourado);
}

.row {
    width: 100%;
    max-width: 1120px;
    padding-inline: clamp(1.2rem, 2.2vw, 2.4rem);
    margin: 0 auto;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 7.2rem;
    padding: 0 2.4rem;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 0;
    background: rgba(255, 245, 240, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(139, 26, 74, 0.12);
    overflow-x: clip;
    contain: paint;
}

.header-logo {
    position: static;
    transform: none;
    min-width: 0;
}

.header-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 2.2vw, 2.6rem);
    color: var(--vinho);
    text-shadow: none;
    background: none;
}

#header-nav-wrap {
    position: static;
    margin-left: auto;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

#header-nav-wrap .header-main-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
    min-width: 0;
}

#header-nav-wrap .header-main-nav li {
    display: block;
    margin: 0;
}

#header-nav-wrap .header-main-nav li a {
    display: inline-block;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    color: var(--vinho-escuro);
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
}

#header-nav-wrap .header-main-nav li.current a,
#header-nav-wrap .header-main-nav li a:hover,
#header-nav-wrap .header-main-nav li a:focus {
    background: rgba(232, 160, 191, 0.33);
    color: var(--vinho);
}

.header-menu-toggle {
    display: none;
}

#home {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 12rem 0 8rem;
    background:
        linear-gradient(130deg, rgba(139, 26, 74, 0.72), rgba(95, 17, 50, 0.65)),
        url("../images/valentines-day.jpg") center/cover no-repeat;
}

#home .overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(24, 7, 13, 0.52), rgba(24, 7, 13, 0.46)),
        radial-gradient(circle at top, rgba(232, 160, 191, 0.12), rgba(139, 26, 74, 0.26));
}

.home-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.home-content .contents {
    text-align: center;
}

.header-logo-over {
    width: 100%;
    height: 8.2rem;
    margin: 0 auto 2.6rem;
    background: url("../images/logo.png") no-repeat center;
    background-size: min(290px, 70vw);
}

.home-content-left {
    width: min(760px, 96%);
    margin: 0 auto;
    padding: 0;
}

.home-content-left h1 {
    color: var(--creme);
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(1.9rem, 2.3vw, 2.6rem);
    color: rgba(255, 245, 240, 0.96);
    font-weight: 400;
    letter-spacing: 0.015em;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 5rem;
    padding: 0 2.6rem;
    border: 2px solid var(--dourado);
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(201, 169, 110, 0.98), rgba(232, 160, 191, 0.95));
    color: var(--vinho-escuro);
    font-family: "Lato", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: var(--sombra);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.button:hover,
button:hover,
.button:focus,
button:focus {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow: 0 22px 40px rgba(139, 26, 74, 0.26);
}

.home-content-left .button.stroke {
    color: var(--vinho-escuro) !important;
}

.home-social-list {
    position: absolute;
    right: clamp(1rem, 3vw, 3.2rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    margin: 0;
    padding: 1.2rem 0.6rem;
    border: 1px solid rgba(201, 169, 110, 0.44);
    border-radius: 999px;
    background: rgba(255, 245, 240, 0.22);
}

.home-social-list li {
    margin: 0.6rem 0;
}

.home-social-list li a,
.home-social-list li a:visited {
    font-size: 2rem;
    color: var(--creme);
}

.home-scrolldown {
    position: absolute;
    right: 3.2rem;
    bottom: 2.6rem;
    transform: none;
}

.scroll-icon {
    font-family: "Lato", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: var(--creme) !important;
}

#contador-relacionamento {
    width: 100%;
    max-width: 1120px;
    margin: 4rem auto 4.2rem;
    padding: clamp(3rem, 5vw, 4.8rem) clamp(1.6rem, 3.4vw, 3.6rem);
    border-radius: var(--radius);
    border: 1px solid rgba(201, 169, 110, 0.45);
    background: #FFF5F0;
    box-shadow: var(--sombra);
}

.counter-wrapper {
    width: 100%;
    text-align: center;
}

.counter-intro,
.counter-outro {
    margin: 0;
    color: var(--vinho-escuro);
    font-size: clamp(1.8rem, 2.3vw, 2.4rem);
}

.counter-intro {
    margin-bottom: 2.4rem;
    font-family: "Playfair Display", serif;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: 2.4rem;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 110, 0.5);
    background: linear-gradient(145deg, rgba(255, 245, 240, 0.9), rgba(232, 160, 191, 0.16));
}

.counter-value {
    display: block;
    min-width: 2ch;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.8rem, 4vw, 4.4rem);
    line-height: 1;
    color: #8B1A4A;
    font-weight: 700;
}

.counter-label {
    margin-top: 0.7rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--texto-suave);
    font-weight: 700;
}

.counter-outro {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
}

#about,
#nossa-historia,
#O-que-eu-amo-em-voce,
#nossas-musicas,
#mensagem-especial {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 4.2rem;
    padding: clamp(4rem, 6vw, 6rem) clamp(2rem, 4vw, 4.8rem);
    border: 1px solid rgba(201, 169, 110, 0.36);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 245, 240, 0.94), rgba(232, 160, 191, 0.16));
    box-shadow: var(--sombra);
}

#about {
    margin-top: 5.2rem;
}

#nossa-historia .intro-header {
    margin-bottom: 3.6rem;
}

.timeline {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: #E8A0BF;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 2.4rem;
}

.timeline-item.left {
    align-self: flex-start;
}

.timeline-item.right {
    align-self: flex-end;
}

.timeline-marker {
    position: absolute;
    top: 2.2rem;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    background: #FFF5F0;
    border: 2px solid #E8A0BF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8B1A4A;
    box-shadow: 0 10px 18px rgba(139, 26, 74, 0.15);
}

.timeline-item.left .timeline-marker {
    right: -2.1rem;
}

.timeline-item.right .timeline-marker {
    left: -2.1rem;
}

.timeline-content {
    background: #ffffff;
    border: 1px solid #E8A0BF;
    border-radius: 14px;
    padding: 2rem 1.8rem;
    box-shadow: 0 10px 22px rgba(139, 26, 74, 0.12);
}

.timeline-date {
    margin: 0 0 0.8rem;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--texto-suave);
}

.timeline-content h3 {
    margin: 0 0 1rem;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 2.3vw, 2.7rem);
    color: #8B1A4A;
}

.timeline-content p {
    margin: 0;
    color: #8B1A4A;
    font-size: 1.6rem;
    line-height: 1.65;
}

#about p,
#O-que-eu-amo-em-voce p,
#nossas-musicas p {
    max-width: 85ch;
}

#about .intro-header {
    margin-bottom: 3rem;
}

.about-block {
    width: 100%;
    max-width: 72ch;
    margin: 0 auto;
}

.about-block + .about-block {
    margin-top: 3.2rem;
}

.about-block p {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2rem);
    line-height: 1.9;
    color: var(--texto);
}

.about-image-wrap {
    display: flex;
    justify-content: center;
    margin: 3.4rem auto;
}

.col-four {
    display: flex;
    justify-content: center;
    margin: 0 auto 2.4rem;
}

.imgSobre {
    width: min(390px, 100%) !important;
    height: auto;
    border-radius: 14px;
    border: 3px solid rgba(201, 169, 110, 0.5);
    box-shadow: 0 16px 28px rgba(139, 26, 74, 0.25);
}

#divisor {
    color: var(--vinho);
    text-align: center;
}

.love-cards-grid {
    margin-top: 2.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.love-card {
    background: #ffffff;
    border: 1px solid #E8A0BF;
    border-radius: 14px;
    padding: 2.2rem 1.8rem;
    color: #8B1A4A;
    box-shadow: 0 8px 16px rgba(139, 26, 74, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    transform-origin: center;
}

.love-card:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 30px rgba(139, 26, 74, 0.2);
}

.love-card .fa-heart {
    display: inline-block;
    margin-bottom: 1.2rem;
    font-size: 2.1rem;
    color: #8B1A4A;
}

.love-card h3 {
    margin: 0 0 1rem;
    color: #8B1A4A;
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    line-height: 1.25;
}

.love-card p {
    margin: 0;
    color: #8B1A4A;
    font-size: 1.6rem;
    line-height: 1.65;
}

#nossas-musicas {
    display: grid;
    gap: 2.2rem;
}

#nossas-musicas #divisor {
    margin: 0;
}

.music-main-card {
    background: #8B1A4A;
    border-radius: 20px;
    padding: 2.4rem;
    box-shadow: 0 20px 34px rgba(95, 17, 50, 0.3);
    color: #FFF5F0;
}

.music-main-card .fa-heart {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FFF5F0;
}

.music-main-title {
    margin: 0;
    color: #FFF5F0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.3rem, 2.8vw, 3.2rem);
}

.music-main-artist {
    margin: 0.8rem 0 1.8rem;
    color: rgba(255, 245, 240, 0.9);
    font-size: 1.6rem;
    letter-spacing: 0.03em;
}

.music-playlist-card {
    background: #fff;
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: 0 12px 24px rgba(139, 26, 74, 0.14);
}

.spotify-embed-wrap {
    overflow: hidden;
    border-radius: 12px;
}

.spotify-embed-wrap iframe {
    display: block;
    width: 100%;
    border: 0;
}

.music-outro {
    margin: 0;
    text-align: center;
    color: var(--vinho);
    font-size: 1.7rem;
    line-height: 1.7;
}

#mensagem-especial {
    position: relative;
    overflow-x: hidden;
}

.special-intro {
    text-align: center;
    color: var(--texto-suave);
    margin: -1rem auto 2.6rem;
}

.special-access {
    width: min(680px, 100%);
    margin: 0 auto 3.2rem;
}

.special-access label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--texto-suave);
}

.special-access-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

#special-name {
    width: 100%;
    height: 4.8rem;
    border-radius: 999px;
    border: 1px solid rgba(232, 160, 191, 0.8);
    background: #fff;
    color: var(--vinho-escuro);
    padding: 0 1.6rem;
    font-family: "Lato", sans-serif;
    font-size: 1.6rem;
    margin: 0;
}

#special-name:focus {
    outline: 0;
    border-color: var(--vinho);
    box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.28);
}

#open-letter-btn {
    min-height: 4.8rem;
    padding: 0 2rem;
    border-radius: 999px;
    border: 1px solid var(--dourado);
    background: linear-gradient(120deg, rgba(201, 169, 110, 0.98), rgba(232, 160, 191, 0.95));
    color: var(--vinho-escuro);
    font-weight: 700;
}

.special-feedback {
    min-height: 2.4rem;
    margin: 0.8rem 0 0;
    color: var(--vinho);
    font-size: 1.5rem;
}

.special-feedback.error {
    color: #a61f53;
}

.special-feedback.success {
    color: #7a1b45;
}

.envelope-scene,
.envelope-scene * {
    box-sizing: border-box;
}

.envelope-scene {
    perspective: 1200px;
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.2rem 1.2rem 2rem;
    display: flex;
    justify-content: center;
    overflow-x: clip;
}

.envelope-scene::before {
    content: "";
    position: absolute;
    inset: 18% 8% 8%;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(232, 160, 191, 0.24) 0%, rgba(255, 245, 240, 0) 70%);
    filter: blur(10px);
    pointer-events: none;
}

.envelope-shell {
    width: 100%;
    max-width: 560px;
    height: 398px;
    margin: 0 auto;
    position: relative;
    border-radius: 22px;
    isolation: isolate;
    transition: transform 0.4s ease;
    animation: envelopeFloat 5s ease-in-out infinite;
}

.envelope-shell:hover {
    transform: translateY(-4px);
}

.envelope-shell::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 2px;
    height: 26px;
    background: radial-gradient(ellipse at center, rgba(95, 17, 50, 0.24) 0%, rgba(95, 17, 50, 0) 70%);
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

.envelope-pocket {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 248px;
    border: 1px solid rgba(232, 160, 191, 0.85);
    border-radius: 0 0 20px 20px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, #fff7f2 0%, #f7dbe8 58%, #efc4d8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 18px 32px rgba(139, 26, 74, 0.18);
    z-index: 3;
}

.envelope-pocket::before,
.envelope-pocket::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.envelope-pocket::before {
    left: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(232, 160, 191, 0.16));
    clip-path: polygon(0 0, 100% 43%, 100% 100%, 0 100%);
}

.envelope-pocket::after {
    right: 0;
    background: linear-gradient(215deg, rgba(255, 255, 255, 0.26), rgba(232, 160, 191, 0.16));
    clip-path: polygon(0 43%, 100% 0, 100% 100%, 0 100%);
}

.envelope-flap {
    position: absolute;
    top: 26px;
    left: 0;
    width: 100%;
    height: 205px;
    transform: rotateX(0deg);
    transform-origin: top center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
        linear-gradient(150deg, #ffdceb 0%, #efb3cf 52%, #e49bbf 100%);
    clip-path: polygon(0 0, 100% 0, 50% 96%);
    border: 1px solid rgba(232, 160, 191, 0.9);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    z-index: 5;
    backface-visibility: hidden;
}

.envelope-flap::after {
    content: "";
    position: absolute;
    left: calc(50% - 26px);
    top: calc(48% - 26px);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe8f1 0%, #f6c0d8 50%, #df8cb3 100%);
    box-shadow:
        inset 0 1px 4px rgba(255, 255, 255, 0.72),
        0 6px 12px rgba(139, 26, 74, 0.24);
}

.love-letter {
    position: absolute;
    left: 4%;
    bottom: 30px;
    width: 92%;
    max-height: 292px;
    transform: translateY(104px);
    overflow: auto;
    background:
        linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 242, 0.97)),
        repeating-linear-gradient(180deg, rgba(232, 160, 191, 0.08) 0 1px, transparent 1px 34px);
    border: 1px solid rgba(232, 160, 191, 0.65);
    border-radius: 18px;
    padding: 2.6rem 2.2rem;
    box-shadow:
        0 20px 30px rgba(95, 17, 50, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease;
    z-index: 2;
}

.love-letter::-webkit-scrollbar {
    width: 8px;
}

.love-letter::-webkit-scrollbar-thumb {
    background: rgba(139, 26, 74, 0.35);
    border-radius: 999px;
}

.love-letter h3 {
    margin: 0 0 1.8rem;
    font-family: "Great Vibes", cursive;
    color: var(--vinho);
    font-size: clamp(3.4rem, 4vw, 4.4rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-align: center;
}

.letter-content p {
    margin: 0 0 1.45rem;
    color: #6b2142;
    line-height: 1.8;
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 500;
}

.letter-content strong {
    color: var(--vinho);
    font-weight: 600;
}

.envelope-scene.is-open .envelope-shell {
    animation-play-state: paused;
}

.envelope-scene.is-open .envelope-flap {
    transform: rotateX(178deg);
    box-shadow: 0 8px 12px rgba(95, 17, 50, 0.12);
}

.envelope-scene.is-open .love-letter {
    transform: translateY(-132px);
    opacity: 1;
    z-index: 6;
}

.envelope-scene:not(.is-open) .envelope-shell:hover .envelope-flap {
    transform: rotateX(-6deg);
}

@keyframes envelopeFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .envelope-shell,
    .love-letter,
    .envelope-flap {
        animation: none !important;
        transition: none !important;
    }
}

.roda-pe {
    width: 100%;
    padding: 4rem 2rem;
    margin-top: 6rem;
    background-color: var(--vinho);
    text-align: center;
}

.footer-content {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-quote {
    font-size: 1.6rem;
    color: var(--creme);
    margin: 0 0 2rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.footer-couple {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    color: var(--creme);
    font-weight: 700;
    margin: 0 0 1.2rem;
    letter-spacing: 0.08em;
}

.footer-year {
    font-size: 1.4rem;
    color: var(--rosa-seco);
    margin: 0;
    letter-spacing: 0.03em;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* Galeria de Fotos */
#galeria-fotos {
    width: 100%;
    padding: 6rem 2rem;
    background: radial-gradient(circle at 85% 90%, rgba(232, 160, 191, 0.15) 0%, transparent 50%),
                linear-gradient(180deg, rgba(255, 245, 240, 0.5) 0%, transparent 100%),
                linear-gradient(135deg, #fff5f0 0%, #fde8f1 50%, #fff5f0 100%);
}

#galeria-fotos .intro-header {
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
}

.intro-text {
    text-align: center;
    font-size: 1.6rem;
    color: var(--texto);
    margin-bottom: 4rem;
    letter-spacing: 0.04em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    max-width: 1120px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 5;
    box-shadow: var(--sombra);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 24px 48px rgba(139, 26, 74, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 26, 74, 0.4) 0%, rgba(232, 160, 191, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

@media only screen and (max-width: 900px) {
    #galeria-fotos {
        padding: 4.5rem 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem;
    }

    #galeria-fotos .intro-header {
        font-size: clamp(2.4rem, 4vw, 3.6rem);
        margin-bottom: 0.8rem;
    }

    .intro-text {
        margin-bottom: 3rem;
    }
}

@media only screen and (max-width: 560px) {
    #galeria-fotos {
        padding: 3.5rem 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .gallery-item {
        aspect-ratio: 3 / 4;
    }

    #galeria-fotos .intro-header {
        font-size: 2.2rem;
    }

    .intro-text {
        font-size: 1.5rem;
        margin-bottom: 2.4rem;
    }
}

@media only screen and (max-width: 900px) {
    #header {
        min-height: 6.8rem;
        padding: 0 1.6rem;
    }

    #header-nav-wrap .header-main-nav {
        gap: 0.3rem;
    }

    #header-nav-wrap .header-main-nav li a {
        padding: 0.8rem 0.95rem;
        font-size: 1.45rem;
    }

    #home {
        min-height: 72vh;
        padding: 8.5rem 0 5.4rem;
    }

    .home-social-list,
    .home-scrolldown {
        display: none;
    }

    #about,
    #nossa-historia,
    #O-que-eu-amo-em-voce,
    #nossas-musicas,
    #mensagem-especial {
        padding: 3.2rem 1.8rem;
        margin-bottom: 3rem;
    }

    .about-block + .about-block {
        margin-top: 2.6rem;
    }

    .about-image-wrap {
        margin: 2.8rem auto;
    }

    .counter-grid {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }

    .love-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .music-main-card {
        padding: 2rem 1.6rem;
    }

    .music-playlist-card {
        padding: 1.2rem;
    }

    .timeline::before {
        left: 2.1rem;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        align-self: stretch;
        padding: 0 0 0 6rem;
    }

    .timeline-item.left .timeline-marker,
    .timeline-item.right .timeline-marker {
        left: 0;
        right: auto;
    }

    .envelope-scene {
        max-width: 620px;
        padding-inline: 0.8rem;
    }

    .envelope-shell {
        max-width: 520px;
        height: 370px;
    }

    .envelope-pocket {
        height: 228px;
    }

    .envelope-flap {
        top: 24px;
        height: 188px;
    }

    .love-letter {
        max-height: 270px;
        padding: 2.2rem 1.9rem;
    }

    .envelope-scene.is-open .love-letter {
        transform: translateY(-118px);
    }

    .roda-pe {
        padding: 3rem 1.6rem;
        margin-top: 4rem;
    }

    .footer-couple {
        font-size: 2rem;
    }

    .footer-quote {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 560px) {
    html {
        font-size: 58%;
    }

    #header {
        padding: 0 1.6rem;
        min-height: 6.4rem;
    }

    #about,
    #nossa-historia,
    #O-que-eu-amo-em-voce,
    #nossas-musicas,
    #mensagem-especial {
        box-shadow: 0 10px 20px rgba(139, 26, 74, 0.12);
    }

    .header-logo a {
        font-size: clamp(1.75rem, 6vw, 2.1rem);
    }

    .header-menu-toggle {
        width: 3.8rem;
        height: 3.8rem;
    }

    .button,
    button,
    input[type="submit"],
    input[type="reset"],
    input[type="button"] {
        max-width: 100%;
    }

    #contador-relacionamento {
        margin-top: 2.4rem;
        margin-bottom: 3rem;
        padding: 2.4rem 1.2rem;
    }

    .counter-grid {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }

    .love-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .special-access-row {
        grid-template-columns: 1fr;
    }

    #open-letter-btn {
        width: 100%;
    }

    .envelope-scene {
        max-width: 520px;
        padding: 0.8rem 0.6rem 1rem;
    }

    .envelope-shell {
        max-width: 440px;
        height: 332px;
    }

    .envelope-pocket {
        height: 200px;
    }

    .envelope-flap {
        top: 24px;
        height: 164px;
    }

    .envelope-flap::after {
        width: 42px;
        height: 42px;
        left: calc(50% - 21px);
        top: calc(48% - 21px);
    }

    .love-letter {
        left: 3.5%;
        width: 93%;
        bottom: 24px;
        max-height: 235px;
        padding: 1.9rem 1.4rem;
    }

    .love-letter h3 {
        font-size: 3.3rem;
        margin-bottom: 1.2rem;
    }

    .letter-content p {
        font-size: 2rem;
        line-height: 1.65;
    }

    .envelope-scene.is-open .love-letter {
        transform: translateY(-96px);
    }

    .roda-pe {
        padding: 2.4rem 1.2rem;
        margin-top: 3rem;
    }

    .footer-couple {
        font-size: 1.8rem;
    }

    .footer-quote {
        font-size: 1.4rem;
    }

    .footer-year {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 768px) {
    html,
    body,
    #header,
    #header-nav-wrap,
    #header-nav-wrap .header-main-nav,
    section,
    .row {
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }

    #home,
    #contador-relacionamento,
    #about,
    #nossa-historia,
    #O-que-eu-amo-em-voce,
    #nossas-musicas,
    #mensagem-especial,
    #galeria-fotos,
    .row {
        overflow-x: clip;
    }

    #header {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.6rem 1rem;
        min-height: 6.4rem;
        padding: 0 1.6rem;
        padding-left: max(1.6rem, env(safe-area-inset-left));
        padding-right: max(1.6rem, env(safe-area-inset-right));
        box-sizing: border-box;
        border: 0;
        border-bottom: 1px solid rgba(232, 160, 191, 0.42);
        border-radius: 0;
        background: rgba(255, 245, 240, 0.96);
        box-shadow: 0 8px 18px rgba(95, 17, 50, 0.12);
    }

    .header-logo {
        flex: 1;
        min-width: 0;
    }

    .header-logo a {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
        font-size: clamp(1.9rem, 5.2vw, 2.35rem);
    }

    .header-menu-toggle {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        margin-left: auto;
        width: 4rem;
        height: 4rem;
        border-radius: 12px;
        border: 1px solid rgba(232, 160, 191, 0.7);
        background: rgba(255, 255, 255, 0.7);
        color: var(--vinho);
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.2s ease;
    }

    .header-menu-toggle:hover,
    .header-menu-toggle:focus {
        transform: scale(0.97);
        opacity: 0.92;
        background: rgba(255, 255, 255, 0.92);
    }

    .header-menu-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .header-menu-toggle::before,
    .header-menu-toggle::after {
        content: "";
        position: absolute;
        width: 18px;
        height: 2px;
        background: currentColor;
        transition: transform 0.25s ease;
    }

    .header-menu-toggle::before {
        transform: translateY(-4px);
        box-shadow: 0 8px 0 currentColor;
    }

    .header-menu-toggle::after {
        transform: translateY(4px);
    }

    #header.nav-open .header-menu-toggle::before {
        transform: rotate(45deg);
        box-shadow: none;
    }

    #header.nav-open .header-menu-toggle::after {
        transform: rotate(-45deg);
    }

    #header-nav-wrap {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        min-width: 0;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        transform: translateY(-4px);
        transition: max-height 0.28s ease, opacity 0.25s ease, transform 0.25s ease;
        background: rgba(255, 245, 240, 0.96);
        border-bottom: 1px solid rgba(232, 160, 191, 0.3);
        box-shadow: 0 12px 20px rgba(95, 17, 50, 0.1);
    }

    #header.nav-open #header-nav-wrap {
        max-height: 480px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        margin-top: 0;
        padding: 0.7rem 1.6rem 1rem;
        border-top: 1px solid rgba(232, 160, 191, 0.36);
    }

    #header-nav-wrap .header-main-nav {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.15rem 0;
    }

    #header-nav-wrap .header-main-nav li {
        width: 100%;
        min-width: 0;
    }

    #header-nav-wrap .header-main-nav li a {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1.48rem;
        font-weight: 600;
        border-radius: 10px;
        line-height: 1.3;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .gallery-item:hover,
    .envelope-shell:hover,
    .envelope-scene:not(.is-open) .envelope-shell:hover .envelope-flap,
    .button:hover,
    button:hover {
        transform: none;
    }

    #home {
        min-height: 72vh;
        padding: 9.6rem 0 5.2rem;
    }

    .home-content-left {
        width: min(100%, 640px);
        padding-inline: 0.4rem;
    }

    .home-content-left h1 {
        font-size: clamp(2.8rem, 9.2vw, 4rem);
    }

    .hero-subtitle {
        font-size: clamp(1.6rem, 4.4vw, 2rem);
        margin: 0 auto;
    }

    #about,
    #nossa-historia,
    #O-que-eu-amo-em-voce,
    #nossas-musicas,
    #mensagem-especial,
    #galeria-fotos {
        padding-inline: 1.4rem;
        margin-bottom: 2.4rem;
    }

    .timeline-item {
        padding-left: 5rem;
    }

    .timeline-content {
        padding: 1.4rem 1.3rem;
    }

    .counter-grid {
        gap: 1.1rem;
    }

    .counter-item {
        padding: 1.4rem 0.8rem;
    }

    .counter-value {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .music-main-title,
    #nossas-musicas h1,
    .intro-header {
        font-size: clamp(2.5rem, 8vw, 3.4rem);
    }

    .music-outro,
    .intro-text,
    .special-intro {
        font-size: 1.55rem;
        line-height: 1.6;
    }

    .special-access {
        margin-bottom: 2.3rem;
    }
}
