@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,500;0,700;1,500&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --primary: #1F4E79;
    --secondary: #A9D6E5;
    --accent: #F0F8FF;
    --sand: #D4C5A0;
    --text: #2C3E50;
    --shadow: 0 10px 30px rgba(31, 78, 121, 0.1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0; padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--accent);
    overflow: hidden;
}

.app-container {
    max-width: 480px; margin: 0 auto;
    background: var(--accent);
    min-height: 100vh; position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.font-serif { font-family: 'Cormorant Garamond', serif; }
.text-gold { color: var(--sand); }
.text-deep-blue { color: var(--primary); }

.gate-overlay {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
    background-size: cover; background-position: center;
}
.gate-overlay.open { transform: translateY(-100%); }

.page-section {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden; z-index: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.98);
    background: var(--accent);

    padding-bottom: 120px;
}
.page-section.active { opacity: 1; visibility: visible; z-index: 10; transform: scale(1); }
.page-section.scrollable { overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none; }
.page-section.scrollable::-webkit-scrollbar { display: none; }

.ocean-card {
    background: #ffffff; border-radius: 16px;
    box-shadow: var(--shadow); padding: 24px;
    margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.8);
    position: relative; overflow: hidden;
}

.couple-wrapper {
    position: relative; margin-bottom: 40px;
    text-align: center;
}
.couple-bg-blob {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 200px; border-radius: 50%;
    background: linear-gradient(180deg, var(--secondary) 0%, rgba(255,255,255,0) 100%);
    z-index: 0; opacity: 0.5;
}
.couple-photo-box {
    position: relative; z-index: 1;
    width: 140px; height: 180px; margin: 0 auto 15px;
    border-radius: 50px 50px 20px 20px;
    overflow: hidden; border: 4px solid white;
    box-shadow: 0 10px 20px rgba(31, 78, 121, 0.15);
}
.couple-photo-box img { width: 100%; height: 100%; object-fit: cover; }

.timeline {
    position: relative; padding-left: 20px; margin-top: 20px;
    border-left: 2px solid var(--secondary);
}
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 15px; }
.timeline-dot {
    position: absolute; left: -26px; top: 0;
    width: 14px; height: 14px; background: var(--primary);
    border: 3px solid white; border-radius: 50%;
    box-shadow: 0 0 0 2px var(--secondary);
}

.gallery-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}
.gallery-img:hover { transform: scale(1.02); }

.gift-card-cc {
    background: linear-gradient(135deg, #1F4E79, #2980b9);
    border-radius: 16px; padding: 25px; color: white;
    position: relative; overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(31, 78, 121, 0.3);
}

.form-input {
    width: 100%; padding: 12px 15px; border-radius: 10px;
    border: 1px solid #dae1e7; background: #f8fafc;
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
    outline: none; margin-bottom: 12px;
}
.btn-primary {
    width: 100%; padding: 14px; border-radius: 10px;
    background: var(--primary); color: white; border: none;
    font-weight: 600; cursor: pointer;
    box-shadow: 0 5px 15px rgba(31, 78, 121, 0.2);
}

.bottom-nav {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(200%);
    width: auto; min-width: 320px; height: 55px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-radius: 50px; padding: 0 10px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(31, 78, 121, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0; pointer-events: none;
}
.bottom-nav.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }

.nav-item {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; cursor: pointer; transition: 0.3s;
}
.nav-item i { font-size: 1.2rem; }
.nav-item.active {
    background: var(--primary); color: white;
    transform: translateY(-15px);
    box-shadow: 0 5px 15px rgba(31, 78, 121, 0.3); border: 3px solid #F0F8FF;
    width: 45px; height: 45px;
}

.music-btn {
    position: fixed; top: 25px; right: 25px; z-index: 100;
    width: 35px; height: 35px; background: white; border-radius: 40%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); color: var(--primary);
    cursor: pointer; opacity: 0; transform: scale(0); transition: 0.5s;
}
.music-btn.visible { opacity: 1; transform: scale(1); }
.spin { animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }