:root {
    --bg-main: #061632;
    --navy-dark: #0F2447;
    --blue-accent: #547CDA;
    --yellow-accent: #DDE45B;
    --gray-light: #D1D5E2;
    --text-light: #FFFFFF;
    --text-dark: #000000;
    --font-heading: 'Avenir Heavy', 'Avenir', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
}

/* Navigation */
.global-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
}

.nav-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--yellow-accent);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 35px;
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

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

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.slider-control:hover {
    opacity: 1;
}

.prev-slide {
    left: 40px;
}

.next-slide {
    right: 40px;
}

/* Slides Container */
.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 5;
    visibility: visible;
}

.ship-img {
    max-height: 70vh;
    max-width: 70vw;
    object-fit: contain;
    z-index: 1;
}

/* Text Blocks */
.text-block {
    position: absolute;
    color: var(--text-light);
    max-width: 350px;
    opacity: 0;
    transition: all 1s ease-out;
    transition-delay: 0.2s;
    z-index: 2;
}

/* Starting positions for text blocks to slide inwards slightly */
.text-block.top-left {
    top: 25%;
    left: 10%;
    transform: translateX(-40px);
}

.text-block.bottom-right {
    bottom: 12%;
    right: 10%;
    transform: translateX(40px);
}

.text-block.bottom-left {
    bottom: 12%;
    left: 10%;
    transform: translateX(-40px);
}

.text-block.top-right {
    top: 25%;
    right: 10%;
    transform: translateX(40px);
}

/* About Section */
#about {
    width: 100%;
}

.about-top {
    background-color: #878891;
    padding: 6rem 5%;
}

.about-bottom {
    background-color: var(--blue-accent);
    padding: 6rem 5%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-bottom .about-grid {
    gap: 2rem;
    align-items: stretch;
}

.about-text h2 {
    color: var(--yellow-accent);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-text p {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Image with glow */
.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.yellow-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--yellow-accent) 0%, rgba(221, 228, 91, 0) 70%);
    opacity: 0.6;
    filter: blur(40px);
    z-index: 0;
}

.about-img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    border-radius: 12px;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.glass-card h1 {
    color: var(--text-light);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.glass-card p {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-bottom .about-grid {
        gap: 2rem;
    }
}

/* Active positions */
.slide.active .text-block {
    opacity: 1;
    transform: translateX(0);
}

/* Typography */
.text-block h2 {
    color: var(--yellow-accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.text-block p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

/* Text Alignments */
.text-block.align-right {
    text-align: right;
}

.text-block.align-right h2 {
    justify-content: flex-end;
}

.text-block.align-left {
    text-align: left;
}

.text-block.align-left h2 {
    justify-content: flex-start;
}

/* Locator Dot */
.locator-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--yellow-accent);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.locator-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
}

/* Customer Challenges Section */
#challenges img {
    display: block;
    margin: 0;
    padding: 0;
}

#challenges {
    background-color: var(--navy-dark);
    padding: 6rem 5%;
}

.challenges-heading {
    text-align: center;
    color: var(--text-light);
    font-family: var(--font-heading);
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.challenge-card {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.challenge-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--navy-dark);
}

.challenge-card p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--navy-dark);
}

.challenge-text {
    padding: 2.5rem;
    flex-grow: 1;
}

.challenge-card.bg-blue .challenge-text {
    background-color: var(--blue-accent);
}

.challenge-card.bg-yellow .challenge-text,
.challenge-card.bg-yellow {
    background-color: var(--yellow-accent);
}

.challenge-card.bg-white {
    background-color: #FFFFFF;
}

.challenges-col-1 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tall-card {
    height: 100%;
}

.challenge-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.challenge-img-bottom {
    width: 100%;
    flex-grow: 1;
    object-fit: cover;
    min-height: 250px;
    transform: scale(1.02) translate(2px, 2px);
}

.challenge-img-top-tall {
    width: 100%;
    flex-grow: 1;
    object-fit: cover;
    min-height: 250px;
}

/* Responsive Grid */
@media screen and (max-width: 1024px) {
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }

    .challenge-img-top,
    .challenge-img-bottom,
    .challenge-img-top-tall {
        height: auto;
        min-height: auto;
    }
}

/* What We Offer Section */
#services {
    position: relative;
    background-color: var(--bg-main);
    padding: 8rem 5%;
    overflow: hidden;
    z-index: 1;
}

#services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(179, 218, 199, 0.15) 0%, rgba(6, 22, 50, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.services-heading {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    font-family: var(--font-heading);
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.services-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 280px);
    column-gap: 4rem;
    row-gap: 5rem;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 280px;
}

.service-icon-box {
    width: 280px;
    height: 280px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.service-icon-box img {
    width: 45%;
    height: auto;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.4;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    padding-right: 0;
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-light);
    margin: 0;
    padding-right: 0;
    font-family: var(--font-body);
}

/* Responsive Services Grid */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Global Footer */
.global-footer {
    background-color: var(--bg-main);
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: var(--gray-light);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-link:hover {
    color: var(--yellow-accent);
    opacity: 1;
}



/* Responsive Contact & Footer */
@media screen and (max-width: 1024px) {
    #contact .contact-inner {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

@media screen and (max-width: 768px) {
    .global-footer {
        flex-direction: column;
        gap: 1.5rem;
    }
}