/* CSS Variables */
:root {
    --green-dark: #2d5016;
    --green-light: #4a7c2a;
    --red-dark: #c62828;
    --red-light: #e53935;
    --pink: #e91e63;
    --purple: #9c27b0;
    --bg-light: #fafafa;
    --bg-dark: #1a1a1a;
    --text-dark: #333;
    --text-light: #fff;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    color: var(--green-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--green-light), var(--red-light));
    margin: 1rem auto;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1a0a 40%, #1a3009 70%, var(--green-dark) 100%);
    overflow: hidden;
    color: var(--text-light);
}

/* Stars container - fades toward the brighter bottom-right */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 80%);
}

/* Individual stars */
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--twinkle-duration, 3s) ease-in-out infinite;
    opacity: 0;
}

.star.small { width: 1px; height: 1px; }
.star.medium { width: 2px; height: 2px; }
.star.large { width: 3px; height: 3px; box-shadow: 0 0 3px #fff, 0 0 6px rgba(255,255,255,0.5); }

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Fireflies container */
.fireflies-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

/* Individual fireflies */
.firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #c6f55c 0%, #9acd32 40%, transparent 70%);
    border-radius: 50%;
    box-shadow: 
        0 0 8px 2px #c6f55c,
        0 0 16px 4px rgba(198, 245, 92, 0.6),
        0 0 24px 6px rgba(154, 205, 50, 0.3);
    animation: fireflyFloat var(--float-duration, 8s) ease-in-out infinite,
               fireflyGlow var(--glow-duration, 2s) ease-in-out infinite;
    opacity: 0;
}

.firefly::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background: #ffffaa;
    border-radius: 50%;
}

@keyframes fireflyFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    25% {
        transform: translate(calc(var(--drift-x, 30px)), calc(var(--drift-y, -40px))) scale(0.9);
    }
    50% {
        transform: translate(calc(var(--drift-x, 30px) * 0.5), calc(var(--drift-y, -40px) * 1.5)) scale(1.1);
    }
    75% {
        transform: translate(calc(var(--drift-x, 30px) * -0.3), calc(var(--drift-y, -40px) * 0.8)) scale(0.95);
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
}

@keyframes fireflyGlow {
    0%, 100% {
        box-shadow: 
            0 0 6px 1px #c6f55c,
            0 0 12px 3px rgba(198, 245, 92, 0.5),
            0 0 18px 5px rgba(154, 205, 50, 0.2);
    }
    50% {
        box-shadow: 
            0 0 10px 3px #c6f55c,
            0 0 20px 6px rgba(198, 245, 92, 0.7),
            0 0 30px 10px rgba(154, 205, 50, 0.4);
    }
}

/* ========================================
   IVY/VINE ANIMATION SYSTEM
   ======================================== */

.ivy-defs {
    position: absolute;
    width: 0;
    height: 0;
}

.ivy-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Ivy Clusters - positioning containers */
.ivy-cluster {
    position: absolute;
    pointer-events: none;
}

.ivy-left {
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
}

.ivy-right {
    right: 0;
    top: 0;
    width: 200px;
    height: 100%;
}

.ivy-top-left {
    left: 0;
    top: 0;
    width: 350px;
    height: 200px;
}

.ivy-top-right {
    right: 0;
    top: 0;
    width: 350px;
    height: 200px;
}

