/* Global Styles */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --text-color: #333;
    --background-color: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 50px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(45deg, var(--primary-color), var(--secondary-color)) border-box;
    position: relative;
    overflow: hidden;
}

.logo-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.logo-image:hover::before {
    opacity: 1;
    animation: logoShine 1.5s ease-in-out;
}

@keyframes logoShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(0%) translateY(0%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    border: 2px solid var(--primary-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text h1 {
    color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 1.9rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-text h1:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-tagline:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Logo Responsive Design */
@media (max-width: 768px) {
    .logo {
        gap: 10px;
    }

    .logo-image {
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.6rem;
    }

    .logo-tagline {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }

    .logo-image {
        height: 35px;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }

    .logo-tagline {
        font-size: 0.6rem;
        display: none;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.primary-button,
.secondary-button,
.get-books-button {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.primary-button {
    background-color: white;
    color: var(--primary-color);
}

.secondary-button {
    background-color: white;
    color: var(--primary-color);
}

.primary-button:hover,
.secondary-button:hover,
.get-books-button {
    background-color: white;
    color: var(--primary-color);
}

/* Impact Counter */
.impact-counter {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.counter-item {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.counter-item:hover {
    transform: translateY(-5px);
}

.counter-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* About Section */
.about {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sustainability-impact {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

.sustainability-impact ul {
    list-style: none;
}

.sustainability-impact li {
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Books Available Section */
.books-available {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.book-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.book-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(39, 174, 96, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-actions {
    text-align: center;
}

.request-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.request-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.book-info {
    padding: 2rem;
}

.book-info h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.book-author {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.book-category {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.book-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.book-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-available {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

.books-cta {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.05));
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(46, 204, 113, 0.2);
}

.books-cta h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.books-cta p {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.donate-books-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

.donate-books-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
    color: white;
    text-decoration: none;
}

/* Programs Section */
.programs {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Get Involved Section */
.get-involved {
    padding: 4rem 0;
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.involvement-card {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.involvement-card:hover {
    border-color: var(--primary-color);
}

.action-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: var(--transition);
}

.action-button:hover {
    background-color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-icon:hover {
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
    text-decoration: none;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

/* Contact Icons Special Styling */
.contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 12px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.contact-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
    color: white !important;
    text-decoration: none;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-icon:hover::before {
    left: 100%;
}

/* WhatsApp specific color */
.contact-icon:nth-of-type(2):hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

/* Email specific color */
.contact-icon:nth-of-type(1):hover {
    background: linear-gradient(135deg, #EA4335, #FBBC04);
}

/* Quick Contact Section */
.quick-contact {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.05));
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.quick-contact h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive for Quick Contact */
@media (max-width: 768px) {
    .contact-details {
        gap: 0.8rem;
    }

    .contact-item {
        padding: 8px 12px;
    }

    .contact-item span {
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

/* Footer Brand Logo Styling */
.footer-brand {
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 45px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.footer-logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(46, 204, 113, 0.5);
}

.footer-logo-text h3 {
    color: transparent;
    background: linear-gradient(135deg, var(--primary-color), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-logo-text p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.brand-years {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.years-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.mission-text {
    color: #cccccc;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    flex: 1;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.counter-item,
.program-card,
.involvement-card {
    animation: fadeIn 1s ease-out;
}

/* Vision & Mission Section */
.vision-mission {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.vision-card,
.mission-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* President's Message */
.president-message {
    padding: 4rem 0;
}

.message-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.president-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.president-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
}

.message-text {
    padding: 2rem;
}

.message-text blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 4px solid var(--primary-color);
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: right;
    margin-top: 2rem;
}

/* Team Section */
.team {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.member-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 204, 113, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.member-card:hover .member-overlay {
    opacity: 1;
}

.member-social {
    display: flex;
    gap: 1rem;
}

.member-social a {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.member-social a:hover {
    background-color: var(--dark-color);
    color: white;
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-quote {
    font-style: italic;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .message-content {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .member-image {
        height: 250px;
    }

    /* Books Section Responsive */
    .books-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-card {
        margin: 0 1rem;
    }

    .book-image {
        height: 250px;
    }

    .book-info {
        padding: 1.5rem;
    }

    .books-cta {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .books-cta h3 {
        font-size: 1.5rem;
    }

    .books-cta p {
        font-size: 1rem;
    }

    .donate-books-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-card {
        margin: 0 0.5rem;
    }

    .book-image {
        height: 200px;
    }

    .book-info {
        padding: 1rem;
    }

    .book-info h3 {
        font-size: 1.2rem;
    }

    .book-description {
        font-size: 0.9rem;
    }

    .books-cta {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }

    .books-cta h3 {
        font-size: 1.3rem;
    }

    .books-cta p {
        font-size: 0.95rem;
    }

    .donate-books-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Animations */
.vision-card,
.mission-card,
.member-card {
    animation: fadeIn 1s ease-out;
}

.member-card:nth-child(1) {
    animation-delay: 0.1s;
}

.member-card:nth-child(2) {
    animation-delay: 0.2s;
}

.member-card:nth-child(3) {
    animation-delay: 0.3s;
}

.member-card:nth-child(4) {
    animation-delay: 0.4s;
}

.member-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Form Success/Error Messages */
.success-message,
.error-message {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

/* AI Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

#chatbot-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
    max-width: 320px;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

#chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.4);
}

#chatbot-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#chatbot-toggle:hover::before {
    left: 100%;
}

#chatbot-toggle i {
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.chatbot-text {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

#chatbot-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    height: 480px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    max-height: calc(100vh - 120px);
}

#chatbot-window.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

#chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: white;
    border: 1px solid #e0e0e0;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-content p {
    margin: 0 0 8px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 4px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

#chatbot-input-container {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
}

#chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#chatbot-input:focus {
    border-color: var(--primary-color);
}

#chatbot-send {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

#chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Quick Action Buttons */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-action-btn {
    background: #f0f8ff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal Styles for Get Books */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
}

.close:hover {
    color: var(--accent-color);
}

/* Responsive Design for Chatbot */
@media (max-width: 768px) {
    #chatbot-container {
        bottom: 15px;
        right: 15px;
    }

    #chatbot-toggle {
        padding: 12px 16px;
        max-width: 290px;
        min-width: 280px;
    }

    .chatbot-text {
        font-size: 13px;
    }

    #chatbot-window {
        width: 320px;
        height: 420px;
        right: 0;
        bottom: 80px;
        max-height: calc(100vh - 100px);
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #chatbot-toggle {
        max-width: 280px;
        min-width: 270px;
        padding: 10px 15px;
    }

    .chatbot-text {
        font-size: 11px;
        display: block !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #chatbot-window {
        width: 280px;
        right: -10px;
        height: 400px;
        bottom: 75px;
        max-height: calc(100vh - 90px);
    }
}
