/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333; /* Standard text color */
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1a1a1a; /* Darker color for headings */
}

/* Custom colors for the book theme */
:root {
    --primary-color: #4A90E2; /* A calming blue, reminiscent of sky or deep water */
    --secondary-color: #7ED321; /* A fresh green, like new leaves */
    --accent-color: #F5A623; /* A warm orange, like a cozy reading lamp */
    --dark-bg-color: #2c3e50; /* Deep blue-grey, like a library at night */
    --light-bg-color: #f0f4f7; /* Soft grey-blue, airy */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #6c757d;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-primary:hover {
    background-color: #357ABD; /* Slightly darker blue */
    border-color: #357ABD;
}

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-info { background-color: #6C757D !important; } /* Using a muted grey for info stat card */
.bg-success { background-color: #5cb85c !important; } /* Standard success green for one stat card */

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('media/media/education_the_of_concept_trees_of_books_on_pictures_represented_knowledge_by_is_growth_the.jpg') no-repeat center center / cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--text-light);
    padding-top: 90px; /* Adjust for fixed navbar */
}
.navbar-toggler{
    background-color: #F5A623;
}
.hero-section .navbar {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background for navbar */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-section .navbar-brand,
.hero-section .nav-link {
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-section .navbar-brand:hover,
.hero-section .nav-link:hover {
    color: var(--accent-color);
}

.hero-section .logo-img {
    height: 40px;
    vertical-align: middle;
    margin-right: 5px;
}

.hero-content {
    z-index: 1;
    position: relative;
    padding-bottom: 50px; /* Space for feature cards */
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3.5rem; /* Larger font for hero title */
}

.hero-content p.lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.feature-card i {
    color: var(--accent-color);
}

/* About Section */
.about-section {
    background-color: var(--light-bg-color);
    color: var(--text-dark);
}

.team-member-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.team-member-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.team-member-card blockquote {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 15px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

/* Services Section */
.services-section {
    background-color: var(--dark-bg-color);
    color: var(--text-light);
}

.services-section h2 {
    color: var(--text-light);
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-item i {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-item h4 {
    color: var(--text-light);
}

.service-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Goodreads App Section */
.goodreads-app-section {
    background-color: var(--light-bg-color);
    color: var(--text-dark);
}

.goodreads-app-section img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.goodreads-features-list {
    list-style: none;
    padding-left: 0;
}

.goodreads-features-list li {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.goodreads-features-list li i {
    color: var(--primary-color);
}

/* App Developer Section */
.app-developer-section {
    background-color: var(--text-light);
    color: var(--text-dark);
}

.app-developer-section .developer-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.app-developer-section .goodreads-logo-img {
    max-width: 300px; /* Adjust as needed */
    height: auto;
}

/* Features Section (Goodreads App Features) */
.features-section {
    background-color: var(--dark-bg-color);
    color: var(--text-light);
    position: relative;
    overflow: hidden; /* For the dimming effect */
}

.features-section h2 {
    color: var(--text-light);
}

.features-grid {
    position: relative;
}

.features-grid .feature-item {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.features-grid:hover .feature-item:not(:hover) {
    opacity: 0.4; /* Dim other items on hover */
}

.features-grid .feature-item:hover {
    opacity: 1;
    transform: translateY(-5px); /* Lift selected item */
    z-index: 2;
}

.feature-content {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.features-grid .feature-item:hover .feature-content {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-content i {
    color: var(--accent-color);
}

.feature-content h5 {
    color: var(--text-light);
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* Stats Section */
.stats-section {
    background-color: var(--light-bg-color);
    color: var(--text-dark);
}

.stat-card {
    border-radius: 10px !important;
    padding: 2rem !important;
    color: var(--text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-number {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--text-light);
    color: var(--text-dark);
}

.process-diagram {
    position: relative;
}

.process-step {
    position: relative;
    padding: 20px;
    background-color: var(--light-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.step-number-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Connecting lines for How It Works - only for larger screens */
.navbar-nav{
    flex-wrap: wrap;
    gap: 15px;
    justify-content: end;
}


/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-bg-color);
    color: var(--text-dark);
}

.testimonial-card {
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

/* FAQ Section */
.faq-section {
    background-color: var(--dark-bg-color);
    color: var(--text-light);
}

.faq-section h2 {
    color: var(--text-light);
}

.faq-bubble {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: var(--text-light);
}

.faq-bubble:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.modal-content {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 10px;
}

.modal-header {
    border-bottom: 1px solid var(--light-bg-color);
}

.modal-title {
    color: var(--primary-color);
}

/* Stay Updated Form Section */
.stay-updated-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('media/media/dark___on_wooden_books_ancient_old_background.jpg') no-repeat center center / cover;
    color: var(--text-light);
    padding-top: 80px;
    padding-bottom: 80px;
}

.newsletter-form {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.newsletter-form .form-label {
    color: var(--text-light);
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(245, 166, 35, 0.25); /* Accent color glow */
    color: var(--text-light);
}

.newsletter-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.newsletter-form .form-text {
    font-size: 0.85em;
}


/* Footer Section */
.footer-section {
    background-color: var(--dark-bg-color);
    color: var(--text-light);
    width: 100%;
    z-index: 1000;
}

.footer-section .footer-brand {
    font-weight: 600;
}

.footer-section .logo-img-footer {
    height: 30px;
    vertical-align: middle;
}

.footer-section .text-white-50:hover {
    color: var(--accent-color) !important;
}

.footer-section .form-select {
    width: auto;
    min-width: 120px;
    color: var(--text-light);
}

/* Floating Action Button (FAB) */
.btn-fab {
    position: fixed; /* Make it float */
    bottom: 25px; /* Distance from bottom */
    right: 25px; /* Distance from right */
    width: 55px; /* Slightly larger for better tap target */
    height: 55px;
    display: none; /* Hidden by default, shown by JS on scroll */
    justify-content: center;
    align-items: center;
    font-size: 1.8rem; /* Larger icon */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 1050; /* Ensure it's above everything */
}

.btn-fab:hover {
    background-color: #357ABD;
    transform: translateY(-5px); /* Lift more on hover */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p.lead {
        font-size: 1rem;
    }
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.85);
        border-radius: 0 0 10px 10px;
        padding-bottom: 10px;
    }
    .navbar-nav .nav-item {
        text-align: center;
    }
    .footer-section .container {
        flex-direction: column;
    }
    .footer-section .footer-links,
    .footer-section .footer-utilities {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .btn-fab {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .process-step::after {
        display: none; /* Hide connecting lines on small screens */
    }
}

/* Utility classes */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.mb-5 {
    margin-bottom: 3rem !important;
}
.mt-5 {
    margin-top: 3rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.me-3 {
    margin-right: 1rem !important;
}
.text-center {
    text-align: center !important;
}
.text-white {
    color: #fff !important;
}
.text-muted {
    color: var(--text-muted) !important;
}
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}
.rounded {
    border-radius: 0.375rem !important;
}
.rounded-circle {
    border-radius: 50% !important;
}
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
.d-flex {
    display: flex !important;
}
.justify-content-center {
    justify-content: center !important;
}
.align-items-center {
    align-items: center !important;
}
.flex-column {
    flex-direction: column !important;
}
.flex-md-row {
    flex-direction: column !important;
}
@media (min-width: 768px) {
    .flex-md-row {
        flex-direction: row !important;
    }
}
.order-md-1 {
    order: 1;
}
.order-md-2 {
    order: 2;
}
.w-100 {
    width: 100% !important;
}
.p-4 {
    padding: 1.5rem !important;
}
.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}
.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}/* Wrapper for general content, providing padding */
.regShieldWrap {
    padding-top: 60px; /* Top padding for the content area */
    padding-bottom: 60px; /* Bottom padding for the content area */
    padding-left: 15px; /* Left padding for the content area */
    padding-right: 15px; /* Right padding for the content area */
    max-width: 1200px; /* Max width to keep content readable */
    margin-left: auto; /* Center the wrapper */
    margin-right: auto; /* Center the wrapper */
}

/* General heading styles within regShieldWrap */
.regShieldWrap h1 {
    font-size: 2.5rem; /* Moderate size for main headings */
    margin-top: 1.5em; /* Top margin for headings */
    margin-bottom: 0.8em; /* Bottom margin for headings */
    line-height: 1.2; /* Line height for readability */
    font-weight: 700; /* Bold font weight */
    color: var(--text-dark); /* Inherit dark text color */
}

.regShieldWrap h2 {
    font-size: 2rem; /* Slightly smaller for sub-headings */
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-dark);
}

.regShieldWrap h3 {
    font-size: 1.75rem; /* Standard section titles */
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
}

.regShieldWrap h4 {
    font-size: 1.5rem; /* Smaller sub-titles */
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-dark);
}

.regShieldWrap h5 {
    font-size: 1.25rem; /* Even smaller, for minor titles or card titles */
    margin-top: 1em;
    margin-bottom: 0.4em;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-dark);
}

/* Paragraph styles within regShieldWrap */
.regShieldWrap p {
    font-size: 1rem; /* Standard body text size */
    margin-bottom: 1em; /* Space between paragraphs */
    line-height: 1.7; /* Generous line height for readability */
    color: var(--text-dark); /* Inherit dark text color */
}

/* Unordered list styles within regShieldWrap */
.regShieldWrap ul {
    list-style: disc; /* Default disc bullet */
    margin-bottom: 1em; /* Space after the list */
    padding-left: 20px; /* Indent for list items */
    color: var(--text-dark); /* Inherit dark text color */
}

/* List item styles within regShieldWrap */
.regShieldWrap li {
    font-size: 1rem; /* Same size as paragraph text */
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.7; /* Consistent line height */
    color: var(--text-dark); /* Inherit dark text color */
}

/* Responsive adjustments for regShieldWrap padding */
@media (max-width: 767.98px) {
    .regShieldWrap {
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .regShieldWrap h1 {
        font-size: 2rem;
    }
    .regShieldWrap h2 {
        font-size: 1.75rem;
    }
    .regShieldWrap h3 {
        font-size: 1.5rem;
    }
    .regShieldWrap h4 {
        font-size: 1.25rem;
    }
    .regShieldWrap h5 {
        font-size: 1.1rem;
    }
    .regShieldWrap p,
    .regShieldWrap li {
        font-size: 0.95rem;
    }
}
