/* Basic Styles */
body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

main {
    padding: 2rem 0;
}

/* Header & Nav */
header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
nav {
    display: flex;
    justify-content: flex-end; /* Push nav menu to the right */
    align-items: center;
    padding: 1rem 0;
    position: relative; /* Anchor for the absolute logo */
    height: 80px; /* Give the nav bar a fixed height */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: 20px; /* Align with container padding */
    top: 0;
    z-index: 101;
    color: #000;
}

.logo img {
    height: auto;
    width: auto;
    max-height: 180px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #ff4f40;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff4f40, #ff6b6b);
    color: white;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.cta-button {
    background-color: #ff4f40;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s;
}
.cta-button:hover {
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 4rem 1rem;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* Books & Products Grid */
.books-grid,
.products-grid,
.cast-grid,
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card,
.product-card,
.cast-member,
.link-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    transition: transform 0.3s;
}
.book-card:hover,
.product-card:hover,
.cast-member:hover,
.link-card:hover {
    transform: translateY(-5px);
}
.book-card img,
.product-card img,
.cast-member img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}
.book-card h3,
.product-card h3,
.cast-member h3,
.link-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    padding: 0 1rem;
}
.book-card p,
.cast-member p {
    padding: 0 1rem 1rem;
    color: #666;
    flex-grow: 1;
}

.book-button,
.product-button,
.link-card a {
    display: inline-block;
    background-color: #ff4f40;
    color: white;
    padding: 0.8rem 1.5rem;
    margin: 1rem 0;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.book-button:hover,
.product-button:hover,
.link-card a:hover {
    background-color: #e03e30;
}

.cast-member {
    padding-top: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: "Arial", sans-serif;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4f40;
    box-shadow: 0 0 5px rgba(255, 79, 64, 0.5);
}

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

#submit-button {
    align-self: center;
    border: none;
    cursor: pointer;
    background-color: #ff4f40;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition:
        transform 0.3s,
        background-color 0.3s;
}

#submit-button:hover {
    transform: translateY(-2px);
    background-color: #e03e30;
}

#submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    min-height: 1.2em;
}

.form-status.success {
    color: #28a745;
}

.form-status.error {
    color: #dc3545;
}

/* About Section */
.about-section .about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #ff4f40;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* simple responsive for now, consider a hamburger menu */
    }
    .logo img {
        height: 40px;
    }
    .logo-text {
        font-size: 1.2rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .books-grid,
    .products-grid,
    .cast-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }
    .about-container {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
