*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-primary-light);
  background-color: var(--color-deep-navy);
  overflow-x: hidden;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

a:hover {
  color: var(--color-neon-teal);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary-light);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-deep-navy);
}

::-webkit-scrollbar-thumb {
  background: var(--color-steel-gray);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-aqua-glow);
}

/* Canvas background layer */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#end-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out-expo);
}

/* Content layer sits above canvas */
.content-layer {
  position: relative;
  z-index: 1;
}

/* Section base */
.section {
  position: relative;
  padding: var(--space-4xl) var(--space-lg);
  min-height: 60vh;
}

.section-dark {
  background: transparent;
}

.section-light {
  background: var(--color-frost-white);
  color: var(--text-primary-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Utility classes */
.text-center { text-align: center; }
.text-accent { color: var(--text-accent); }
.text-gradient {
  background: var(--color-ocean-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
