/* ===========================
   Cold Frequency — styles.css
   =========================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/rajdhani-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/rajdhani-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/rajdhani-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/rajdhani-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/share-tech-mono-400.woff2') format('woff2');
}

/* --- Variables ------------------------------------------------------------- */
:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface2:    #181818;
  --border:      #2a2a2a;
  --accent:      #00abe2;
  --accent-dim:  #01477d;
  --text:        #d0d0d0;
  --text-dim:    #666666;
  --text-bright: #f0f0f0;
  --nav-h:       60px;
  --social-bar-h: 36px;
  --header-h:    96px; /* nav + social bar */
  --font-body:   'Rajdhani', sans-serif;
  --font-mono:   'Share Tech Mono', monospace;
}

/* --- Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image: url('images/background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 0;
  pointer-events: none;
}
main, nav, footer, .modal-overlay { position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text-bright); }
img { display: block; max-width: 100%; }

/* --- Social bar ------------------------------------------------------------ */
.social-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: var(--social-bar-h);
  background: rgba(6,6,6,0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  z-index: 99;
}
.social-bar a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.3rem 0.9rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.social-bar a:hover { color: var(--accent); }
.social-bar a svg { flex-shrink: 0; }

/* --- Nav ------------------------------------------------------------------- */
nav.site-nav {
  height: var(--nav-h);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}
.nav__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--accent); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* --- Mobile nav ------------------------------------------------------------ */
@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8,8,8,0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav__links.is-open { display: flex; }
  .nav__links li a {
    display: block;
    padding: 1rem 2rem;
    border-top: 1px solid var(--border);
  }
  .nav__burger { display: flex; }
}

/* --- Hero ------------------------------------------------------------------ */
#hero {
  padding-top: var(--header-h);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
}
.hero__logo {
  width: min(800px, 90vw);
  border-radius: 4px;
}
.hero__tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__tagline em {
  color: var(--accent);
  font-style: normal;
}
.hero__social {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__social a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  transition: color 0.2s, border-color 0.2s;
}
.hero__social a:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn--ghost { border-color: var(--border); color: var(--text-dim); }
.btn--ghost:hover { background: var(--surface2); color: var(--text-bright); border-color: var(--text-dim); }

/* --- Section layout -------------------------------------------------------- */
section {
  padding: 5rem 0;
}
.container {
  width: min(900px, 92vw);
  margin: 0 auto;
}
.section__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section__title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2rem;
}

/* --- Music section --------------------------------------------------------- */
#music .release {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
}
#music .release__cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
}
#music .release__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
#music .release__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
#music .release__sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
#music .release__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}
#music .tracklist {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
#music .tracklist li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(42,42,42,0.5);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
#music .tracklist li span.num {
  color: var(--accent-dim);
  width: 1.2rem;
  text-align: right;
  flex-shrink: 0;
}
#music .tracklist li span.name {
  flex: 1;
  color: var(--text);
}
#music .tracklist li span.dur { color: var(--text-dim); }

@media (max-width: 600px) {
  #music .release {
    grid-template-columns: 1fr;
  }
  #music .release__cover { max-width: 200px; }
}

/* --- About section --------------------------------------------------------- */
#about .about__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
#about .about__text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
#about .about__text p:last-child { margin-bottom: 0; }
#about .about__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  filter: grayscale(20%);
}
#about .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
#about .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

@media (max-width: 640px) {
  #about .about__grid {
    grid-template-columns: 1fr;
  }
  #about .about__photo {
    max-width: 260px;
    aspect-ratio: 1/1;
  }
}

/* --- Merch section --------------------------------------------------------- */
#merch .merch__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
#merch .merch__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
#merch .merch__link:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}
#merch .merch__link::after {
  content: '→';
  color: var(--accent-dim);
}

