:root {
    --primary-color: #006b3e;
    /* Deep Green from Logo */
    --secondary-color: #008080;
    /* Teal from Logo */
    --accent-color: #f4fbf8;
    /* Very Light Green Tint */
    --accent-dark: #e8f5f0;
    --text-color: #1a1a1a;
    --text-light: #555555;
    --background-color: #ffffff;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

section {
    padding: 100px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Premium Header & Nav */
.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

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

@media (max-width: 600px) {
    .header-top .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .header-contact {
        flex-direction: column;
        gap: 5px;
    }
}

header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 35px;
    /* Aligned with header-top height */
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled nav {
    padding: 0.6rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo-img {
    height: 45px;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-links li a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.85rem;
    position: relative;
    white-space: nowrap;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

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

.nav-links li a:hover::after {
    width: 20px;
}

.nav-links li a.active::after {
    width: 25px;
    background: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 180px 0 120px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--background-color);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Slanted Section Dividers */
.slanted-top {
    position: relative;
    padding-top: 150px !important;
}

.slanted-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: inherit;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    z-index: 1;
}

.slanted-bottom {
    position: relative;
    padding-bottom: 150px !important;
}

.slanted-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 1;
}

/* Accent Section Divider */
.accent-divider {
    position: relative;
    background: var(--accent-color);
    padding: 120px 0;
}

.accent-divider::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--accent-color);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Card Styling Refinement */
.card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card-lg {
    padding: 60px;
}

@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }

    .card-lg {
        padding: 40px 20px;
    }
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

/* Nav Link Active State */
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a.active::after {
    content: '';
    display: block;
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px auto 0;
    border-radius: 2px;
}

/* Premium Footer */
footer {
    background: #0a0a0a;
    padding: 100px 0 30px;
    color: #e0e0e0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo .site-name {
    color: var(--white);
    margin-bottom: 25px;
    display: block;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul {
    display: grid;
    gap: 15px;
}

.footer-links li a {
    color: #999;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(8px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--white);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 992px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-toggle {
        display: block;
        color: var(--primary-color);
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    /* Stack 2-column grids on mobile */
    .vacancy-card>div,
    .accent-divider .container>div,
    .segments .container>div,
    section .container>div[style*="grid-template-columns: 1fr 1fr"],
    section .container>div[style*="grid-template-columns: 1.2fr 1fr"],
    section .container>div[style*="grid-template-columns: 1fr 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
        /* Hide top bar on mobile to save space */
    }

    header {
        top: 0;
    }

    .logo-img {
        height: 40px;
    }

    .site-name {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .copyright {
        flex-direction: column;
        gap: 15px;
    }
}

/* Card Hover Effects */
.card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.mission-vision>div {
    transition: var(--transition);
}

.mission-vision>div:hover {
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .vacancy-card {
        padding: 30px 20px !important;
        border-radius: 20px;
        margin-bottom: 40px !important;
    }

    .vacancy-card h3 {
        font-size: 1.5rem !important;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
    }
}