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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #5b6b7f;
    overflow-x: hidden;
    background: linear-gradient(to bottom, rgba(224, 213, 240, 1) 0%, rgba(224, 213, 240, 1) 30%, transparent 0%), url('bgg.png');
    background-size: 30% auto, cover;
    background-position: top, center;
    background-attachment: scroll, scroll;
    background-blend-mode: multiply;
}

.content {
    position: relative;
    z-index: 1;
}

/* Header */
.top-header {
    background: url('header.png') center bottom 50% / cover;
    padding: 125px 0;
}

.sponsors-img{
    width: min(100%, 550px);
    height: auto;
    display: block;
    margin: 0 auto 0px;
    margin-left: 640px;
}

/* Hero */
.hero {
    text-align: right;
    margin-top: -105px;
    margin-bottom: -100px;
    padding: 20px 20px 60px;
    color: #181818; 
    font-size: 0.8em;
}

.hero-logo {
    width: min(100%, 1200px);
    height: auto;
    display: block;
    margin: 0 auto 40px;
    margin-top: -80px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin: -40px 0;
}

.img-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    transition: transform 0.2s ease, filter 0.2s ease;
}

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

.rsvp-button { 
    width: clamp(372px, 15vw, 340px);
    margin-top: -40px;
}

.faq-button  { 
    width: clamp(185px, 7.5vw, 170px);
    margin-top: -40px;
}

.rsvp-button:hover { transform: translateY(-5px) scale(1.06); filter: drop-shadow(0 8px 16px rgba(102,126,234,0.5)); }
.rsvp-button:active { transform: scale(0.97); filter: none; }
.faq-button:hover  { transform: translateY(-5px) scale(1.06); filter: drop-shadow(0 8px 16px rgba(245,87,108,0.5)); }
.faq-button:active { transform: scale(0.97); filter: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Sections */
section {
    padding: 80px 20px;
    width: min(100%, 1200px);
    margin: 0 auto;
}

p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

/* Bob decorations */
.bob-decoration { position: absolute; pointer-events: none; z-index: 2; }
.bob-1a { top: 360px;  right: 4%; width: 85px; transform: rotate(-6deg); opacity: 0.9; }
.bob-1b { top: 1600px; left: 2%; width: 70px; transform: scaleX(-1) rotate(10deg); opacity: 0.8; }
.bob-1c { top: 3000px; right: 6%; width: 80px; transform: rotate(8deg); opacity: 0.85; }
.bob-2a { top: 950px;  left: 3%; width: 72px; transform: rotate(5deg); opacity: 0.85; }
.bob-2b { top: 3900px; right: 5%; width: 65px; transform: scaleX(-1) rotate(-8deg); opacity: 0.8; }
.bob-3a { top: 1300px; right: 3%; width: 95px; transform: scaleX(-1) rotate(-4deg); opacity: 0.9; }
.bob-3b { top: 2700px; left: 3%; width: 85px; transform: rotate(6deg); opacity: 0.85; }
.bob-4a { top: 3600px; left: 3%; width: 90px; transform: rotate(6deg); opacity: 0.85; }
.bob-4b { top: 2200px; right: 3%; width: 105px; transform: rotate(-4deg); opacity: 0.85; }

/* About */
.about-section { width: min(100%, 1400px); max-width: 1400px; padding: 60px 30px 20px; text-align: center; }

/* Ship */
.ship-section { max-width: 1100px; padding: 60px 30px; text-align: center; }

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.var-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.var-card:hover { transform: translateY(-10px); }

.var-card-img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }

.var-card h3 {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    text-align: center;
    font-size: 1.25em;
    font-weight: 900;
    color: #3d2c5e;
    text-shadow: 0 1px 3px rgba(255,255,255,0.6);
    pointer-events: none;
    line-height: 1.3;
}

/* Chips / Budget */
.chips-section { width: min(100%, 1300px); max-width: 1300px; padding: 20px 15px; text-align: center; }

.chips-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin: 20px 0 4px;
    flex-wrap: wrap;
}

.chips-step-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    flex: 1;
    transition: transform 0.3s ease;
}
.chips-step-img:hover { transform: translateY(-6px); }

.chips-arrow { font-size: 2em; color: #667eea; opacity: 0.5; padding: 0; margin: 0 -15px; }

.grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5px;
    margin-top: -8px;
    align-items: start;
}

.grant-img {
    width: 100%;
    max-width: 372px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
.grant-img:hover { transform: translateY(-4px); }

/* Stickers */
.stickers-section { max-width: 1700px; margin: 0 auto 60px; padding: 0 30px; text-align: center; }

.stickers-img { width: 100%; max-width: 750px; height: auto; display: block; margin: 0 auto; }

/* Demo */
.demo-section { padding: 80px 20px; margin: 60px auto; max-width: 1200px; }

.demo-container { display: flex; align-items: center; gap: 60px; justify-content: space-between; }

.demo-text  { flex: 1; min-width: 300px; }
.demo-image { flex: 1; min-width: 300px; text-align: right; }

.demo-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.demo-image img:hover { transform: translateY(-10px); filter: drop-shadow(0 8px 16px rgba(245,87,108,0.5)); }

/* CTA */
.cta { text-align: center; margin: 60px auto; max-width: 1200px; display: flex; justify-content: center; }

.cta-wrapper { position: relative; display: inline-block; width: min(100%, 1200px); }

.cta-image { width: 100%; height: auto; display: block; }

.cta-rsvp-button {
    position: absolute;
    bottom: 17%; left: 50%;
    transform: translateX(-50%);
    width: clamp(140px, 14vw, 320px);
    z-index: 2;
}
.cta-rsvp-button img { width: 100%; }
.cta-rsvp-button:hover  { transform: translateX(-50%) translateY(-5px) scale(1.06); filter: drop-shadow(0 8px 16px rgba(102,126,234,0.5)); }
.cta-rsvp-button:active { transform: translateX(-50%) scale(0.97); filter: none; }

/* Footer */
footer { text-align: center; padding: 40px 20px; color: #404040; font-size: 1.2em; }

/* Image replacements — change max-width to resize */
.about-message-img  { width: 100%; max-width: 1400px; height: auto; display: block; margin: 0 auto; }
.ship-header-img    { width: 100%; max-width: 450px; height: auto; display: block; margin: 0 auto 30px; }
.budget-header-img  { width: 100%; max-width: 500px; height: auto; display: block; margin: 0 auto 10px; }
.demo-message-img   { width: 100%; max-width: 625px; height: auto; display: block; }

/* Mobile */
@media (max-width: 768px) {
    .button-group { flex-direction: column; align-items: center; }

    .chips-flow { flex-direction: column; align-items: center; }
    .chips-arrow { transform: rotate(90deg); }
    .chips-step-img { max-width: 280px; width: 100%; }

    .grants-grid { grid-template-columns: 1fr; max-width: 320px; margin: 20px auto 0; }

    .stickers-img { max-width: 100%; }

    .demo-container { flex-direction: column; align-items: center; }
    .demo-text { margin-bottom: 40px; }
    .demo-message-img { margin: 0 auto; }

    .about-message-img, .ship-header-img, .budget-header-img, .demo-message-img { max-width: 100% !important; }
}
