/* ========================================
   GENESIS LOGIC BOOKS — SHARED STYLES
   Theme: Modern Sacred / Biblical Elegance
   ======================================== */

/* --- RESET & VARIABLES --- */
:root {
    --bg: #08080d;
    --bg-warm: #0c0a09;
    --surface: rgba(255, 255, 255, 0.025);
    --surface-hover: rgba(201, 168, 76, 0.06);
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(201, 168, 76, 0.35);
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --gold-dark: #a08030;
    --gold-rgb: 201, 168, 76;
    --warm: #d4a053;
    --warm-rgb: 212, 160, 83;
    --cream: #f5f0e8;
    --text: #ece8df;
    --text-muted: #8a8477;
    --text-dim: #4a453c;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 50px;
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow-gold: 0 0 40px rgba(var(--gold-rgb), 0.15);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

/* --- DIVINE LIGHT BACKGROUND --- */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.divine-light {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(var(--gold-rgb), 0.06), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(var(--warm-rgb), 0.04), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(var(--gold-rgb), 0.03), transparent 35%);
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 8, 13, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo img {
    height: 36px;
    width: auto;
    border-radius: 6px;
}
.logo-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--cream);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: var(--transition);
}
.logo-text:hover {
    text-shadow: 0 0 20px rgba(var(--gold-rgb), 0.4);
}
.logo-text span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s ease;
}
.nav-links a:hover {
    color: var(--gold-light);
}
.nav-links a:hover::after {
    width: 100%;
}

/* --- SECTIONS --- */
section {
    padding: 120px 5% 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    text-align: center;
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    display: block;
    align-items: unset;
    justify-content: unset;
}
.hero::before {
    content: '';
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    opacity: 0.4;
    margin: 0 auto 40px auto;
}
.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(40px);
}
.hero h1.animate-in {
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.text-gradient {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 620px;
    margin-inline: auto;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
}
.hero p.animate-in {
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.hero .btn {
    opacity: 0;
    transform: translateY(20px);
}
.hero .btn.animate-in {
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* --- ABOUT --- */
.about-section {
    min-height: auto;
    padding: 120px 5% 100px;
}
.about-content {
    max-width: 900px;
    text-align: center;
}
.about-content .about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}
.about-content .about-paragraphs p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 700px;
    margin-inline: auto;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin-top: 60px;
}
.highlight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: var(--transition);
}
.highlight-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.highlight-card:hover::before {
    opacity: 1;
}
.highlight-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}
.highlight-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--cream);
    letter-spacing: 1px;
}
.highlight-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- SECTION TITLES --- */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
    color: var(--cream);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    max-width: 550px;
    margin-bottom: 60px;
    line-height: 1.7;
}

/* --- DECORATIVE DIVIDER --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0.5;
}
.section-divider::before {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.section-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.section-divider span {
    color: var(--gold);
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* --- BUTTONS --- */
.btn {
    position: relative;
    padding: 16px 44px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid rgba(var(--gold-rgb), 0.4);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.15), transparent);
    transition: left 0.6s ease;
}
.btn:hover {
    background: rgba(var(--gold-rgb), 0.08);
    border-color: var(--gold);
    box-shadow: var(--shadow-glow-gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}
.btn:hover::before {
    left: 100%;
}
.btn:active {
    transform: translateY(0);
}

/* --- BOOKS GRID --- */
.books-section {
    min-height: 100vh;
}
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1100px;
}

/* --- BOOK CARDS --- */
.book-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--spring);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}
.book-card.animate-in {
    animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: var(--transition);
}
.book-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px) scale(1);
    box-shadow: var(--shadow-card), 0 0 50px rgba(var(--gold-rgb), 0.06);
}
.book-card:hover::before {
    opacity: 1;
}

.book-cover {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #0a0908;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}
.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}
.book-cover:hover {
    transform: scale(1.02);
}
.book-cover-placeholder {
    color: var(--text-dim);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.4;
}

.book-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--cream);
    transition: var(--transition);
}
.book-card:hover h3 {
    color: var(--gold-light);
}
.book-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.7;
    flex-grow: 1;
}
.book-card .btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 12px;
    letter-spacing: 2px;
}

/* --- CONTACT --- */
.contact-section {
    min-height: 100vh;
}
.contact-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 55px;
    width: 100%;
    max-width: 580px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-card);
    position: relative;
    text-align: center;
}
.contact-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
    text-decoration: none;
    padding: 16px 32px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.contact-email:hover {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(var(--gold-rgb), 0.2);
}

.contact-emails {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 50px 5%;
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.footer-text span {
    color: var(--gold);
}
.footer-links {
    display: flex;
    gap: 30px;
    list-style: none;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--gold);
}

/* --- SCROLL ANIMATIONS --- */
@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.anim-fade {
    opacity: 0;
}
.anim-fade.animate-in {
    animation: fadeIn 1s ease forwards;
}

.anim-slide-left {
    opacity: 0;
    transform: translateX(-40px);
}
.anim-slide-left.animate-in {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-slide-right {
    opacity: 0;
    transform: translateX(40px);
}
.anim-slide-right.animate-in {
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-scale {
    opacity: 0;
    transform: scale(0.9);
}
.anim-scale.animate-in {
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 18px 20px;
        flex-direction: column;
        gap: 18px;
    }
    .nav-links {
        gap: 25px;
    }
    section {
        padding: 100px 5% 80px;
    }
    .about-section,
    .books-section,
    .contact-section {
        padding: 80px 5%;
    }
    .books-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
    .contact-wrap {
        padding: 35px 25px;
    }
    .book-cover {
        height: 360px;
    }
    .section-divider::before,
    .section-divider::after {
        width: 40px;
    }
    .about-highlights {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 15px;
        font-size: 0.75rem;
    }
    .btn {
        padding: 14px 30px;
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    .hero h1 {
        letter-spacing: 1px;
    }
}
