:root {
    --primary-blue: #0A192F;
    --accent-orange: #FF6B35;
    --accent-orange-hover: #E85B28;
    --jacways-green: #B5D334;
    --text-light: #F8F9FA;
    --text-muted: #CBD5E1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--primary-blue);
    color: var(--text-light);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, background 0.4s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background: var(--primary-blue);
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-icon {
    display: flex;
    justify-content: center;
}

.logo-text {
    font-size: 0.95rem;
    font-family: 'Times New Roman', serif;
    color: var(--jacways-green);
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: var(--jacways-green);
}

.nav-links a:hover {
    color: var(--jacways-green);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-icon {
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-icon:hover {
    color: var(--jacways-green);
}

.btn-quote-nav {
    text-decoration: none;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--jacways-green);
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.btn-quote-nav:hover {
    background: #c5e638;
    transform: translateY(-2px);
}

.lang-selector {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.lang-selector:hover {
    color: var(--jacways-green);
}

.lang-selector i {
    font-size: 0.7rem;
}

/* HERO SLIDER */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Important for full screen slider */
}

.slider {
    position: absolute;
    inset: 0;
}

.slider .item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background-color: #000;
    overflow: hidden;
    transition: 0.5s ease-in-out;
}

.slider .item .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s ease-in-out;
}

/* Overlay for text readability (hidden in cards) */
.slider .item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.4) 100%);
    opacity: 0;
    transition: 0.5s;
}

.slider .item .content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 650px;
    text-align: left;
    color: #fff;
    opacity: 0;
    display: none;
    z-index: 10;
}

/* ACTIVE BACKGROUND (1st child) */
.slider .item:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
    transition: none; /* Instantly snap to background, no expanding */
}

.slider .item:nth-child(1) .overlay {
    opacity: 1;
}

.slider .item:nth-child(1) .content {
    display: block;
    animation: showContent 0.8s ease-in-out 0.3s forwards;
}

@keyframes showContent {
    0% {
        opacity: 0;
        transform: translate(0, 40px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translate(0, -50%);
        filter: blur(0);
    }
}

/* PREVIEW CARDS (2nd, 3rd, 4th children) */
.slider .item:nth-child(2) {
    left: 55%;
    z-index: 2;
}

.slider .item:nth-child(3) {
    left: calc(55% + 260px);
    z-index: 2;
}

.slider .item:nth-child(4) {
    left: calc(55% + 520px);
    z-index: 2;
}

/* Any additional items beyond 4 are hidden */
.slider .item:nth-child(n+5) {
    left: calc(55% + 780px);
    opacity: 0;
    z-index: 2;
}

/* Prevent old backgrounds from visibly shrinking into cards, but animate their slide in */
.slider.next .item:last-child {
    animation: slideInFromRight 0.6s ease-in-out forwards;
}
@keyframes slideInFromRight {
    0% {
        width: 240px; height: 350px;
        top: 50%; left: calc(55% + 780px); /* Start further right */
        transform: translateY(-50%);
        border-radius: 20px;
        z-index: 2;
    }
    100% {
        width: 240px; height: 350px;
        top: 50%; left: calc(55% + 520px); /* End in 3rd card slot */
        transform: translateY(-50%);
        border-radius: 20px;
        z-index: 2;
    }
}

.slider.prev .item:nth-child(2) {
    animation: slideInFromLeft 0.6s ease-in-out forwards;
}
@keyframes slideInFromLeft {
    0% {
        width: 240px; height: 350px;
        top: 50%; left: 30%; /* Start further left */
        transform: translateY(-50%);
        border-radius: 20px;
        z-index: 2;
        opacity: 0;
    }
    100% {
        width: 240px; height: 350px;
        top: 50%; left: 55%; /* End in 1st card slot */
        transform: translateY(-50%);
        border-radius: 20px;
        z-index: 2;
        opacity: 1;
    }
}

/* TYPOGRAPHY & BUTTONS */
.label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(181, 211, 52, 0.15); /* Jacways green with opacity */
    color: var(--jacways-green);
    border: 1px solid rgba(181, 211, 52, 0.4);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.main-heading {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    letter-spacing: -1px;
}

.subheading {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--jacways-green);
    color: #1a1a1a;
    border: 2px solid var(--jacways-green);
    box-shadow: 0 4px 14px rgba(181, 211, 52, 0.3);
}

