/* ===== VARIABLES & RESET ===== */
:root {
    --bg-primary: #e8dfd1;
    --bg-white: #ffffff;
    --bg-card: #f9f6f0;
    --text-dark: #2c2418;
    --text-medium: #5a4a35;
    --text-light: #6a5a45;
    --gold-primary: #c6a43b;
    --gold-dark: #8b6914;
    --border-light: #e8dfd0;
    --footer-bg: #1a1510;
    --footer-text: #b0a590;
}

body.light-mode {
    --bg-primary: #0d0b08;
    --bg-white: #1a1612;
    --bg-card: #231f1a;
    --text-dark: #f0ebe2;
    --text-medium: #c9c1b5;
    --text-light: #a69c8c;
    --border-light: #3a3228;
    --footer-bg: #080706;
    --footer-text: #8a7f6e;
}

body.light-mode .about {
    background: linear-gradient(135deg, #1a1612 0%, #231f1a 100%);
}

body.light-mode .testimonials {
    background: linear-gradient(135deg, #1a1612 0%, #1e1915 100%);
}

body.light-mode .contact {
    background: linear-gradient(135deg, #13100c, #1a1612);
}

body.light-mode .books {
    background: #1a1612;
}

body.light-mode .faq {
    background: #16130f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        repeating-linear-gradient(45deg, rgba(139, 105, 20, 0.04) 0px, rgba(139, 105, 20, 0.04) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(135deg, rgba(100, 70, 30, 0.03) 0px, rgba(100, 70, 30, 0.03) 1px, transparent 1px, transparent 6px);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle-widget {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
}

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 2px solid var(--gold-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    border-color: var(--gold-dark);
}

.toggle-icon {
    font-size: 1.5rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 105, 20, 0.2);
    transition: all 0.3s ease;
}

body.light-mode .navbar {
    background: rgba(30, 30, 30, 0.95);
    border-bottom-color: rgba(198, 164, 59, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    display: none;
    background: none;
    border: none;
    color: var(--gold-dark);
    font-size: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    min-width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 10px;
    z-index: 1001;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-medium);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a,
    .dropdown-trigger a {
        text-align: left;
        width: auto;
    }
    
    .dropdown-arrow {
        display: inline-flex;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
        position: static;
        transform: none;
        left: auto;
        margin-top: 10px;
        margin-left: 20px;
        box-shadow: none;
        background: transparent;
        min-width: auto;
    }
    
    .dropdown-content a {
        padding: 10px 15px;
        text-align: left;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 60px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 16px;
    opacity: 0.95;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-book-slideshow {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-book-image {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 320px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-book-image img {
    width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 5% 60px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-book-image img {
        width: 180px;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 105, 20, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: white;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, #fef8f0 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.about-grid {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-content {
    flex: 1;
}

.section-tag {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--gold-dark);
    margin-bottom: 24px;
}

.about-text {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }
    
    .about-grid {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .about-image img {
        width: 220px;
        height: 220px;
    }
    
    .section-title {
        font-size: 32px;
    }
}

/* ===== BOOKS SECTION ===== */
.books {
    padding: 80px 0;
    background: #f0eadc;
    position: relative;
}

body.light-mode .books {
    background: #2a2a2a;
}

.books::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.books-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.book-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(139, 105, 20, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s;
}

.book-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.book-card-left {
    flex: 0.8;
    text-align: center;
}

.book-cover-large {
    width: 180px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.book-card-right {
    flex: 1.2;
}

.book-card-right h3 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.book-card-right p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .books {
        padding: 60px 0;
    }
    
    .book-card {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 25px;
    }
    
    .book-cover-large {
        width: 150px;
    }
    
    .book-card-right h3 {
        font-size: 22px;
    }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, #fefaf5 100%);
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 32px 28px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.stars {
    color: var(--gold-primary);
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
}

.client-name {
    font-weight: 600;
    color: var(--gold-dark);
}

@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8dfd1, #f0eadc);
    position: relative;
}

body.light-mode .contact {
    background: linear-gradient(135deg, #2a2a2a, #333333);
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 48px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(139, 105, 20, 0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-card h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: var(--bg-white);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-card h2 {
        font-size: 28px;
    }
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    border-color: var(--gold-primary);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
}

.faq-question:hover {
    background: rgba(139, 105, 20, 0.05);
}

.faq-icon {
    color: var(--gold-dark);
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px 24px;
}

@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 16px 20px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 40px;
}

.footer-col {
    text-align: center;
}

.footer-col h4 {
    color: var(--gold-primary);
    font-size: 20px;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--footer-text);
    margin-top: 8px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 250px;
    margin: 0 auto;
}

.footer-newsletter input {
    padding: 12px 16px;
    border: 1px solid rgba(176, 165, 144, 0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--footer-text);
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.footer-newsletter .btn {
    padding: 12px;
    font-size: 14px;
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(176, 165, 144, 0.2);
    font-size: 13px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-copyright,
.footer-credit {
    margin: 0;
}

.footer-credit a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--gold-primary);
}

.footer-credit .highlight {
    color: var(--gold-primary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-credit .highlight:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-newsletter {
        max-width: 280px;
    }
    
    .footer-newsletter input {
        text-align: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }
    
    .footer-copyright,
    .footer-credit {
        width: 100%;
    }
}


