:root {
    --primary-color: #004080;
    /* Deep Ocean Blue */
    --secondary-color: #0073e6;
    /* Sky Blue */
    --accent-color: #ffcc00;
    /* Gold/Yellow for warnings or highlights */
    --text-color: #333;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --font-heading: 'Noto Sans SC', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 100px;
    /* Increased height */
    display: flex;
    align-items: center;
}

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

.logo img {
    height: 80px;
    /* Increased from 50px/70px */
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    color: var(--primary-color);
}

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

.lang-btn {
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 0;
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Bring into positive stack */
}

.carousel-track {
    display: flex;
    width: 400%;
    height: 100%;
    position: absolute;
    /* Fix layout flow */
    top: 0;
    left: 0;
    transition: transform 0.5s ease-in-out;
    z-index: 0;
    /* Background */
}

.slide {
    width: 25%;
    flex-shrink: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: absolute;
    /* Center overlay */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 64, 128, 0.6);
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    backdrop-filter: blur(5px);
    z-index: 2;
    /* Content above track */
    width: 90%;
    /* Responsive width */
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-down .arrow {
    font-size: 24px;
    margin-bottom: 5px;
}

.scroll-down .text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Old .hero-content block removed */

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

/* Removed @keyframes slide as we are using JS now */


/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.bg-light {
    background-color: var(--light-bg);
}

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

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-info {
    text-align: left;
    font-size: 1.2rem;
    max-width: 800px;
    /* Optional constraint */
    margin: 0 auto;
    /* Keep container centered if desired, or remove to left align completely */
}

.contact-info p {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        height: 60px;
    }

    .logo img {
        height: 40px;
    }

    .nav-list {
        display: none;
        /* Hide for now, or implement hamburger */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

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

    .mobile-menu-btn {
        display: block;
    }

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

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

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

/* Utility Classes */
.bg-primary {
    background-color: var(--primary-color);
}

.text-white {
    color: var(--white);
}

/* Stats Section */
.stats-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.stats-header h2 {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.3s;
    padding: 10px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-logo:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Careers Section */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.job-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-left: 4px solid var(--secondary-color);
    cursor: pointer;
    position: relative;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-card h3 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    transition: transform 0.3s;
}

.job-card.active .toggle-icon {
    transform: rotate(45deg);
}

.job-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.job-salary {
    font-weight: 700;
    color: #e63946;
    /* Red for emphasis */
    margin-bottom: 10px;
}

.job-main-reqs {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Job Detail Modal */
.job-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.job-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.job-modal-content {
    background: var(--white);
    width: 90%;
    max-width: 800px;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.job-modal-overlay.active .job-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

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

#modal-job-title {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-job-meta {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.salary-highlight {
    color: #e63946;
    font-weight: 700;
}

.divider {
    margin: 0 10px;
    color: #ddd;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

.job-detail-text {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #444;
}

.hr-contact-box {
    margin-top: 30px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 6px;
    text-align: center;
    color: var(--primary-color);
}