:root {
    --color-maroon: #800000;
    --color-gold: #FFD700;
    --color-pink: #FF1493;
    --color-dark: #121212;
    --color-light: #fefcfb;
    --color-white: #ffffff;
    --color-gray: #e5e5e5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-gold: 0 10px 30px rgba(255, 215, 0, 0.3);
    
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-maroon);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.section-padding {
    padding: 120px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--color-pink);
    font-weight: 500;
    margin-bottom: 60px;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

/* Typography */
h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-maroon);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #5c0000;
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(128, 0, 0, 0.25);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-maroon);
    color: var(--color-maroon);
}

.btn-outline:hover {
    background-color: var(--color-maroon);
    color: var(--color-white);
    transform: translateY(-4px);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
}

.btn-gold:hover {
    background-color: #f0c900;
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-maroon);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-dark);
}

.nav-links a:hover {
    color: var(--color-pink);
}

/* Hero Section */
#hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(60, 0, 0, 0.85));
    z-index: -1;
}

#hero-text {
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: 0 24px;
    margin-top: 60px;
}

#hero-text h1 {
    font-size: 5.5rem;
    color: var(--color-gold);
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

#hero-text p {
    font-size: 1.6rem;
    margin-bottom: 48px;
    font-weight: 300;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.9);
}

/* Timeline */
#timeline-section {
    background-color: var(--color-white);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 80px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(128, 0, 0, 0.2);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 50%;
    padding: 0 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-gold);
    border: 3px solid var(--color-maroon);
    border-radius: 50%;
    top: 10px;
    box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--color-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.timeline-item:nth-child(odd) .timeline-content {
    border-right: 4px solid var(--color-pink);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: 4px solid var(--color-pink);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.timeline-content p {
    color: #555;
}

/* Pricing / Salami Tiers */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.tier-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.tier-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.tier-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 30px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.tier-card h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-pink);
    margin-bottom: 40px;
    font-family: var(--font-heading);
}

.features {
    list-style: none;
    margin-bottom: 48px;
    flex-grow: 1;
}

.features li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #444;
}

.features li:last-child {
    border-bottom: none;
}

.features .disabled {
    color: #a0a0a0;
    text-decoration: line-through;
}

.popular {
    border: 2px solid var(--color-maroon);
    transform: scale(1.03);
    z-index: 1;
}

.popular:hover {
    transform: scale(1.03) translateY(-12px);
}

.badge {
    position: absolute;
    top: 24px;
    right: -40px;
    background: var(--color-maroon);
    color: var(--color-white);
    padding: 8px 48px;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.premium {
    border: 2px solid var(--color-gold);
    background: linear-gradient(180deg, var(--color-white) 0%, #fffbf0 100%);
}

/* Registry Grid */
#registry-grid {
    background-color: var(--color-light);
}

.registry-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.registry-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.registry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.registry-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 5px solid var(--color-gold);
}

.registry-content {
    padding: 40px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.registry-content h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.registry-content p {
    color: #666;
    margin-bottom: 32px;
    flex-grow: 1;
}

/* RSVP Form */
#rsvp-section {
    background: var(--color-maroon);
    color: var(--color-white);
    position: relative;
}

#rsvp-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CjxwYXRoIGQ9Ik0yMCAwbDIwIDIwdS0yMCAyMEwyMCA0MCAwIDIweiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAyKSIgZmlsbC1ydWxlPSJldmVub2RkIi8+Cjwvc3ZnPg==');
    opacity: 0.5;
}

#rsvp-section h2, #rsvp-section .section-subtitle {
    color: var(--color-gold);
    position: relative;
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--color-dark);
    position: relative;
    z-index: 10;
}

.rsvp-container h2 {
    color: var(--color-maroon);
    font-size: 2.5rem;
}

.rsvp-container > p {
    text-align: center;
    color: var(--color-pink);
    margin-bottom: 40px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--color-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
    color: var(--color-dark);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-maroon);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.08);
}

