/* ===== VARIABLES ===== */
:root {
    --teal: #2a9d8f;
    --teal-light: #e6f5f3;
    --teal-dark: #1a7a6e;
    --coral: #e76f51;
    --coral-light: #fdf0ec;
    --coral-soft: #f4a261;
    --lavender: #7c6dab;
    --lavender-light: #f0edf7;
    --slate: #475569;
    --slate-light: #f1f5f9;
    --forest: #264653;
    --sand: #faf8f5;
    --cream: #fffdf9;
    --text-dark: #1e293b;
    --text-mid: #475569;
    --text-light: #94a3b8;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    font-family: 'Lora', Georgia, serif;
    color: var(--text-dark);
    background: var(--sand);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== PARTICLES ===== */
.particles-container {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
    position: absolute; border-radius: 50%;
    opacity: 0.08;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(10vh) scale(0); opacity: 0; }
    15% { opacity: 0.08; }
    85% { opacity: 0.08; }
    100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 40px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.navbar.scrolled { padding: 10px 40px; box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.92); }

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700;
    background: linear-gradient(135deg, var(--teal), var(--coral));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; list-style: none; gap: 28px; }
.nav-links a {
    text-decoration: none; color: var(--text-mid);
    font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 500;
    position: relative; transition: var(--transition);
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--teal), var(--coral));
    transition: var(--transition);
}
.nav-links a:hover { color: var(--teal-dark); }
.nav-links a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(38,70,83,0.55) 0%, rgba(42,157,143,0.3) 50%, rgba(38,70,83,0.6) 100%);
}

.hero-content { position: relative; z-index: 2; color: var(--white); }

.hero-greeting {
    font-family: 'Lora', serif; font-style: italic;
    font-size: 1.15rem; opacity: 0.9;
    margin-bottom: 6px;
    animation: fadeUp 0.7s ease-out 0.2s both;
}
.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700; letter-spacing: -3px; line-height: 1;
    margin-bottom: 16px;
    animation: fadeUp 0.7s ease-out 0.4s both;
    text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1rem; font-weight: 400;
    letter-spacing: 3px; text-transform: uppercase;
    opacity: 0.85;
    animation: fadeUp 0.7s ease-out 0.6s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    animation: fadeUp 0.7s ease-out 0.9s both;
}
.scroll-arrow {
    width: 22px; height: 22px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%,100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* ===== SECTIONS ===== */
.section { position: relative; padding: 100px 0; z-index: 1; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem; font-weight: 600;
    text-align: center; margin-bottom: 10px;
    color: var(--forest);
}
.section-title.light { color: var(--white); }

.section-subtitle {
    font-family: 'Lora', serif; font-style: italic;
    font-size: 1.05rem; text-align: center;
    color: var(--text-light); margin-bottom: 50px;
}
.section-subtitle.light { color: rgba(255,255,255,0.8); }

/* ===== ABOUT ===== */
.about { position: relative; overflow: hidden; }
.about-bg { position: absolute; inset: 0; }
.about-bg img { object-fit: cover; }
.about-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(42,157,143,0.88), rgba(38,70,83,0.9));
}
.about-inner { position: relative; z-index: 2; }

.about-content {
    max-width: 680px; margin: 0 auto; text-align: center;
    color: rgba(255,255,255,0.92); font-size: 1.12rem;
}
.about-content p + p { margin-top: 16px; }

/* ===== INTERESTS ===== */
.interests { background: var(--cream); }

.interests-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}

.interest-card {
    display: flex; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--white); box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}
.interest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.interest-img { width: 140px; flex-shrink: 0; overflow: hidden; }
.interest-img img { transition: var(--transition); }
.interest-card:hover .interest-img img { transform: scale(1.08); }

.interest-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.interest-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; color: var(--forest); margin-bottom: 8px;
}
.interest-body p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; }

