/* =============================================
   Hidden Portals of the Antediluvian World
   Website Styles
   ============================================= */

/* CSS Custom Properties (Variables) */
:root {
    /* Color Palette from book cover */
    --deep-brown: #2a1810;
    --deep-brown-light: #3d2914;
    --antique-gold: #c9a227;
    --antique-gold-light: #d4af37;
    --cream: #e8dcc4;
    --cream-light: #f5efe0;
    --dark-accent: #1a0f0a;

    /* Functional colors */
    --text-primary: var(--cream);
    --text-secondary: var(--cream-light);
    --text-gold: var(--antique-gold);
    --bg-primary: var(--deep-brown);
    --bg-dark: var(--dark-accent);

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-gold);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    margin-bottom: 1em;
}

a {
    color: var(--antique-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--antique-gold-light);
}

em {
    font-style: italic;
    color: var(--antique-gold-light);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section scroll offset for fixed navbar */
[id] {
    scroll-margin-top: 100px;
}

html {
    scroll-padding-top: 100px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 1em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: 3rem;
    font-style: italic;
}

/* =============================================
   LOADING SCREEN
   ============================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    animation: loaderBgPulse 3s ease-in-out infinite;
}

@keyframes loaderBgPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.02); }
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-dark) 70%);
}

.loader-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--antique-gold);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.5);
    animation: loaderTextPulse 2s ease-in-out infinite;
}

@keyframes loaderTextPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(201, 162, 39, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--antique-gold), var(--antique-gold-light));
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(26, 15, 10, 0.95);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--antique-gold);
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--cream);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--antique-gold);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--antique-gold);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--antique-gold);
    position: relative;
    transition: background var(--transition-fast);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--antique-gold);
    left: 0;
    transition: transform var(--transition-fast);
}

.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--dark-accent) 0%, var(--deep-brown) 50%, var(--deep-brown-light) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px 20px;
    gap: 2rem;
}

/* 3D Book Cover */
.book-cover-container {
    position: relative;
    max-width: 350px;
    width: 100%;
    perspective: 1000px;
}

.book-cover-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(201, 162, 39, 0.2);
}

.cover-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.book-cover-container:hover .cover-shine {
    opacity: 1;
}

.cover-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Hero Text */
.hero-text {
    max-width: 800px;
}

.title {
    margin-bottom: 0.5em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--cream);
    letter-spacing: 0.15em;
    margin-bottom: 1em;
}

.author-name {
    font-size: 1.25rem;
    color: var(--antique-gold);
    font-style: italic;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    display: block;
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--antique-gold);
    border-bottom: 2px solid var(--antique-gold);
    transform: rotate(45deg);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: rotate(45deg) translate(0, 0); }
    50% { opacity: 1; transform: rotate(45deg) translate(5px, 5px); }
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* =============================================
   SYNOPSIS SECTION
   ============================================= */
.synopsis {
    position: relative;
    padding: var(--section-padding) 0;
    background-color: var(--bg-dark);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 20%, transparent 80%, var(--bg-dark) 100%);
}

.section-overlay.dark {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 15, 10, 0.7) 20%, rgba(26, 15, 10, 0.7) 80%, var(--bg-dark) 100%);
}

.synopsis .container {
    position: relative;
    z-index: 1;
}

.synopsis-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.lead-text {
    font-size: 1.35rem;
    color: var(--cream-light);
    margin-bottom: 1.5em;
}

/* Five Theses */
.theses-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--antique-gold);
}

.theses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.thesis-card {
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.8) 0%, rgba(42, 24, 16, 0.9) 100%);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.thesis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(201, 162, 39, 0.1);
}

.thesis-card:hover .animated-icon .icon-svg {
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.5));
}

.thesis-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--antique-gold);
    margin-bottom: 0.5rem;
}

.thesis-icon {
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-icon {
    color: var(--antique-gold);
}

.icon-svg {
    width: 50px;
    height: 50px;
    transition: filter var(--transition-fast);
}

/* Animated Icon Effects */
.pulse-circle {
    animation: pulseCircle 2s ease-in-out infinite;
}

@keyframes pulseCircle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.descent-arrow {
    animation: descentBob 2s ease-in-out infinite;
}

@keyframes descentBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.wave-path {
    animation: waveFlow 3s ease-in-out infinite;
}

.wave-path.delay {
    animation-delay: 0.3s;
}

.wave-path.delay2 {
    animation-delay: 0.6s;
}

@keyframes waveFlow {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(5px); opacity: 1; }
}

.radiate {
    animation: radiateOut 2s ease-out infinite;
}

.radiate.delay {
    animation-delay: 0.5s;
}

@keyframes radiateOut {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

.thesis-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Axis Mundi Visual */
.axis-mundi-container {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.axis-mundi-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(201, 162, 39, 0.15);
}

.axis-mundi-caption {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--antique-gold);
    margin-top: 1.5rem;
    letter-spacing: 0.1em;
}

/* =============================================
   SECTION DIVIDERS
   ============================================= */
.section-divider {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
}

.section-divider.flipped .divider-image {
    transform: scaleX(-1);
}

.divider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    filter: sepia(20%);
}

/* =============================================
   QUOTES SECTION
   ============================================= */
.quotes {
    position: relative;
    padding: var(--section-padding) 0;
    background-color: var(--bg-dark);
}

