/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --navy: #1e3a8a;
    --gold: #fbbf24;
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f97316;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #6b7280;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--navy), var(--gold));
    --gradient-secondary: linear-gradient(135deg, var(--green), var(--navy));
    --gradient-accent: linear-gradient(135deg, var(--red), var(--orange));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
    --navy: #1e40af;
    --gold: #f59e0b;
    --green: #16a34a;
    --red: #dc2626;
    --orange: #ea580c;
    --dark: #f1f5f9;
    --light: #0f172a;
    --gray: #94a3b8;
    --white: #1e293b;
    
    --gradient-primary: linear-gradient(135deg, #3b82f6, var(--gold));
    --gradient-secondary: linear-gradient(135deg, var(--green), #3b82f6);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--white);
    color: var(--navy);
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle i {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--white), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: var(--gold);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icons i:nth-child(1) { top: 20%; left: 10%; }
.floating-icons i:nth-child(2) { top: 10%; right: 20%; }
.floating-icons i:nth-child(3) { bottom: 30%; left: 20%; }
.floating-icons i:nth-child(4) { top: 50%; right: 10%; }
.floating-icons i:nth-child(5) { bottom: 10%; left: 40%; }
.floating-icons i:nth-child(6) { top: 30%; right: 40%; }

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--navy);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.vision-box {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
}

.vision-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.vision-box blockquote {
    font-style: italic;
    font-size: 1.2rem;
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray);
    font-weight: 500;
}

/* Activities Section */
.activities {
    padding: 5rem 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.activity-card[data-color="red"]::before {
    background: var(--gradient-accent);
}

.activity-card[data-color="blue"]::before {
    background: var(--gradient-primary);
}

.activity-card[data-color="green"]::before {
    background: var(--gradient-secondary);
}

.activity-card[data-color="gold"]::before {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.activity-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.activity-card[data-color="red"] .activity-icon {
    background: var(--gradient-accent);
}

.activity-card[data-color="blue"] .activity-icon {
    background: var(--gradient-primary);
}

.activity-card[data-color="green"] .activity-icon {
    background: var(--gradient-secondary);
}

.activity-card[data-color="gold"] .activity-icon {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
}

.activity-icon i {
    font-size: 2rem;
    color: var(--white);
}

.activity-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy);
}

.activity-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.activity-features span {
    background: var(--light);
    color: var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Development Durable Section */
.durable {
    padding: 5rem 0;
    background: var(--gradient-secondary);
    color: var(--white);
}

.durable-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.durable-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.durable-text ul {
    list-style: none;
}

.durable-text li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.durable-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.durable-visual {
    text-align: center;
}

.durable-visual i {
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.8;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--navy);
    width: 20px;
}

.contact-info h4 {
    margin: 2rem 0 1rem;
    color: var(--navy);
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--navy);
}

/* Impact Social Section */
.impact {
    padding: 5rem 0;
    background: var(--light);
}

.impact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.impact-stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.impact-stat:hover {
    transform: translateY(-5px);
}

.impact-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.impact-stat p {
    color: var(--gray);
    font-weight: 500;
}

.impact-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.program-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy);
}

.program-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Blog Section */
.blog {
    padding: 5rem 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--navy);
}

.blog-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--gold);
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: var(--light);
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--navy);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(251, 191, 36, 0.8));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.messaging-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.messaging-links h4 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* Dark theme styles */
[data-theme="dark"] {
    background-color: var(--light);
    color: var(--dark);
}

[data-theme="dark"] .navbar {
    background: rgba(30, 64, 175, 0.95);
}

[data-theme="dark"] .hero {
    background: var(--gradient-primary);
}

[data-theme="dark"] .about,
[data-theme="dark"] .impact,
[data-theme="dark"] .gallery {
    background: #0f172a;
}

[data-theme="dark"] .activities,
[data-theme="dark"] .blog,
[data-theme="dark"] .contact {
    background: #1e293b;
}

[data-theme="dark"] .activity-card,
[data-theme="dark"] .program-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .impact-stat {
    background: #334155;
    color: var(--dark);
}

[data-theme="dark"] .activity-card h3,
[data-theme="dark"] .program-card h3,
[data-theme="dark"] .blog-content h3,
[data-theme="dark"] .stat-item h3,
[data-theme="dark"] .impact-stat h3 {
    color: var(--dark);
}

[data-theme="dark"] .activity-card p,
[data-theme="dark"] .program-card p,
[data-theme="dark"] .blog-content p,
[data-theme="dark"] .stat-item p,
[data-theme="dark"] .impact-stat p {
    color: var(--gray);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-controls {
        gap: 0.5rem;
    }
    
    .theme-toggle {
        padding: 0.4rem;
        font-size: 1rem;
    }
    
    .impact-stats,
    .blog-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--navy);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-content,
    .durable-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .activity-card {
        padding: 1.5rem;
    }
}
