/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.navbar.scrolled .logo-link {
    color: #1e40af;
}

.logo-link:hover {
    color: #f59e0b;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: #374151;
}

.nav-link:hover,
.nav-link.active {
    color: #f59e0b;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger {
    background: #374151;
}

.mobile-nav {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.mobile-nav.active {
    max-height: 16rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #374151;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #1e40af;
    background: #fef3c7;
    border-left-color: #f59e0b;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a8a, #1e40af, #3730a3);
    background-image: url('https://images.pexels.com/photos/1319854/pexels-photo-1319854.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 64, 175, 0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: #e5e7eb;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #f59e0b;
    color: white;
}

.btn-primary:hover {
    background: #d97706;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e40af;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Floating Books Animation */
.floating-book {
    position: absolute;
    border-radius: 0.5rem;
    opacity: 0.2;
}

.floating-book-1 {
    top: 5rem;
    left: 2.5rem;
    width: 4rem;
    height: 5rem;
    background: #f59e0b;
    animation: float 3s ease-in-out infinite;
}

.floating-book-2 {
    top: 10rem;
    right: 5rem;
    width: 3rem;
    height: 4rem;
    background: #3b82f6;
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-book-3 {
    bottom: 10rem;
    left: 5rem;
    width: 3.5rem;
    height: 4.5rem;
    background: #10b981;
    animation: float 5s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #1e40af, #3730a3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-value {
    color: #1e40af;
}

.stat-label {
    color: #6b7280;
}

/* Featured Books Section */
.featured-books-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.books-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.book-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.book-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.1);
}

.book-content {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.book-card:hover .book-title {
    color: #1e40af;
}

.book-author {
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.book-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    align-items: center;
}

.star {
    width: 1rem;
    height: 1rem;
    color: #f59e0b;
    fill: currentColor;
}

.star.empty {
    color: #d1d5db;
}

.rating-text {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.book-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
}

.add-to-cart {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #1e40af, #3730a3);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #1e3a8a, #312e81);
}

/* Books Section */
.books-section {
    padding-top: 4rem;
    background: #f9fafb;
}

.books-header {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    color: white;
}

.books-header-content {
    text-align: center;
}

.books-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.books-subtitle {
    font-size: 1.25rem;
    color: #bfdbfe;
    max-width: 32rem;
    margin: 0 auto;
}

/* Search and Filter */
.search-filter-section {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.search-filter-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .search-filter-content {
        flex-direction: row;
    }
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 32rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
}

.category-filter {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    min-width: 150px;
    transition: all 0.3s ease;
}

.category-filter:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Books Results */
.books-results {
    padding: 4rem 0;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

.all-books-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .all-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .all-books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .all-books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.book-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
    background: #dbeafe;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

/* About Section */
.about-section {
    padding-top: 4rem;
}

.about-header {
    position: relative;
    padding: 5rem 0;
    color: white;
    overflow: hidden;
}

.about-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    background-image: url('https://images.pexels.com/photos/1319854/pexels-photo-1319854.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.about-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.about-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-subtitle {
    font-size: 1.25rem;
    color: #bfdbfe;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Story Section */
.story-section {
    padding: 5rem 0;
    background: white;
}

.story-content {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .story-content {
        grid-template-columns: 1fr 1fr;
    }
}

.story-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.story-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-paragraphs p {
    color: #6b7280;
    line-height: 1.7;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.story-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
}

.story-decoration-1 {
    bottom: -1.5rem;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    background: #f59e0b;
}

.story-decoration-2 {
    top: -1.5rem;
    left: -1.5rem;
    width: 6rem;
    height: 6rem;
    background: #3b82f6;
}

/* Values Section */
.values-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.values-content {
    text-align: center;
}

.values-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-item {
    text-align: center;
    transition: transform 0.5s ease;
}

.value-item:hover {
    transform: translateY(-8px);
}

.value-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1e40af, #3730a3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.value-item:hover .value-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    transform: scale(1.1);
}

.value-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.value-item:hover .value-title {
    color: #1e40af;
}

.value-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding-top: 4rem;
}

.contact-header {
    position: relative;
    padding: 5rem 0;
    color: white;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    background-image: url('https://images.pexels.com/photos/1370295/pexels-photo-1370295.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.contact-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.contact-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: #bfdbfe;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Content */
.contact-content {
    padding: 5rem 0;
    background: #f9fafb;
}

.contact-grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Contact Form */
.contact-form-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

@media (min-width: 768px) {
    .contact-form-container {
        padding: 3rem;
    }
}

.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.form-subtitle {
    color: #6b7280;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: none;
}

/* Contact Info */
.contact-info-container {
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
}

.contact-info-header {
    margin-bottom: 2rem;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-subtitle {
    color: #bfdbfe;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon-wrapper {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.contact-info-item:hover .contact-info-icon-wrapper {
    background: #f59e0b;
}

.contact-info-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.contact-info-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-details p {
    color: #bfdbfe;
    font-size: 0.875rem;
}

.contact-info-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #bfdbfe;
    font-size: 0.875rem;
}

.contact-info-footer .contact-info-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e40af, #1e3a8a);
}