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

:root {
    --civicore-dark-blue: #1a237e;
    --civicore-purple: #5e35b1;
    --civicore-light-blue: #7986cb;
    --civicore-white: #ffffff;
    --civicore-light-gray: #f5f5f5;
    --civicore-dark-gray: #333333;
    --civicore-medium-gray: #666666;
    --civicore-border-gray: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--civicore-dark-gray);
    background-color: var(--civicore-white);
}

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

/* Navigation */
.navbar {
    background-color: var(--civicore-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    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-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--civicore-dark-blue);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--civicore-dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--civicore-dark-gray);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-title-link {
    text-decoration: none; /* This is the key property */
    color: inherit;      /* Optional: Ensures the link inherits the text color of its parent,
                            rather than the default blue link color. Adjust as needed. */
}

/* Optional: If you want an underline only on hover */
.nav-title-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(94, 53, 177, 0.8) 100%), 
                url('hero-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--civicore-white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

/* Fallback for browsers that don't support background-attachment: fixed */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

/* Additional overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.3);
    z-index: 1;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--civicore-white);
    color: var(--civicore-purple);
}

.btn-primary:hover {
    background-color: var(--civicore-light-gray);
    transform: translateY(-2px);
}

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

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

.btn-full {
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--civicore-dark-blue);
    margin-bottom: 20px;
    font-weight: bold;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--civicore-medium-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Purpose Section */
.purpose {
    padding: 80px 0;
    background-color: var(--civicore-light-gray);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.challenge-card {
    background-color: var(--civicore-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.challenge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--civicore-purple), var(--civicore-light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

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

.challenge-card h3 {
    font-size: 1.5rem;
    color: var(--civicore-dark-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--civicore-white);
}

.workflow-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.workflow-image {
    text-align: center;
}

.workflow-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--civicore-purple), var(--civicore-light-blue));
    color: var(--civicore-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    color: var(--civicore-dark-blue);
    margin-bottom: 8px;
    font-weight: bold;
}

.step-content p {
    color: var(--civicore-medium-gray);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--civicore-light-gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background-color: var(--civicore-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--civicore-purple), var(--civicore-light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 1.75rem;
    color: var(--civicore-white);
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: var(--civicore-dark-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--civicore-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background-color: var(--civicore-light-gray);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #ffd700;
    font-size: 1.125rem;
}

.testimonial-card h4 {
    font-size: 1.25rem;
    color: var(--civicore-dark-blue);
    margin-bottom: 5px;
    font-weight: bold;
}

.testimonial-title {
    color: var(--civicore-purple);
    font-weight: 600;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--civicore-medium-gray);
    line-height: 1.6;
    font-style: italic;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--civicore-light-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-form-card,
.contact-info-card {
    background-color: var(--civicore-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-card h3,
.contact-info-card h3 {
    font-size: 1.5rem;
    color: var(--civicore-dark-blue);
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-form-card p,
.contact-info-card p {
    color: var(--civicore-medium-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--civicore-dark-blue);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--civicore-border-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

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

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: var(--civicore-purple);
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item span {
    color: var(--civicore-dark-gray);
    font-weight: 500;
}

.contact-address p {
    margin: 0;
    color: var(--civicore-dark-gray);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--civicore-dark-blue);
    color: var(--civicore-white);
    padding: 60px 0 20px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 24px;
    font-weight: bold;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-links,
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--civicore-white);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--civicore-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .workflow-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .challenge-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-container {
        padding: 0 15px;
    }

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

    .section-header h2 {
        font-size: 1.75rem;
    }

    .challenge-card,
    .benefit-card,
    .testimonial-card,
    .contact-form-card,
    .contact-info-card {
        padding: 30px 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form Message format */
.success-message {
    margin-top: 10px;
    color: green;
    font-weight: bold;
}
.error-message {
    margin-top: 10px;
    color: red;
    font-weight: bold;
}
