/* ============================================
   REBIRTH FAITH - INDEX PAGE STYLES
   Unified Color Scheme & Theme System
   ============================================ */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* CSS Variables - Unified Theme */
:root {
    /* Primary Colors - Church Inspired */
    --primary-bg: #3a3347;
    --secondary-bg: #f8f9fa;
    --accent: #7c3aed;
    --accent2: #6366f1;
    --accent3: #8b5cf6;
    --accent4: #a78bfa;
    --accent5: #c084fc;
    
    /* Text Colors */
    --text-main: #2C3E50;
    --text-light: #ffffff;
    --text-muted: #7F8C8D;
    
    /* UI Elements */
    --card-bg: #ffffff;
    --card-bg-hover: #ffffff;
    --card-blur: blur(10px);
    --border-color: rgba(0,0,0,0.1);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    
    /* Gradients - Church Palette */
    --gradient-primary: linear-gradient(135deg, #3a3347 0%, #4c4259 50%, #5e516b 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-tertiary: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-bg: #18141f;
    --secondary-bg: #23202a;
    --text-main: #f8f9fa;
    --text-muted: #a8a8a8;
    --card-bg: #2a2633;
    --card-bg-hover: #342f3f;
    --border-color: rgba(255,255,255,0.1);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.5);
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Smooth transitions for all elements */
* {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Body */
body {
    background: var(--secondary-bg);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Visible class triggers handled per section below */

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 90px;
    right: 30px;
    z-index: 999;
    background: var(--card-bg);
    backdrop-filter: var(--card-blur);
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-main);
    font-size: 1.3rem;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ============================================
   HERO SECTION - GathSession Design
   ============================================ */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40%;
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1));
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 35%;
    width: 2px;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1));
}

.hero-section nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.logo span:first-child {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-item .nav-link {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item .nav-link:hover {
    color: #fbbf24 !important;
}

.nav-links li:first-child a {
    color: var(--text-light);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.25rem;
}

.menu-icon {
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 5% 2rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-text p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 480px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    align-items: center;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,77,125,0.3);
}

.learn-more {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.learn-more:hover {
    gap: 1rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.hero-feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.08);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: var(--card-blur);
    transition: all 0.3s ease;
}

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

.hero-feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-feature-text {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-images {
    position: relative;
    height: 600px;
}

.avatar {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.avatar:hover {
    transform: scale(1.05);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar1 {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    border-radius: 100px;
    top: 10%;
    left: 10%;
}

.avatar2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    top: 5%;
    right: 20%;
}

.avatar3 {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    border-radius: 100px;
    bottom: 15%;
    left: 5%;
}

.avatar4 {
    width: 190px;
    height: 260px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border-radius: 95px;
    top: 35%;
    right: 25%;
}

.avatar5 {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    border-radius: 100px;
    bottom: 30%;
    left: 20%;
}

.avatar6 {
    width: 180px;
    height: 250px;
    background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
    border-radius: 90px;
    top: 20%;
    right: 5%;
}

/* ============================================
   TAGLINE SECTION
   ============================================ */
.tagline-section {
    background: var(--secondary-bg);
    padding: 80px 5%;
}

.tagline-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tagline-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.tagline-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.stat-card h2, .stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fbbf24;
}

.stat-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.stat-card p {
    font-size: 0.95rem;
    opacity: 0.95;
    color: rgba(255,255,255,0.9);
}

/* ============================================
   DAILY VERSE SECTION
   ============================================ */
.dailyVerse-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
}

.dailyverse-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.dailyVerse-intro h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.dailyVerse {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

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

.dailyVerse p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    font-weight: 600;
}

.dailyVerse h5 {
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    line-height: 1.8;
    font-style: italic;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 5%;
    background: var(--secondary-bg);
}

.features-section .text-center {
    margin-bottom: 50px;
}

.features-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.features-section > .container > .text-center > p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features-section .feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.features-section .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--card-bg-hover);
}

.features-section .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.features-section .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.features-section .feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

.features-section .feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* Service Accordion */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--card-bg);
}

.accordion-button {
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
    font-weight: 600;
    padding: 20px 25px;
    font-size: 1.1rem;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--card-bg-hover) !important;
}