/* --- Footer --------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
footer .footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
footer .footer__brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
footer .footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
footer .footer__links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
footer .footer__links a:hover { color: var(--accent); }
footer .footer__copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Modal ----------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal__close:hover { color: var(--accent); }
.modal__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.modal__body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 1.2rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal__body p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}
.modal__body a { color: var(--accent); }
.modal__body a:hover { color: var(--text-bright); }

/* --- About page ------------------------------------------------------------ */
.page-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero__back {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.page-hero__back:hover { color: var(--accent); }
.about-page__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-page__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  filter: grayscale(15%);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.about-page__content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.about-page__content .subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.about-page__content p {
  font-size: 1.05rem;
  line-height: 1.78;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.about-page__content p:last-child { margin-bottom: 0; }
.about-page__content .influences {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.about-page__content .influences h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.about-page__content .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.about-page__content .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

@media (max-width: 700px) {
  .about-page__grid {
    grid-template-columns: 1fr;
  }
  .about-page__photo {
    max-width: 260px;
    aspect-ratio: 1/1;
    position: static;
  }
}

/* --- Glitch effect --------------------------------------------------------- */
@keyframes glitch-clip-1 {
  0%   { clip-path: inset(40% 0 50% 0); transform: translate(-3px, 0); }
  10%  { clip-path: inset(10% 0 80% 0); transform: translate(3px, 0); }
  20%  { clip-path: inset(70% 0 5%  0); transform: translate(-2px, 0); }
  30%  { clip-path: inset(30% 0 60% 0); transform: translate(2px, 0); }
  40%  { clip-path: inset(55% 0 25% 0); transform: translate(-3px, 0); }
  50%  { clip-path: inset(15% 0 70% 0); transform: translate(3px, 0); }
  60%  { clip-path: inset(80% 0 10% 0); transform: translate(-1px, 0); }
  70%  { clip-path: inset(5%  0 90% 0); transform: translate(1px, 0); }
  80%  { clip-path: inset(45% 0 40% 0); transform: translate(-3px, 0); }
  90%  { clip-path: inset(20% 0 65% 0); transform: translate(3px, 0); }
  100% { clip-path: inset(40% 0 50% 0); transform: translate(-3px, 0); }
}
@keyframes glitch-clip-2 {
  0%   { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  15%  { clip-path: inset(5%  0 85% 0); transform: translate(-3px, 0); }
  25%  { clip-path: inset(75% 0 5%  0); transform: translate(2px, 0); }
  35%  { clip-path: inset(25% 0 55% 0); transform: translate(-2px, 0); }
  50%  { clip-path: inset(50% 0 30% 0); transform: translate(3px, 0); }
  65%  { clip-path: inset(10% 0 75% 0); transform: translate(-3px, 0); }
  80%  { clip-path: inset(85% 0 5%  0); transform: translate(1px, 0); }
  100% { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
}
@keyframes glitch-skew {
  0%,100% { transform: skewX(0deg); }
  10%      { transform: skewX(-1.5deg); }
  20%      { transform: skewX(1deg); }
  30%      { transform: skewX(-0.5deg); }
  40%      { transform: skewX(0.8deg); }
  50%      { transform: skewX(-1deg); }
  60%      { transform: skewX(0.5deg); }
  70%      { transform: skewX(-0.8deg); }
  80%      { transform: skewX(1.2deg); }
  90%      { transform: skewX(-0.3deg); }
}

.glitch {
  position: relative;
  display: inline-block;
}
/* Block headings need to stay block but still allow absolute positioning */
h1.glitch, h2.glitch, h3.glitch {
  display: block;
  overflow: visible;
}
/* Occasional skew on the whole element */
.glitch {
  animation: glitch-skew 8s steps(1) infinite;
}
/* Pseudo-elements are coloured ghost copies that glitch independently */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: transparent;
  /* inherit parent colour so we can tint in the pseudo */
}
.glitch::before {
  color: #00ffe5;
  opacity: 0.55;
  animation: glitch-clip-1 5s steps(1) infinite;
  animation-delay: -1.2s;
}
.glitch::after {
  color: #ff003c;
  opacity: 0.45;
  animation: glitch-clip-2 5s steps(1) infinite;
  animation-delay: -2.8s;
}
/* Pause glitch when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glitch,
  .glitch::before,
  .glitch::after { animation: none; }
  .glitch::before,
  .glitch::after { display: none; }
}

/* --- Nav icon aura --------------------------------------------------------- */
@keyframes aura-pulse {
  0%   { box-shadow: 0 0 4px 2px rgba(255,255,255,0.15), 0 0 10px 4px rgba(255,255,255,0.07); transform: scale(1); }
  50%  { box-shadow: 0 0 10px 5px rgba(255,255,255,0.35), 0 0 22px 10px rgba(0,171,226,0.18); transform: scale(1.06); }
  100% { box-shadow: 0 0 4px 2px rgba(255,255,255,0.15), 0 0 10px 4px rgba(255,255,255,0.07); transform: scale(1); }
}
@keyframes aura-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.nav__icon {
  position: relative;
  border-radius: 50%;
  animation: aura-pulse 3s ease-in-out infinite;
}
/* Moving highlight arc around the icon */
.nav__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.nav__icon-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(255,255,255,0.7) 0deg,
    rgba(255,255,255,0.0) 90deg,
    rgba(0,171,226,0.4) 180deg,
    rgba(255,255,255,0.0) 270deg,
    rgba(255,255,255,0.7) 360deg
  );
  animation: aura-rotate 2.8s linear infinite;
  z-index: -1;
}
.nav__icon-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--bg);
  z-index: -1;
}
@media (prefers-reduced-motion: reduce) {
  .nav__icon { animation: none; }
  .nav__icon-wrap::before { animation: none; }
}

/* --- Scroll reveal --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
