html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Disable snap while development gate is active to avoid jitter */
html.no-snap {
    scroll-snap-type: none !important;
}

html.scrolling {
    scroll-behavior: auto;
}

[name^="section-"] {
    min-height: 100vh;
    position: relative;
    scroll-snap-align: start;
}

/* Prevent snap-induced jitter while interacting with section-2 sticky content */
[name="section-2"] {
    scroll-snap-align: none;
}

[name="section-1"] {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

[name="section-17"] {
    min-height: unset !important;
    height: auto !important;
    display: block !important;
}

.active-section {
    position: relative;
}

/* .active-section::before {
    content: '';
    position: fixed;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #867D5C;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0.8;
} */

.section-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Section counter */
.section-counter {
    background: rgba(255, 255, 255, 0.9);
    color: #4B4F5A;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    min-width: 60px;
    text-align: center;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section-counter.active {
    background: rgba(134, 125, 92, 0.9);
    color: #fff;
    border-color: rgba(134, 125, 92, 0.5);
    transform: scale(1.05);
}

/* Hide section navigation when header/menu is open */
body.overlays-active .section-nav,
.fullscreen-menu.active ~ * .section-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.section-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: blanchedalmond;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.section-nav-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.section-nav-dot:hover {
    background: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .section-nav {
        right: 10px;
    }
    
    .section-counter {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 50px;
        margin-bottom: 8px;
    }
    
    .section-nav-dot {
        width: 6px;
        height: 6px;
    }
    
    /* .active-section::before {
        right: 10px;
        width: 6px;
        height: 6px;
    } */
}

[name^="section-"] {
    transition: opacity 0.15s ease;
}

body.scrolling {
    overflow: hidden;
    pointer-events: none;
}

body.scrolling * {
    pointer-events: none;
}

body:not(.scrolling) {
    pointer-events: auto;
}

/* body:not(.scrolling) * {
    pointer-events: auto;
} */

[name^="section-"] + [name^="section-"] {
    margin-top: 0;
}

body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
} 

/* Development animation setup */
#development { position: relative; overflow: hidden; }

#thedevelopment-img { transition: transform 0.8s ease-in-out; will-change: transform; }
#thedevelopment-img.slide-left-out { transform: translateX(-102%); }

.development-stats {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #ffffff;
    color: #867D5C;
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.8s ease-in-out, opacity 0.3s ease-in-out;
}

.development-stats.active {
    transform: translateX(0%);
    opacity: 1;
}

.development-stats-inner { 
    height: 100%; 
    overflow: hidden; 
    padding: 0; 
    display: flex; 
    justify-content: space-around;
    flex-direction: column;
}

.development-description {
    line-height: 1.8;
    color: #93906b;
    margin-bottom: 32px;
    text-align: left;
}

.stats-grid { display: grid; grid-template-columns: 1fr; gap: 10px 16px; overflow: visible; text-align: left; padding-left: 50px; }

.stat { display: flex; align-items: baseline; gap: 12px; opacity: 0; transform: translateY(16px); transition: all 0.45s ease; }
.stat.show { opacity: 1; transform: translateY(0); }

.stat .num { font-size: 35px; line-height: 26px; font-weight: 700; color: #867D5C; font-family: 'Noto-sans-black';}
.stat .label { font-size: 18px; color: #867D5C; }

@media (min-width: 992px) {
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .development-stats { position: static; width: 100%; transform: translateX(0); opacity: 1; }
    #thedevelopment-img.slide-left-out { transform: none; }
}

@media (max-width: 480px) {
    .development-stats-inner { padding: 24px 16px 40px; }
    .stat .num { font-size: 18px; }
    .stat .label { font-size: 16px; }
}