/* ===== CSS VARIABLES ===== */
:root {
    --blue: #0693e3;
    --blue-dark: #0578c4;
    --blue-light: #e8f4fd;
    --blue-text: #0461a9;
    --gold: #f59e0b;
    --gold-dark: #d97706;
    --white: #ffffff;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --transition: 0.3s ease;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-user-select: none; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; flex-shrink: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--dark); }
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { color: var(--blue); }
.navbar.scrolled .nav-links a:hover { color: var(--blue); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}
.navbar.scrolled .nav-toggle span { background: var(--dark); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--blue-text);
    color: var(--white);
    border-color: var(--blue-text);
}
.btn-primary:hover {
    background: #034d8c;
    border-color: #034d8c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 97, 169, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-text);
    margin-bottom: 0.75rem;
}
.section-header.light .section-label { color: var(--gold); }
.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    line-height: 1.2;
}
.section-header.light h2 { color: var(--white); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 40%, #0c2d5e 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(6,147,227,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
    width: 100%;
}
.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.hero-subtitle em {
    color: var(--gold);
    font-style: italic;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-image {
    display: flex;
    justify-content: center;
}
.hero-image-wrap {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(6,147,227,0.5);
    box-shadow: 8px 8px 0 rgba(245,158,11,0.25), 0 0 0 10px rgba(6,147,227,0.07), var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.hero-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.hero-scroll a {
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    display: block;
    transition: color var(--transition);
}
.hero-scroll a:hover { color: var(--gold); }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== ABOUT ===== */
.about {
    padding: 8rem 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: start;
}
.about-text p {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 1.25rem;
    line-height: 1.85;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--dark); }
.about-text em { color: var(--blue-text); font-style: italic; }
.about-quote {
    background: linear-gradient(135deg, var(--blue) 0%, #0578c4 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 6rem;
}
.about-quote blockquote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--white);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.about-quote cite {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    display: block;
}
.about-quote cite em { color: var(--gold); font-style: italic; }

/* ===== POETRY ===== */
.poetry {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    position: relative;
    overflow: hidden;
}
.poetry::before {
    content: '\201C';
    position: absolute;
    top: -4rem;
    left: 1rem;
    font-family: var(--font-serif);
    font-size: 32rem;
    color: rgba(255,255,255,0.02);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.poem-meta {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.5rem;
    font-style: italic;
}
.poem-card {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 4rem;
    backdrop-filter: blur(10px);
    position: relative;
}
.poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    border-radius: var(--radius) var(--radius) 0 0;
}
.poem-text p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 2;
    margin-bottom: 1.75rem;
}
.poem-text p:last-child { margin-bottom: 0; }

/* ===== BOOK ===== */
.book {
    padding: 8rem 0;
    background: var(--gray-light);
}
.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.book-info p {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.book-price {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    font-size: 1.4rem;
    font-weight: 600;
}
.book-price strong {
    color: var(--blue-text);
    font-size: 1.3rem;
}
.book-where {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
}
.book-visual {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}
.book-cover {
    width: 280px;
    position: relative;
    transform: rotateY(-6deg) rotateX(2deg);
    transition: transform 0.5s ease;
    border-radius: 4px 10px 10px 4px;
    box-shadow:
        -6px 0 12px rgba(0,0,0,0.3),
        6px 12px 40px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
    filter: blur(0.4px) contrast(1.15) brightness(1.08) saturate(1.15);
}
.book-cover:hover {
    transform: rotateY(-12deg) rotateX(2deg) translateY(-6px);
    box-shadow:
        -8px 0 16px rgba(0,0,0,0.35),
        10px 18px 50px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.1);
}
.book-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTACT ===== */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 100%);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.contact-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.contact-card:hover {
    background: rgba(6,147,227,0.15);
    border-color: var(--blue);
    transform: translateY(-4px);
}
.contact-card .icon {
    width: 1.75rem;
    height: 1.75rem;
    fill: var(--blue);
    flex-shrink: 0;
}
.contact-card span {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.contact-card strong {
    color: var(--white);
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-image { order: -1; }
    .hero-image-wrap { max-width: 320px; }
    .hero-actions { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .about-quote { position: static; }
    .book-grid { grid-template-columns: 1fr; text-align: center; }
    .book-visual { order: -1; }
    .poem-card { padding: 2.5rem 2rem; }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        color: var(--dark) !important;
        padding: 0.75rem 2rem;
        display: block;
    }
    .nav-links a::after { display: none; }
    .nav-toggle { display: flex; }
    .contact-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .hero-title { font-size: 3rem; }
    .poem-card { padding: 2rem 1.25rem; }
    .poem-text p { font-size: 1rem; }
}
