:root {
    --primary-color: #235E9B;
    --primary-light: #5E91C6;
    --secondary-color: #c8102e;
    --secondary-light: #e35b6c;
    --text-color: #333333;
    --light-text: #3E74AC;
    --light-background: #f9fafb;
    --gray: #444444;
    --light-gray: #eeeeee;
    --white: #ffffff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 2px solid var(--secondary-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 115px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo img {
    height: 115px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-item a.active,
.nav-link:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

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

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

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(200, 16, 46, 0.9), rgba(139, 0, 0, 0.9));
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    text-wrap: balance;

    .hero-text-container {
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 1.5rem;
        max-width: 800px;
        margin: 0 auto;
    }

    h1 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    p {
        font-size: 1.3rem;
        margin: 0 auto;
        line-height: 1.8;
    }
}

.home-hero {
    background-image: url('images/hero/hands2.jpg');
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: var(--light-background);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    text-align: center;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;

    &.btn-primary {
        background: var(--primary-color);
        color: var(--white);

        &:hover {
            background: var(--primary-light);
        }
    }

    &.btn-secondary {
        background: var(--secondary-color);
        color: var(--white);

        &:hover {
            background: var(--secondary-light);
        }
    }
}

/* Service Area Bar */
.service-area-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Mission Section */
.mission-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;

    .mission-content {
        h2 {
            text-align: left;
        }
        p {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }
    }

    .mission-image {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
}

/* Home Logo Center */
.home-logo-center {
    text-align: center;
    margin: 2rem 0;

    img {
        max-width: 500px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Services Grid */
.services-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;

    .services-content {
        h2 {
            text-align: left;
        }
        p {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }
    }

    .services-image {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}
.services-grid {
    display: grid;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 2rem auto 0;

    .service-item {
        background: var(--white);
        padding: 2.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.08);
        border-left: 5px solid var(--primary-color);

        h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        p {
            color: #555;
            line-height: 1.8;
            font-size: 1.05rem;
        }

        .service-list {
            list-style: none;
            margin-top: 1rem;
            padding-left: 1rem;

            li {
                padding: 0.5rem 0;
                color: #555;
                position: relative;
                padding-left: 1.5rem;

                &:before {
                    content: "✓";
                    position: absolute;
                    left: 0;
                    color: var(--secondary-color);
                    font-weight: bold;
                }
            }
        }
    }
}

/* Contact Info */
.contact-info {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 2rem auto;

    .contact-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;

        a {
            color: var(--secondary-color);
            text-decoration: none;
            transition: opacity 0.3s ease;

            &:hover {
                opacity: 0.8;
            }
        }

        .contact-icon {
            font-size: 1.5rem;
            color: var(--secondary-color);
            min-width: 30px;
        }
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    margin: 0;
}

.cta-section h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Careers */
.careers-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;

    .careers-content {
        h2 {
            text-align: left;
        }
        p {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 2rem;
        }
        .careers-cta {
            background: var(--primary-color);
            color: var(--white);
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
            margin-top: 2rem;

            h3 {
                color: var(--white);
                margin-bottom: 1rem;
            }
        }
    }

    .careers-image {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

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

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    user-select: none;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--text-color);
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        gap: 0;
    }

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

    .nav-logo img {
        height: 50px;
    }

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

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

    h2 {
        font-size: 2rem;
    }

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

    /* Mission Section */
    .mission-section {
        grid-template-columns: 1fr;
    }

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

    /* Services Section */
    .services-section {
        grid-template-columns: 1fr;
    }

    /* Careers Section */
    .careers-section {
        grid-template-columns: 1fr;
    }

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

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 40px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }       
}