/* ============================================
   YOU&VI — Custom Styles
   ============================================ */

/* Scroll Snap Container */
#scroll-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ============================================
   Section Navigation (right side dots)
   ============================================ */

.section-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.12);
    transition: all 0.3s ease;
}

.section-dot.active {
    background: #0a0a0a;
    height: 20px;
    border-radius: 3px;
}

/* ============================================
   Menu Overlay
   ============================================ */

#menu-overlay {
    pointer-events: none;
}

#menu-overlay.open {
    pointer-events: auto;
    opacity: 1;
}

/* Menu button animation */
.menu-open .menu-line-1 {
    transform: rotate(45deg) translateY(3.5px);
}

.menu-open .menu-line-2 {
    transform: rotate(-45deg) translateY(-3.5px);
}

/* ============================================
   Dot Grid Background
   ============================================ */

.dot-grid {
    background-image: radial-gradient(circle, rgba(10, 10, 10, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ============================================
   Blue Highlight
   ============================================ */

.highlight {
    background: #0000ff;
    color: #fff;
    padding: 0.05em 0.2em;
    border-radius: 0.15em;
}

.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 0.08em;
    background: #0000ff;
    border-radius: 2px;
}

/* ============================================
   Scroll Indicator
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    overflow: hidden;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 100%;
    background: #0000ff;
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%   { transform: translateY(-100%); }
    50%  { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ============================================
   Reveal Animations
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ============================================
   Project Carousel
   ============================================ */

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 0 2px;
}

.carousel-card {
    background: rgba(10, 10, 10, 0.015);
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.carousel-card:hover {
    border-color: rgba(0, 0, 255, 0.15);
}

.carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(10, 10, 10, 0.1);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(10, 10, 10, 0.3);
    flex-shrink: 0;
}

.carousel-btn:hover {
    border-color: #0000ff;
    color: #0000ff;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background: #0000ff;
    width: 20px;
    border-radius: 3px;
}

/* ============================================
   Modal
   ============================================ */

#legal-modal {
    pointer-events: none;
}

#legal-modal.open {
    pointer-events: auto;
    opacity: 1;
}

body.modal-open #scroll-container {
    overflow: hidden;
}

/* ============================================
   Selection
   ============================================ */

::selection {
    background: #0000ff;
    color: #fff;
}