/* Footer */
footer {
    background: #0f0f0f;
    color: #888;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid, .registry-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.8rem;
    }
    .section-padding {
        padding: 80px 0;
    }
    #hero-text h1 {
        font-size: 3.5rem;
    }
    #hero-text p {
        font-size: 1.2rem;
    }
    .nav-links {
        display: none;
    }
    header nav {
        padding: 20px;
        justify-content: center;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        border-right: 1px solid rgba(0,0,0,0.03);
        border-left: 4px solid var(--color-pink);
    }
    .timeline-dot {
        left: 10px !important;
    }
    .pricing-grid, .registry-items {
        grid-template-columns: 1fr;
    }
    .popular {
        transform: scale(1);
    }
    .popular:hover {
        transform: translateY(-8px);
    }
    .rsvp-container {
        padding: 40px 24px;
    }
}

/* ============================================================
   ANIMATION KEYFRAMES
   ============================================================ */

/* Hero text: aggressive scale-up then settle */
@keyframes heroEntrance {
    0%   { opacity: 0; transform: scale(0.08) rotate(-4deg); letter-spacing: 2rem; }
    50%  { opacity: 1; transform: scale(1.3)  rotate(1deg);  letter-spacing: 0.2rem; }
    70%  { transform: scale(0.93) rotate(-0.5deg); }
    85%  { transform: scale(1.07) rotate(0.3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); letter-spacing: normal; }
}

@keyframes heroFadeUp {
    0%   { opacity: 0; transform: translateY(28px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Gold confetti falling + swaying */
@keyframes confettiFall {
    0%   { transform: translateY(-30px) rotate(0deg);   opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(110vh) rotate(780deg); opacity: 0; }
}

@keyframes confettiSway {
    0%, 100% { margin-left: 0; }
    25%       { margin-left: 35px; }
    75%       { margin-left: -35px; }
}

/* Scroll bounce-in: like a heavy gold set landing on a table */
@keyframes bounceInUp {
    0%   { opacity: 0; transform: translateY(70px) scale(0.88); }
    55%  { opacity: 1; transform: translateY(-18px) scale(1.04); }
    75%  { transform: translateY(9px)  scale(0.98); }
    90%  { transform: translateY(-5px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Greedy button vibrate */
@keyframes vibrate {
    0%,100% { transform: translate(0,0); }
    10%     { transform: translate(-3px,-2px); }
    20%     { transform: translate(3px, 2px); }
    30%     { transform: translate(-3px, 1px); }
    40%     { transform: translate(3px,-2px); }
    50%     { transform: translate(-2px, 2px); }
    60%     { transform: translate(2px, 0px); }
    70%     { transform: translate(-2px,-2px); }
    80%     { transform: translate(2px, 2px); }
    90%     { transform: translate(-1px,-1px); }
}

/* Tooltip pop */
@keyframes tooltipPop {
    0%   { transform: scale(0.6) translateY(10px); opacity: 0; }
    70%  { transform: scale(1.08) translateY(-2px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ============================================================
   HERO ENTRANCE
   ============================================================ */

#hero-text h1 {
    opacity: 0;
    animation: heroEntrance 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

#hero-text p {
    opacity: 0;
    animation: heroFadeUp 0.9s ease 1.3s both;
}

#hero-text .btn {
    opacity: 0;
    animation: heroFadeUp 0.9s ease 1.65s both;
}

/* ============================================================
   CONFETTI PIECES
   ============================================================ */

.confetti-piece {
    position: fixed;
    top: -20px;
    z-index: 9999;
    pointer-events: none;
    border-radius: 3px;
    animation:
        confettiFall linear forwards,
        confettiSway ease-in-out infinite;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.scroll-hidden {
    opacity: 0;
    transform: translateY(70px) scale(0.9);
}

.scroll-reveal {
    animation: bounceInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ============================================================
   SALAMI TOOLTIP
   ============================================================ */

.salami-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #cc0000;
    color: #fff;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
    z-index: 200;
    box-shadow: 0 6px 20px rgba(180, 0, 0, 0.45);
    animation: tooltipPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.salami-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #cc0000;
}

/* ============================================================
   GREEDY BUTTONS
   ============================================================ */

.btn-greedy {
    animation: vibrate 0.12s linear infinite !important;
    background-color: var(--color-pink) !important;
    color: var(--color-white) !important;
    border-color: var(--color-pink) !important;
    transform: none !important;
}
