/* ========================================
   Valentine Website for Eva 💕
   Theme: Soft Romantic Pink
   ======================================== */

/* CSS Variables */
:root {
    --primary-pink: #F8C8DC;
    --secondary-pink: #FFE4EC;
    --dusty-rose: #E89AB4;
    --soft-gold: #F5D0A9;
    --white: #FFFFFF;
    --text-dark: #4A4A4A;
    --text-light: #7A7A7A;
    --shadow-pink: rgba(232, 154, 180, 0.3);
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Poppins', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ========================================
   Floating Petals Background
   ======================================== */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-pink);
    border-radius: 50% 0 50% 50%;
    opacity: 0.6;
    animation: floatPetal 8s ease-in-out infinite;
}

@keyframes floatPetal {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.3;
    }
}

/* ========================================
   Music Toggle Button
   ======================================== */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--dusty-rose);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px var(--shadow-pink);
}

.music-toggle.playing {
    animation: pulse 1s ease-in-out infinite;
}

.music-icon {
    font-size: 20px;
}

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

/* ========================================
   Section 1: Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, var(--white) 0%, var(--secondary-pink) 100%);
    overflow: hidden;
}

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

.giraffe-silhouette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 1;
}

.giraffe-silhouette svg {
    width: 300px;
    height: 400px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--dusty-rose);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    background: linear-gradient(135deg, var(--dusty-rose) 0%, var(--primary-pink) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
    box-shadow: 0 10px 30px var(--shadow-pink);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-pink);
}

.heart-arrow {
    font-size: 1.2rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--dusty-rose);
    font-size: 0.9rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--dusty-rose);
    border-bottom: 2px solid var(--dusty-rose);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(10px); }
}

/* ========================================
   Section 2: Personal Letter
   ======================================== */
.letter-section {
    min-height: 100vh;
    padding: 80px 20px;
    background: var(--secondary-pink);
    display: flex;
    align-items: center;
}

.letter-container {
    max-width: 700px;
    margin: 0 auto;
}

.letter-paper {
    background: var(--white);
    padding: 60px;
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: rotate(-1deg);
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, transparent 100%);
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--secondary-pink);
    padding-bottom: 20px;
}

.heart-decoration {
    font-size: 2rem;
}

.letter-date {
    font-family: var(--font-primary);
    color: var(--text-light);
    font-style: italic;
}

.letter-content {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-dark);
    min-height: 200px;
}

.letter-signature {
    margin-top: 40px;
    text-align: right;
    font-family: var(--font-primary);
    font-style: italic;
    color: var(--dusty-rose);
}

.signature-name {
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 600;
}

.giraffe-sticker {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.3;
    transform: rotate(15deg);
}

/* Typewriter Cursor - Lebih halus */
.cursor {
    display: inline-block;
    width: 1px;
    height: 1.2em;
    background: var(--dusty-rose);
    margin-left: 2px;
    animation: blink 1s infinite;
    opacity: 0.3;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

/* ========================================
   Section 3: Memories Timeline
   ======================================== */
.memories-section {
    padding: 100px 20px;
    background: var(--white);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-photo {
    position: relative;
    margin-bottom: 20px;
}

.timeline-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 10px 30px var(--shadow-pink);
}

.polaroid-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.timeline-content h3 {
    font-family: var(--font-primary);
    color: var(--dusty-rose);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.giraffe-mini {
    position: absolute;
    bottom: -15px;
    right: 20px;
    font-size: 2rem;
    z-index: 10;
    transition: transform 0.3s ease;
}

.timeline-item:hover .giraffe-mini {
    transform: scale(1.2) rotate(-10deg);
}

/* ========================================
   Section 4: Why You Are Special
   ======================================== */
.special-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--secondary-pink) 0%, var(--white) 100%);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.special-card {
    position: relative;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: all 0.8s ease;
    backface-visibility: hidden;
}

.card-front {
    background: var(--white);
    box-shadow: 0 15px 40px var(--shadow-pink);
}

.card-back {
    background: linear-gradient(135deg, var(--dusty-rose) 0%, var(--primary-pink) 100%);
    color: var(--white);
    transform: rotateY(180deg);
    text-align: center;
}

