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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #667eea;
    --accent-color: #764ba2;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f4f1e8;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px),
        radial-gradient(ellipse at top left, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(160, 82, 45, 0.05) 0%, transparent 50%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 69, 19, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(160, 82, 45, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(210, 180, 140, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navbar {
    background: linear-gradient(to bottom, rgba(253, 252, 248, 0.98), rgba(249, 246, 240, 0.98));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    color: var(--secondary-color);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.active {
    color: var(--secondary-color);
}

.nav-link i {
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, #fdfcf8, #f9f6f0);
    box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.05), var(--shadow-md);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.walt-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.hero-text h1 {
    font-family: 'EB Garamond', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-style: italic;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Crimson Text', serif;
}

.hero-tagline {
    color: #8B4513;
    font-size: 1.15rem;
    font-style: italic;
    margin: 0.8rem 0;
    font-family: 'Crimson Text', serif;
    font-weight: 500;
}

.hero-description {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}


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

/* Form Section */
.input-section {
    background: linear-gradient(to bottom, #fdfcf8, #f9f6f0);
    box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.05), var(--shadow-lg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

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

.section-header i {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.6;
}

.section-header h2 {
    font-family: 'EB Garamond', serif;
    color: var(--primary-color);
    font-size: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.7;
}

.optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.85rem;
}

select, textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Crimson Text', serif;
    background: #fdfcf8;
}

select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.textarea-group {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.submit-btn {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    padding: 0.8rem 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    font-family: 'EB Garamond', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.submit-btn:hover {
    background: #2c3e50;
    color: #fdfcf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Response Section */
.response-section {
    background: linear-gradient(to bottom, #fdfcf8, #f9f6f0);
    box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.05), var(--shadow-lg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.poem-section h3 {
    font-family: 'EB Garamond', serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.poem-excerpt {
    background: linear-gradient(135deg, #fdfcf8 0%, #f4f1e8 100%);
    padding: 1.5rem;
    border-left: 4px solid #8B4513;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 10px rgba(139, 69, 19, 0.05);
    position: relative;
}

.poem-excerpt::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(139, 69, 19, 0.1);
    font-family: 'EB Garamond', serif;
}

.poem-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-line;
    margin-bottom: 1rem;
}

.poem-citation {
    font-style: italic;
    color: var(--text-light);
    text-align: right;
}

.walt-response h3 {
    font-family: 'EB Garamond', serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.walt-message {
    font-family: 'Crimson Text', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-line;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    margin-top: 3rem;
}

footer i {
    color: var(--secondary-color);
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(to bottom, #fdfcf8, #f9f6f0);
    box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.05), var(--shadow-md);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    font-style: italic;
}

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

.about-section {
    margin-bottom: 3rem;
}

.section-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.section-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.content-card {
    background: linear-gradient(to bottom, #fdfcf8, #f9f6f0);
    box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.05), var(--shadow-lg);
    padding: 2.5rem;
    border-radius: 15px;
}

.poetry-quote {
    background: linear-gradient(135deg, #fdfcf8 0%, #f4f1e8 100%);
    padding: 1.5rem 2rem;
    border-left: 4px solid #8B4513;
    margin: 2rem 0;
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(139, 69, 19, 0.05);
}

.bibliography {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #d4c5a0;
}

.bibliography h2 {
    font-family: 'EB Garamond', serif;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.bibliography p {
    margin-bottom: 1rem;
    text-indent: -2em;
    padding-left: 2em;
    line-height: 1.8;
}

/* About Subheading */
.about-subheading {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

.content-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.highlight-box {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.highlight-box p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Tech Stack */
.tech-stack {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.tech-stack h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-stack ul {
    list-style: none;
    margin-left: 1rem;
}

.tech-stack li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tech-stack li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Guidance Grid */
.guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.guidance-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.guidance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.guidance-card i {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guidance-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Quote Section */
.quote-section {
    margin: 3rem 0;
}

.quote-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    font-style: italic;
    border-radius: 8px;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    text-align: right;
    font-style: normal;
    color: var(--text-light);
}

/* Usage Guide */
.usage-guide {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.usage-guide h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.usage-guide ul {
    list-style: none;
}

.usage-guide li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.usage-guide li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .walt-image {
        width: 150px;
        height: 150px;
    }
    
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .guidance-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .input-section, .response-section, .content-card {
        padding: 1.5rem;
    }
}