/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #2E0249; /* Dark Violet/Purple */
    --secondary-color: #570A57; /* Lighter Purple */
    --accent-color: #FF6600; /* Orange */
    --accent-hover: #e65c00;
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --grey: #808080;
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 18px; /* UPDATED: Sets base text size to 18px */
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-contact {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header-contact h2 {
    font-size: 3.5rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.section-header p.subheadline {
    font-style: italic;
    color: var(--grey);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-top: 10px;
}
.section-header-contact p.subheadline {
    font-style: italic;
    color: var(--grey);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-top: 10px;
}

/* --- HEADER --- */
header {
    background-color: var(--primary-color);
    color: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(17, 1, 28, 0.85), rgba(13, 1, 21, 0.708)), 
                url('images/hero.jpg') no-repeat center center; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px; 
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-left {
    flex: 1;
    padding-right: 50px;
}

.hero-left h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-left h3 {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #ddd;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.book-display {
    position: relative;
    width: 400px;
    height: 350px;
}

.hero-book {
    position: absolute;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.book-1 {
    z-index: 1;
    top: 0;
    left: 0;
    transform: rotate(-5deg);
}

.book-2 {
    z-index: 2;
    top: 40px;
    left: 120px;
    transform: rotate(5deg);
}

.book-display:hover .book-1 { transform: rotate(-10deg) translateX(-20px); }
.book-display:hover .book-2 { transform: rotate(10deg) translateX(20px); }

/* --- ABOUT AUTHOR --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-content, .split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 10px 10px 0px var(--secondary-color);
}

/* --- ABOUT BOOKS --- */
.book-row {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 50px;
}

.book-row:last-child {
    margin-bottom: 0;
}

.book-desc {
    flex: 1;
}

.book-cover {
    flex: 1;
    display: flex;
    justify-content: center;
}

.book-cover img {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 450px;
}

.book-desc h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.book-meta {
    margin: 20px 0;
    font-weight: bold;
    color: var(--secondary-color);
}

.book-meta .price {
    margin-right: 15px;
    font-size: 1.2rem;
}

.book-meta .type {
    background: #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* --- TRAILERS --- */
.video-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-title {
    margin-top: 20px;
    font-size: 1.5rem;
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2;
}

/* --- INTERVIEWS --- */
.interviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.interview-item iframe {
    width: 100%;
    height: 250px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- CONTACT --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    font-family: var(--font-body);
}

.contact-form button {
    align-self: flex-start;
}

/* --- FOOTER --- */
footer {
    background-color: #1a0129; /* Darker than primary */
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-left {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-right {
    text-align: right;
}

.footer-right h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.footer-right .label {
    font-family: var(--font-body);
    letter-spacing: 3px;
    color: var(--grey);
    font-size: 0.8rem;
}

.copyright {
    text-align: center;
    color: var(--grey);
    font-size: 0.8rem;
}

/* --- RESPONSIVENESS --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Hero Responsive */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }
    
    .hero-right {
        display: none; /* Hide books on very small screens or adjust */
    }

    /* General Layouts */
    .split-layout {
        flex-direction: column;
    }

    .reverse-mobile {
        flex-direction: column-reverse; /* Puts text above image on mobile */
    }

    .book-row {
        flex-direction: column;
        text-align: center;
    }
    
    .reverse-layout {
        flex-direction: column; /* Overrides row-reverse for mobile */
    }

    .footer-container {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .footer-right {
        text-align: left;
    }
}