:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --grey-color: #6c757d;
    --white-color: #fff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --border-color: #dee2e6;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
}

.underline {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

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

.btn-contact {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
}

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

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-subscribe {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.btn-subscribe:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* Header Styles */
header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu li a {
    color: var(--dark-color);
    font-weight: 500;
}

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

.menu-toggle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    margin-top: 80px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h2 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
    margin-top: 2rem;
}

.highlight {
    display: flex;
    align-items: center;
}

.highlight i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.highlight span {
    font-weight: 500;
}

/* Purpose Section (New) */
.purpose {
    background-color: var(--white-color);
}

.purpose-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-gap: 3rem;
    align-items: center;
}

.purpose-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.purpose-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
}

.purpose-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.purpose-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.purpose-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.purpose-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
}

.service-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Testimonials Section */
.testimonial-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
}

.testimonial {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial .quote {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.client {
    display: flex;
    align-items: center;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.client-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.client-info p {
    font-size: 0.9rem;
    font-style: normal;
    color: var(--grey-color);
    margin: 0;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 3rem;
}

.contact-info {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    color: var(--white-color);
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
}

.contact-form {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group select {
    height: 40px;
}

.form-group textarea {
    resize: vertical;
}

.alert {
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
}

/* Newsletter Section */
.newsletter {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 3rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #ccc;
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-width: 150px;
    margin-top: 10px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after,
.footer-services h4:after,
.footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-services ul li {
    color: #ccc;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-left: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--dark-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white-color);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .purpose-cards {
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        background: var(--white-color);
        flex-direction: column;
        width: 100%;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .about-content,
    .purpose-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .purpose-image {
        order: -1;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 576px) {
    .services-grid,
    .testimonial-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 10px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
}
/* Additional CSS to enhance mobile responsiveness */

/* Make images more responsive */
.about-image img, 
.purpose-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Purpose section mobile improvements */
@media screen and (max-width: 768px) {
    .purpose-cards {
        grid-template-columns: 1fr;
        grid-gap: 1.5rem;
    }
    
    .purpose-card {
        max-width: 100%;
    }
    
    /* Improve form on small screens */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for stacked footer content */
    .footer-content > div {
        margin-bottom: 2rem;
    }
    
    .footer-contact:last-child {
        margin-bottom: 0;
    }
    
    /* Improve contact info layout on mobile */
    .info-item {
        margin-bottom: 2rem;
    }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* Better padding on small screens */
    section {
        padding: 3rem 0;
    }
    
    /* Adjust service cards for very small screens */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card .icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}