/* Base Styles */
:root {
    --strawberry-red: #e31c25;
    --leaf-green: #5ba339;
    --cream: #fffcf2;
    --light-pink: #ffeef0;
    --accent-red: #c41e3a;
    --white: #ffffff;
    --text-color: #4a4a4a;
    --heading-color: #e31c25;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cream);
    background-image: url('img/backgorund.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

.top-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Height of the fade area */
    background: linear-gradient(to bottom, 
        var(--cream) 0%, 
        rgba(255, 252, 242, 0.8) 40%, 
        rgba(255, 252, 242, 0) 100%);
    z-index: 1001; /* Sits above content and strawberries */
    pointer-events: none; /* Allows you to click "through" the fade */
}

/* Handle iPhone Notch Area dynamically */
@supports (padding-top: env(safe-area-inset-top)) {
    .top-fade {
        height: calc(50px + env(safe-area-inset-top));
        background: linear-gradient(to bottom, 
            var(--cream) 0%, 
            var(--cream) env(safe-area-inset-top), 
            rgba(255, 252, 242, 0) 100%);
    }
}

h1, h2, h3 {
    font-family: 'Great Vibes', cursive;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 400; /* Great Vibes looks best at regular weight */
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

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

.bg-light {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Decoration */
body::before {
    content: '';
    position: fixed;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background-image: url('img/strawberry.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.8;
}

body::after {
    content: '';
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background-image: url('img/strawberry.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.8;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid var(--light-pink);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--leaf-green);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero .subtitle2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-image {
    width: 160px; /* Properly sized for desktop */
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.books-image {
    width: 180px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 15px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 28, 37, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--strawberry-red);
    border: 2px solid var(--strawberry-red);
}

.btn-secondary:hover {
    background-color: var(--light-pink);
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

/* Details Section */
.time-location p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Raffle Section */
.prize-text {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--strawberry-red);
}

/* RSVP Section */
.google-form-btn {
    margin-bottom: 30px;
}

.form-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.inline-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--strawberry-red);
    box-shadow: 0 0 0 2px rgba(227, 28, 37, 0.2);
}

.thank-you {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 10px;
    font-weight: 600;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 0;
    margin-top: 40px;
}

.footer p {
    font-family: 'Pacifico', cursive;
    font-size: 1.2rem;
    color: var(--strawberry-red);
    margin-bottom: 10px;
}

.credit {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding-top: env(safe-area-inset-top);
        height: 100dvh; /* Use dynamic viewport height for better mobile fit */
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
    }
    .hero .subtitle {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .hero .subtitle2 {
        font-size: 1rem;
        font-weight: 400;
        color: var(--leaf-green);
        margin-bottom: 2rem;
    }

    .hero-image {
        width: 220px;
    }

    .books-image {
        width: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .card {
        padding: 25px;
    }
}
