/* Grace-Lynn's Butterfly Effect - Styles */

/* CSS Variables for Purple Color Palette */
:root {
    --primary-purple: #7B68EE;
    --deep-purple: #6B46C1;
    --light-purple: #E9D5FF;
    --soft-purple: #F3E8FF;
    --dark-purple: #553C9A;
    --accent-purple: #9333EA;
    --text-dark: #2D1B69;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --soft-gray: #F9FAFB;
    --overlay: rgba(123, 104, 238, 0.1);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--soft-purple) 0%, var(--white) 50%, var(--soft-purple) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--deep-purple);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Animated Butterflies */
.butterflies {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.butterfly {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.butterfly::before {
    content: '🦋';
    font-size: 30px;
    position: absolute;
    animation: flutter 20s infinite linear;
}

.butterfly-1 {
    top: 20%;
    animation: float1 25s infinite ease-in-out;
}

.butterfly-2 {
    top: 50%;
    animation: float2 30s infinite ease-in-out;
}

.butterfly-3 {
    top: 80%;
    animation: float3 35s infinite ease-in-out;
}

@keyframes flutter {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(-10deg) scale(0.9); }
    75% { transform: rotate(5deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes float1 {
    0% { left: -10%; transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { left: 110%; transform: translateY(0px); }
}

@keyframes float2 {
    0% { right: -10%; transform: translateY(0px); }
    50% { transform: translateY(30px); }
    100% { right: 110%; transform: translateY(0px); }
}

@keyframes float3 {
    0% { left: -10%; transform: translateY(0px); }
    50% { transform: translateY(-40px); }
    100% { left: 110%; transform: translateY(0px); }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(123, 104, 238, 0.1);
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep-purple);
    font-weight: 700;
}

.butterfly-icon {
    font-size: 1.5rem;
    animation: gentle-flutter 3s ease-in-out infinite;
}

@keyframes gentle-flutter {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-purple);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--deep-purple);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--soft-purple) 100%);
    overflow: hidden;
    width: 100%;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    animation: fadeInUp 1s ease;
}

.butterfly-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

.hero-title {
    font-size: 4rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-dates {
    font-size: 1.1rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 3rem;
}

.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--deep-purple);
    font-weight: 500;
    transition: transform 0.3s ease;
}

.scroll-down:hover {
    transform: translateY(5px);
}

.scroll-arrow {
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section-title {
    font-size: 3rem;
    text-align: center;
    color: var(--deep-purple);
    margin-bottom: 1rem;
    max-width: 100%;
    word-wrap: break-word;
}

.butterfly-divider {
    width: 60px;
    height: 40px;
    margin: 2rem auto 3rem;
    text-align: center;
    position: relative;
}

.butterfly-divider::before {
    content: '🦋';
    font-size: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: gentle-flutter 3s ease-in-out infinite;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-intro {
    background: var(--soft-purple);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.1);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.story-card {
    background: linear-gradient(135deg, var(--soft-purple) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(123, 104, 238, 0.2);
}

.story-card h3 {
    color: var(--deep-purple);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.story-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

.story-message {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--soft-purple) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.15);
}

.story-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Poem Section */
.poem-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--soft-purple) 0%, var(--white) 100%);
    width: 100%;
    overflow-x: hidden;
}

.poem-subtitle {
    text-align: center;
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.poem-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(123, 104, 238, 0.15);
}

.poem-verse {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-left: 3px solid var(--primary-purple);
    background: linear-gradient(90deg, var(--soft-purple) 0%, transparent 100%);
}

.poem-verse p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
}

.poem-link {
    text-align: center;
    margin-top: 2rem;
}

.poem-link a {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.poem-link a:hover {
    color: var(--deep-purple);
}

/* Resources Section */
.resources-section {
    padding: 100px 0;
    background: var(--white);
    width: 100%;
    overflow-x: hidden;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-card {
    background: var(--soft-purple);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.1);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.2);
}

.resource-card h3 {
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resource-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: var(--deep-purple);
}

.support-message {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--soft-purple) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.support-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Memory Section */
.memory-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--soft-purple) 100%);
    width: 100%;
    overflow-x: hidden;
}

.memory-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.memory-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.memory-grid {
    margin-bottom: 3rem;
}

.memory-placeholder {
    background: var(--soft-purple);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.1);
}

.butterfly-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.memory-placeholder p {
    color: var(--text-dark);
    font-style: italic;
}

.memory-quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.memory-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--deep-purple);
    font-style: italic;
    position: relative;
    padding: 2rem;
}

.memory-quote blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--light-purple);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--white);
    width: 100%;
    overflow-x: hidden;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-info {
    background: var(--soft-purple);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.email-placeholder {
    color: var(--primary-purple);
    font-weight: 600;
}

.butterfly-release-info {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--soft-purple) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.1);
}

.butterfly-release-info h3 {
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.butterfly-release-info p {
    line-height: 1.7;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--primary-purple) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-butterfly {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: gentle-flutter 3s ease-in-out infinite;
}

.footer-text {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-quote {
    font-style: italic;
    opacity: 0.9;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 2rem;
}

/* Our Story Page Specific Styles */
.hero-secondary {
    height: 60vh;
    min-height: 500px;
}

.story-chapter {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.story-chapter:first-child {
    margin-top: 2rem;
}

.chapter-title {
    font-size: 2.5rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Open Sans', sans-serif;
}

.story-chapter .story-content {
    background: var(--soft-purple);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.1);
    line-height: 1.9;
}

.story-chapter .story-content p {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.story-chapter .story-content p:last-child {
    margin-bottom: 0;
}

/* Coming Soon Notice */
.coming-soon-notice {
    text-align: center;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--soft-purple) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.1);
}

.coming-soon-notice p {
    color: var(--deep-purple);
    font-size: 1.1rem;
    margin: 0;
}

/* Resource List Styles */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.resource-list li:before {
    content: '🦋';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.resource-list li:last-child {
    margin-bottom: 0;
}

/* Clickable Resource Items */
.resource-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    margin-left: -0.5rem;
    border-radius: 8px;
}

.resource-item.clickable:hover {
    background: rgba(147, 51, 234, 0.1);
    transform: translateX(5px);
}

.resource-item.clickable:hover:before {
    animation: gentle-flutter 0.5s ease-in-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(43, 27, 105, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, var(--white) 0%, var(--soft-purple) 100%);
    margin: 5% auto;
    padding: 2rem;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    color: var(--deep-purple);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-purple);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    font-size: 2rem;
}

.modal-body {
    color: var(--text-dark);
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
}

.modal-body a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-body a:hover {
    color: var(--deep-purple);
    text-decoration: underline;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Contact Form Styles */
.contact-form-container {
    background: var(--soft-purple);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.1);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-purple);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button .butterfly-icon {
    font-size: 1.2rem;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(123, 104, 238, 0.1);
        padding: 2rem 0;
        z-index: 999;
        max-width: 100vw;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        line-height: 1.8;
    }

    .hero-dates {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .poem-container {
        padding: 2rem;
    }

    .chapter-title {
        font-size: 1.8rem;
    }

    .coming-soon-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .story-chapter .story-content {
        padding: 1.5rem;
    }

    .story-chapter .story-content p {
        font-size: 1rem;
    }

    .resource-list li {
        font-size: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
        padding: 1.5rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .modal-body p {
        font-size: 1rem;
    }

    .coming-soon-notice p {
        font-size: 1rem;
    }

    .contact-form-container {
        padding: 1.5rem 1rem;
        margin: 0;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100%;
        max-width: 100%;
    }

    .submit-button {
        font-size: 1rem;
    }
}