/* ============================================
   Night and Wknd — Landing Page Styles
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Colors */
  --bg-dark: #0a0a1a;
  --bg-surface: #12122a;
  --neon-orange: #ff6b1a;
  --neon-purple: #b44aff;
  --neon-cyan: #00e5ff;
  --text-primary: #e8e8f0;
  --text-muted: #8888aa;

  /* Glows */
  --glow-orange: 0 0 20px rgba(255, 107, 26, 0.4);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.4);

  /* Typography */
  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-body: clamp(1rem, 1.2vw, 1.125rem);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.3s;
}

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

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtext {
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-subtext--spaced {
  margin-top: 2rem;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  background-color: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 74, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav-logo:hover {
  color: var(--neon-orange);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hamburger open state */
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(180, 74, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 107, 26, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: clamp(200px, 55vw, 340px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-inline: auto;
  margin-bottom: 2rem;
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 15px rgba(255, 107, 26, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 35px rgba(255, 107, 26, 0.6));
  }
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 550px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--neon-orange);
  color: var(--bg-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.875rem 2.25rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  color: var(--bg-dark);
  box-shadow: var(--glow-orange);
  transform: translateY(-2px);
}

/* --- Sections (shared) --- */
section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

/* --- About --- */
.about-content {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

/* --- Featured Project --- */
.featured-project {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 107, 26, 0.25);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.featured-project:hover {
  border-color: rgba(255, 107, 26, 0.5);
  box-shadow: var(--glow-orange);
}

.featured-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--neon-orange);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
}

.featured-body h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.featured-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.featured-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 0.875rem 2.25rem;
  border: 1px solid rgba(232, 232, 240, 0.2);
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.project-tech span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* --- Contact --- */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.contact-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(136, 136, 170, 0.2);
  border-radius: 4px;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.social-links a:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: var(--glow-cyan);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid rgba(180, 74, 255, 0.08);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- 404 Page --- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-404 .hero-logo {
  width: 160px;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-inline: auto;
}

/* Mobile nav sidebar (lives outside header) */
.nav-links--mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  padding: 5rem 2rem 2rem;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 1px solid rgba(180, 74, 255, 0.15);
  z-index: 1001;
}

.nav-links--mobile.is-open {
  transform: translateX(0);
}

.nav-links--mobile a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links--mobile a:hover {
  color: var(--text-primary);
}

/* Overlay behind sidebar */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.nav-overlay.is-open {
  display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links--desktop {
    display: none;
  }

  .featured-project {
    padding: 1.5rem;
  }
}

@media (min-width: 769px) {
  .nav-links--mobile {
    display: none !important;
  }

  .nav-overlay {
    display: none !important;
  }
}