/******************************** General Reset ********************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/******************************** Global Styles ********************************/
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #222;
    background-color: #f9f9f9;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/******************************** Navigation ********************************/
nav {
    background-color: #00387d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    text-transform: uppercase;
}

    nav h1 {
        color: white;
    }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

    .nav-links li a:hover {
        color: #cce0ff;
    }

.nav-toggle {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-button {
    background-color: white;
    color: black !important;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .contact-button:hover {
        background-color: #e6e6e6;
        color: black !important;
    }

/******************************** Hero Section ********************************/
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/contents/img/hero.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    max-width: none;
    margin: 0;
    width: 100%;
    padding: 15rem 2rem 8rem 2rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .hero h2 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        color: #CED4DA;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .hero p {
        font-size: 1.2rem;
        color: #CED4DA;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }

.hero-logo {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-57%);
    height: 400px;
    width: auto;
    z-index: 2;
    pointer-events: none;
}

/******************************** Services ********************************/
.services-section {
    max-width: 1200px;
    padding: 2rem 1rem;
}

    .services-section h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 2rem;
    }

.services-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.service-row {
    background-color: #b3c4d9;
    border: 2px solid #8aa3bf;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-direction: row;
}

    .service-row.reverse {
        flex-direction: row-reverse;
    }

.service-image {
    padding: 0 1rem;
    flex: 1;
}

    .service-image img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        border-radius: 6px;
    }

.service-text {
    flex: 1;
    color: #1a2a40;
}

    .service-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .service-text ul {
        margin-left: 1rem;
        padding-left: 1rem;
        list-style-type: disc;
        column-count: 2;
        column-gap: 2rem;
        -webkit-columns: 2;
        -moz-columns: 2;
    }

    .service-text li {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
    }

/******************************** Success Stories ********************************/
.success-stories {
    max-width: 960px;
    padding: 2rem 1rem;
    text-align: center;
    overflow: hidden;
}

    .success-stories h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

.story-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.carousel-outer {
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 10px 0;
}

.carousel-inner  {
    display: flex;
    gap: 30px;
    transition: transform 1s ease;
    padding: 0 16px;
}

    .carousel-inner.testimonial-carousel {
        justify-content: center;
    }

.success-stories .carousel-outer {
    cursor: grab;
}

    .success-stories .carousel-outer.dragging {
        cursor: grabbing;
        user-select: none;
    }


.success-stories .carousel-inner {
    display: flex;
    gap: 30px;
    transition: transform 1s ease;
    padding: 0 16px;
}

.project-stories .carousel-outer {
    overflow: hidden;
    width: 960px;
    padding: 0;
    margin: 0 auto;
    box-sizing: content-box;
}

.project-stories .carousel-inner.projects-carousel {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    padding: 0;
    transition: transform 1s ease;
}

.project-stories .story-card {
    flex: 0 0 300px;
}

.story-card {
    flex: 0 0 300px;
    background: #f4f4f4;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
}

    .story-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
        -webkit-user-drag: none;
        user-drag: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        pointer-events: none;
    }

    .story-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

.testimonial blockquote {
    font-style: italic;
    color: #333;
    margin-bottom: 1rem;
}

.testimonial img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem auto 0.5rem;
}

.quote-author {
    font-weight: bold;
    color: #555;
}

/******************************** Section Styles ********************************/
section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

    section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: #333;
        text-align: center;
    }

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    flex: 1 1 300px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

/******************************** Careers ********************************/
#careers ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.careers-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.careers-hero h2 {
    margin: 0 0 12px;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 180px 180px 160px;
    gap: 12px;
    align-items: center;
}

.jobs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
}

.job-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #d1d8e0;
}

    .job-card.open .job-desc {
        display: block;
    }