.accordion-button i {
    margin-right: 15px;
    font-size: 1.5rem;
    color: #8b5cf6;
}

.accordion-body {
    padding: 25px;
    background: var(--secondary-bg);
}

.accordion-body p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   ARTICLE SECTION
   ============================================ */
.article-section {
    padding: 100px 5%;
    background: var(--secondary-bg);
}

.article-section h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 50px;
    text-align: center;
}

.article-detail {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 1;
}

/* Staggered animation for article cards */
.article-section .col-md-4:nth-child(1) .article-detail { animation-delay: 0.1s; }
.article-section .col-md-4:nth-child(2) .article-detail { animation-delay: 0.2s; }
.article-section .col-md-4:nth-child(3) .article-detail { animation-delay: 0.3s; }
.article-section .col-md-4:nth-child(4) .article-detail { animation-delay: 0.4s; }
.article-section .col-md-4:nth-child(5) .article-detail { animation-delay: 0.5s; }
.article-section .col-md-4:nth-child(6) .article-detail { animation-delay: 0.6s; }

/* Activate animation when visible */
section.visible .article-detail {
    animation-play-state: running !important;
}

.article-detail:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.article-detail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-detail:hover img {
    transform: scale(1.1);
}

.article-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.article-detail:hover .article-image {
    transform: scale(1.1);
}

.article-catigory-Date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-catigory-Date h5 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0;
}

