/*
Theme Name: Emma is Forty
Theme URI: https://emmaisforty.local
Author: Custom
Author URI: https://emmaisforty.local
Description: A beautiful custom theme for Emma's 40th birthday celebration
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emmaisforty
Tags: custom, birthday, celebration, one-column, responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

a {
    color: #d4a574;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b8905f;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-navigation {
    position: absolute;
    right: 2rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    padding-top: 15px;
}

.site-title-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #d4a574;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.site-title-link:hover {
    color: #b8905f;
    transform: scale(1.05);
}

.title-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4a574 0%, #b8905f 50%, #d4a574 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    animation: shimmer 3s ease-in-out infinite;
    font-family: 'Georgia', 'Times New Roman', serif;
    padding-bottom: 0.25rem;
}

.title-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.site-title-link:hover .title-text::after {
    opacity: 1;
}

.title-decoration {
    font-size: 1.2rem;
    opacity: 0.7;
    animation: sparkle 2s ease-in-out infinite;
    display: inline-block;
}

.title-decoration-left {
    animation-delay: 0s;
}

.title-decoration-right {
    animation-delay: 1s;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f5e6d3 0%, #fff8f0 50%, #f5e6d3 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero-title-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 2px;
    color: #2c2c2c;
}

.age-highlight {
    display: inline-block;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2em;
    color: #d4a574;
    transform: rotate(15deg);
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(212, 165, 116, 0.3);
}

/* Sparkle Effect */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    background: radial-gradient(circle, #fff 0%, #d4a574 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    animation: sparkleTwinkle 1.5s ease-out forwards;
    box-shadow: 0 0 6px rgba(212, 165, 116, 0.8), 0 0 12px rgba(255, 255, 255, 0.6);
}

@keyframes sparkleTwinkle {
    0% {
        opacity: 0;
        transform: scale(0) translate(0, 0);
    }
    20% {
        opacity: 1;
        transform: scale(1) translate(0, -10px);
    }
    80% {
        opacity: 1;
        transform: scale(1) translate(0, -20px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translate(0, -30px);
    }
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #d4a574;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-cta-primary {
    background: linear-gradient(135deg, #d4a574 0%, #b8905f 100%);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    color: #fff;
}

.hero-cta-secondary {
    background: rgba(44, 44, 44, 0.85);
    border: 2px solid rgba(212, 165, 116, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta-secondary:hover {
    transform: translateY(-3px);
    background: rgba(44, 44, 44, 0.95);
    border-color: rgba(212, 165, 116, 0.6);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
    color: #fff;
}

/* Birthday Number */
.birthday-number {
    font-size: clamp(8rem, 20vw, 15rem);
    font-weight: 900;
    color: #d4a574;
    opacity: 0.2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    font-family: 'Georgia', serif;
    line-height: 1;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 3rem;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.family-message-section {
    background: linear-gradient(135deg, #fff8f0 0%, #f5e6d3 100%);
}

.family-intro {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 2rem;
    line-height: 1.9;
}

.family-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(212, 165, 116, 0.3);
    font-size: 1.2rem;
    color: #2c2c2c;
}

.family-signature strong {
    color: #d4a574;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.signature-date {
    color: #999;
    font-size: 1rem;
    font-style: italic;
}

/* 1986 Facts Section */
.facts-section {
    padding: 5rem 0;
    background: #fff;
}

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

.fact-item {
    margin-bottom: 3rem;
}

.fact-item-large {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(212, 165, 116, 0.2);
}

.fact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fact-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.fact-title {
    font-size: 1.5rem;
    color: #2c2c2c;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.fact-text {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.fact-text:last-child {
    margin-bottom: 0;
}

.fact-divider {
    text-align: center;
    color: #d4a574;
    font-size: 1.5rem;
    margin: 2.5rem 0;
    opacity: 0.6;
}

.fact-subsection {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.fact-subtitle {
    font-size: 1.3rem;
    color: #d4a574;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.fact-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.fact-list li {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.fact-list li::before {
    content: '•';
    color: #d4a574;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.fact-list li strong {
    color: #2c2c2c;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: #fff;
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer-cta-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-cta-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-cta-instructions {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.whatsapp-icon-inline {
    vertical-align: middle;
    display: inline-block;
    margin: 0 4px;
}

.footer-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.form-link {
    background: linear-gradient(135deg, #d4a574 0%, #b8905f 100%);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
    animation: glowForm 3s ease-in-out infinite;
}

.form-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
    color: #fff;
    animation: none;
}

.whatsapp-link {
    background: #25D366;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    animation: glowWhatsApp 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.whatsapp-link:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: #fff;
    animation: none;
}

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

@keyframes glowForm {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
    }
    50% {
        box-shadow: 0 2px 16px rgba(212, 165, 116, 0.6), 0 0 20px rgba(212, 165, 116, 0.3);
    }
}

@keyframes glowWhatsApp {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 2px 16px rgba(37, 211, 102, 0.6), 0 0 20px rgba(37, 211, 102, 0.3);
    }
}

/* Messages Stream/Timeline Section */
.messages-stream-section {
    padding: 5rem 0;
    background: #fafafa;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #d4a574 0%, rgba(212, 165, 116, 0.3) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
    animation: fadeInUp 0.6s ease-out;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.1s;
}

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #d4a574;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
    z-index: 2;
}

.timeline-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #d4a574;
}

.timeline-content:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.timeline-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-wrapper {
    flex-shrink: 0;
}

.author-avatar-wrapper img,
.author-avatar-wrapper .author-avatar {
    border-radius: 50%;
    border: 2px solid #d4a574;
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.author-avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574 0%, #b8905f 100%);
    border: 2px solid #d4a574;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 1.1rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: #999;
}

.timeline-body {
    color: #555;
}

.timeline-title {
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
}

.timeline-text p {
    margin-bottom: 1rem;
}

.timeline-text p:last-child {
    margin-bottom: 0;
}

.timeline-text a {
    color: #d4a574;
    text-decoration: underline;
}

.timeline-text a:hover {
    color: #b8905f;
}

.no-messages {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.no-messages p {
    font-size: 1.2rem;
    color: #999;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .content-section {
        padding: 3rem 0;
    }

    .site-title-link {
        gap: 0.5rem;
        padding: 0.25rem 0.5rem;
    }

    .title-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .title-decoration {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-cta {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .footer-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-cta-button {
        width: 100%;
        justify-content: center;
    }

    .footer-cta-title {
        font-size: 1.1rem;
    }

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

    .fact-title {
        font-size: 1.3rem;
    }

    .fact-subtitle {
        font-size: 1.1rem;
    }

    .fact-text {
        font-size: 1rem;
    }

    .fact-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .fact-icon {
        font-size: 1.8rem;
    }

    .timeline-container {
        padding: 1rem 0;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 11px;
        width: 18px;
        height: 18px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-title {
        font-size: 1.25rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .timeline-date {
        font-size: 0.85rem;
    }

    .facts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .fact-card {
        padding: 1.5rem;
    }

    .fact-icon {
        font-size: 2.5rem;
    }

    .fact-category {
        font-size: 1.1rem;
    }

    .facts-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}


