/* ===============================
   HERO SECTION FIXES
================================ */
.hero-section {
    min-height: 90vh;
}
/* Override animated-bg bottom offset from index.css to prevent layout shift */
.hero-section.animated-bg {
    bottom: 0 !important;
}
.hero-title {
    font-size: clamp(26px, 5vw, 2.5rem);
    line-height: 1.1;
}
.hero-desc {
    font-size: clamp(14px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===============================
   JOBS SECTION WITH ANIMATED BG
================================ */
.scroll-section {
    height: 300vh;
    background: #ffffff;
    position: relative;
}
.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.main-title {
  font-size: 4rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-color);
  z-index: 2;
  /* Initial state for JS animation, transition removed for scroll-driven animation */
  opacity: 0;
  transform: translateY(-80vh);
}

/* Notification Boxes Styling */
.notification-box {
  position: absolute;
  padding: 12px 20px;
  background: #0069C8;
  color: #fff !important;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 105, 200, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
  z-index: 3;
}

.notification-box.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.box-1 { top: 10%; left: 10%; }
.box-2 { top: 20%; right: 10%; }
.box-3 { bottom: 25%; left: 10%; }
.box-4 { bottom: 14%; right: 4%; }
.box-5 { bottom: 1.5%; text-align: center; }

.jobs-section {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at center, #102a43 0%, #050a10 100%);
    color: #ffffff;
}

.jobs-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
}

.jobs-subtitle {
    color: #a0aec0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.job-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 35px;
    text-align: left;
    transition: transform 0.3s ease;
}

.job-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.job-header h4 {
    font-size: 1.4rem;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.job-type {
    color: #718096;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 20px;
}

.job-desc {
    color: #cbd5e0;
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-bottom: 25px;
    min-height: 50px;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-text {
    color: #718096;
    margin-bottom: 20px;
    font-size: 1rem;
}

.jobs-btn {
    display: inline-block;
    background: #ffffff;
    color: #050a10;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.jobs-btn:hover {
    background: #e2e8f0;
}

@media (max-width: 600px) {
    .jobs-grid { grid-template-columns: 1fr; }
    .job-meta { flex-direction: column; align-items: flex-start; }
}

/* ===============================
   JOBS SECTION WITH ANIMATED BG ENDS
================================ */


/* ===============================
   MARQUEE SECTION STARTS
================================ */

.marquee-section {
    padding: 0 0;
    margin-bottom: 0px;
    overflow: hidden;
    background: #fff;
}

.marquee {
    width: 100%;
    overflow: hidden;
}

/* Track */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

/* Text */
.marquee-text {
    font-size: 58px;
    font-weight: 600;
    color: #0069C8;
    white-space: nowrap;
    padding-right: 60px;
}

/* Stroke text */
.text-stroke-black {
    color: transparent;
    -webkit-text-stroke: 1px #0069C8;
}

/* ANIMATION (REAL INFINITE) */

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
    .marquee-text {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .marquee-text {
        font-size: 30px;
    }

    /* Scroll Section Mobile Fixes */
    .scroll-section {
        height: auto;
    }

    .sticky-container {
        position: relative;
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 20px;
        text-align: center;
        padding: 0 10px;
        margin-top: 20px;
        opacity: 1 !important;
        transform: none !important;
        order: -1;
    }

    .notification-box {
        position: relative;
        opacity: 1;
        order: 0;
        transform: none;
        width: 90%;
        max-width: 420px;
        margin: 12px auto;
        white-space: normal;
        text-align: center;
    }

    .box-1, .box-2, .box-3, .box-4, .box-5 {
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
    }


    .marquee-section {
        padding: 0px 0;
    }
}

@media (max-width: 480px) {
    .marquee-text {
        font-size: 28px;
    }
}

/* ===============================
   MARQUEE SECTION ENDS
================================ */



/* ===============================
   LIFE AT CUBEMOONS SECTION
================================ */

.life-section {
    padding: 80px 0px;
    background: #ffffff;
}

.life-container {
    margin: 0 auto;
    text-align: center;
}

/* Heading */
.life-container h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 32px;
    color: #0f172a;
}

/* Description */
.life-desc {
    max-width: 900px;
    margin: 10px auto;
    font-size: 22px;
    font-weight: 500;
    color: #575757;
}

/* Image wrapper */
.life-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.life-image-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid rgba(0, 105, 200, 0.1);
    border-top: 3px solid #0069C8;
    border-radius: 50%;
    animation: imageLoaderSpin 1s linear infinite;
    z-index: 0;
}

.life-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.80), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Image */
.life-image-wrapper img {
    width: 100%;
    height: 80vh;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Overlay */
.life-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 32px;

    display: flex;
    justify-content: space-between;
    gap: 16px;



    color: #ffffff;
    font-size: 22px;
    z-index: 3;
}

@keyframes imageLoaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===============================
   RESPONSIVE
================================ */

/* Tablet */
@media (max-width: 991px) {
    .life-overlay {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 575px) {

    .life-container h2 {
        font-size: 24px;
    }

    .life-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .life-overlay {
        position: static;
        background: #0f172a;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        font-size: 16px;
    }

    .life-image-wrapper {
        border-radius: 16px;
    }
}

/* ===============================
   LIFE AT CUBEMOONS SECTION ENDS
================================ */



/* ===============================
   FAQ SECTION STARTS
================================ */

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

/* Heading */
.faq-heading {
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #0f172a;
}

/* Item */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

/* Header */
.faq-header {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 18px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
}

/* Question text */
.faq-header span:first-child {
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
}

/* Arrow */
.faq-arrow {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}

/* Down arrow (default) */
.faq-arrow::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-right: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
    transform: rotate(45deg);
    top: 2px;
    left: 3px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body */
.faq-body {
    height: 0;
    overflow: hidden;

    transition:
        height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.35s ease;

    opacity: 0;
    will-change: height, opacity;
}

.faq-item.active .faq-body {
    opacity: 1;
}


.faq-body p {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

/* ACTIVE */
.faq-item.active .faq-arrow::before {
    transform: rotate(-135deg);
    /* arrow up */
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 575px) {
    .faq-heading {
        font-size: 24px;
    }

    .faq-header span:first-child {
        font-size: 15px;
    }

    .faq-body p {
        font-size: 14px;
    }
}



/* ===============================
   ABOUT US SCROLLING SECTION
================================ */
.about-us-scroll-section {
    padding: 2rem 1rem;
    background-color: #fff;
}

.about-us-scroll-container {
    max-width: 1280px;
    height: 250px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about-us-scroll-content {
    padding-bottom: 8rem;
    /* Creates space between the two text blocks for the scroll animation */
}

.about-us-scroll-content p {
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    /* approx 20px to 36px */
    font-weight: 300;
    line-height: 1.8;
    color: #002B45;
    text-align: center;
}

.about-us-scroll-content .highlight-text {
    color: var(--color-primary-bg);
}

/* ===============================
   WHY WORK SECTION UPDATES
================================ */
.content-wrapper-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-80vh);
    transition: none;
}

.main-title-career {
    font-size: 4rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.1;
}

.main-desc {
    font-size: 28px;
    color: #575757;
    line-height: 1.6;
    font-weight: 500;
}

@media (max-width: 768px) {
    .content-wrapper-center {
        opacity: 1 !important;
        transform: none !important;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .main-title-career {
        font-size: 2.5rem;
    }
    .main-desc {
        font-size: 18px;
    }
}
/* ===============================
   FAQ SECTION ENDS
================================ */

    @media (min-width: 1025px) and (max-width: 1550px) {
                .main-title {
            font-size: 3rem;
        }
    }