.btn-primary:hover {
    background: #c5e638;
    border-color: #c5e638;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(181, 211, 52, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* NAVIGATION ARROWS */
.arrows {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 20px;
}

.arrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrows button:hover {
    background: var(--jacways-green);
    border-color: var(--jacways-green);
    color: #1a1a1a;
    transform: scale(1.1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .main-heading { font-size: 3.5rem; }
    .slider .item:nth-child(2) { left: 50%; }
    .slider .item:nth-child(3) { left: calc(50% + 230px); }
    .slider .item:nth-child(4) { left: calc(50% + 460px); }
    .slider .item { width: 210px; height: 310px; }
}

@media (max-width: 992px) {
    .slider .item .content {
        left: 5%;
        width: 90%;
        top: 30%;
        transform: translateY(0);
        text-align: center;
    }
    .slider .item:nth-child(1) .content {
        animation: showContentMobile 0.8s ease-in-out 0.3s forwards;
    }
    .subheading { margin-left: auto; margin-right: auto; }
    .buttons { justify-content: center; }
    
    .slider .item:nth-child(2) { left: 50%; transform: translate(-50%, 0); top: auto; bottom: 120px; width: 180px; height: 260px; }
    .slider .item:nth-child(3) { left: calc(50% + 200px); transform: translate(-50%, 0); top: auto; bottom: 120px; width: 180px; height: 260px; }
    .slider .item:nth-child(4) { display: none; } /* Hide 3rd card on small screens */
    
    .arrows {
        bottom: 30px;
    }
}

@media (max-width: 600px) {
    .main-heading { font-size: 2.5rem; }
    .buttons { flex-direction: column; }
    .slider .item:nth-child(2) { left: 50%; transform: translate(-50%, 0); top: auto; bottom: 100px; width: 140px; height: 200px; }
    .slider .item:nth-child(3) { display: none; } /* Hide 2nd card on mobile */
    .arrows { bottom: 20px; }
}

/* ABOUT US SECTION */
.about-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff; /* Clean white background */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 5%;
    overflow: hidden;
}

.about-circle {
    position: relative;
    width: 750px;
    height: 750px;
    background-color: #f4f4f5; /* Light gray oval background */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    overflow: hidden; /* Mask the inner rectangle */
}

.about-label {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0; /* Subtle light gray border */
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    transform: translateY(-10px);
}

.about-heading {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.about-description {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    max-width: 550px;
    margin-bottom: 5rem;
}

/* The Marquee Band */
.about-marquee {
    position: absolute;
    left: -150px;
    right: -150px;
    top: 67%;
    background: #ffffff;
    padding: 1.5rem 0;
    overflow: hidden; /* Hide the scrolling track outside the band */
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    z-index: 5;
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollMarquee 20s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding-right: 3rem; /* ensures even spacing before the duplicate starts */
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.about-marquee span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569; /* Slightly softer slate grey for exact match */
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap; /* Prevent any wrapping */
}

.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 4rem;
    z-index: 10;
}

/* Custom button styles for light background */
.about-buttons .btn-secondary {
    background: var(--jacways-green);
    color: var(--primary-blue);
    border-color: var(--jacways-green);
}
.about-buttons .btn-secondary:hover {
    background: transparent;
    color: var(--jacways-green);
}

.about-buttons .btn-primary {
    background: #ffffff;
    color: var(--primary-blue);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.about-buttons .btn-primary:hover {
    background: #f4f4f5;
    border-color: #f4f4f5;
    transform: translateY(-3px);
}

/* Float Images */
.float-img {
    position: absolute;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 15; /* Sit ON TOP of the circle */
    transition: transform 0.3s ease;
}

.float-img:hover {
    transform: scale(1.05);
}

.img-top-left {
    width: 220px;
    height: 220px;
    top: 10%;
    left: 12%;
}

.img-top-right {
    width: 220px;
    height: 220px;
    top: 12%;
    right: 12%;
}

.img-bottom-left {
    width: 220px;
    height: 220px;
    bottom: 10%;
    left: 14%;
}

.img-bottom-right {
    width: 220px;
    height: 220px;
    bottom: 12%;
    right: 12%;
}

@media (max-width: 1200px) {
    .about-circle {
        width: 650px;
        height: 650px;
        padding: 0 50px;
    }
    .about-heading { font-size: 2.8rem; }
    .about-marquee { left: -50px; right: -50px; gap: 1.5rem; }
    .img-top-left { left: 5%; width: 180px; height: 180px; }
    .img-top-right { right: 5%; width: 180px; height: 180px; }
    .img-bottom-left { left: 5%; width: 180px; height: 180px; }
    .img-bottom-right { right: 5%; width: 180px; height: 180px; }
}

@media (max-width: 992px) {
    .about-section { padding: 80px 5%; }
    .about-circle {
        width: 100%;
        height: auto;
        padding: 80px 20px;
        border-radius: 40px;
    }
    .about-marquee {
        position: relative;
        left: 0; right: 0; top: 0;
        margin-top: 3rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: none;
        background: transparent;
    }
    .about-marquee i { display: none; }
    .about-buttons { margin-top: 3rem; flex-direction: column; }
    .float-img { display: none; }
}

@keyframes showContentMobile {
    0% {
        opacity: 0;
        transform: translate(0, 40px);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}
