/* Color Palette */
:root {
    --cream: #FFF7ED;
    --mocha: #A36851;
    --soft-pink: #F7C9D4;
    --white: #FFFFFF;
    --pastel-rose: #F0D9DD;
    --dark-chocolate: #56342E;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    background: var(--cream);
    color: var(--dark-chocolate);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Explicitly hide any modal elements */
.modal,
#addMemoryModal,
[id*="memory"],
[id*="Memory"],
.brew-more-btn,
#brewMoreBtn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--cream) 0%, var(--pastel-rose) 100%);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(163, 104, 81, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(247, 201, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 217, 221, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

.header-center {
    text-align: center;
    flex: 1;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--mocha);
    margin-bottom: 0.3rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    animation: fadeInDown 1s ease-out;
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--dark-chocolate);
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: 'Playfair Display', serif;
    color: var(--dark-chocolate);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mocha);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--mocha);
}

.nav-link:hover::after {
    width: 100%;
}

.music-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-toggle {
    background: var(--white);
    border: 2px solid var(--soft-pink);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--mocha);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(163, 104, 81, 0.2);
}

.music-toggle:hover {
    background: var(--soft-pink);
    transform: scale(1.05);
}

.music-toggle.active {
    background: var(--mocha);
    color: var(--white);
    border-color: var(--mocha);
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--pastel-rose) 50%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.coffee-cup-illustration {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coffee-cup {
    font-size: 8rem;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

.floating-petals-hero {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.petal {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: petalFloat 4s ease-in-out infinite;
}

.petal-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.petal-2 {
    top: 30%;
    right: 15%;
    animation-delay: 0.8s;
}

.petal-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: 1.6s;
}

.petal-4 {
    bottom: 40%;
    right: 20%;
    animation-delay: 2.4s;
}

.petal-5 {
    top: 50%;
    left: 50%;
    animation-delay: 3.2s;
}

.hero-center {
    text-align: center;
}

.hero-message {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--mocha);
    margin-bottom: 2rem;
    line-height: 1.3;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.start-journey-btn {
    background: linear-gradient(135deg, var(--mocha) 0%, var(--dark-chocolate) 100%);
    color: var(--white);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-family: 'Dancing Script', cursive;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(163, 104, 81, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.start-journey-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(163, 104, 81, 0.5);
}

.start-journey-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Timeline Container */
.timeline-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
}

.timeline-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    color: var(--mocha);
    margin-bottom: 4rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--soft-pink), var(--pastel-rose), var(--soft-pink));
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 2px;
}

.timeline-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 0;
}

/* Timeline Cards */
.timeline-card {
    background: var(--white);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(163, 104, 81, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
    overflow: visible;
    width: 45%;
    z-index: 1;
}

.timeline-card-left {
    margin-right: auto;
    animation-delay: 0.1s;
}

.timeline-card-right {
    margin-left: auto;
    animation-delay: 0.2s;
}

.timeline-card:nth-child(odd).timeline-card-left { animation-delay: 0.1s; }
.timeline-card:nth-child(even).timeline-card-right { animation-delay: 0.2s; }

.timeline-marker {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 4px solid var(--soft-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(163, 104, 81, 0.3);
    transform: translateY(-50%);
}

.timeline-card-left .timeline-marker {
    right: -80px;
}

.timeline-card-right .timeline-marker {
    left: -80px;
}

.marker-flower {
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

.timeline-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 60px rgba(163, 104, 81, 0.3);
}

.timeline-card.active {
    transform: translateY(-5px) scale(1.02);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.carnation-icon {
    font-size: 2.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carnation-icon:hover {
    transform: scale(1.3) rotate(15deg);
}

.white-carnation {
    filter: brightness(1.1);
}

.pink-carnation {
    filter: hue-rotate(350deg) saturate(1.2);
}

.coffee-name {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--mocha);
    margin: 1rem 0 0.5rem;
}

.moment-type {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--dark-chocolate);
    font-style: italic;
    opacity: 0.8;
}

/* Polaroid Frame */
.polaroid-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.polaroid-frame {
    position: relative;
    background: var(--white);
    padding: 1rem 1rem 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.timeline-card:hover .polaroid-frame {
    transform: rotate(1deg) scale(1.05);
}

.polaroid-photo {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(20%) contrast(1.1) brightness(0.95);
    border: 2px solid var(--cream);
}

.polaroid-tape {
    position: absolute;
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: rotate(45deg);
}

.tape-1 {
    top: 10px;
    left: 20px;
}

.tape-2 {
    top: 10px;
    right: 20px;
}

/* Memory Text */
.memory-text {
    text-align: center;
    margin-top: 2rem;
}

.caption {
    font-family: 'Kalam', cursive;
    font-size: 1.3rem;
    color: var(--mocha);
    margin-bottom: 1rem;
    font-weight: 600;
}

.description {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--dark-chocolate);
    line-height: 1.8;
    opacity: 0.9;
}

/* Carnation Bloom Animation */
.carnation-bloom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    opacity: 0;
}

.carnation-bloom.active {
    animation: bloom 1.5s ease-out;
}

@keyframes bloom {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

.carnation-bloom::before,
.carnation-bloom::after {
    content: '💮';
    position: absolute;
    font-size: 3rem;
    animation: petalFloat 2s ease-in-out infinite;
}

.carnation-bloom::before {
    left: -20px;
    animation-delay: 0s;
}

.carnation-bloom::after {
    right: -20px;
    animation-delay: 1s;
}

/* Photo Wall */
.photo-wall {
    padding: 4rem 2rem;
    background: var(--pastel-rose);
    margin-top: 4rem;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    color: var(--mocha);
    margin-bottom: 3rem;
}

.pinboard {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.pinboard-photo {
    position: relative;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: rotate(calc(var(--rotation, 0deg) + -5deg));
    transition: transform 0.3s ease;
}

.pinboard-photo:nth-child(odd) {
    --rotation: 5deg;
}

.pinboard-photo:nth-child(even) {
    --rotation: -3deg;
}

.pinboard-photo:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
}

.pinboard-photo img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(15%) contrast(1.05);
}

.pin {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--mocha);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pin::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--dark-chocolate);
}

