:root {
    --bg-color: #f7fbff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #f97316;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blurs */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
}

.blue-blur {
    width: 600px;
    height: 600px;
    background: rgba(56, 189, 248, 0.5);
    top: -10%;
    left: -10%;
    animation: drift 20s infinite alternate ease-in-out;
}

.orange-blur {
    width: 500px;
    height: 500px;
    background: rgba(251, 146, 60, 0.5);
    bottom: -5%;
    right: -10%;
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    color: var(--text-main);
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Sections */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Video Card Specifics */
.thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.video-card:hover .thumbnail img {
    transform: scale(1.05);
}

.video-card:hover .play-icon {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services Grid */
.services-grid .card {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.services-grid .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Donate Banner */
.donate-banner {
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
}

.donate-banner h2 {
    margin-bottom: 1rem;
}

.donate-banner p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.submit-btn {
    width: 100%;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 4rem 5% 2rem;
    border-radius: 40px 40px 0 0;
    border-bottom: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-socials a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
        word-break: break-word;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
/* --- NEW COMPONENTS CSS --- */

/* Utility: Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    margin-bottom: 0;
}

/* Hero Split Layout */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 3rem;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    margin-left: 0;
    margin-right: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-media {
    flex: 1;
    max-width: 500px;
}

@keyframes floatUpAndDown {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-media .card {
    animation: floatUpAndDown 4s ease-in-out infinite;
}

/* Grids */
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    text-align: center;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Filters & Tabs */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-box input {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Tags & Chips */
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.chip {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.chip:hover {
    background: var(--primary);
    color: white;
}

/* Forms (Topic & Newsletter) */
.topic-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input, .topic-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.form-row input:focus, .topic-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.newsletter-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    border-radius: 20px;
    flex-wrap: wrap;
    gap: 2rem;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Services */
.service-card {
    padding: 2rem;
    text-align: left;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 15px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 15px;
}

.link-btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.link-btn:hover {
    text-decoration: underline;
}

/* Pricing / Donation Cards */
.pricing-grid {
    align-items: center;
}

.pricing-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: visible;
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pricing-card p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    min-height: 50px;
}

.pricing-card.popular {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.user-info h4 {
    margin: 0;
    font-size: 1rem;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Info & Forms */
.contact-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item .icon {
    font-size: 1.5rem;
    background: rgba(79, 70, 229, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--text-muted);
    margin: 0;
}

.map-placeholder {
    height: 200px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    border-radius: 20px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Social Grid */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    padding: 1rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--primary);
    color: white;
}

/* Footer layout updates */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsiveness overrides */
@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .pricing-card.popular {
        transform: none;
    }
}
/* Mobile Menu Styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary);
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .navbar {
        flex-direction: row !important; /* Override old rule */
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none !important; /* Hide by default */
        width: 100%;
        text-align: center;
        flex-direction: column;
        gap: 1.5rem !important;
        margin-top: 1.5rem;
    }
    
    .nav-btn {
        display: none !important;
        width: 100%;
        margin-top: 1rem;
    }
    
    .navbar.nav-active .nav-links {
        display: flex !important;
    }
    
    .navbar.nav-active .nav-btn {
        display: block !important;
    }
    
    .newsletter-box {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        min-width: 100%;
        width: 100%;
    }

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