/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8; /* Light background for the body */
}

/* Container for sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Header and Navigation */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.logo {
    max-width: 120px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link a:hover {
    color: #f7a938;
}

.nav-cta a {
    background-color: #f7a938;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.nav-cta a:hover {
    background-color: #e59728;
}

/* Hero/CTA Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 150px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

/* Hero background grain effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)" /></svg>') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-button {
    display: inline-block;
    background-color: #f7a938;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button:hover {
    background-color: #e59728;
    transform: scale(1.05);
}

.cta-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Section Title Styles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #4a4a4a;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 40px;
}

/* General Section Styling */
.section-container {
    padding: 80px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-out forwards;
}

/* Services Section */
.services {
    background-color: #fff;
}

.service-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-description {
    color: #555;
}

/* About Section */
.about {
    background-color: #f0f4f8;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Challenges Section */
.challenges {
    background-color: #fff;
}

.challenges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.challenge-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.challenge-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.challenge-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a4a4a;
}

.challenge-description {
    color: #555;
    margin-top: 5px;
}

/* Process Section */
.process {
    background-color: #f0f4f8;
}

.process-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.process-card {
    position: relative;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.process-number {
    font-size: 3rem;
    font-weight: bold;
    color: #e0e0e0;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.8;
    z-index: 1;
}

.process-content {
    text-align: left;
    position: relative;
    z-index: 2;
}

.process-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4a4a4a;
}

.process-description {
    color: #555;
}

.process-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    color: #777;
}

.process-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.process-list li i {
    color: #28a745; /* Green color for checkmark */
    margin-right: 10px;
}

/* Impact/Stats Section */
.impact {
    background-color: #f0f4f8;
}

.impact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.impact-card {
    text-align: center;
    max-width: 300px;
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.impact-number {
    font-size: 3rem;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 10px;
}

.impact-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.impact-description {
    color: #777;
}

/* Toolkit Section (New) */
.toolkit {
    background-color: #fff;
}

.toolkit-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.tool-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tool-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

/* Override section-title and section-subtitle colors specifically for the contact section */
.contact .section-title,
.contact .section-subtitle {
    color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus, .form-textarea:focus {
    border-color: #f7a938;
}

.form-checkbox-group, .form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 10px; /* Indent the options */
}

.form-checkbox-group label, .form-radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    font-weight: 400;
}

.form-checkbox-group input[type="checkbox"],
.form-radio-group input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-radio-group input[type="radio"] {
    border-radius: 50%;
}

.form-checkbox-group input[type="checkbox"]:checked,
.form-radio-group input[type="radio"]:checked {
    background-color: #f7a938;
    border-color: #f7a938;
}

.form-checkbox-group input[type="checkbox"]:checked::before,
.form-radio-group input[type="radio"]:checked::before {
    content: '\2713'; /* Checkmark icon */
    display: block;
    color: white;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    position: relative;
    top: -2px;
}

.form-radio-group input[type="radio"]:checked::before {
    content: '\2003'; /* Checkmark icon */
    font-size: 25px;
    line-height: 0.5;
    top: -2px;
    left: -1px;
}

.submit-button {
    width: 100%;
    background-color: #f7a938;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #e59728;
}

.submit-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background-color: #333;
    color: #aaa;
    padding: 40px 20px;
    text-align: center;
}

.social-links a {
    color: #aaa;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #f7a938;
}

.footer p {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Modal/Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    color: white;
    animation: slideIn 0.5s ease-out forwards;
    max-height: 90vh; /* Make the modal scrollable on small screens */
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: white;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 1rem;
    margin-bottom: 15px;
}

.modal-context {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

/* Success Message Styles */
.success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    animation: successPulse 0.6s ease-out forwards;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.success-close-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.success-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f7a938;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .header {
        flex-direction: column;
    }
    .hero {
        padding-top: 200px; /* More space for stacked header */
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .form-checkbox-group, .form-radio-group {
        padding-left: 0;
    }
}