/* ═══════════════════════════════════════════════
   JAMES GOSLING PORTFOLIO — SHARED STYLES
═══════════════════════════════════════════════ */

/* ROOT & RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --o: #FF6600;
  --ob: #FF8C00;
  --dark: #050301;
  --card: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --grey: rgba(255,255,255,0.45);
  --grey-dim: rgba(255,255,255,0.25);
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  cursor: none;
}
*::-webkit-scrollbar { width: 3px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--o); border-radius: 2px; }
a { text-decoration: none; color: inherit; }
button { cursor: none; border: none; background: none; font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ── SINGLE ORANGE DOT CURSOR ── */
#cursor {
  position: fixed; z-index: 99999;
  width: 10px; height: 10px;
  background: #FF6600;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .22s ease, height .22s ease, background .22s ease;
  will-change: left, top;
  box-shadow: 0 0 8px rgba(255,102,0,0.5);
}
#cursor.hover {
  width: 16px; height: 16px;
  background: #FF8C00;
  box-shadow: 0 0 14px rgba(255,140,0,0.6);
}

/* ── SCROLL PROGRESS ── */
#scroll-bar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 2px; width: 0%;
  background: linear-gradient(to right, var(--o), var(--ob));
  box-shadow: 0 0 8px var(--o);
  transition: width .05s linear;
  pointer-events: none;
}

/* ── NOISE OVERLAY ── */
#noise {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  animation: noiseShift 1.2s steps(3) infinite;
}
@keyframes noiseShift {
  0%   { transform: translate(0,0); }
  33%  { transform: translate(-3px, 2px); }
  66%  { transform: translate(2px, -3px); }
  100% { transform: translate(0,0); }
}

/* ── ASTEROID CANVAS ── */
#asteroid-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  width: 100%; height: 100%;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px;
  background: linear-gradient(to bottom, rgba(5,3,1,.9), transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .4s, border-color .4s;
}
nav.scrolled {
  background: rgba(5,3,1,.94);
  border-bottom-color: rgba(255,102,0,.12);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 14px;
  letter-spacing: .14em; color: #fff;
  cursor: none;
}
.nav-logo span { color: var(--o); }
.nav-links { display: flex; gap: 44px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--grey); transition: color .3s;
  position: relative; cursor: none;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--o);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-hire {
  font-size: 11px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--o); border: 1px solid var(--o);
  padding: 9px 22px; border-radius: 100px;
  transition: background .3s, color .3s, box-shadow .3s;
  cursor: none;
}
.nav-hire:hover {
  background: var(--o); color: #fff;
  box-shadow: 0 0 28px rgba(255,102,0,.4);
}

/* ── TICKER ── */
.ticker-wrap {
  position: relative; z-index: 2;
  overflow: hidden; padding: 13px 0;
  background: var(--o);
}
.ticker-track {
  display: flex; width: max-content;
  animation: tickerMove 30s linear infinite;
}
.ticker-item {
  display: flex; align-items: center; gap: 28px;
  padding-right: 28px; white-space: nowrap;
  font-family: 'Syne', sans-serif; font-size: 10px;
  font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(0,0,0,.78);
}
.ticker-dot {
  width: 3px; height: 3px;
  background: rgba(0,0,0,.4); border-radius: 50%; flex-shrink: 0;
}
@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SHARED SECTION STYLES ── */
.section { position: relative; z-index: 2; padding: 120px 60px; }
.section-eyebrow {
  font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--o);
  margin-bottom: 16px; font-weight: 500;
}
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.05; letter-spacing: -.02em; color: #fff;
  animation: floatTitle 6s ease-in-out infinite;
}
@keyframes floatTitle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* ── INNER PAGE HERO ── */
.inner-hero {
  padding: 160px 60px 90px;
  position: relative; z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.inner-hero-eyebrow {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--o); margin-bottom: 20px; font-weight: 500;
  display: flex; align-items: center; gap: 14px;
}
.inner-hero-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--o);
}
.inner-hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(56px, 8vw, 120px);
  line-height: .92; letter-spacing: -.025em; color: #fff;
  animation: floatTitle 7s ease-in-out infinite;
}
.inner-hero-sub {
  margin-top: 28px; max-width: 540px;
  font-size: 17px; line-height: 1.75;
  color: rgba(255,255,255,.5); font-weight: 300;
}

