/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.5px;
}

/* Header */
header {
    text-align: center;
    padding: 60px 5%;
    background: linear-gradient(135deg, #00CCFF 0%, #0099CC 100%);
    color: white;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    border-radius: 10px;
}

header .logo-container {
    margin-bottom: 30px;
}

header .logo {
    width: 80%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

header h1 {
    font-size: 2.5em;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

header .subtitle {
    font-size: 1.3em;
    color: #E7E7E7;
    margin-bottom: 25px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-align: justify;
}

/* Main Section */
main {
    padding: 60px 5%;
}

.book-section h2 {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: 700;
}

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    text-align: center;
}

.book-item h3 {
    font-size: 2.2em;
    color: #34495e;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Responsive Grid for Book Covers */
.book-covers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.book-cover-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 90%;
    max-width: 300px;
}

.book-cover-container:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.15);
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.edition-title {
    font-size: 1.1em;
    color: #555;
    margin: 12px 0;
    text-transform: uppercase;
}

.buy-btn {
    background-color: #00CCFF;
    color: white;
    padding: 12px 20px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 15px;
    transition: background 0.3s;
    text-transform: uppercase;
    font-weight: 600;
}

.buy-btn:hover {
    background-color: #0099CC;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 5%;
    margin-top: 60px;
    border-radius: 10px;
}

footer .social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    margin: 0 15px;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #00CCFF;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #34495e;
    padding: 25px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 600px;
}

form label {
    color: white;
    font-size: 1.1em;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

form button {
    background-color: #00CCFF;
    color: white;
    padding: 12px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
    text-transform: uppercase;
    font-weight: 600;
}

form button:hover {
    background-color: #0099CC;
}

/* Media Queries for Mobile */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }

    .book-section h2 {
        font-size: 2.2em;
    }

    .book-item h3 {
        font-size: 2em;
    }

    .book-cover-container {
        width: 100%;
    }

    .buy-btn {
        font-size: 1em;
    }

    footer {
        padding: 25px;
    }

    form {
        max-width: 100%;
    }
}
