/* ============================================
   HORIZONTAL SECTION - BASE STYLES
   ============================================ */

/* ── Prevent body scroll interference ── */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ── Horizontal Section Container ── */
#horizontalSection {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ── Horizontal Track ── */
.horizontal-track {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    width: auto;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ── Each section ── */
.horizontal-track > * {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* ── Hide scrollbar ── */
#horizontalSection::-webkit-scrollbar {
    display: none;
}
#horizontalSection {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   GLOBE SECTION - Sarvin Global Style
   ============================================ */
.globe-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #EAE7E1;
}

/* ============================================
   PROCESS SECTION - BASE STYLES
   ============================================ */
#process .group > div.relative + div {
    margin-top: 20px;
    padding-left: 0px;
}

#process .group {
    height: 240px ;
}

/* ============================================
   PROCESS STEPS - TIMELINE BADGE
============================================ */

/* ── Step Container ── */
.process-wrapper .group {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                background 0.3s ease,
                box-shadow 0.3s ease;
}

/* ── Timeline Badge ── */
.step-time {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    background: rgba(16, 57, 70, 0.08);
    color: var(--sn-deep-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.group:hover .step-time {
    background: rgba(16, 57, 70, 0.15);
    color: rgba(16, 57, 70, 0.8);
    transform: scale(1.05);
}

/* ── Responsive: Mobile First ── */
.step-time {
    font-size: 7px;
    padding: 1px 6px;
}

/* ── Fix for text overflow ── */
.process-wrapper .group p {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   ABOUT ITEM - BASE STYLES
   ============================================ */
.about-item {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
}

.about-item a {
    text-decoration: none;
    color: inherit;
}

.about-item .about-item-img img {
    will-change: transform;
    backface-visibility: hidden;
}

.about-item .about-item-content {
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-item .about-item-content p {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
}

/* Prevent layout shift on hover */
.about-item .about-item-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.about-item:hover .about-item-img::after {
    opacity: 1;
}

/* Smooth border transition */
.about-item {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

/* Span/Learn More hover effect */
.about-item .about-item-content span {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.about-item .about-item-content span::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    border-radius: 9999px;
}

.about-item .about-item-content span:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.about-item .about-item-content span:hover {
    color: #103946;
}

/* ── About Item - Win Card ── */
.win-card {
    /* base styles */
}

/* ============================================
   RESPONSIVE BREAKPOINTS - ORDERED
   ============================================ */

/* ============================================
   DESKTOP (min-width: 1024px)
   ============================================ */

/* ── About Items ── */
@media (min-width: 1024px) {
    .about-item {
        max-width: 400px;
        width: calc(33.333% - 1.5rem) !important;
    }
}

/* ── Process Steps ── */
@media (min-width: 1024px) {
    .step-time {
        font-size: 10px;
        padding: 3px 14px;
    }
}

/* ── About Win Card ── */
@media (max-width: 1024px) {
    .win-card {
        width: 300px !important;
    }
}

/* ============================================
   TABLET (min-width: 769px) to (max-width: 1023px)
   ============================================ */

/* ── About Items ── */
@media (min-width: 769px) and (max-width: 1023px) {
    .about-item {
        max-width: 400px;
        width: calc(50% - 1rem) !important;
        flex: 0 0 auto !important;
    }
}

/* ============================================
   DESKTOP (min-width: 768px)
   ============================================ */

/* ── Horizontal Section ── */
@media (min-width: 768px) {
    #horizontalSection {
        height: 100vh;
        overflow: hidden;
    }
    
    .horizontal-track {
        height: 100vh;
        flex-direction: row;
    }
    
    .horizontal-track > * {
        flex: 0 0 100vw;
        width: 100vw;
        height: 100vh;
    }
}

/* ── Process Steps ── */
@media (min-width: 768px) {
    .step-time {
        font-size: 9px;
        padding: 2px 12px;
    }
}

/* ============================================
   SMALL SCREEN (min-width: 640px)
   ============================================ */

/* ── Process Steps ── */
@media (min-width: 640px) {
    .step-time {
        font-size: 8px;
        padding: 2px 10px;
    }
}

/* ============================================
   EXTRA LARGE (min-width: 1280px)
   ============================================ */

/* ── Process Steps ── */
@media (min-width: 1280px) {
    .step-time {
        font-size: 11px;
        padding: 4px 16px;
    }
}

/* ============================================
   TABLET & MOBILE (max-width: 768px)
   ============================================ */


@media (max-width: 900px) {
    .about-section {
        padding: 0 !important;
    }
    .win-card {
        width: 260px !important;
        height: 300px !important;
    }
    .about-header {
        margin: 0 !important;
    }
    .about-footer-title {
        font-size: 18px !important;
        font-weight: 900 !important;
    }
    .about-footer-content {
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    .w-screen .container {
        max-width: 95% !important;
    }
    .about-img-wrapper {
        padding-top: 0 !important;
    }

    #process {
        justify-content: start !important;
        padding-top: 20px !important;
    }
    .process-wrapper {
        flex-direction: column;
        justify-content: start;
        align-items: center;
        margin: 0 auto !important;
    }
    .process-wrapper .group {
        width: 95% !important;
        height: auto !important;
        display: flex !important;
        justify-content: space-between !important;
    }
    .process-wrapper .group > div:first-child {
        margin: 0 !important;
    }
    .process-wrapper .group .step-time ,
    .process-wrapper .group p {
        font-size: 14px !important;
    }
    #process .group > div.relative + div {
        margin-top: 0 !important;
        width: 85% !important;
    }
}
/* ── About Items ── */
@media (max-width: 768px) {
    #about-wrapper {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .about-item {
        max-width: 100% !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        min-width: unset !important;
    }
    
    .about-item .about-item-content p {
        font-size: 20px;
    }
    
    .about-item-content {
        padding: 20px !important;
    }
    
    /* Adjust gap on mobile */
    .flex.flex-wrap {
        gap: 1rem !important;
    }
    
    /* Make images smaller on mobile */
    .about-item-img {
        aspect-ratio: 16/9 !important;
    }
    .about-header {
        padding-top: 20px !important;
    }
}

/* ── Process Steps ── */
@media (max-width: 768px) {
    .process-wrapper {
        gap: 0.75rem !important;
    }
}

/* ============================================
   MOBILE (max-width: 767px)
   ============================================ */

/* ── Horizontal Section ── */
@media (max-width: 767px) {
    /* Reset horizontal scrolling - stack vertically */
    #horizontalSection {
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
    }

    .horizontal-track {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        transition: none !important;
        position: relative !important;
    }

    .horizontal-track > * {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        position: relative !important;
    }

    /* Remove pin spacer on mobile */
    .pin-spacer {
        display: none !important;
    }
}

/* ── Process Section ── */
@media (max-width: 767px) {
    #process-title {
        display: flex;
        justify-content: space-between;
    }
    
    #process .flex.flex-wrap {
        flex-direction: column;
        align-items: start;
        justify-content: start !important;
    }
    
    #process .group {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        align-items: center !important;
    }
    
    /* #process .group > div.relative {
        width: 32px;
        height: 32px;
        margin: 0 !important;
    } */
    
    #process .group > div.relative + div {
        margin-top: -30px;
        padding-left: 40px;
    }
}

