@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Theme */
:root {
    --background: #ffffff;
    --foreground: #1a1a1a;
    --primary: #ff0000;
    --primary-foreground: #ffffff;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --border: #e5e5e5;
    --card: #ffffff;
    --accent: #ff0000;
}

[data-theme="dark"] {
    --background: #0f0f0f;
    --foreground: #f2f2f2;
    --primary: #ff0000;
    --primary-foreground: #ffffff;
    --muted: #1a1a1a;
    --muted-foreground: #999999;
    --border: #262626;
    --card: #141414;
    --accent: #ff0000;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes count-up {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fade-in 0.6s ease-out;
}

.scale-in {
    animation: scale-in 0.5s ease-out;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #e60000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 0, 0, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.badge-outline {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary);
}

.separator {
    margin: 0 0.5rem;
    color: var(--muted-foreground);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background-color: rgba(15, 15, 15, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), #e60000);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--muted);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--background), var(--muted));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 1rem 0;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin: 1rem 0;
    max-width: 500px;
}

.hero-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 1rem 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.05));
    border-radius: 1.5rem;
    filter: blur(3rem);
    z-index: -1;
}

.hero-image img {
    width: 24rem;
    height: 24rem;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

/* About Section */
.about-section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.section-header.centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header.centered p {
    max-width: 600px;
    margin: 1rem auto 0;
}

.quick-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.fact-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: rgba(245, 245, 245, 0.3);
    border: 1px solid var(--border);
}

.fact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.fact-content h3 {
    font-weight: 600;
    color: var(--foreground);
}

.fact-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 20rem;
    height: 20rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    background-color: rgba(245, 245, 245, 0.3);
}

[data-theme="dark"] .stats-section {
    background-color: rgba(26, 26, 26, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--card), var(--muted));
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    font-family: 'Outfit', sans-serif;
}

.stat-label p {
    margin: 0.25rem 0;
}

.stat-label strong {
    color: var(--foreground);
}

.stat-label p:not(:has(strong)) {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Topics Section */
.topics-section {
    padding: 6rem 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.topic-card {
    background: linear-gradient(135deg, var(--card), var(--muted));
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.topic-card:hover h3 {
    color: var(--primary);
}

.topic-card:hover .learn-more {
    opacity: 1;
}

.topic-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.topic-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.topic-card p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.learn-more {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Featured Section */
.featured-section {
    padding: 6rem 0;
    background-color: rgba(245, 245, 245, 0.3);
}

[data-theme="dark"] .featured-section {
    background-color: rgba(26, 26, 26, 0.3);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-link {
    text-align: center;
}

/* Resources Section */
.resources-section {
    padding: 6rem 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: linear-gradient(135deg, var(--card), var(--muted));
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}

.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.resource-card p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: rgba(245, 245, 245, 0.3);
}

[data-theme="dark"] .contact-section {
    background-color: rgba(26, 26, 26, 0.3);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--foreground);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background-color: var(--background);
    padding: 4rem 0;
    text-align: center;
}

.footer p {
    color: var(--muted-foreground);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-image img,
    .about-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .quick-facts {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .topics-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
