/* ==============================================
  STYLE SHEET FOR REUPAP
  ==============================================
*/

/* 1. CSS Variables (Custom Properties)
  ----------------------------------------------
  Define all theme colors and key sizes here.
  To change a color everywhere, you only need to change it once.
*/
:root {
    /* Brand Colors */
    --primary-green: #38a169;
    --primary-green-light: #48bb78;
    --header-green-dark: #2d5016;
    --header-green-light: #3d6b1f;

    /* Text & Neutral Colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --dark-blue: #2d3748;
    --footer-text: #a0aec0;

    /* Background & Accent Colors */
    --background-light: #f7fafc;
    --white: #ffffff;
    --border-color: #dddddd;
    --feature-icon-bg: #e6fffa;
    --focus-blue: #2c5282;
    --focus-blue-light: rgba(44, 82, 130, 0.2);

    /* Sizing */
    --header-height: 80px;
}

/* 2. CSS Reset and Base Styles
  ----------------------------------------------
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-blue);
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* 3. Reusable Components
  ----------------------------------------------
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. Header
  ----------------------------------------------
*/
header {
    background: linear-gradient(135deg, var(--header-green-dark) 0%, var(--header-green-light) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
}

/* 5. Main Content & Hero Section
  ----------------------------------------------
*/
main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
}

.hero-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--white);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* 6. Email Signup Form
  ----------------------------------------------
*/
.email-signup {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

.email-signup h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.email-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.email-form input {
    padding: 15px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
    flex: 1;
    min-width: 220px;
}

.email-form input:focus {
    outline: none;
    border-color: var(--focus-blue);
    box-shadow: 0 0 0 2px var(--focus-blue-light);
}

.email-input:focus {
    border-color: var(--primary-green-light);
    box-shadow: 0 0 0 2px rgba(72, 187, 120, 0.2);
}

.notify-btn {
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    color: var(--white);
    border: none;
    padding: 15px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

/* 7. Success Message
  ----------------------------------------------
*/
#success-message {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

#success-message h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

#success-message p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* 8. Footer
  ----------------------------------------------
*/
footer {
    background: var(--dark-blue);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-green-light);
}

/* 9. Animations
  ----------------------------------------------
*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.email-signup {
    animation: fadeInUp 0.8s ease-out;
}

/* 10. Responsive Design
  ----------------------------------------------
*/
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .email-form {
        flex-direction: column;
        width: 100%;
    }

    .email-form input,
    .email-form button {
        width: 100%;
    }

    .email-signup {
        padding: 2rem;
    }

    .header-content,
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}