:root {
    --primary-color: #4CAF50;
    --secondary-color: #45a049;
    --text-color: #333;
    --background-color: #f9f9f9;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    padding: 1rem 0;
    margin-bottom: 2rem;
    width: 100%;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav ul li a {
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    margin: 0 auto 3rem;
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0% 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-features {
    margin: 3rem 0;
}

.hero-features ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-features ul li {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
}

/* Featured video section */
.video-wrapper {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem;
    max-width: 800px;
    margin: 2rem auto;
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .featured-video {
        margin: 1rem auto;
    }
}

/* Project grid */
.featured-projects {
    padding: 3rem 0;
}

.section-intro {
    text-align: center;
    margin-bottom: 2rem;
}

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

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.project-card h3 {
    padding: 1rem;
    margin: 0;
}

.project-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

.project-card .btn {
    display: block;
    text-align: center;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 1rem;
}

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

footer {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    color: white;
}

.projects-list {
    padding: 2rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem;
}

.difficulty, .time {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.project-count {
    display: block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.categories h2 {
    text-align: center;
    margin: 2rem 0;
}

.share-project {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.project-filter {
    text-align: center;
    margin: 2rem 0;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.community-project {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.community-project:hover {
    transform: translateY(-5px);
}

.community-project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-author {
    color: var(--primary-color);
    font-weight: bold;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.mission {
    text-align: center;
    margin-bottom: 4rem;
}

.mission p {
    max-width: 800px;
    margin: 1rem auto;
}

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

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-section {
    text-align: center;
    margin: 4rem 0;
}

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

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.role {
    color: var(--primary-color);
    font-weight: bold;
    margin: 0.5rem 0;
}

.contact-section {
    text-align: center;
    margin: 4rem 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-info p {
    margin: 1rem 0;
}

.featured-video {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.about-summary {
    text-align: center;
    padding: 3rem 0;
    background-color: #f9f9f9;
    margin: 2rem 0;
    border-radius: 8px;
}

.cta-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    nav {
        padding: 0.5rem 1rem;
    }
    
    nav ul {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        width: 100%;
        padding: 1rem 0;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-features ul {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features ul li {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-wrapper {
        flex-direction: column;
    }
}
