:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #d4af37;
    --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;
    --sidebar-width: 160px;
}

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

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

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);
}

/* ================================
   SIDEBAR ADS - LEFT & RIGHT
   ================================ */
.sidebar-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: var(--sidebar-width);
    min-height: 600px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-ad.left-ad {
    left: 10px;
}

.sidebar-ad.right-ad {
    right: 10px;
}

.sidebar-ad ins {
    width: 160px;
    height: 600px;
}

/* Adjust main content to account for sidebar ads */
.main-content {
    max-width: calc(100% - 360px);
    margin: 0 auto;
}

/* Hide sidebar ads on smaller screens */
@media (max-width: 1400px) {
    .sidebar-ad {
        display: none;
    }
    .main-content {
        max-width: 100%;
    }
}

/* ================================
   IN-CONTENT ADS
   ================================ */
.content-ad {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 0 10%;
    text-align: center;
}

.content-ad ins {
    min-height: 100px;
}

/* 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;
}

/* Dark Background Section */
.dark-bg {
    background-color: var(--card-bg);
}

/* 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 .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);
}

/* Footer */
footer {
    padding: 3rem 10%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

footer p {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* 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;
    animation: fadeInUp 1s ease forwards;
}

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

    .nav-links {
        display: none;
    }

    .content-section {
        padding: 6rem 5%;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .full-chapter h3 {
        font-size: 1.8rem;
    }
    
    .text-block p {
        font-size: 1.2rem;
    }
}
