/* CSS Variables */
:root {
    --primary-blue: #1e4db7;
    --accent-yellow: #f0c93b;
    --soft-pink: #f5d6d6;
    --soft-peach: #fce4d4;
    --cream: #fef9f3;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
header {
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--text-light);
    text-decoration: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--text-light);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--text-light);
    color: var(--primary-blue);
}

/* Landing Page Styles */
.landing-page {
    background: var(--primary-blue);
    color: var(--text-light);
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.title {
    font-family: 'Fredoka One', cursive;
    font-size: 6rem;
    letter-spacing: 0.1em;
    margin-bottom: 0;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-title {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.description p {
    margin-bottom: 0.5rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    font-size: 2.5rem;
}

.feature span:last-child {
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-dark);
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pickup-note {
    margin-top: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Decorative Books Animation */
.decorative-books {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.book {
    position: absolute;
    font-size: 5rem;
    animation: float 6s ease-in-out infinite;
}

.book-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.book-2 {
    top: 15%;
    right: 15%;
    animation-delay: 1.5s;
}

.book-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
}

.book-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 4.5s;
}
.book-5 {
    top: 40%;
    left: 50%;
    animation-delay: 2s;
}
.book-6 {
    top: 5%;
    right: 40%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Stars Animation */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    animation: twinkle 4s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Signup Page Styles */
.signup-page {
    background: linear-gradient(180deg, var(--cream) 0%, var(--soft-pink) 50%, var(--soft-peach) 100%);
    min-height: 100vh;
}

.signup-page .logo,
.signup-page .nav-link {
    color: var(--text-dark);
}

.signup-page .nav-link {
    border-color: var(--text-dark);
}

.signup-page .nav-link:hover {
    background: var(--text-dark);
    color: var(--text-light);
}

.form-section {
    flex: 1;
    padding: 2rem;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.form-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-style: italic;
    margin-bottom: 2rem;
    color: #555;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.input-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group.flex-grow {
    flex: 1;
    min-width: 200px;
}

.input-group.half-width {
    width: 50%;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Required Field Indicator */
.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Invalid input styling */
.input-group input:invalid:not(:placeholder-shown),
.input-group textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

/* Radio & Checkbox Styles */
.timing-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.checkbox-group,
.radio-group {
    margin-bottom: 0.75rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

/* Submit Buttons Container */
.submit-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Submit Button */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
    padding: 0.875rem 1rem;
    background: var(--primary-blue);
    color: var(--text-light);
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 77, 183, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 77, 183, 0.4);
}

.submit-button.default-email-button {
    background: #6c757d;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.submit-button.default-email-button:hover {
    background: #5a6268;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.submit-button.outlook-button {
    background: #40a2ec;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
}

.submit-button.outlook-button:hover {
    background: #2995f3;
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
}

.submit-button.gmail-button {
    background: #ffffff;
    color: #444444;
    border: 2px solid #dddddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.submit-button.gmail-button:hover {
    background: #f5f5f5;
    border-color: #EA4335;
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.2);
}

.email-icon {
    flex-shrink: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    font-weight: 600;
}

.landing-page footer {
    color: var(--text-light);
}

.signup-page footer {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 4rem;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .features {
        gap: 1.5rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 2rem;
    }

    .input-group.half-width {
        width: 100%;
    }

    .book {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 3rem;
    }

    .project-title {
        font-size: 2rem;
    }

    .features {
        flex-direction: column;
        gap: 1rem;
    }

    .feature {
        flex-direction: row;
        gap: 1rem;
    }
}