.article-detail h3 {
    padding: 0 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.article-detail > p {
    padding: 0 20px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.article-detail a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.article-detail a:hover {
    color: #6366f1;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonial-section {
    padding: 100px 5%;
    background: var(--secondary-bg);
}

.testimonial-section .text-center {
    margin-bottom: 50px;
}

.testimonial-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.testimonial-section > .container > .text-center > p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    animation: scaleIn 0.8s ease forwards;
    opacity: 1;
}

/* Staggered animation for testimonial cards */
.testimonial-section .col-md-4:nth-child(1) .testimonial-card { animation-delay: 0.1s; }
.testimonial-section .col-md-4:nth-child(2) .testimonial-card { animation-delay: 0.2s; }
.testimonial-section .col-md-4:nth-child(3) .testimonial-card { animation-delay: 0.3s; }

/* Activate animation when visible */
section.visible .testimonial-card {
    animation-play-state: running !important;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: #8b5cf6;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.author-info h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.author-info p {
    margin: 5px 0 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */
.community-section {
    padding: 100px 5%;
    background: var(--secondary-bg);
    position: relative;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.community-intro {
    text-align: center;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.community-intro h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    animation: fadeIn 0.8s ease forwards;
    opacity: 1;
}

.community-intro p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 1;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

.community-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 1;
}

/* Staggered animation for cards */
.community-card:nth-child(1) { animation-delay: 0.1s; }
.community-card:nth-child(2) { animation-delay: 0.2s; }
.community-card:nth-child(3) { animation-delay: 0.3s; }
.community-card:nth-child(4) { animation-delay: 0.4s; }
.community-card:nth-child(5) { animation-delay: 0.5s; }
.community-card:nth-child(6) { animation-delay: 0.6s; }

/* Activate animation when visible */
section.visible .community-card {
    animation-play-state: running !important;
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.community-card:hover::before {
    transform: scaleX(1);
}

.community-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.community-image {
    height: 200px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.community-icon-overlay {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.community-card:hover .community-icon-overlay {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.15) rotate(5deg);
}

.community-icon-overlay i {
    font-size: 2.8rem;
    color: white;
}

.community-content {
    padding: 35px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.community-content h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.community-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
    flex: 1;
}

.community-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.community-btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.community-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
}

.community-btn:hover::after {
    transform: translateX(5px);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 100px 5%;
    background: var(--secondary-bg);
}

.faq-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.faq-content-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 40px;
    text-align: center;
}

.faq-content {
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-content:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    background: var(--card-bg);
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--card-bg-hover);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #8b5cf6;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid white;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-primary {
    background: white;
    color: #6366f1;
}

.btn-cta-primary:hover {
    background: transparent;
    color: white;
    transform: scale(1.05);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
}

.btn-cta-secondary:hover {
    background: white;
    color: #6366f1;
    transform: scale(1.05);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    padding: 100px 5%;
    background: var(--secondary-bg);
}

.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.newsletter-wrapper p {
    color: var(--text-muted);
}

.newsletter-form {
    margin-top: 40px;
}

.newsletter-form .input-group {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.newsletter-form button {
    padding: 15px 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations */
.feature-card,
.testimonial-card,
.article-detail,
.community-card {
    animation: fadeInUp 0.6s ease-out;
}

.hero-feature-card {
    animation: slideInRight 0.8s ease-out;
}

.stat-card {
    animation: fadeInUp 0.5s ease-out;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--gradient-primary);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 30px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 15px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-links a:hover::before {
    left: 100%;
}

.mobile-nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.mobile-nav-links li:first-child a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
}

.mobile-menu-footer {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
}

.mobile-menu-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-images {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-icon {
        display: block;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .menu-icon:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-features {
        flex-direction: column;
    }

    .hero-images {
        height: 400px;
    }

    .avatar {
        transform: scale(0.7);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .theme-toggle {
        top: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .tagline-content h2,
    .features-section h2,
    .testimonial-section h2,
    .community-section h2,
    .article-section h4,
    .category-section h4,
    .faq-content-wrapper h2 {
        font-size: 2rem;
    }

    .stat-card h2, .stat-card h3 {
        font-size: 2.5rem;
    }
}

/* ============================================
   ADDITIONAL DARK MODE IMPROVEMENTS
   ============================================ */

/* Contact Section Dark Mode */
.contact-section .contact-content-wrapper {
    background: var(--card-bg);
    color: var(--text-main);
}

.contact-section input,
.contact-section textarea {
    background: var(--input-bg);
    color: var(--text-main);
    border-color: var(--input-border);
}

.contact-section .getInTouch-details i {
    color: var(--accent);
}

.contact-section .getInTouch-details h4 {
    color: var(--text-main);
}

.contact-section .getInTouch-details p {
    color: var(--text-muted);
}

/* Mission, Values, Team Sections Dark Mode */
.mission-section,
.values-section,
.team-section {
    background: var(--secondary-bg);
}

.value-content,
.team-content {
    background: var(--card-bg);
    border-color: var(--border-color);
}

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

.value-content h6,
.team-content h5 {
    color: var(--text-main);
}

.value-content p,
.team-content p,
.team-content h6 {
    color: var(--text-muted);
}

.teamName-abbv {
    background: var(--gradient-accent);
    color: var(--text-light);
}

/* Privacy Policy Dark Mode */
.privacy-section {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.privacy-section h2,
.privacy-section h3 {
    color: var(--text-main);
    border-bottom-color: var(--accent2);
}

.privacy-section p,
.privacy-section li {
    color: var(--text-muted);
}

.privacy-section strong {
    color: var(--text-main);
}

/* Articles Page Dark Mode */
.article-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.article-title {
    color: var(--text-main);
}

.article-excerpt {
    color: var(--text-muted);
}

.article-meta {
    color: var(--text-muted);
    border-top-color: var(--border-color);
}

.filter-btn {
    background: var(--card-bg);
    color: var(--text-main);
    border-color: var(--border-color);
}

/* Forum Search Dark Mode */
.forum-search input {
    background: var(--input-bg);
    color: var(--text-main);
    border-color: var(--input-border);
}

.forum-search input::placeholder {
    color: var(--text-muted);
}

/* Enhanced Card Hover States for Dark Mode */
[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .article-detail:hover,
[data-theme="dark"] .testimonial-card:hover {
    background: var(--card-bg-hover);
}

/* Ensure all headings respect theme */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-main);
}

/* Ensure all text respects theme */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li {
    color: var(--text-main);
}

/* Button hover states for dark mode */
[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

[data-theme="dark"] .theme-toggle {
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

/* Error pages dark mode improvements */
.header-404,
.header-error {
    background: var(--gradient-primary);
}

/* Bootstrap Override for Dark Mode */
[data-theme="dark"] .modal-content {
    background: var(--card-bg);
    color: var(--text-main);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-main);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--card-bg-hover);
}

/* Smooth theme transitions */
body,
.card,
.article-detail,
.testimonial-card,
.feature-card,
.stat-card,
.value-content,
.team-content,
input,
textarea,
select,
button {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}
