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

:root {
    --gold: #D4AF37;
    --gold-light: #F5E6C8;
    --gold-dark: #B8860B;
    --white: #FFFFFF;
    --cream: #FFFEF9;
    --dark: #2C2C2C;
    --gray: #666666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--gold-light) 100%);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.8;
}

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

.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    box-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold-light);
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    color: var(--gold);
    opacity: 0.6;
    animation: float-up 8s ease-in-out infinite;
    font-size: 20px;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, var(--white) 0%, var(--gold-light) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 20px;
}

.title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(4rem, 15vw, 10rem);
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
    margin-bottom: 30px;
    animation: fade-in-down 1.5s ease-out;
}

@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typewriter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    margin-bottom: 50px;
}

.typewriter {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--dark);
    font-style: italic;
}

.cursor {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gold);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    color: var(--gold-dark);
    transform: scale(1.1);
}

.scroll-text {
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
}

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

.hero-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold-light);
    border-radius: 50%;
    opacity: 0.5;
}

.hero-decoration.left {
    top: 10%;
    left: 5%;
    animation: rotate-slow 20s linear infinite;
}

.hero-decoration.right {
    bottom: 10%;
    right: 5%;
    animation: rotate-slow 25s linear infinite reverse;
}

.hero-decoration::before,
.hero-decoration::after {
    content: '';
    position: absolute;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
}

.hero-decoration::before {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-decoration::after {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.story {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.ornament {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 30px auto;
    position: relative;
}

.ornament::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-text {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.story-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.reasons {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%);
}

.reasons-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.reason-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.reason-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.reason-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.reason-number {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--gold-light);
    margin-right: 20px;
    min-width: 60px;
}

.reason-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.reason-heart {
    font-size: 1.5rem;
    color: var(--gold);
    margin-right: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

.reason-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--dark);
    font-style: italic;
}

.love-letter {
    padding: 100px 0;
    background: var(--white);
}

.envelope {
    position: relative;
    width: 320px;
    height: 200px;
    margin: 50px auto 0;
    cursor: pointer;
    perspective: 1000px;
}

.envelope-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--cream) 100%);
    border: 2px solid var(--gold);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 100px solid var(--gold);
    z-index: 3;
    transform-origin: top center;
    transition: transform 0.5s ease;
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-heart {
    font-size: 3rem;
    color: var(--gold);
    animation: pulse 1.5s ease-in-out infinite;
}

.envelope-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--gold);
    margin-top: 10px;
    letter-spacing: 1px;
}

.envelope.open .envelope-front {
    opacity: 0;
    pointer-events: none;
}

.letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 280px;
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
    z-index: 1;
}

.envelope.open .letter {
    transform: translate(-50%, -150%) scale(1);
    opacity: 1;
}

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

.letter-greeting {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.letter-body {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.letter-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 1.3rem;
    color: var(--gold);
    margin-top: 15px;
}

.letter-seal {
    font-size: 2rem;
    color: var(--gold);
    margin-top: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

.click-effect {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: click-heart 1s ease-out forwards;
}

.click-effect-heart {
    font-size: 20px;
    color: var(--gold);
}

@keyframes click-heart {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(15deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(-15deg) translateY(-50px);
    }
}

.quotes {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--cream) 100%);
}

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

.quote-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.quote-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
}

.quote-icon {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 10px;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 600;
}

.gallery {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--cream) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gold);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

.gallery-item:hover .gallery-placeholder span {
    color: var(--white);
}

.heart-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.gallery-item:hover .heart-icon {
    transform: scale(1.2);
}

.gallery-placeholder span:last-child {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.love-meter {
    padding: 100px 0;
    background: var(--white);
}

.roulette-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 50px auto 30px;
}

.roulette-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--gold-dark);
    z-index: 10;
}

.roulette {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: 0% 100%;
    clip-path: polygon(0% 100%, 100% 0%, 0% 0%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette-segment span {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    top: 35%;
    left: 20%;
    transform: rotate(-60deg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.roulette-segment.seg-1 {
    transform: rotate(0deg);
    background: linear-gradient(135deg, #D4AF37 0%, #C9A227 100%);
}
.roulette-segment.seg-1 span { transform: rotate(-30deg); left: 25%; }

.roulette-segment.seg-2 {
    transform: rotate(60deg);
    background: linear-gradient(135deg, #F5E6C8 0%, #E8D4A8 100%);
}
.roulette-segment.seg-2 span { transform: rotate(30deg); left: 25%; color: var(--dark); }

.roulette-segment.seg-3 {
    transform: rotate(120deg);
    background: linear-gradient(135deg, #B8860B 0%, #A67C00 100%);
}
.roulette-segment.seg-3 span { transform: rotate(90deg); left: 25%; }

.roulette-segment.seg-4 {
    transform: rotate(180deg);
    background: linear-gradient(135deg, #D4AF37 0%, #C9A227 100%);
}
.roulette-segment.seg-4 span { transform: rotate(150deg); left: 25%; }

.roulette-segment.seg-5 {
    transform: rotate(240deg);
    background: linear-gradient(135deg, #F5E6C8 0%, #E8D4A8 100%);
}
.roulette-segment.seg-5 span { transform: rotate(210deg); left: 25%; color: var(--dark); }

.roulette-segment.seg-6 {
    transform: rotate(300deg);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}
.roulette-segment.seg-6 span { transform: rotate(270deg); left: 25%; }

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: 4px solid var(--white);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 20;
}

.spin-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.spin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.love-result {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--dark);
    text-align: center;
    font-style: italic;
    min-height: 30px;
}

.love-result.typing {
    color: var(--gold);
}

.love-result .percentage {
    font-weight: 700;
}

.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

.message {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--white) 100%);
}

.message-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.message-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}

.message-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--gold);
    margin-bottom: 30px;
}

.message-text {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 2;
    margin-bottom: 30px;
}

.message-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--gold);
}

.heart-animation {
    margin-top: 30px;
}

.big-heart {
    font-size: 4rem;
    color: var(--gold);
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer {
    padding: 40px 0;
    background: var(--dark);
    text-align: center;
}

.footer-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--gold-light);
}

.footer-heart {
    color: var(--gold);
    animation: pulse 1.5s ease-in-out infinite;
    display: inline-block;
}

.footer-ornament {
    width: 100px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto 0;
}

@media (max-width: 768px) {
    .hero-decoration {
        display: none;
    }
    
    .quotes-grid {
        grid-template-columns: 1fr;
    }
    
    .message-box {
        padding: 40px 20px;
    }

    .roulette-wrapper {
        width: 250px;
        height: 250px;
    }

    .spin-btn {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .roulette-wrapper {
        width: 220px;
        height: 220px;
    }

    .roulette-segment span {
        font-size: 0.8rem;
    }
}
