
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0b1220;
    color: white;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: #111c30;
}

header h2 {
    color: #4385ff;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

button {
    background: #2864e8;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 7px;
    cursor: pointer;
}

.hero {
    text-align: center;
    padding: 150px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    color: #aab5c8;
    font-size: 18px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        margin: 0;
    }

    .hero {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

}

/* Featured Books Section */
.featured-books {
    padding: 70px 8%;
}

/* Section Heading */
.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.section-heading p {
    color: #aab5c8;
}

/* Books Grid Layout */
.books-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Individual Book Card */
.book-card {
    background: #111c30;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #263550;
    transition: 0.3s;
}

/* Card Hover Effect */
.book-card:hover {
    transform: translateY(-8px);
    border-color: #4385ff;
}

/* Book Cover Design */
.book-cover {
    height: 230px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Different Cover Colors */
.cover-one {
    background: linear-gradient(135deg, #163d77, #4385ff);
}

.cover-two {
    background: linear-gradient(135deg, #40256f, #9161dc);
}

.cover-three {
    background: linear-gradient(135deg, #145c54, #36a88b);
}

/* Book Cover Text */
.book-cover h3 {
    font-size: 25px;
    text-align: center;
}

.book-cover p {
    color: #ffffff;
}

/* Book Information */
.book-card > h3 {
    margin-bottom: 10px;
}

.book-card > p {
    color: #aab5c8;
    margin-bottom: 15px;
}

.book-card > h4 {
    color: #65a0ff;
    font-size: 22px;
    margin-bottom: 15px;
}

/* Mobile Responsive Books */
@media (max-width: 768px) {
    .books-container {
        grid-template-columns: 1fr;
    }
}

/* Why Choose Us Section */
.why-us {
    padding: 70px 8%;
    background: #0e192b;
}

/* Features Grid */
.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Individual Feature Card */
.feature-card {
    background: #111c30;
    padding: 35px 20px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #263550;
    transition: 0.3s;
}

/* Feature Card Hover */
.feature-card:hover {
    transform: translateY(-6px);
    border-color: #4385ff;
}

/* Feature Heading */
.feature-card h3 {
    margin-bottom: 15px;
}

/* Feature Description */
.feature-card p {
    color: #aab5c8;
    line-height: 1.6;
}

/* Website Footer */
.footer {
    background: #111c30;
    padding: 45px 8%;
    text-align: center;
}

/* Footer Brand */
.footer h2 {
    color: #4385ff;
    margin-bottom: 12px;
}

/* Footer Description */
.footer p {
    color: #aab5c8;
}

/* Footer Navigation */
.footer-links {
    margin: 25px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
}

/* Copyright */
.footer .copyright {
    font-size: 13px;
    margin-top: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-container {
        grid-template-columns: 1fr;
    }

    .footer-links a {
        display: inline-block;
        margin: 10px;
    }
}

/* =================================
   HEADER LOGIN AND REGISTER BUTTONS
================================= */

/* Authentication Buttons Container */
.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Common Button Design */
.auth-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #2864e8;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    transition: 0.3s;
}

/* Button Hover Effect */
.auth-btn:hover {
    background: #4385ff;
}

/* Register Button */
.register-btn {
    background: transparent;
    border: 1px solid #4385ff;
}

/* Register Hover */
.register-btn:hover {
    background: #2864e8;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .header-auth {
        justify-content: center;
        flex-wrap: wrap;
    }

}

/* =================================
   GLOBAL NAVBAR HOVER EFFECT
   Applies to all website pages
================================= */

/* Smooth transition for all navbar links */
header nav a {
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Change link color and move slightly on hover */
header nav a:hover {
    color: #4385ff !important;
    transform: translateY(-2px);
}

/* Smooth hover effect for Login and Register */
.header-auth .auth-btn {
    transition: all 0.3s ease;
}

/* Move authentication buttons slightly on hover */
.header-auth .auth-btn:hover {
    transform: translateY(-3px);
}

/* =================================
   HOME PAGE HERO BUTTON HOVER
================================= */

/* Explore eBooks Button */
.hero-btn {
    display: inline-block;
    padding: 13px 25px;
    background: #2864e8;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.3s ease;
}

/* Explore Button Hover Effect */
.hero-btn:hover {
    background: #4385ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(40, 100, 232, 0.35);
}