/* ── BUTTONS ── */
.btn-fill {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  font-weight: 500; letter-spacing: .08em;
  background: var(--o); color: #fff;
  padding: 17px 36px; border-radius: 100px;
  transition: transform .25s, box-shadow .25s;
  display: inline-block; cursor: none;
}
.btn-fill:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(255,102,0,.4);
}
.btn-outline {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  font-weight: 400; letter-spacing: .08em; color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  padding: 17px 36px; border-radius: 100px;
  transition: border-color .25s, transform .25s;
  display: inline-block; cursor: none;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.55);
  transform: translateY(-3px);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 60px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-logo {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 12px; letter-spacing: .14em;
  color: rgba(255,255,255,.32);
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,.18); }
.footer-socials { display: flex; gap: 24px; }
.footer-socials a {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.28); transition: color .3s; cursor: none;
}
.footer-socials a:hover { color: var(--o); }

/* ── LIGHTBOX ── */
#lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(5,3,1,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
  backdrop-filter: blur(8px);
}
#lightbox.open { opacity: 1; pointer-events: all; }
#lightbox-img {
  max-width: 88vw; max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(255,102,0,.15);
  transform: scale(.94);
  transition: transform .4s cubic-bezier(.25,1,.5,1);
}
#lightbox.open #lightbox-img { transform: scale(1); }
#lightbox-close {
  position: absolute; top: 28px; right: 32px;
  font-size: 28px; color: rgba(255,255,255,.5);
  cursor: none; transition: color .3s;
  font-family: 'DM Sans', sans-serif; font-weight: 300;
  line-height: 1;
}
#lightbox-close:hover { color: var(--o); }
#lightbox-prev, #lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 36px; color: rgba(255,255,255,.35);
  cursor: none; transition: color .3s, transform .2s;
  font-family: 'DM Sans', sans-serif; font-weight: 300;
  padding: 20px;
  line-height: 1;
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
#lightbox-prev:hover, #lightbox-next:hover {
  color: var(--o); transform: translateY(-50%) scale(1.1);
}
#lightbox-counter {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em;
  color: rgba(255,255,255,.3); font-family: 'DM Sans', sans-serif;
}
#lightbox-collection {
  position: absolute; top: 28px; left: 36px;
  font-family: 'Syne', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: .14em;
  color: rgba(255,255,255,.4); text-transform: uppercase;
}

/* ── INTRO SCREEN ── */
#intro {
  position: fixed; inset: 0; z-index: 99990;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}
#intro.done { animation: introDone .8s ease forwards; }
@keyframes introDone {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}
.intro-lines {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  font-weight: 300; letter-spacing: .18em;
  color: rgba(255,102,0,.7); text-transform: uppercase;
  text-align: center; margin-bottom: 56px;
  min-height: 120px;
}
.intro-line {
  opacity: 0; margin-bottom: 10px;
  animation: introLineIn .4s ease forwards;
}
@keyframes introLineIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.intro-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(42px, 6vw, 88px);
  letter-spacing: -.02em; color: #fff;
  opacity: 0; animation: introNameIn .8s ease forwards;
  text-align: center; margin-bottom: 16px;
}
.intro-name span { color: var(--o); }
@keyframes introNameIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.intro-sub {
  font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  opacity: 0; animation: introNameIn .8s ease forwards;
  margin-bottom: 64px;
}
.intro-bar-wrap {
  width: 280px; height: 1px;
  background: rgba(255,255,255,.1);
  position: relative; overflow: hidden;
}
.intro-bar {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0%;
  background: linear-gradient(to right, var(--o), var(--ob));
  box-shadow: 0 0 8px var(--o);
  transition: width linear;
}
.intro-pct {
  font-size: 10px; letter-spacing: .2em;
  color: rgba(255,102,0,.6); margin-top: 12px;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
}
.intro-scanline {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,.08) 3px,
    rgba(0,0,0,.08) 4px
  );
  pointer-events: none; animation: scanlineMove 4s linear infinite;
}
@keyframes scanlineMove {
  from { background-position: 0 0; }
  to   { background-position: 0 100px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  nav, .section, .inner-hero, footer { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .section, .inner-hero, footer { padding-left: 24px; padding-right: 24px; }
}