/* Individual vine SVGs */
.ivy-vine {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ivy-vine-1 {
    left: -20px;
    animation: vineSwayLeft 12s ease-in-out infinite;
}

.ivy-vine-2 {
    left: 40px;
    opacity: 0.7;
    animation: vineSwayLeft 14s ease-in-out infinite;
    animation-delay: -3s;
}

.ivy-vine-3 {
    left: 80px;
    opacity: 0.5;
    animation: vineSwayLeft 10s ease-in-out infinite;
    animation-delay: -6s;
}

.ivy-vine-4 {
    right: -20px;
    left: auto;
    animation: vineSwayRight 13s ease-in-out infinite;
}

.ivy-vine-5 {
    right: 40px;
    left: auto;
    opacity: 0.7;
    animation: vineSwayRight 11s ease-in-out infinite;
    animation-delay: -4s;
}

.ivy-vine-6 {
    right: 80px;
    left: auto;
    opacity: 0.5;
    animation: vineSwayRight 15s ease-in-out infinite;
    animation-delay: -7s;
}

.ivy-vine-corner {
    width: 100%;
    height: 100%;
    animation: vineSwayCorner 10s ease-in-out infinite;
}

.ivy-top-right .ivy-vine-corner {
    animation-delay: -2s;
}

/* Vine stems */
.vine-stem {
    fill: none;
    stroke: url(#vineGrad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawVine 3s ease-out forwards;
}

.vine-stem-thin {
    stroke-width: 3;
}

/* Tendril connectors - small stems connecting leaves to main vine */
.tendril {
    fill: none;
    stroke: #3d6b1f;
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0;
    animation: tendrilGrow 0.4s ease-out forwards;
}

.ivy-vine-1 .vine-stem { animation-delay: 0s; }
.ivy-vine-2 .vine-stem { animation-delay: 0.5s; }
.ivy-vine-3 .vine-stem { animation-delay: 1s; }
.ivy-vine-4 .vine-stem { animation-delay: 0.3s; }
.ivy-vine-5 .vine-stem { animation-delay: 0.8s; }
.ivy-vine-6 .vine-stem { animation-delay: 1.2s; }
.ivy-vine-corner .vine-stem { animation-delay: 0.2s; stroke-width: 3; }

/* Ivy leaves */
.leaf {
    opacity: 0;
    transform-origin: center bottom;
    animation: leafGrow 0.6s ease-out forwards, leafSway 6s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Staggered leaf and tendril appear */
.leaf-1 { color: #4a8c28; animation-delay: 1.5s, 1.5s; }
.leaf-2 { color: #5a9c32; animation-delay: 1.7s, 1.7s; }
.leaf-3 { color: #3d6b1f; animation-delay: 1.9s, 1.9s; }
.leaf-4 { color: #4a8c28; animation-delay: 2.1s, 2.1s; }
.leaf-5 { color: #6aac42; animation-delay: 2.3s, 2.3s; }
.leaf-6 { color: #3d6b1f; animation-delay: 2.5s, 2.5s; }
.leaf-7 { color: #5a9c32; animation-delay: 2.7s, 2.7s; }
.leaf-8 { color: #4a7c2a; animation-delay: 2.9s, 2.9s; }
.leaf-9 { color: #4a8c28; animation-delay: 3.1s, 3.1s; }

/* Tendril delays - appear just before each leaf */
.vine-leaves .tendril:nth-of-type(1) { animation-delay: 1.4s; }
.vine-leaves .tendril:nth-of-type(2) { animation-delay: 1.6s; }
.vine-leaves .tendril:nth-of-type(3) { animation-delay: 1.8s; }
.vine-leaves .tendril:nth-of-type(4) { animation-delay: 2.0s; }
.vine-leaves .tendril:nth-of-type(5) { animation-delay: 2.2s; }
.vine-leaves .tendril:nth-of-type(6) { animation-delay: 2.4s; }
.vine-leaves .tendril:nth-of-type(7) { animation-delay: 2.6s; }
.vine-leaves .tendril:nth-of-type(8) { animation-delay: 2.8s; }
.vine-leaves .tendril:nth-of-type(9) { animation-delay: 3.0s; }

/* Varying leaf sway speeds - now with smoother curvy animation */
.ivy-vine-1 .leaf { animation: leafGrow 0.6s ease-out forwards, leafSwayCurvy 10s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.ivy-vine-2 .leaf { animation: leafGrow 0.6s ease-out forwards, leafSwayCurvy 12s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.ivy-vine-3 .leaf { animation: leafGrow 0.6s ease-out forwards, leafSwayCurvy 14s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.ivy-vine-4 .leaf { animation: leafGrow 0.6s ease-out forwards, leafSwayCurvyReverse 11s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.ivy-vine-5 .leaf { animation: leafGrow 0.6s ease-out forwards, leafSwayCurvyReverse 13s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.ivy-vine-6 .leaf { animation: leafGrow 0.6s ease-out forwards, leafSwayCurvyReverse 15s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.ivy-vine-corner .leaf { animation: leafGrow 0.6s ease-out forwards, leafSwayCurvy 11s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.ivy-top-right .ivy-vine-corner .leaf { animation: leafGrow 0.6s ease-out forwards, leafSwayCurvyReverse 12s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }

/* Floating accent leaves */
.floating-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-leaf {
    position: absolute;
    width: 22px;
    height: 24px;
    background: linear-gradient(135deg, #5a9c32 0%, #3d6b1f 100%);
    /* 5-lobe ivy leaf clip-path */
    clip-path: path('M11 0 C12 2 13 3.5 14 4 L17.5 2 C16 5.5 15.5 8 16 10 L20 9 C18 12 17 14 17 16.5 L15 17.5 C14 19.5 13 21.5 11 24 C9 21.5 8 19.5 7 17.5 L5 16.5 C5 14 4 12 2 9 L6 10 C6.5 8 6 5.5 4.5 2 L8 4 C9 3.5 10 2 11 0');
    opacity: 0;
    animation: floatLeaf 20s ease-in-out infinite;
}

.fl-1 {
    left: 15%;
    top: 20%;
    animation-delay: 0s;
}

.fl-2 {
    left: 80%;
    top: 30%;
    animation-delay: -4s;
    width: 18px;
    height: 20px;
    background: linear-gradient(145deg, #4a8c28 0%, #2d5016 100%);
}

.fl-3 {
    left: 25%;
    top: 60%;
    animation-delay: -8s;
    width: 20px;
    height: 22px;
    background: linear-gradient(120deg, #6aac42 0%, #4a7c2a 100%);
}

.fl-4 {
    left: 70%;
    top: 70%;
    animation-delay: -12s;
    background: linear-gradient(160deg, #5a9c32 0%, #2d5016 100%);
}

.fl-5 {
    left: 50%;
    top: 40%;
    animation-delay: -16s;
    width: 16px;
    height: 18px;
    background: linear-gradient(130deg, #4a7c2a 0%, #3d6b1f 100%);
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

@keyframes drawVine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes vineSwayLeft {
    0%, 100% {
        transform: translateX(0) rotate(0deg) skewX(0deg);
    }
    25% {
        transform: translateX(8px) rotate(1.5deg) skewX(0.5deg);
    }
    50% {
        transform: translateX(3px) rotate(-0.5deg) skewX(-0.3deg);
    }
    75% {
        transform: translateX(12px) rotate(2deg) skewX(0.8deg);
    }
}

@keyframes vineSwayRight {
    0%, 100% {
        transform: translateX(0) rotate(0deg) skewX(0deg);
    }
    25% {
        transform: translateX(-10px) rotate(-1.5deg) skewX(-0.5deg);
    }
    50% {
        transform: translateX(-4px) rotate(0.5deg) skewX(0.3deg);
    }
    75% {
        transform: translateX(-14px) rotate(-2deg) skewX(-0.8deg);
    }
}

@keyframes vineSwayCorner {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    33% {
        transform: rotate(1deg) translateY(3px);
    }
    66% {
        transform: rotate(-0.5deg) translateY(-2px);
    }
}

@keyframes leafGrow {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Gentle tendril grow animation */
@keyframes tendrilGrow {
    0% {
        opacity: 0;
        stroke-dasharray: 50;
        stroke-dashoffset: 50;
    }
    100% {
        opacity: 0.8;
        stroke-dasharray: 50;
        stroke-dashoffset: 0;
    }
}

/* Original sharp sway - kept for reference but not used */
@keyframes leafSway {
    0%, 100% {
        transform: rotate(0deg) translateX(0);
    }
    20% {
        transform: rotate(8deg) translateX(2px);
    }
    40% {
        transform: rotate(-3deg) translateX(-1px);
    }
    60% {
        transform: rotate(12deg) translateX(3px);
    }
    80% {
        transform: rotate(-5deg) translateX(-2px);
    }
}

@keyframes leafSwayReverse {
    0%, 100% {
        transform: rotate(0deg) translateX(0);
    }
    20% {
        transform: rotate(-10deg) translateX(-2px);
    }
    40% {
        transform: rotate(4deg) translateX(1px);
    }
    60% {
        transform: rotate(-14deg) translateX(-3px);
    }
    80% {
        transform: rotate(6deg) translateX(2px);
    }
}

/* New smooth curvy sway - gentle sinusoidal motion */
@keyframes leafSwayCurvy {
    0% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
    12.5% {
        transform: rotate(2deg) translateX(1px) translateY(-0.5px);
    }
    25% {
        transform: rotate(4deg) translateX(1.5px) translateY(0);
    }
    37.5% {
        transform: rotate(2deg) translateX(1px) translateY(0.5px);
    }
    50% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
    62.5% {
        transform: rotate(-2deg) translateX(-1px) translateY(-0.5px);
    }
    75% {
        transform: rotate(-3deg) translateX(-1.2px) translateY(0);
    }
    87.5% {
        transform: rotate(-1.5deg) translateX(-0.8px) translateY(0.5px);
    }
    100% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
}

@keyframes leafSwayCurvyReverse {
    0% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
    12.5% {
        transform: rotate(-2deg) translateX(-1px) translateY(-0.5px);
    }
    25% {
        transform: rotate(-4deg) translateX(-1.5px) translateY(0);
    }
    37.5% {
        transform: rotate(-2deg) translateX(-1px) translateY(0.5px);
    }
    50% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
    62.5% {
        transform: rotate(2deg) translateX(1px) translateY(-0.5px);
    }
    75% {
        transform: rotate(3deg) translateX(1.2px) translateY(0);
    }
    87.5% {
        transform: rotate(1.5deg) translateX(0.8px) translateY(0.5px);
    }
    100% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
}

@keyframes floatLeaf {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.8);
    }
    10% {
        opacity: 0.6;
        transform: translateY(20px) rotate(45deg) scale(1);
    }
    30% {
        opacity: 0.5;
        transform: translateY(80px) rotate(120deg) scale(0.9);
    }
    50% {
        opacity: 0.4;
        transform: translateY(160px) rotate(200deg) scale(1.1);
    }
    70% {
        opacity: 0.3;
        transform: translateY(280px) rotate(300deg) scale(0.9);
    }
    90%, 100% {
        opacity: 0;
        transform: translateY(400px) rotate(400deg) scale(0.7);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
}

.hero-portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--text-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--red-light);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.cta-button:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator:focus {
    outline: 2px solid var(--text-light);
    outline-offset: 2px;
}

.scroll-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--text-light);
    animation: arrowBounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.about-image-wrapper {
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.bio-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.bio-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-bottom: 1.5rem;
}

.bio-expanded.active {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.bio-expanded p {
    margin-bottom: 1rem;
    color: #555;
}

.bio-toggle {
    background: var(--green-light);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.bio-toggle:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 124, 42, 0.3);
}

.bio-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.bio-toggle[aria-expanded="true"] .bio-toggle-icon {
    transform: rotate(45deg);
}

/* Coming Soon Section */
.coming-soon {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--bg-light), #f0f0f0);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.book-card {
    background: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.book-cover {
    height: 300px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.book-icon {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.book-card:hover .book-icon {
    transform: scale(1.1) rotate(-3deg);
}

.cover-art-message {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.cover-art-message em {
    color: var(--green-light);
    font-style: italic;
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red-light);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.book-info {
    padding: 2rem;
}

.book-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--green-dark);
}

.book-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.learn-more-btn,
.pre-order-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.learn-more-btn {
    background: var(--green-light);
    color: var(--text-light);
}

.learn-more-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 124, 42, 0.3);
}

.pre-order-btn {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Social Media Section */
.social {
    padding: 5rem 0;
    background: var(--bg-dark);
    color: var(--text-light);
}

.social .section-title {
    color: var(--text-light);
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon svg {
    width: 30px;
    height: 30px;
}

.social-icon:hover {
    background: var(--red-light);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(229, 57, 53, 0.4);
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
    background: var(--bg-light);
}

/* Substack Embed Wrapper */
.substack-embed-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.substack-embed-wrapper iframe {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: none !important;
    background: white;
}

/* Responsive Substack embed */
@media (max-width: 520px) {
    .substack-embed-wrapper iframe {
        width: 100% !important;
        min-height: 280px;
    }
}

/* Events Section */
.events {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f0f0f0, var(--bg-light));
}

.events-content {
    text-align: center;
    padding: 3rem 0;
}

.events-placeholder {
    font-size: 1.5rem;
    color: var(--green-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.events-note {
    color: #666;
    font-size: 1.1rem;
}

/* Instagram Feed Section */
.instagram-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.instagram-feed-container {
    margin: 3rem 0;
}

/* Elfsight Widget Container */
.instagram-feed-container .elfsight-app-2dc01e3b-c7a7-48aa-9a8f-c2e857266881 {
    margin-bottom: 2rem;
}

/* Instagram Profile Card */
.instagram-profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.instagram-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.instagram-avatar {
    position: relative;
    flex-shrink: 0;
}

.instagram-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    position: relative;
    z-index: 1;
}

.instagram-story-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    z-index: 0;
    animation: storyRingPulse 2s ease-in-out infinite;
}

@keyframes storyRingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.instagram-profile-info {
    flex: 1;
}

.instagram-username {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.instagram-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(225, 48, 108, 0.3);
}

.instagram-follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(225, 48, 108, 0.4);
}

.instagram-follow-btn svg {
    flex-shrink: 0;
}

/* Q&A Section */
.qa-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1a0a 40%, #1a3009 70%, var(--green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.qa-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(106, 172, 66, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(106, 172, 66, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.qa-section .section-title {
    color: var(--text-light);
}

.qa-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.qa-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(106, 172, 66, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.qa-card:hover {
    border-color: rgba(106, 172, 66, 0.5);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(106, 172, 66, 0.1);
}

.qa-card.active {
    border-color: rgba(106, 172, 66, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(106, 172, 66, 0.15);
}

.qa-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.qa-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.qa-header:focus {
    outline: none;
    background: rgba(106, 172, 66, 0.1);
}

.qa-icon {
    font-size: 1.75rem;
    line-height: 1;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}

.qa-card:hover .qa-icon,
.qa-card.active .qa-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.qa-question {
    flex: 1;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.qa-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(106, 172, 66, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.qa-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--green-light);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.qa-card.active .qa-toggle {
    background: rgba(106, 172, 66, 0.3);
}

.qa-card.active .qa-toggle svg {
    transform: rotate(180deg);
}

.qa-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.qa-card.active .qa-content {
    max-height: 400px;
}

.qa-answer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.qa-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    width: 100%;
}

.qa-subtext {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-style: italic;
    width: 100%;
    margin-top: 0.25rem;
}

.qa-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(106, 172, 66, 0.2) 0%, rgba(74, 124, 42, 0.15) 100%);
    border: 1px solid rgba(106, 172, 66, 0.3);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.qa-tag:hover {
    background: linear-gradient(135deg, rgba(106, 172, 66, 0.35) 0%, rgba(74, 124, 42, 0.25) 100%);
    border-color: rgba(106, 172, 66, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 172, 66, 0.2);
}

.qa-themes {
    gap: 0.5rem;
}

.qa-theme-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, rgba(233, 30, 99, 0.1) 100%);
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.qa-theme-tag:hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.25) 0%, rgba(233, 30, 99, 0.2) 100%);
    border-color: rgba(156, 39, 176, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.2);
}

.qa-vendetta-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.2) 0%, rgba(229, 57, 53, 0.15) 100%);
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.qa-vendetta-tag:hover {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.35) 0%, rgba(229, 57, 53, 0.25) 100%);
    border-color: rgba(229, 57, 53, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.2);
}

/* Q&A Card stagger animation */
.qa-card {
    opacity: 0;
    transform: translateY(30px);
    animation: qaCardFadeIn 0.6s ease-out forwards;
}

.qa-card:nth-child(1) { animation-delay: 0.1s; }
.qa-card:nth-child(2) { animation-delay: 0.15s; }
.qa-card:nth-child(3) { animation-delay: 0.2s; }
.qa-card:nth-child(4) { animation-delay: 0.25s; }
.qa-card:nth-child(5) { animation-delay: 0.3s; }
.qa-card:nth-child(6) { animation-delay: 0.35s; }
.qa-card:nth-child(7) { animation-delay: 0.4s; }
.qa-card:nth-child(8) { animation-delay: 0.45s; }
.qa-card:nth-child(9) { animation-delay: 0.5s; }

@keyframes qaCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Q&A Responsive */
@media (max-width: 768px) {
    .qa-section {
        padding: 3rem 0;
    }
    
    .qa-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .qa-question {
        font-size: 1.1rem;
    }
    
    .qa-icon {
        font-size: 1.5rem;
    }
    
    .qa-header {
        padding: 1rem 1.25rem;
    }
    
    .qa-answer {
        padding: 0 1.25rem 1.25rem;
    }
    
    .qa-tag,
    .qa-vendetta-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .qa-theme-tag {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .qa-question {
        font-size: 1rem;
    }
    
    .qa-icon {
        font-size: 1.3rem;
    }
    
    .qa-toggle {
        width: 24px;
        height: 24px;
    }
    
    .qa-toggle svg {
        width: 14px;
        height: 14px;
    }
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.copyright {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-social-icon:hover {
    background: var(--red-light);
    transform: translateY(-3px);
}

.privacy-link {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
    font-size: 0.9rem;
}

.privacy-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
    }

    .ivy-vine {
        opacity: 0.6;
    }
    
    .ivy-left,
    .ivy-right {
        width: 150px;
    }
    
    .floating-leaves {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-portrait {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 2rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .ivy-container {
        opacity: 0.4;
    }
    
    .ivy-left,
    .ivy-right {
        width: 100px;
    }
    
    .ivy-top-left,
    .ivy-top-right {
        width: 200px;
    }
    
    .floating-leaves {
        display: none;
    }

    .about,
    .coming-soon,
    .social,
    .newsletter,
    .events,
    .instagram-section {
        padding: 3rem 0;
    }
    
    .instagram-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .instagram-profile-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon svg {
        width: 25px;
        height: 25px;
    }

    .book-actions {
        flex-direction: column;
    }

    .learn-more-btn,
    .pre-order-btn {
        width: 100%;
    }
    
    /* Simplified vines on mobile */
    .ivy-container {
        opacity: 0.25;
    }
    
    .ivy-left,
    .ivy-right {
        width: 60px;
    }
    
    .ivy-top-left,
    .ivy-top-right {
        display: none;
    }
    
    .ivy-vine-2,
    .ivy-vine-3,
    .ivy-vine-5,
    .ivy-vine-6 {
        display: none;
    }
    
    /* Instagram mobile styles */
    .instagram-profile-card {
        padding: 1.5rem;
    }
    
    .instagram-avatar-img {
        width: 70px;
        height: 70px;
    }
    
    .instagram-username {
        font-size: 1.2rem;
    }
    
    .instagram-bio {
        font-size: 0.9rem;
    }
    
    .instagram-follow-btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

