/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #0b4582;
    /* Deep Marine Blue */
    --secondary-color: #1e293b;
    /* Slate Dark */
    --accent-color: #0ea5e9;
    /* Light Blue Accent */
    --success-color: #10b981;
    /* Green Accent */
    --text-color: #334155;
    /* Slate Gray */
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    padding-top: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #093466;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--primary-color);
}

.btn-blue {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-blue:hover {
    background-color: #0284c7;
}

.btn-green {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-green:hover {
    background-color: #059669;
}

.btn-white {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-white:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
}

/* For the uploaded Logo */
.logo-icon {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.main-nav {
    display: flex;
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 1000px;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
    pointer-events: none;
}

.nav-item.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 40px;
    padding: 40px;
}

.mega-menu-column h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mega-menu-column ul li {
    margin-bottom: 12px;
}

.mega-menu-column ul li a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.mega-menu-column ul li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--border-color);
    padding-left: 5px;
}

/* Dropdown (Simple) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 20px;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 80px;
    /* Offset Header */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(11, 69, 130, 0.7), rgba(30, 41, 59, 0.8));
    /* Primary to secondary gradient */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    color: var(--white);
    transform: translateY(30px);
    transition: transform 1s ease, opacity 1s ease;
    opacity: 0;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.about-images {
    position: relative;
    height: 500px;
}

.about-img {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img.main {
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    z-index: 1;
}

.about-img.secondary {
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    z-index: 2;
    border: 10px solid var(--white);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    position: relative;
    padding: 80px 0;
    color: var(--white);
}

.stats-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(11, 69, 130, 0.85);
    /* Primary Color Overlay */
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ==========================================================================
   Services Split
   ========================================================================== */
.services-split {
    display: flex;
    min-height: 600px;
}

.service-half {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 80px;
    position: relative;
    overflow: hidden;
}

.service-half::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.5s;
}

.service-half:hover::before {
    transform: scale(1.05);
}

.service-half.offshore::before {
    background-image: url('https://images.unsplash.com/photo-1599059813005-11265ba4b4ce?auto=format&fit=crop&w=1000&q=80');
}

.service-half.offshore::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(30, 41, 59, 0.85);
    z-index: 2;
}

.service-half.onshore::before {
    background-image: url('https://images.unsplash.com/photo-1542124508-faec273cd8a0?auto=format&fit=crop&w=1000&q=80');
}

.service-half.onshore::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(14, 165, 233, 0.85);
    z-index: 2;
}

/* Accent Color Overlay */

.service-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.service-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.testimonial-slide {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
}

.testimonial-slide.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.4;
}

.testimonial-content cite {
    display: flex;
    flex-direction: column;
    font-style: normal;
}

.testimonial-content cite strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.testimonial-content cite span {
    color: var(--text-light);
}

.testimonial-nav {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.testimonial-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.testimonial-nav button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Featured Jobs
   ========================================================================== */
.featured-jobs {
    padding: 100px 0;
    position: relative;
    background-color: var(--secondary-color);
    color: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: inherit;
}

.jobs-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.job-card {
    background-color: var(--white);
    color: var(--text-color);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.job-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.job-type {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--bg-light);
    color: var(--text-light);
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.job-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.view-job {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-job:hover {
    gap: 12px;
}

/* ==========================================================================
   Insights
   ========================================================================== */
.insights {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.insights .section-header h2 {
    color: var(--secondary-color);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.insight-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.insight-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.insight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.insight-content {
    padding: 30px;
}

.insight-content time {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.insight-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.insight-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.insight-content a {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.footer {
    background-color: #0f172a;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #cbd5e1;
}

.footer-col ul a {
    color: #cbd5e1;
}

.footer-col ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    padding: 0 20px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #0284c7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Leadership Grid */
.leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 40px;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        height: auto;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .mega-menu,
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        border: none;
        display: none;
        padding: 10px 0 0 15px;
    }

    .nav-item.open>.mega-menu,
    .nav-item.open>.dropdown-menu {
        display: block;
    }

    .mega-menu-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-grid,
    .services-split,
    .footer-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .jobs-track,
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insights-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-half {
        padding: 60px 20px;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .stats-grid,
    .jobs-track,
    .insights-grid,
    .insights-grid.grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}