/* Love Receipt */
.love-receipt-section {
    padding: 4rem 2rem;
    text-align: center;
}

.receipt-btn {
    background: var(--soft-pink);
    color: var(--dark-chocolate);
    border: 2px solid var(--mocha);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-family: 'Dancing Script', cursive;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(163, 104, 81, 0.2);
}

.receipt-btn:hover {
    background: var(--mocha);
    color: var(--white);
    transform: scale(1.05);
}

.receipt-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.receipt {
    background: var(--white);
    padding: 2rem;
    border: 2px dashed var(--mocha);
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    font-family: 'Courier New', monospace;
    box-shadow: 0 8px 25px rgba(163, 104, 81, 0.2);
    animation: printReceipt 0.5s ease-out;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed var(--mocha);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.receipt-header h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--mocha);
    margin-bottom: 0.5rem;
}

.receipt-items {
    margin: 1rem 0;
    text-align: left;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--pastel-rose);
}

.receipt-total {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--mocha);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--mocha);
}

.receipt-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: var(--dark-chocolate);
    opacity: 0.8;
}

.receipt-date {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.receipt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.receipt-action-btn {
    background: var(--soft-pink);
    color: var(--dark-chocolate);
    border: 2px solid var(--mocha);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(163, 104, 81, 0.2);
}

.receipt-action-btn:hover {
    background: var(--mocha);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(163, 104, 81, 0.3);
}

.hidden {
    display: none;
}

/* Playlist Corner */
.playlist-corner {
    padding: 4rem 2rem;
    background: var(--cream);
}

.playlist-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.playlist-note {
    font-size: 1.1rem;
    color: var(--dark-chocolate);
    margin-bottom: 2rem;
    font-style: italic;
}

.playlist-placeholder {
    background: var(--white);
    border: 2px dashed var(--soft-pink);
    border-radius: 15px;
    padding: 3rem;
    color: var(--mocha);
    position: relative;
}

.playlist-instructions {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.7;
}

.carnation-decorations {
    position: relative;
    margin-top: 2rem;
}

.carnation-deco {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: float 4s ease-in-out infinite;
}

.carnation-deco.deco-1 {
    top: -20px;
    left: 10%;
    animation-delay: 0s;
}

.carnation-deco.deco-2 {
    top: -20px;
    right: 10%;
    animation-delay: 1.5s;
}

.carnation-deco.deco-3 {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3s;
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background: var(--pastel-rose);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--dark-chocolate);
    line-height: 1.8;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--dark-chocolate);
    color: var(--cream);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.footer-dedication {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.footer-dedication .heart {
    color: var(--soft-pink);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-dedication .coffee {
    font-size: 1.2em;
    animation: float 3s ease-in-out infinite;
}

.footer-carnation {
    font-size: 2rem;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Floating Petals */
.floating-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-petals::before,
.floating-petals::after {
    content: '💮';
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatDown 15s linear infinite;
}

.floating-petals::before {
    left: 10%;
    animation-delay: 0s;
}

.floating-petals::after {
    left: 80%;
    animation-delay: 7s;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes petalFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes printReceipt {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .coffee-cup-illustration {
        width: 200px;
        height: 200px;
    }

    .coffee-cup {
        font-size: 5rem;
    }

    .hero-message {
        font-size: 2rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-card-left .timeline-marker,
    .timeline-card-right .timeline-marker {
        left: -50px;
        right: auto;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .polaroid-frame {
        max-width: 100%;
    }

    .pinboard {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .music-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .receipt-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .timeline-card {
        width: 48%;
    }
}

@media (min-width: 1025px) {
    .timeline-card {
        width: 45%;
    }
}

/* Scroll Animation */
@media (prefers-reduced-motion: no-preference) {
    .timeline-card {
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}

