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

body {
    font-family: 'Georgia', serif;
    color: #e0e0e0;
    background: #000;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Parallax Forest Container */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background Layer - Distant misty forest */
.layer-bg {
    background: linear-gradient(180deg, #0a1a15 0%, #022c22 50%, #0a1a15 100%);
    animation: bgDrift 60s ease-in-out infinite;
}

@keyframes bgDrift {
    0%, 100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-20px) scale(1.15); }
}

/* Mid Layer - Fog and mid-distance trees */
.layer-mid {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(5, 150, 105, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(5, 150, 105, 0.1) 0%, transparent 50%);
    animation: midDrift 40s ease-in-out infinite;
}

@keyframes midDrift {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(30px) translateY(-30px); }
}

/* Foreground Layer - Close tree silhouettes */
.layer-front {
    background-image: url('dead-trees-animated.svg');
    background-size: auto 100%;
    background-position: bottom;
    background-repeat: repeat-x;
    opacity: 0.4;
    animation: frontDrift 20s linear infinite;
}

@keyframes frontDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-400px); }
}

/* Animated Fog Overlay */
.fog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(255, 255, 255, 0.025) 0%, transparent 40%);
    animation: fogDrift 80s linear infinite;
}

@keyframes fogDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Dead Trees Growing Animation */
.dead-trees-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.dead-trees {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.6;
    animation: treesGrow 5s ease-out infinite;
}

@keyframes treesGrow {
    0% {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
}

/* Screen Fade Overlay for Entrance Effect */
.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.fade-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Creepy Smiley Face - small and lurking near the W */
.creepy-smile {
    position: absolute;
    top: 35%;
    left: 28%;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease-in-out 0.3s, transform 0.6s ease-in-out 0.3s;
    z-index: -1;
}

.fade-overlay.active .creepy-smile {
    opacity: 0.7;
    transform: scale(0.6);
}

.creepy-smile img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 44, 34, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-nav.scrolled {
    background: rgba(2, 44, 34, 0.9);
    padding: 1rem 3rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #059669;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(5, 150, 105, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #059669;
}

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

/* Main Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 100vh;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -100vh;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1.5s ease-out;
}

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

.enchanted-title {
    font-size: 4.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(5, 150, 105, 0.6);
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
    font-style: italic;
}

.enter-cta {
    margin-top: 2rem;
}

/* Mystical Button */
.mystical-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: rgba(5, 150, 105, 0.2);
    border: 2px solid #059669;
    color: #059669;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Arial', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mystical-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(5, 150, 105, 0.3);
    transition: left 0.5s ease;
}

.mystical-button:hover::before {
    left: 100%;
}

.mystical-button:hover {
    background: rgba(5, 150, 105, 0.4);
    box-shadow: 0 0 30px rgba(5, 150, 105, 0.5);
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.content-card {
    max-width: 1200px;
    width: 100%;
    background: rgba(2, 44, 34, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    font-size: 3rem;
    color: #059669;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(5, 150, 105, 0.4);
    letter-spacing: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.author-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(5, 150, 105, 0.3);
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

/* Book Section */
.book-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
}

.book-cover-container {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(5, 150, 105, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.book-meta {
    color: #a0a0a0;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.book-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #d0d0d0;
}

.book-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(5, 150, 105, 0.1);
    border-left: 3px solid #059669;
    border-radius: 5px;
}

.book-info span {
    color: #e0e0e0;
    font-size: 1.1rem;
}

.coming-soon-note {
    color: #059669;
    font-style: italic;
    font-size: 1rem;
}

/* Writings Section */
.writings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.writing-card {
    background: rgba(10, 26, 21, 0.6);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.writing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(5, 150, 105, 0.3);
    border-color: rgba(5, 150, 105, 0.5);
}

.writing-image {
    width: 100%;
    height: 200px;
    background: rgba(5, 150, 105, 0.1);
    overflow: hidden;
}

.writing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.writing-card:hover .writing-image img {
    transform: scale(1.1);
}

.writing-content {
    padding: 2rem;
}

.writing-date {
    color: #059669;
    font-size: 0.9rem;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.writing-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 1rem 0;
}

.writing-card p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-link {
    color: #059669;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.read-link:hover {
    color: #10b981;
    text-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

/* Newsletter Section */
.newsletter-card {
    max-width: 700px;
    text-align: center;
}

.newsletter-description {
    font-size: 1.2rem;
    color: #d0d0d0;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-input {
    padding: 1rem 1.5rem;
    background: rgba(10, 26, 21, 0.6);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 15px rgba(5, 150, 105, 0.3);
    background: rgba(10, 26, 21, 0.8);
}

.form-input::placeholder {
    color: #808080;
}

.newsletter-form .mystical-button {
    width: 100%;
    cursor: pointer;
    border: none;
}

.privacy-text {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer */
.site-footer {
    background: rgba(2, 44, 34, 0.8);
    border-top: 1px solid rgba(5, 150, 105, 0.2);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #a0a0a0;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.social-links a:hover {
    color: #059669;
    text-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content,
    .book-content {
        grid-template-columns: 1fr;
    }
    
    .book-cover-container,
    .author-image-placeholder {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .enchanted-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .floating-nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    .enchanted-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 2rem 1.5rem;
    }
    
    .writings-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}