.job-meta {
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.job-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.toggle-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .toggle-btn[aria-expanded="true"] {
        background: #0ea5e9;
        color: #fff;
        border-color: #0ea5e9;
    }

.job-desc {
    color: #334155;
    line-height: 1.45;
    max-height: none;
    overflow: visible;
    white-space: pre-line;
    display: none;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.job-date {
    font-size: 0.85rem;
    color: #64748b;
}

.apply-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #0ea5e9;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

    .apply-btn:hover {
        filter: brightness(0.95);
    }

.empty-state, .error-state {
    text-align: center;
    color: #475569;
    padding: 24px;
}

/******************************** Projects ********************************/

/*
body.projects {
    position: relative;
    background: url('/contents/img/pattern.png') top center repeat-y;
    background-size: 100% auto;
}
*/
body.projects {
    background-color: #f9f9f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 20 L10 10 L20 20 L30 10 L40 20' stroke='%23ccc' stroke-width='2' fill='none'/%3E%3Cpath d='M0 0 L10 10 L20 0 L30 10 L40 0' stroke='%23ccc' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 40px 40px;
}

    body.projects::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(255,255,255,0.75);
        pointer-events: none;
        z-index: -1;
    }

.project-list {
    padding: 0rem 2rem;
}

.featured-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.graphic-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

    .graphic-divider .line {
        height: 2px;
        width: 100px;
        background-color: #ccc;
    }

    .graphic-divider .dot {
        width: 10px;
        height: 10px;
        background-color: #3498db;
        border-radius: 50%;
    }

.project-files {
    overflow: hidden;
    width: 100%;
}

.project-block h3 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.image-viewer {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 24px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

    .image-viewer img.project-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .image-viewer button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
        background: none;
        border: none;
        font-size: 2.5rem;
        cursor: pointer;
        padding: 0 12px;
        z-index: 2;
        user-select: none;
    }

    .image-viewer .prev-btn {
        left: 0;
    }

    .image-viewer .next-btn {
        right: 0;
    }

.dot-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .dot.active {
        background-color: #3498db;
    }

/******************************** Contact Form ********************************/
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

    form input,
    form textarea {
        padding: 0.75rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1rem;
    }

    form button {
        background: #0077cc;
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 4px;
        cursor: pointer;
    }

        form button:hover {
            background: #005fa3;
        }

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-form,
.contact-info {
    flex: 1 1 300px;
    padding: 2rem;
}

.contact-form {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
}

    .contact-form form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1rem;
    }

    .contact-form button {
        padding: 0.75rem;
        font-size: 1rem;
        background-color: #00387d;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .contact-form button:hover {
            background-color: #002a5c;
        }

.contact-info {
    background: #555;
    color: #fff;
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

    .contact-info a {
        color: #b3c4d9;
        text-decoration: none;
    }

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

.company-logo {
    max-width: auto;
    margin: 0;
    display: block;
}

/******************************** Footer ********************************/
.site-footer {
    background-color: #00387d;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

    .site-footer a {
        color: white;
        text-decoration: underline;
    }

        .site-footer a:hover {
            color: #ccc;
        }

/******************************** privacy policy ********************************/
.privacy-container {
    max-width: 900px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

    .privacy-container h1 {
        font-size: 3rem;
        margin-bottom: 2rem;
        text-align: center;
        color: dimgray;
    }

#policy-text {
    white-space: pre-wrap;
    font-family: Inter, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #222;
}
.privacy-container p {
    margin-bottom: 1.25rem;
}

.privacy-container h2,
.privacy-container h3,
.privacy-container h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.about1,
.about2 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-inline: auto;
    padding: 2rem 1rem;
}

.about-text {
    flex: 1 1 300px;
    min-width: 280px;
}

    .about-text h2 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

.about-image {
    flex: 1 1 400px;
    min-width: 280px;
    max-width: 400px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 8px;
    }

.team-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 1rem;
}

    .team-section h3 {
        font-size: 4rem;
    }

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

    .profile-card img {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        object-fit: cover;
    }

.profile-info h4 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.profile-info p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/******************************** Mobile Layout ********************************/
@media (max-width: 768px) {
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        position: relative;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: 0;
        padding: .5rem;
        cursor: pointer;
        z-index: 2;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        padding: 1rem;
        background: #00387d;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,.2);
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 10;
    }

        .nav-links.active {
            display: flex;
        }

    .nav-toggle .bars {
        display: inline-block;
        width: 28px;
        height: 20px;
        position: relative;
    }

        .nav-toggle .bars span {
            position: absolute;
            left: 0;
            right: 0;
            height: 2px;
            background: white;
            transform-origin: center;
            transition: transform .25s, opacity .2s;
        }

            .nav-toggle .bars span:nth-child(1) {
                top: 0;
            }

            .nav-toggle .bars span:nth-child(2) {
                top: 9px;
            }

            .nav-toggle .bars span:nth-child(3) {
                bottom: 0;
            }

    .nav-toggle.active .bars span:nth-child(1) {
        transform: none;
    }

    .nav-toggle.active .bars span:nth-child(2) {
        opacity: 1;
    }

    .nav-toggle.active .bars span:nth-child(3) {
        transform: none;
    }

    .service-row,
    .service-row.reverse {
        flex-direction: column !important;
    }

        .service-row .service-text ul {
            column-count: 1;
            -webkit-columns: 1;
            -moz-columns: 1;
        }

    .service-image {
        padding: 0;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

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

    .service-text {
        text-align: center;
    }

        .service-text ul {
            text-align: left;
            display: inline-block;
        }

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

    .jobs-list {
        grid-template-columns: 1fr;
    }

    .jobs-list {
        grid-template-columns: 1fr;
    }

    .success-stories .carousel-outer {
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0;
        cursor: auto;
    }

        .success-stories .carousel-outer.dragging {
            cursor: auto;
            user-select: auto;
        }

    .success-stories .carousel-inner,
    .success-stories .carousel-inner.testimonial-carousel {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0;
        transition: none;
        transform: none !important;
    }

    .success-stories .story-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }

    .testimonial img {
        width: 120px;
        height: 120px;
        margin: 0.5rem auto 0.75rem;
    }

    .testimonial blockquote {
        max-width: 90%;
        margin: 0 auto 0.75rem;
    }
}