/* Scroll Snap Styles */

:root {
    --section-height: 100vh;
    --scroll-padding: 80px; /* Accounts for fixed navbar */
}

/* Main scroll container */
.scroll-container {
    /* Remove height: 100vh; as it conflicts with your main styles */
    /* Keep overflow-y: auto; to enable scrolling */
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* For better mobile scrolling */
    scroll-padding-top: var(--scroll-padding);
}

/* Apply to all full-height sections */
.snap-section {
    scroll-snap-align: start;
    /* Don't force height on all sections */
    /* height: var(--section-height); */
    position: relative;
    /* Don't hide overflow as it might affect your existing content */
    /* overflow: hidden; */
}

/* Adjust for sections that don't need full height */
.snap-section.auto-height {
    height: auto;
    min-height: var(--section-height);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .chevron {
    width: 30px;
    height: 10px;
    display: block;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    transform: rotate(45deg);
    margin: 0 0 8px 8px;
    animation: scroll-down 2s infinite;
}

.scroll-indicator .chevron:nth-child(1) {
    animation-delay: 0s;
}

.scroll-indicator .chevron:nth-child(2) {
    animation-delay: 0.1s;
}

.scroll-indicator .chevron:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Scroll navigation dots */
.scroll-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scroll-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.scroll-nav-dot.active {
    background-color: var(--primary);
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-nav {
        right: 10px;
    }
    
    .scroll-nav-dot {
        width: 8px;
        height: 8px;
    }
}

/* Hide scroll indicator when at the bottom of the page */
.at-bottom .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}