:root {
    --primary: #B5563E;
    --primary-light: #D4896A;
    --bg: #F2E6D9;
    --text: #3D2B1F;
    --accent: #C9A87C;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

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

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

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

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 90vh;
    padding: 2rem 0;
}

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

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

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

.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--primary);
    position: relative;
}

.title-line.highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.15em;
    background: var(--accent);
    z-index: -1;
    opacity: 0.6;
}

.message {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 400px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(181, 86, 62, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(181, 86, 62, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.2s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cake {
    position: relative;
    width: 200px;
    height: 180px;
}

.cake-top, .cake-middle, .cake-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.cake-top {
    width: 100px;
    height: 40px;
    background: linear-gradient(135deg, #D4896A 0%, #B5563E 100%);
    top: 0;
    z-index: 3;
}

.cake-middle {
    width: 140px;
    height: 50px;
    background: linear-gradient(135deg, #E8C4B8 0%, #D4896A 100%);
    top: 35px;
    z-index: 2;
}

.cake-bottom {
    width: 180px;
    height: 60px;
    background: linear-gradient(135deg, #F2E6D9 0%, #E8C4B8 100%);
    top: 80px;
    z-index: 1;
    border: 3px solid #D4896A;
}

.cake-top::before, .cake-middle::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10%;
    width: 80%;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--white) 0px,
        var(--white) 8px,
        transparent 8px,
        transparent 16px
    );
    opacity: 0.7;
}

.candle {
    position: absolute;
    width: 8px;
    height: 30px;
    background: linear-gradient(180deg, #C9A87C 0%, #8B7355 100%);
    border-radius: 2px;
    z-index: 4;
}

.candle:nth-of-type(4) { top: -25px; left: 70px; }
.candle:nth-of-type(5) { top: -25px; left: 96px; }
.candle:nth-of-type(6) { top: -25px; left: 122px; }

.flame {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 20px;
    background: radial-gradient(ellipse at center, #FFD700 0%, #FF6B35 50%, #FF4500 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 1.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.1) skewX(2deg); opacity: 0.9; }
}

.wishes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

.wish-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(61, 43, 31, 0.08);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.wish-card:nth-child(1) { animation-delay: 0.1s; }
.wish-card:nth-child(2) { animation-delay: 0.2s; }
.wish-card:nth-child(3) { animation-delay: 0.3s; }

.wish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(61, 43, 31, 0.15);
}

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

.wish-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.wish-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.7;
}

.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(61, 43, 31, 0.1);
}

.footer p {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .message {
        margin-left: auto;
        margin-right: auto;
    }
    
    .wishes {
        grid-template-columns: 1fr;
    }
    
    .cake {
        transform: scale(0.85);
    }
}