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

:root {
    --primary-color: #ffffff;
    --secondary-color: #d4c4a8;
    --accent-color: #c4a484;
    --text-dark: #ffffff;
    --text-light: #e0e0e0;
    --text-muted: #b0b0b0;
    --bg-light: rgba(0, 0, 0, 0.3);
    --bg-white: rgba(0, 0, 0, 0.4);
    --bg-cream: rgba(0, 0, 0, 0.2);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #1a1a1a;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)),
        url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 196, 168, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(196, 164, 132, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(212, 196, 168, 0.03) 49%, rgba(212, 196, 168, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(196, 164, 132, 0.03) 49%, rgba(196, 164, 132, 0.03) 51%, transparent 52%);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    font-family: 'Source Sans Pro', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #1a1a1a;
    border-color: #d4af37;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8860b, #9a7209);
    border-color: #b8860b;
    transform: translateY(-1px);
    color: #1a1a1a;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: #1a1a1a;
}

.btn-outline {
    background: transparent;
    color: #d4af37;
    border-color: #d4af37;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #1a1a1a;
    border-color: #d4af37;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo h2 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    letter-spacing: 0.05em;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.02em;
}

.nav-menu a:hover {
    color: var(--text-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-dark);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    color: var(--text-dark);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
    font-style: italic;
    font-family: 'Crimson Text', serif;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 600px;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-photo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.author-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

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

.photo-placeholder {
    color: white;
    font-size: 4rem;
    opacity: 0.8;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* About Section */
.about {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
}

.about-photo {
    width: 280px;
    height: 280px;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.about-photo-img:hover {
    transform: scale(1.05);
}

/* Books Section */
.books {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    padding: 6rem 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    justify-items: center;
}

.book-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.book-card.featured {
    border: 1px solid var(--secondary-color);
    position: relative;
}

.book-cover {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cover-placeholder {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.book-cover-image {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition), opacity 0.3s ease;
    margin: 0 auto;
    display: block;
    opacity: 1;
}

.book-cover-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.book-cover-image.loaded {
    opacity: 1;
}

.book-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #1a1a1a;
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.book-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.book-genre {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.book-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--accent-color);
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.book-actions .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 10px 24px;
}

/* Contact Section */
.contact {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 6rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 30px;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

.contact-item a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--text-light);
}

.contact-form {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 196, 168, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.4) !important;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .navbar {
        background: rgba(0, 0, 0, 0.4) !important;
    }
    
    .footer {
        background: rgba(0, 0, 0, 0.4) !important;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(12px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        color: var(--text-light) !important;
        padding: 1rem 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a:hover {
        color: var(--text-dark) !important;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .book-actions {
        justify-content: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .author-photo {
        width: 200px;
        height: 200px;
    }
    
    .about-photo {
        width: 200px;
        height: 200px;
    }
    
    .book-card {
        padding: 1.5rem;
    }
    
    .cover-placeholder {
        width: 150px;
        height: 210px;
    }
    
    .book-cover-image {
        width: 150px;
        height: 210px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced background animations */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes gentlePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

body::after {
    animation: gentlePulse 8s ease-in-out infinite;
}

/* Add floating elements */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 196, 168, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: subtleFloat 12s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.about::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(196, 164, 132, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: subtleFloat 15s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: -1;
}

.books::before {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: subtleFloat 18s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.book-card,
.contact-content {
    animation: fadeInUp 0.8s ease-out;
}