/* ── Globe Section ── */
@media (max-width: 767px) {
    #globeMount {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100%;
    }
    
    #process-title > p {
        height: fit-content;
    }
}

/* ============================================
   TABLET (max-width: 640px)
   ============================================ */

/* ── About Items ── */
@media (max-width: 640px) {
    .about-item {
        min-width: unset;
    }
    
    .about-item .about-item-content p {
        font-size: 18px;
    }
}

/* ── Process Steps ── */
@media (min-width: 401px) and (max-width: 640px) {
    .process-wrapper .group {
        flex: 1 1 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        min-width: 140px !important;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */

/* ── About Items ── */
@media (max-width: 480px) {
    .about-item .about-item-content p {
        font-size: 18px;
    }
    
    .about-item .about-item-content span {
        font-size: 10px !important;
        padding: 6px 16px !important;
    }
    
    .about-item-content {
        padding: 16px !important;
    }
}

/* ============================================
   VERY SMALL MOBILE (max-width: 400px)
   ============================================ */

/* ── Process Steps ── */
@media (max-width: 400px) {
    .process-wrapper .group {
        min-width: 120px !important;
        flex: 1 1 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        padding: 12px !important;
    }
    
    .step-time {
        font-size: 6px !important;
        padding: 1px 4px !important;
    }
    
    .process-wrapper .group h3 {
        font-size: 11px !important;
    }
    
    .process-wrapper .group p {
        font-size: 8px !important;
    }
    
    .process-wrapper .group .relative.z-10.mx-auto {
        width: 40px !important;
        height: 40px !important;
        font-size: 12px !important;
    }
}