:root {
    --primary-color: #3a6ea5;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Navbar styling */
.navbar {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    height: 50px;
    transition: height 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
    left: 10%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero carousel styling */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 30%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2c5282;
    border-color: #2c5282;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    color: white;
}

/* Custom slider buttons */
.slider-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
}

.slider-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-button:hover, .slider-button.active {
    background-color: white;
    transform: scale(1.2);
}

/* Section styling */
section {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Book cards styling */
.book-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.book-card img {
    transition: transform 0.5s ease;
}

.book-card:hover img {
    transform: scale(1.05);
}

/* Footer styling */
footer {
    background-color: var(--dark-bg);
}

.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-3px);
}

.footer-link {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent-color) !important;
    padding-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .carousel-item {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption .btn {
        padding: 0.5rem 1rem;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .navbar-collapse {
        background-color: rgba(33, 37, 41, 0.98);
        padding: 1rem;
        border-radius: 0.25rem;
        margin-top: 0.5rem;
    }
    
    .input-group {
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.75rem;
    }
    
    .carousel-caption p {
        display: none;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}


/* Contact page specific styles */
.contact-hero {
    background: linear-gradient(rgba(58, 110, 165, 0.8), rgba(58, 110, 165, 0.9)), url('https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    color: white;
}

.contact-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.8rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(58, 110, 165, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #2c5282;
    border-color: #2c5282;
}

.required-label::after {
    content: '*';
    color: var(--accent-color);
    margin-left: 4px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}