/* CSS Variables for Color Scheme */
:root {
    --accent: #fdc500;
    --dark-accent: #a88506;
    --primary: #050505;
    --secondary: #595959;
    --text: #fafafa;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(
        to bottom,
        #363636 0%,
        #272727 50%,
        #000000 100%
    );
    color: var(--text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Main Container */
.container {
    position: relative;
    height: 100vh;
    width: 100vw;
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: var(--accent);
    box-shadow: 0 0 20px var(--secondary);
}

.nav-dot::after {
    content: attr(data-label);
    color: var(--secondary);
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.nav-dot.active::after {
    opacity: 1;
}

/* Section Styles */
.section {
    height: 100vh;
    width: 100vw;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Home Section */
.home-section {
    text-align: center;
}

.home-section h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--accent), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.book-info {
    text-align: left;
}

.book-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.book-blurb {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text);
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent), var(--dark-accent));
    color: var(--text);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 20px var(--secondary);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--secondary);
}

.book-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-3d {
    width: 300px;
    height: 450px;
    background: url('/assets/images/cover1RC.png') no-repeat center/cover;
    border-radius: 10px;
    transform: rotateY(-15deg) rotateX(5deg);
    /* box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 20px var(--secondary); */
    position: relative;
    overflow: hidden;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.author-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-image: url('/assets/images/author.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text);
    margin: 0 auto;
}

.author-bio {
    text-align: left;
}

.author-bio h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.author-bio p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    width: 100%;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    background-color: rgba(89, 89, 89, 0.1);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modal Styles */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal {
    background: var(--primary);
    border-radius: 10px;
    padding: 2rem;
    max-width: 800px;
    height: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow-y: auto;
}

.modal-content {
    text-align: left;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Honeypot field (hidden) */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.submit-button {
    background: linear-gradient(135deg, var(--accent), var(--dark-accent));
    color: var(--text);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--secondary);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    color: var(--secondary);
    z-index: 1000;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 1rem;
}

.footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-dots {
        left: 1rem;
    }

    .section {
        padding: 1rem;
    }

    .home-section h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .home-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .book-info {
        text-align: center;
    }

    .book-3d {
        width: 250px;
        height: 320px;
    }

    .author-image {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    .contact-content {
        padding: 0 1rem;
    }

    .nav-dot::after {
        display: none;
    }
}

/* Smooth Scrolling Animation */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}