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

:root {
    --primary-color: #2c1810;
    --secondary-color: #8b4513;
    --accent-color: #d4af37;
    --text-light: #f5f5f5;
    --text-dark: #2c1810;
    --bg-dark: #1a1a1a;
    --bg-light: #f8f6f0;
    --gradient-primary: linear-gradient(135deg, #2c1810 0%, #8b4513 100%);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo h1 {
    font-size: clamp(1rem, 4vw, 2rem);
    color: var(--accent-color);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-left: 10px;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--accent-color);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c1810 50%, #8b4513 100%);
    overflow: hidden;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.floating-quotes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.quote-bubble {
    position: absolute;
    background: rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 20px;
    max-width: 250px;
    min-width: 200px;
    width: auto;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
    word-wrap: break-word;
    white-space: normal;
}

.quote-bubble p {
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}


@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-content {
    text-align: center;
    z-index: 1001;
    position: relative;
    max-width: 800px;
    padding: 100px 20px 0 20px;
}

.hero-title {
    font-size: 6rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    z-index: 1002;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1003;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* Books Section */
.books {
    padding: 100px 0;
    background: var(--bg-light);
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.genre-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
    z-index: 1;
}

.genre-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
    transition: all 0.3s ease;
}

.genre-card:hover::after {
    background: rgba(255, 255, 255, 0.15);
}

.genre-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.genre-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.genre-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.genre-card p {
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.genre-quote {
    background: rgba(212, 175, 55, 0.2);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.genre-quote p {
    font-style: italic;
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

/* Writing Section */
.writing {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e0d0 100%);
}

.writing-samples {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.sample-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-color);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.sample-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-strong);
}

.book-cover-image {
    flex-shrink: 0;
    width: 120px;
    height: 180px;
    transition: all 0.3s ease;
}

.book-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sample-card:hover .book-cover-image {
    transform: scale(1.05);
}

.sample-content {
    flex: 1;
    min-width: 0;
}

.sample-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sample-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.sample-genre {
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.sample-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.sample-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.word-count, .publish-status {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.publish-status {
    color: var(--accent-color);
    font-weight: 600;
}

/* Audio Section */
.audio {
    padding: 100px 0;
    background: var(--bg-dark);
    color: var(--text-light);
}

.audio .section-title {
    color: var(--text-light);
}

.audio-content {
    max-width: 800px;
    margin: 0 auto;
}

.audio-description {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.audio-players {
    display: grid;
    gap: 2rem;
}

.audio-player {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.audio-file {
    width: 100%;
    margin: 1rem 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.audio-file::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.audio-file::-webkit-media-controls-play-button,
.audio-file::-webkit-media-controls-pause-button {
    background-color: var(--accent-color);
    border-radius: 50%;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.player-header h3 {
    color: var(--text-light);
    margin: 0;
}

.audio-duration {
    color: var(--accent-color);
    font-weight: 600;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    transition: width 0.3s ease;
}

.player-info {
    color: #ccc;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-intro {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.author-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.author-photo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    padding: 20px;
}

.author-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-placeholder {
    width: 300px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: var(--shadow-strong);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 100%);
    color: var(--text-light);
}

.contact .section-title {
    color: var(--text-light);
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: grid;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

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

.contact-method a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .genres-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .quote-bubble {
        max-width: 250px;
        padding: 15px;
    }
    
    .quote-bubble p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .quote-bubble {
        max-width: 200px;
        padding: 10px;
    }
    
    .quote-bubble p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    
    .container {
        padding: 0 10px;
    }
}

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

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for Writing Samples */
@media (max-width: 768px) {
    .sample-card {
        flex-direction: column;
        text-align: center;
    }
    
    .book-cover-image {
        width: 100px;
        height: 150px;
        margin: 0 auto;
    }
}
