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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f6fa;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.nav-links {
    display: flex;
    list-style: none;
    position: relative;
    z-index: 2;
}

.nav-links li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-weight: 600;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
}

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

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

/* Hero Section */
.hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/hero.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    overflow: hidden;
}


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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #c0392b;
}

/* About Section */
.about {
    padding: 5rem 5%;
    background: var(--light-gray);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.stat {
    text-align: center;
    padding: 1rem;
}

.stat i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    padding: 5rem 5%;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.service-card {
    padding: 2rem;
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    color: var(--text-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Service Detail Sections */
.service-detail {
    padding: 3rem 5%;
    background: var(--light-gray);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: flex-start;
}

.service-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    min-height: 100%;
}

.service-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.service-description {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-description h3 {
    color: var(--secondary-color);
    margin: 0 0 1rem;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.service-description ul {
    list-style: none;
    padding-left: 0;
}

.service-description ul li {
    margin: 0.75rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.service-description ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* File links in service sections */
.service-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.service-content a:hover {
    background-color: var(--light-gray);
}

.service-content .icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.service-content .file-name {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Team Section */
.team {
    padding: 5rem 5%;
    background: var(--light-gray);
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.team-member {
    text-align: center;
}

.member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact {
    padding: 3rem 5%;
    background: var(--white);
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    height: fit-content;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.info-item p {
    margin: 0;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.submit-button {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: #c0392b;
}

.contact-info .info-item a {
    color: inherit;
    text-decoration: none;
}

.contact-info .info-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 5% 1rem;
}

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

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    line-height: 2;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .about,
    .services,
    .team,
    .contact,
    .service-detail {
        padding: 2rem 1rem;
    }

    .about-content,
    .services-grid,
    .team-grid {
        gap: 1.5rem;
    }

    .service-card,
    .team-member {
        padding: 1.5rem;
    }

    .service-content {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
    }

    .service-description {
        gap: 1rem;
    }

    .contact-container {
        gap: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s;
        overflow-y: auto;
        z-index: 1000;
    }

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

    .nav-links li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        display: block;
        font-size: 1.1rem;
    }

    /* Hamburger animation */
    .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(5px, -5px);
    }

    .hero {
        height: 50vh;
        min-height: 300px;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 2rem 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .info-item {
        gap: 0.75rem;
    }

    .info-item i {
        font-size: 1.25rem;
    }

    .service-detail {
        padding: 2rem 1rem;
    }

    .service-content {
        padding: 2rem;
    }

    .service-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .service-description {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-description h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .service-content .icon {
        width: 20px;
        height: 20px;
    }

    .service-content .file-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .hero {
        height: 40vh;
        min-height: 200px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .about,
    .services,
    .team,
    .contact,
    .service-detail {
        padding: 1.5rem 0.75rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat {
        padding: 0.75rem;
    }

    .service-card,
    .team-member {
        padding: 1rem;
    }

    .service-content {
        padding: 1rem;
    }

    .service-content h2 {
        font-size: 1.5rem;
    }

    .service-description h3 {
        font-size: 1.2rem;
    }

    .contact-info,
    .contact-form {
        padding: 1rem;
    }

    .info-item {
        gap: 0.5rem;
    }

    .info-item i {
        font-size: 1.1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0.75rem 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-icons a {
        font-size: 1.2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .contact {
        padding: 1.5rem 1rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
    }

    .submit-button {
        padding: 0.75rem 1.5rem;
    }

    .service-detail {
        padding: 1.5rem 1rem;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-content a {
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .service-content .icon {
        width: 18px;
        height: 18px;
    }

    .service-content .file-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .service-content {
        padding: 2.5rem;
    }

    .contact-container {
        gap: 2rem;
    }
}

/* District Buttons */
.district-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.district-button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white) !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    opacity: 1 !important;
}

.district-button:hover {
    transform: scale(1.03);
    opacity: 1 !important;
    background: var(--primary-color) !important;
}

.district-button:visited {
    color: var(--white) !important;
    opacity: 1 !important;
    background: var(--primary-color) !important;
}

.district-button:active {
    color: var(--white) !important;
    opacity: 1 !important;
    background: var(--primary-color) !important;
}

.district-button:focus {
    color: var(--white) !important;
    opacity: 1 !important;
    background: var(--primary-color) !important;
}

/* Modal */
/* .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-text {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .district-buttons {
        gap: 0.5rem;
    }
    
    .district-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}  */

.back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.back-button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white) !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    opacity: 1 !important;
}

.back-button:hover {
    transform: scale(1.03);
    opacity: 1 !important;
    background: var(--primary-color) !important;
}

.back-button:visited {
    color: var(--white) !important;
    opacity: 1 !important;
    background: var(--primary-color) !important;
}

.back-button:active {
    color: var(--white) !important;
    opacity: 1 !important;
    background: var(--primary-color) !important;
}

.back-button:focus {
    color: var(--white) !important;
    opacity: 1 !important;
    background: var(--primary-color) !important;
}