@import url("form.css");

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --background-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Navigation Styles */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin: 0 3px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: var(--light-gray);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background-color: var(--light-gray);
    color: var(--accent-color);
    padding-left: 25px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-container form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.form-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* Page Content Styles */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 70px 0 40px;
    line-height: 1.6;
}

.main-content {
    max-width: 1200px;
    padding: 40px 20px;
    width: 100%;
}

h1 {
    color: var(--primary-color);
    font-weight: 300;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    color: var(--primary-color);
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

h3 {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Hero Section for Home Page */
.hero {
    text-align: center;
    padding: 60px 40px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Section Styles */
.section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Team Cards */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.card-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
}

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

.team-card:hover .card-photo img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-name {
    margin: 0 0 8px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.card-role {
    color: var(--accent-color);
    font-weight: 500;
    margin: 0 0 15px;
    font-size: 0.95rem;
}

.card-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Donation Section */
.donation-section {
    text-align: center;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-top: 30px;
}

.donation-section h2 {
    border-bottom: none;
    margin-top: 0;
}

.donation-buttons {
    margin: 30px 0;
}

.donation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffdd00;
    color: #000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.donation-btn:hover {
    background-color: #f5c800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.4);
}

.donation-btn img {
    height: 24px;
    width: auto;
}

.donation-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-item {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.faq-item h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-item p {
    margin: 10px 0 0;
    color: var(--text-light);
}

/* Survey Section */
.survey-section {
    text-align: center;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin: 20px 0;
}

.survey-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.survey-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Contact Link */
.contact-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-hover);
}

/* Resource Links */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.resource-list li {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.resource-list li:hover {
    background-color: #eee;
    transform: translateX(5px);
}

.resource-icon {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 15px;
}

.resource-name {
    flex: 1;
    font-weight: 500;
}

.download-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

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

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    padding: 15px;
    margin: 0;
    text-align: center;
    background-color: var(--white);
    font-weight: 500;
}

/* GitHub Section */
.github-section {
    text-align: center;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-top: 20px;
}

.github-btn {
    display: inline-block;
    background-color: #24292e;
    color: var(--white);
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.github-btn:hover {
    background-color: #1a1e22;
    transform: translateY(-2px);
}

/* Links List */
.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.links-list li:last-child {
    border-bottom: none;
}

.links-list a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links-list a:hover {
    color: var(--accent-hover);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form-section,
.contact-info {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-self: start;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.info-card {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.info-card p {
    margin: 0;
    color: var(--text-light);
}

.info-card a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--accent-hover);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer p {
    margin: 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 15px 20px;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        display: none;
        width: 100%;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:active .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        text-align: center;
        padding: 12px 20px;
    }

    .dropdown-link:hover {
        padding-left: 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 25px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Cards Grid - Responsive */
    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    /* Team Cards - Responsive */
    .team-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .card-photo {
        height: 180px;
    }

    .resource-list li {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .resource-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .submit-btn {
        width: 100%;
    }

    .main-content {
        padding: 20px 15px;
    }

    .form-container {
        padding: 10px;
    }

    .form-container form {
        padding: 25px 20px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .survey-section {
        padding: 20px;
    }

    .survey-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .donation-section {
        padding: 30px 20px;
    }

    .donation-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 30px 15px;
    }

    .form-container form {
        padding: 20px 15px;
    }

    .section {
        padding: 20px 15px;
    }
}
