:root {
    /* Color Palette */
    --bg-dark: #070707;
    --bg-darker: #000000;
    --bg-panel: rgba(20, 20, 20, 0.7);
    --bg-panel-solid: #141414;
    
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    
    --gold-primary: #d4af37;
    --gold-secondary: #b5952f;
    --gold-light: #f3e5ab;
    --gold-glow: rgba(212, 175, 55, 0.3);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Spacing & Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
.gold-text {
    color: var(--gold-primary);
    text-shadow: 0 0 10px var(--gold-glow);
}

.font-serif {
    font-family: var(--font-serif);
}

.center-text {
    text-align: center;
}

.text-lead {
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--bg-darker);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--gold-glow);
    color: var(--bg-darker);
}

.btn-secondary {
    background: transparent;
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-secondary:hover {
    background: var(--gold-glow);
    color: var(--gold-light);
    transform: translateY(-3px);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: transparent;
}

#navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.nav-cta {
    border: 1px solid var(--gold-primary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    color: var(--gold-primary) !important;
}

.nav-cta:hover {
    background: var(--gold-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 30, 30, 0.5) 0%, var(--bg-dark) 70%);
    z-index: -1;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.cover-link {
    display: block;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px var(--gold-glow);
}

.cover-link:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.book-cover {
    width: 100%;
    max-width: 420px;
    border-radius: 4px;
    display: block;
}

.cover-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--bg-darker);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cover-link:hover .cover-badge {
    opacity: 1;
    transform: translateY(0);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
}

/* About Book Section */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.book-info p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.features-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-primary);
}

.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.pull-quote {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.4;
    padding: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, rgba(20,20,20,0.8), rgba(10,10,10,0.8));
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--gold-glow);
    font-family: var(--font-serif);
    line-height: 1;
}

/* Author Section */
.author-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
}

.author-bio p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.author-name {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.author-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background: var(--bg-panel-solid);
}

.author-img-main {
    width: 100%;
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 4/3;
    transition: transform 0.6s ease;
}

.author-img-main:hover {
    transform: scale(1.05);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.author-img-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.author-img-thumb.dark-bg {
    background-color: var(--bg-panel-solid);
}


.author-img-thumb:hover {
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, var(--bg-dark) 60%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

.footer-links a:hover {
    color: var(--gold-primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 {
    transition-delay: 0.2s;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .hero-container, .layout-grid, .author-layout {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .mx-auto {
        margin: 0 auto;
    }
    
    .features-list li {
        text-align: left;
        display: inline-block;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, implement hamburger menu */
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .pull-quote {
        padding: 2rem;
        font-size: 1.4rem;
    }
}

/* Blog Styles */
.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 120px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: var(--bg-panel-solid);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.blog-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid var(--gold-primary);
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-title a {
    color: var(--text-primary);
}

.blog-title a:hover {
    color: var(--gold-light);
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.blog-read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more::after {
    transform: translateX(5px);
}
