/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    line-height: 1.6;
    background: #f9f9f9;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: 0.3s;
}

nav ul li a:hover {
    background: #34495e;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('bookstore-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

.hero-content {
    padding-top: 100px; /* Pushes content downward */
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideIn 1.5s ease-in-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem; /* Adds space between text and button */
}

.btn {
    background: #e67e22;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    animation: bounce 2s infinite;
}

.btn:hover {
    background: #d35400;
    transform: scale(1.05);
}
/* Products & Services Grid */
.products, .services {
    padding: 4rem 2rem;
    text-align: center;
}

.product-grid, .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card, .service-card {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.product-card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.service-card {
    padding: 2rem;
    text-align: center;
}

.service-card i {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.btn-details {
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-details:hover {
    background: #34495e;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background: #f4f4f4;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social a {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social a:hover {
    color: #e67e22;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    width: 80%;
    max-width: 600px;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.modal-content img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin: 1rem 0;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

.btn-contact {
    background: #e67e22;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    margin-top: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-contact:hover {
    background: #d35400;
}
/* Mobile-Friendly Styles */
@media (max-width: 768px) {
    /* Header */
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    nav ul li a {
        padding: 0.5rem;
    }

    /* Hero Section */
    .hero-content {
        padding-top: 50px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Products & Services Grid */
    .product-grid, .service-grid {
        grid-template-columns: 1fr;
    }

    .product-card, .service-card {
        margin: 1rem 0;
    }

    /* Contact Section */
    .contact-info {
        grid-template-columns: 1fr;
    }

    .map iframe {
        height: 200px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        text-align: center;
    }

    .social {
        margin-top: 1rem;
    }
}

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #2c3e50;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }
}