:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #d4af37;
    /* Metallic Gold */
    --secondary-text: #888;
    --card-bg: #111;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

[data-theme="light"] {
    --bg-color: #fcfbf7;
    /* Cream/Paper */
    --text-color: #1a1a1a;
    --accent-color: #bfa15f;
    --secondary-text: #666;
    --card-bg: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--text-color);
    text-transform: uppercase;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/hero_bg.png') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-content h1 {
    font-size: 6rem;
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--secondary-text);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: var(--secondary-text);
}

/* Sections */
.content-section {
    padding: 8rem 10%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-label {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

.text-block p {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    max-width: 800px;
}

/* Timeline */
.timeline-item {
    border-left: 1px solid var(--secondary-text);
    padding: 2rem 0 2rem 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 2.5rem;
    width: 9px;
    height: 9px;
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-item .year {
    display: block;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Chapter Content */
.chapter-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.full-chapter {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .full-chapter {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.full-chapter h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.full-chapter p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 300px;
    background: #222;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.placeholder {
    background: radial-gradient(circle, #333 0%, #111 100%);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    font-family: var(--font-serif);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Chapter Cards */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.chapter-card {
    background: var(--card-bg);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    transition: transform 0.3s ease;
}

[data-theme="light"] .chapter-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chapter-card:hover {
    transform: translateY(-10px);
}

.chapter-number {
    font-size: 4rem;
    font-family: var(--font-serif);
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

[data-theme="light"] .chapter-number {
    color: rgba(0, 0, 0, 0.1);
}

.chapter-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.read-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
}

.delay-2 {
    animation-delay: 0.4s;
    animation-fill-mode: forwards;
}

.fade-in-up {
    opacity: 0;
    /* detailed animation handled by JS/Observer intersection usually, or just on load */
    animation: fadeInUp 1s ease forwards;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--secondary-text);
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--secondary-text);
    padding: 1rem 0;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    border-radius: 0;
    /* Remove default radius */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    margin-top: 2rem;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu todo */
    }

    .content-section {
        padding: 6rem 5%;
    }
}