@import url('./root.css');

.container {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: var(--text-color);
  scroll-snap-align: start;
}
.section p{
    width: 80%;
    text-align: center;
}
.section-link {
    position: relative;
    margin: 20px;
    overflow: hidden;
    background: var(--link-color);
    color: var(--bg-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 0;
}
.section-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: height 0.5s ease;
    z-index: -1;
}
.section-link:hover::before {
    height: 500%;
}
.section-link:visited{
    color: var(--bg-color)
}

.desc-img {
    border-radius: 10px;
    height: 65%;
    margin: 10px;
    transition: transform 0.6s ease;
}

.desc-img:hover {
    transform: scale(1.03);
}

/* Section Indicator Styles */
.section-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1500;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    background-color: var(--indicator-color);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--indicator-border-color);
    will-change: transform, background-color;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), 
                margin 0.3s ease, 
                background-color 0.3s ease,
                border-color 0.3s ease;
}

/* 高亮当前 section 的圆点 */
.indicator-dot.active {
    background-color: var(--link-color);
    transform: scale(1.5);
    border: 1px solid var(--link-color);
}

/* 悬停时放大自身，并推动上下相邻元素产生间距（模拟 dock 动效） */
.indicator-dot:hover {
    transform: scale(1.5);
    margin-top: 5px;
    margin-bottom: 5px;
}