:root {
    --primary: #B5563E;
    --primary-light: #D4896A;
    --bg: #F2E6D9;
    --text-dark: #3D2B1F;
    --text-light: #F2E6D9;
    --accent: #C9A87C;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 60%;
    right: -3%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    top: 30%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--primary);
    bottom: 20%;
    left: 15%;
    animation-delay: -15s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 70%;
    left: 50%;
    animation-delay: -7s;
}

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

main {
    position: relative;
    z-index: 1;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.eyebrow {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.name {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.birthday-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

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

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

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.wishes {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.wish-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(181, 86, 62, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.wish-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(181, 86, 62, 0.15);
}

.wish-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.wish-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.wish-card p {
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.7;
}

.gallery {
    padding: 6rem 0;
    background: #fff;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.photo-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.photo-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-item.wide {
    grid-column: span 2;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg) 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-light);
    border-radius: 16px;
}

.photo-placeholder span {
    color: var(--primary);
    font-size: 0.9rem;
    opacity: 0.6;
}

.message {
    padding: 6rem 0;
    background: var(--bg);
}

.message-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(61, 43, 31, 0.1);
    position: relative;
    text-align: center;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    position: absolute;
    top: -1rem;
    left: 2rem;
}

.message-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-style: italic;
}

.signature {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}

.countdown {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
}

.countdown .section-title {
    color: var(--text-light);
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.count-item {
    text-align: center;
}

.count-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.count-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

footer {
    padding: 4rem 0;
    background: var(--text-dark);
    color: var(--text-light);
    text-align: center;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-year {
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .photo-item.large,
    .photo-item.wide {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
    
    .countdown-display {
        gap: 1.5rem;
    }
    
    .message-card {
        padding: 2rem;
    }
    
    .quote-mark {
        font-size: 4rem;
        top: 0;
        left: 1rem;
    }
}