.quotes .container {
    position: relative;
    z-index: 1;
}

.quotes-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
}

.quote-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.quote-card.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.quote-card blockquote {
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.6) 0%, rgba(42, 24, 16, 0.8) 100%);
    border-left: 3px solid var(--antique-gold);
    border-radius: 0 8px 8px 0;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

.quote-card blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    margin: 0;
    color: var(--cream-light);
}

.quote-card cite {
    display: block;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--antique-gold);
    letter-spacing: 0.05em;
}

.quote-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.quote-prev,
.quote-next {
    background: transparent;
    border: 1px solid var(--antique-gold);
    color: var(--antique-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-prev:hover,
.quote-next:hover {
    background: var(--antique-gold);
    color: var(--bg-dark);
}

.quote-dots {
    display: flex;
    gap: 0.5rem;
}

.quote-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.3);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.quote-dot.active,
.quote-dot:hover {
    background: var(--antique-gold);
}

/* =============================================
   FOUR MOVEMENTS SECTION
   ============================================= */
.movements {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--deep-brown) 50%, var(--bg-dark) 100%);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--antique-gold) 0%, var(--deep-brown-light) 50%, var(--antique-gold) 100%);
}

.movement {
    position: relative;
    margin-bottom: 3rem;
}

.movement-marker {
    position: absolute;
    left: -32px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--antique-gold);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.movement-content {
    display: flex;
    gap: 2rem;
    background: rgba(42, 24, 16, 0.6);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.movement-content:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(201, 162, 39, 0.3);
}

.movement-image {
    width: 200px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.movement-text {
    padding: 1.5rem;
    flex: 1;
}

.part-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--antique-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.movement-text h3 {
    margin-bottom: 0.75rem;
}

.movement-summary {
    font-size: 1rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

/* Expand Button */
.expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--antique-gold);
    color: var(--antique-gold);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.expand-btn:hover {
    background: rgba(201, 162, 39, 0.1);
}

.expand-btn[aria-expanded="true"] .expand-icon {
    transform: rotate(45deg);
}

.expand-icon {
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

/* Chapter List */
.chapter-list {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(201, 162, 39, 0.3);
}

.chapter-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--cream);
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-section {
    position: relative;
    padding: var(--section-padding) 0;
    background-color: var(--bg-dark);
}

.video-section .container {
    position: relative;
    z-index: 1;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.2);
    background: var(--dark-accent);
    line-height: 0;
    overflow-anchor: none;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-wrapper video:focus {
    outline: none;
}

/* Prevent scroll anchoring issues when video plays */
.video-section {
    overflow-anchor: none;
}

/* =============================================
   AUTHOR SECTION
   ============================================= */
.author-section {
    padding: var(--section-padding) 0;
    background-color: var(--bg-dark);
}

.author-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.author-image-container {
    text-align: center;
}

.author-image {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: rotate(-2deg);
    transition: transform var(--transition-fast);
}

.author-image:hover {
    transform: rotate(0deg);
}

.image-caption {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--cream);
    margin-top: 1rem;
    opacity: 0.8;
}

.author-bio {
    font-size: 1.1rem;
}

.author-bio .lead-text {
    font-size: 1.25rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    position: relative;
    padding: 60px 0 30px;
    text-align: center;
    background-color: var(--dark-accent);
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0.1;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 30%);
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* Portal Accent */
.portal-accent {
    margin-bottom: 2rem;
}

.portal-rings-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.3);
    animation: portalGlow 3s ease-in-out infinite;
}

@keyframes portalGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(201, 162, 39, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 50px rgba(201, 162, 39, 0.5);
        transform: scale(1.02);
    }
}

.coming-soon {
    margin-bottom: 3rem;
}

.coming-soon h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--antique-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.coming-soon p {
    color: var(--cream);
    font-style: italic;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.copyright {
    font-size: 0.875rem;
    color: var(--cream);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.domain {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--antique-gold);
    letter-spacing: 0.1em;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet */
@media (max-width: 900px) {
    :root {
        --section-padding: 70px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right var(--transition-fast);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
    }

    .hero-content {
        padding: 100px 20px 40px;
    }

    .book-cover-container {
        max-width: 280px;
    }

    .theses-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-image-container {
        order: -1;
    }

    .author-image {
        transform: none;
    }

    .movement-content {
        flex-direction: column;
    }

    .movement-image {
        width: 100%;
        min-height: 150px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .movement-marker {
        left: -27px;
    }

    .quote-card blockquote {
        padding: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    :root {
        --section-padding: 50px;
    }

    html {
        font-size: 15px;
    }

    .hero {
        min-height: 100svh;
    }

    .book-cover-container {
        max-width: 220px;
    }

    .theses-grid {
        grid-template-columns: 1fr;
    }

    .thesis-card {
        padding: 1.5rem;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 5px;
    }

    .movement-marker {
        left: -24px;
        width: 12px;
        height: 12px;
    }

    .movement-text {
        padding: 1rem;
    }

    .parallax-bg {
        background-attachment: scroll;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-arrow {
        width: 20px;
        height: 20px;
    }

    .quote-card blockquote p {
        font-size: 1.1rem;
    }

    .quotes-carousel {
        min-height: 300px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .parallax-bg {
        background-attachment: scroll;
    }
}