/* Color accents per card */
.interest-card:nth-child(1) { border-left: 4px solid var(--lavender); }
.interest-card:nth-child(2) { border-left: 4px solid var(--coral); }
.interest-card:nth-child(3) { border-left: 4px solid var(--teal); }
.interest-card:nth-child(4) { border-left: 4px solid #6bbf59; }

/* ===== BOOKS ===== */
.books { position: relative; overflow: hidden; }
.books-bg { position: absolute; inset: 0; }
.books-bg img { object-fit: cover; }
.books-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(124,109,171,0.9), rgba(38,70,83,0.92));
}
.books-inner { position: relative; z-index: 2; }

.books-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
}

.book-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius); padding: 28px 24px;
    color: var(--white);
    transition: var(--transition);
}
.book-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }

.book-genre {
    display: inline-block; font-family: 'Inter', sans-serif;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; padding: 4px 12px;
    border-radius: 20px; margin-bottom: 14px;
    background: rgba(255,255,255,0.15);
}
.book-card:nth-child(1) .book-genre { background: rgba(124,109,171,0.4); }
.book-card:nth-child(2) .book-genre { background: rgba(231,111,81,0.4); }
.book-card:nth-child(3) .book-genre { background: rgba(42,157,143,0.4); }
.book-card:nth-child(4) .book-genre { background: rgba(107,191,89,0.4); }

.book-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; margin-bottom: 4px;
}
.book-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem; opacity: 0.7; margin-bottom: 12px;
}
.book-desc { font-size: 0.9rem; opacity: 0.85; line-height: 1.6; }

/* ===== GALLERY ===== */
.gallery { background: var(--sand); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.gallery-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img { transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: var(--white);
    transform: translateY(100%); transition: var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.gallery-caption p { font-size: 0.85rem; opacity: 0.85; }

/* ===== FUN FACTS ===== */
.facts { background: var(--lavender-light); }

.facts-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.fact-item {
    text-align: center; padding: 32px 20px;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.fact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.fact-emoji { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.fact-item p { font-family: 'Inter', sans-serif; font-size: 0.92rem; color: var(--text-mid); font-weight: 500; }

/* ===== QUOTE BANNER ===== */
.quote-banner {
    position: relative; padding: 80px 0; text-align: center; overflow: hidden;
}
.quote-bg { position: absolute; inset: 0; }
.quote-bg img { object-fit: cover; }
.quote-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(231,111,81,0.8), rgba(244,162,97,0.75));
}
.quote-inner { position: relative; z-index: 2; }
.quote-inner blockquote {
    font-family: 'Lora', serif; font-style: italic;
    font-size: 1.5rem; color: var(--white);
    max-width: 650px; margin: 0 auto 12px; line-height: 1.7;
}
.quote-inner cite {
    font-family: 'Inter', sans-serif; font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--forest); color: rgba(255,255,255,0.7);
    padding: 40px 0 28px; text-align: center;
}
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-brand {
    font-family: 'Playfair Display', serif; font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}
.footer-text { font-size: 0.88rem; }
.footer-year { font-family: 'Inter', sans-serif; font-size: 0.78rem; opacity: 0.5; }

/* ===== MUSIC TOGGLE ===== */
.music-toggle {
    position: fixed; bottom: 28px; right: 28px; z-index: 1000;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    background: rgba(38,70,83,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    color: var(--white);
    font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.music-toggle:hover {
    background: rgba(42,157,143,0.9);
    transform: scale(1.05);
}
.music-icon {
    font-size: 1.2rem;
    display: inline-block;
    transition: var(--transition);
}
.music-toggle.playing .music-icon {
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}
.music-label { letter-spacing: 0.5px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.78rem; }
    .interests-grid { grid-template-columns: 1fr; }
    .interest-card { flex-direction: column; }
    .interest-img { width: 100%; height: 140px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
    .gallery-item.tall { grid-row: span 1; }
    .gallery-item.wide { grid-column: span 1; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .books-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 70px 0; }
}
@media (max-width: 480px) {
    .nav-links { display: none; }
    .gallery-grid { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: 1fr; }
    .books-grid { grid-template-columns: 1fr; }
    .hero-name { font-size: 3.5rem; }
}