.special-card:hover .card-front {
    transform: rotateY(180deg);
}

.special-card:hover .card-back {
    transform: rotateY(0);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.card-front h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--text-dark);
}

.card-back p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ========================================
   Section 5: Giraffe Love Symbol
   ======================================== */
.giraffe-love-section {
    padding: 100px 20px;
    background: var(--white);
}

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

.giraffe-couple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.giraffe-left, .giraffe-right {
    animation: gentleSway 3s ease-in-out infinite;
}

.giraffe-left {
    animation-delay: 0s;
}

.giraffe-right {
    animation-delay: 1.5s;
}

@keyframes gentleSway {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.giraffe-left svg, .giraffe-right svg {
    width: 100px;
    height: 150px;
}

.heart-between {
    font-size: 2.5rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

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

.giraffe-quote {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-dark);
    font-style: italic;
    line-height: 2;
    position: relative;
    padding: 40px;
}

.giraffe-quote::before,
.giraffe-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-pink);
    position: absolute;
    font-family: var(--font-primary);
}

.giraffe-quote::before {
    top: 0;
    left: 0;
}

.giraffe-quote::after {
    bottom: -30px;
    right: 0;
}

/* ========================================
   Section 6: Secret Message (Interactive)
   ======================================== */
.secret-section {
    min-height: 100vh;
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--white) 0%, var(--secondary-pink) 100%);
    display: flex;
    align-items: center;
}

.drag-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.giraffe-draggable {
    position: absolute;
    left: 20px;
    cursor: grab;
    transition: transform 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.giraffe-draggable:active {
    cursor: grabbing;
}

.giraffe-draggable svg {
    width: 80px;
    height: 120px;
    filter: drop-shadow(0 10px 20px var(--shadow-pink));
}

.drag-hint {
    font-size: 0.9rem;
    color: var(--dusty-rose);
    margin-top: 10px;
    animation: bounce 1s ease-in-out infinite;
}

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

.heart-target {
    position: absolute;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.heart-target svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 5px 15px var(--shadow-pink));
}

.heart-pulse {
    font-size: 1.5rem;
    margin-top: 10px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.heart-target.reached {
    animation: celebratePulse 0.5s ease-out;
}

@keyframes celebratePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.secret-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--white);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-pink);
    text-align: center;
    transition: all 0.5s ease;
    z-index: 20;
    width: 90%;
    max-width: 500px;
}

.secret-message.show {
    transform: translate(-50%, -50%) scale(1);
}

.secret-content h3 {
    font-family: var(--font-primary);
    color: var(--dusty-rose);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.secret-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.secret-final {
    font-family: var(--font-primary);
    font-size: 1.3rem !important;
    color: var(--dusty-rose) !important;
    font-weight: 600;
}

.secret-heart {
    font-size: 2rem;
    margin: 10px 0;
    display: block;
}

/* ========================================
   Section 7: Closing
   ======================================== */
.closing-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--secondary-pink) 0%, var(--dusty-rose) 100%);
    position: relative;
    overflow: hidden;
}

.closing-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.closing-heart {
    position: absolute;
    font-size: 2rem;
    animation: fallHeart 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes fallHeart {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.closing-content {
    text-align: center;
    z-index: 10;
    padding: 40px;
}

.closing-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.closing-name {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.closing-message {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--white);
    line-height: 2;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.closing-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.heart-icon {
    font-size: 3rem;
}

.signature {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--white);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dusty-rose);
    padding: 30px;
    text-align: center;
    color: var(--white);
}

.footer p {
    font-family: var(--font-primary);
    font-size: 1rem;
}

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .letter-paper {
        padding: 40px 25px;
    }
    
    .giraffe-silhouette svg {
        width: 200px;
        height: 280px;
    }
    
    .giraffe-couple {
        flex-direction: column;
        gap: 30px;
    }
    
    .drag-container {
        flex-direction: column;
        height: 500px;
    }
    
    .giraffe-draggable {
        position: relative;
        left: auto;
        top: auto;
    }
    
    .heart-target {
        position: relative;
        right: auto;
        bottom: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn-start {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
}
