:root {
  --c-dark: #0c0c0c;
  --c-light: #f5f5f5;
  --c-accent: #ff3333;
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-main: 'Inter', system-ui, sans-serif;
  --font-head: 'Montserrat', helvetica;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* FIX: SCROLL SNAP ENGINE */
html {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
  font-family: var(--font-main); 
  color: var(--c-dark); 
  background: var(--c-light);
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

main { display: block; width: 100%; }

/* SNAP SECTIONS */
section { 
    position: relative; 
    width: 100%;
    /* Must match viewport height for snap to catch */
    height: 100vh; 
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

/* Work needs to snap to top, but allow free scroll if content is long */
#work {
    height: auto;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: normal; 
}

/* HERO */
#landing { height: 100vh; width: 100%; overflow: hidden; }
#landing video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1;
}

/* SCROLL HINT */
.scroll-hint-wrapper {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-text {
    font-family: var(--font-main); font-size: 10px; letter-spacing: 0.2em;
    color: #fff; opacity: 0; animation: textFade 3s ease-in-out infinite;
}
.scroll-hint-pill {
    width: 30px; height: 50px;
    border: 2px solid rgba(255,255,255,0.4); border-radius: 20px;
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-dot {
    width: 6px; height: 6px; background: #fff; border-radius: 50%;
    animation: scrollDot 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(15px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes textFade { 0%, 70% { opacity: 0; transform: translateY(5px); } 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-5px); } }

/* FIX: CLOSE BUTTON (Glassy -> Red Border/Icon) */
.close-btn { 
    align-self: flex-end; width: 80px; height: 80px; border-radius: 50%; 
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); 
    border: 1px solid transparent; 
    display: flex; justify-content: center; align-items: center; 
    cursor: pointer; transition: all 0.3s ease; 
}
.close-btn svg { 
    stroke: #fff; width: 32px; height: 32px; 
    transition: all 0.3s ease; 
}

.close-btn:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: var(--c-accent); /* Red Border */
}
.close-btn:hover svg { 
    stroke: var(--c-accent); /* Red Icon */
    transform: scale(1.15); /* Scale Up */
}

/* FOOTER SNAP */
.footer-container {
    width: 100%; background: #fff;
    scroll-snap-align: start; scroll-snap-stop: always;
    position: relative; z-index: 10;
}

.page-transition {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
  z-index: 999;
}

.page-transition.active {
  opacity: 1;
  pointer-events: auto;
}
