@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

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

:root {
  --orange: #ff6b2b;
  --pink: #ff2e93;
  --red: #ff4a5a;
  --yellow: #ffc800;
  --blue: #00f0ff;
  --green: #00ffaa;
  --white: #ffffff;

  --bg: #030014;
  --bg-soft: #08041c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 46, 147, 0.5);

  --dark: #f5f2ff;
  --text: #f5f2ff;
  --gray: #a39ebf;
  --light: var(--bg);

  --gradient: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 43, 0.08) 0%, rgba(255, 46, 147, 0.08) 100%);
  --gradient-neon: linear-gradient(135deg, var(--pink) 0%, var(--blue) 100%);

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.75);
  --glow: 0 0 35px rgba(255, 46, 147, 0.35);
  --glow-blue: 0 0 35px rgba(0, 240, 255, 0.35);

  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: var(--bg);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--orange), var(--pink));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Clean background without noise overlay */
body::after {
  display: none;
}

::selection {
  background: rgba(233, 30, 140, 0.4);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--orange), var(--pink));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Background ---------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 70% 50% at 70% -5%, rgba(255, 46, 147, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 15%, rgba(255, 107, 43, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 85%, rgba(0, 240, 255, 0.08), transparent 60%),
    var(--bg);
}

.bg-sparkles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 90%);
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 90%);
}

.bg-sparkles::before,
.bg-sparkles::after,
.bg-gradient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  pointer-events: none;
}

.bg-sparkles::before {
  background: radial-gradient(circle, rgba(255, 46, 147, 0.35), transparent 70%);
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  animation: drift-pink 22s ease-in-out infinite alternate;
}

.bg-sparkles::after {
  background: radial-gradient(circle, rgba(255, 107, 43, 0.25), transparent 70%);
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  animation: drift-orange 26s ease-in-out infinite alternate-reverse;
}

.bg-gradient::after {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2), transparent 70%);
  width: 550px;
  height: 550px;
  top: 40%;
  left: 30%;
  animation: drift-blue 24s ease-in-out infinite alternate;
}

@keyframes drift-pink {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes drift-orange {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 80px) scale(1.2); }
}

@keyframes drift-blue {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, -80px) scale(1.1); }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, calc(100% - 2.5rem));
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 0, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.header.scrolled {
  top: 0.75rem;
  background: rgba(5, 2, 18, 0.85);
  border-color: rgba(255, 46, 147, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 46, 147, 0.12);
}

/* Custom scrolling border highlight effect */
.header::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 46, 147, 0.4) 40%, 
    rgba(0, 240, 255, 0.4) 60%, 
    transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-size: 200% 100%;
  animation: border-sweep 4s linear infinite;
}

.header.scrolled::after {
  opacity: 1;
}

@keyframes border-sweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Scroll progress bar (created in script.js) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 2000;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--blue));
  box-shadow: 0 0 15px rgba(255, 46, 147, 0.8);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.6rem 1.25rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  position: relative;
  transition: opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.95;
}

.logo-name {
  color: #ffffff;
  font-weight: 800;
  position: relative;
  transition: color 0.3s ease;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
  border-color: rgba(255, 46, 147, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 46, 147, 0.2);
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gray);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.logo-tag.tag-pink {
  color: var(--pink);
  background: rgba(255, 46, 147, 0.08);
  border-color: rgba(255, 46, 147, 0.25);
}

.logo-tag.tag-blue {
  color: var(--blue);
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
}

.logo-tag.tag-red {
  color: var(--red);
  background: rgba(255, 74, 90, 0.08);
  border-color: rgba(255, 74, 90, 0.25);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  padding: 0 9px;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav.open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .burger span:nth-child(2) {
  opacity: 0;
}

.nav.open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.65rem;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(233, 30, 140, 0.4);
}

.btn-sm:hover {
  box-shadow: 0 8px 28px rgba(233, 30, 140, 0.55);
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(233, 30, 140, 0.4);
}

.btn-primary {
  overflow: hidden;
}

/* Shimmer sweep */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  box-shadow: 0 12px 42px rgba(233, 30, 140, 0.55);
}

.btn-primary:hover::before {
  left: 130%;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  color: var(--white);
  background: var(--surface-strong);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
  padding: 8.5rem 0 6.5rem;
  position: relative;
  min-height: calc(100vh - 80px);
  overflow: hidden; /* Prevent grid overflow */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Blinking terminal cursor */
.hero-badge::after {
  content: '_';
  color: var(--pink);
  font-weight: 700;
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 0 12px rgba(255, 46, 147, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.highlight {
  background: linear-gradient(110deg, var(--orange), var(--pink), var(--blue), var(--pink), var(--orange));
  background-size: 280% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 7s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-text {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 500px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 0.75rem 1.5rem;
  min-width: 130px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 46, 147, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 46, 147, 0.1);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-card:hover .stat-num {
  background: linear-gradient(135deg, var(--white), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.logo-ring {
  position: relative;
  animation: float 5s ease-in-out infinite;
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--orange), var(--pink), #6d4dff, var(--orange));
  opacity: 0.45;
  filter: blur(50px);
  z-index: -1;
  animation: spin 14s linear infinite;
}

.logo-ring::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: calc(var(--radius-lg) + 14px);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 50%);
  z-index: -1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-logo {
  width: min(320px, 78vw);
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px var(--border),
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(233, 30, 140, 0.25);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content, .hero-visual {
  animation: fadeInUp 0.8s ease-out;
}

.section-header, .about-card, .project-card, .team-card {
  animation: fadeInUp 0.6s ease-out;
  opacity: 0;
  animation-fill-mode: both;
}

.section-header:nth-child(1),
.about-card:nth-child(1),
.project-card:nth-child(1),
.team-card:nth-child(1) { animation-delay: 0.1s; }

.section-header:nth-child(2),
.about-card:nth-child(2),
.project-card:nth-child(2),
.team-card:nth-child(2) { animation-delay: 0.2s; }

.section-header:nth-child(3),
.about-card:nth-child(3),
.project-card:nth-child(3),
.team-card:nth-child(3) { animation-delay: 0.3s; }

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section + .section::before,
.section + .section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 46, 147, 0.3), rgba(0, 240, 255, 0.2), transparent);
  pointer-events: none;
}

.section-alt {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 1rem;
  padding: 5.5rem 0;
  overflow: hidden;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 30, 140, 0.6), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.section-tag::before {
  content: '[ ';
  opacity: 0.6;
}

.section-tag::after {
  content: ' ]';
  opacity: 0.6;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.7) 40%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--gray);
  max-width: 580px;
  margin: 1.1rem auto 0;
  font-size: 1.05rem;
}

.inline-link {
  color: #ff7eb8;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition);
}

.inline-link:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* ---------- History pages ---------- */
.page-hero {
  padding: 7.5rem 0 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 1.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.back-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateX(-3px);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1rem 0;
}

.page-hero-text {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.75;
}

.page-project-header {
  margin-bottom: 1rem;
  justify-content: flex-start;
  gap: 0.75rem;
}

.page-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-block: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--pink) 40%, var(--blue) 80%, rgba(0, 240, 255, 0.05));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 46, 147, 0.25);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0px;
  top: 1.85rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--pink);
  box-shadow: 0 0 10px rgba(255, 46, 147, 0.4);
  z-index: 2;
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-item:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(255, 46, 147, 0.6);
}

.timeline-item-highlight::before {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.15), 0 0 20px rgba(0, 240, 255, 0.5);
}

.timeline-item-highlight:hover::before {
  box-shadow: 0 0 0 6px rgba(0, 240, 255, 0.2), 0 0 25px rgba(0, 240, 255, 0.7);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 50px;
  padding: 0.15rem 0.65rem;
  margin-bottom: 0.8rem;
}

.timeline-item-highlight .timeline-date {
  color: var(--yellow);
  background: rgba(255, 200, 0, 0.06);
  border: 1px solid rgba(255, 200, 0, 0.2);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.timeline-content:hover {
  border-color: rgba(255, 46, 147, 0.2);
  background: var(--surface-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 46, 147, 0.05);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.timeline-content p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.65;
}

.timeline-content a {
  color: #ff7eb8;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition);
}

.timeline-content a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.timeline-post {
  display: inline-block;
  margin-top: 0.85rem;
  margin-right: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue) !important;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.timeline-post:hover {
  color: #ff7eb8 !important;
  text-decoration: underline;
  transform: translateX(2px);
}

.timeline-details {
  margin-top: 1rem;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.timeline-details ul {
  margin: 0.5rem 0 0 1.1rem;
}

.timeline-details li {
  margin-bottom: 0.35rem;
}

.timeline-content code {
  font-size: 0.78rem;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  color: #ffd6ea;
}

/* ---------- Code blocks ---------- */
pre {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #c8c4d8;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #ffd6ea;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.about-card::before,
.project-card::before,
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background var(--transition);
}

.about-card:hover::before,
.project-card:hover::before,
.team-card:hover::before {
  background: linear-gradient(135deg, var(--pink), transparent 50%, var(--blue));
}

.about-card:hover {
  transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02);
  border-color: rgba(255, 46, 147, 0.25);
  background: var(--surface-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 46, 147, 0.12);
}

/* Cursor-tracking spotlight (coordinates set in script.js) */
.about-card::after,
.project-card::after,
.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 46, 147, 0.12) 0%, rgba(0, 240, 255, 0.04) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.about-card:hover::after,
.project-card:hover::after,
.team-card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.about-card:hover .card-icon {
  transform: scale(1.08) rotate(5deg);
}

.card-icon-red { background: rgba(255, 74, 90, 0.12); border-color: rgba(255, 74, 90, 0.25); box-shadow: 0 0 24px rgba(255, 74, 90, 0.15); }
.card-icon-blue { background: rgba(0, 240, 255, 0.12); border-color: rgba(0, 240, 255, 0.25); box-shadow: 0 0 24px rgba(0, 240, 255, 0.15); }
.card-icon-yellow { background: rgba(255, 200, 0, 0.12); border-color: rgba(255, 200, 0, 0.25); box-shadow: 0 0 24px rgba(255, 200, 0, 0.15); }
.card-icon-green { background: rgba(0, 255, 170, 0.12); border-color: rgba(0, 255, 170, 0.25); box-shadow: 0 0 24px rgba(0, 255, 170, 0.15); }

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--white);
}

.about-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Projects ---------- */
.projects-group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.projects-group-title:not(.projects-group-title-toggle)::before {
  content: '> ';
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-group-title:not(.projects-group-title-toggle)::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.projects-group-title:not(:first-of-type):not(.projects-group-title-toggle) {
  margin-top: 3rem;
}

.projects-archive {
  margin-top: 3rem;
}

.projects-group-title-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color var(--transition), border-color var(--transition);
}

.projects-group-title-toggle::-webkit-details-marker {
  display: none;
}

.projects-group-title-toggle::marker {
  content: '';
}

.projects-group-title-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.projects-group-title-toggle::after {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
  opacity: 0.7;
}

.projects-archive[open] .projects-group-title-toggle::after {
  transform: rotate(45deg);
}

.projects-archive-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
  margin-left: auto;
}

.projects-archive .projects-grid {
  margin-top: 1.25rem;
}

.projects-group-title-foundation {
  color: var(--blue);
}

.projects-group-desc {
  color: var(--gray);
  font-size: 0.95rem;
  margin: -0.5rem 0 1.25rem;
  max-width: 640px;
}

.projects-grid-foundation .project-card-muted {
  border-color: rgba(77, 163, 255, 0.2);
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.05) 0%, rgba(233, 30, 140, 0.04) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.projects-grid-archive {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.85rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition),
    background var(--transition), box-shadow var(--transition);
}

.project-card:hover,
.project-card-link:hover {
  border-color: rgba(255, 46, 147, 0.35);
  background: var(--surface-strong);
  transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(255, 46, 147, 0.15),
    0 0 45px rgba(255, 46, 147, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card-link .project-link {
  margin-top: auto;
}

.project-card-muted {
  opacity: 0.7;
}

.project-card-muted:hover {
  opacity: 1;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-active {
  background: rgba(0, 255, 170, 0.08);
  border-color: rgba(0, 255, 170, 0.2);
  color: var(--green);
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.1);
}

.badge-dev {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--blue);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.badge-frozen {
  background: rgba(255, 167, 38, 0.08);
  border-color: rgba(255, 167, 38, 0.2);
  color: #ffa726;
}

.badge-closed {
  background: rgba(156, 151, 184, 0.06);
  border-color: rgba(156, 151, 184, 0.15);
  color: var(--gray);
}

.project-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.project-type::before {
  content: '# ';
  opacity: 0.55;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.625rem;
  color: var(--white);
}

.project-card p {
  color: var(--gray);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.project-link {
  display: inline-block;
  color: #ff7eb8;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.project-link:hover {
  color: var(--orange);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin-inline: auto;
}

.team-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02);
  border-color: rgba(255, 46, 147, 0.25);
  background: var(--surface-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 46, 147, 0.12);
}

.team-avatar {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.25rem;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  box-shadow: 0 0 24px rgba(255, 46, 147, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover .team-avatar {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 30px rgba(255, 46, 147, 0.25), 0 0 30px rgba(0, 240, 255, 0.15);
}

.team-avatar svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}
}

.team-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.375rem;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.team-card p:last-child {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  background:
    radial-gradient(ellipse 90% 100% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    var(--gradient);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: var(--white);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 70px rgba(233, 30, 140, 0.3);
}

.contact-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

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

.contact-block .section-tag {
  background: none;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.85);
}

.contact-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 700;
  margin: 0.75rem 0 1rem;
  line-height: 1.2;
}

.contact-block > .contact-content > p {
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 440px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(6px);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item strong {
  display: block;
  font-weight: 800;
  font-size: 0.875rem;
}

.contact-item span:last-child {
  font-size: 0.9rem;
  opacity: 0.88;
}

.contact-visual {
  position: relative;
  z-index: 1;
}

.contact-visual img {
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  animation: float 5s ease-in-out infinite 1s;
}

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 46, 147, 0.25), rgba(0, 240, 255, 0.15), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  padding-right: 2rem;
}

.footer-tagline {
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.8rem;
}

.footer-domains {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-domains a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-domains a:hover {
  color: #ff7eb8;
}

.footer-dot {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
}

.logo-sm {
  font-size: 1.05rem;
}

.logo-sm img {
  border-radius: 8px;
}

/* ---------- Hero Particles ---------- */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
  animation: particle-float linear infinite;
}

.hero-particles span:nth-child(1) { left: 8%; top: 20%; animation-duration: 18s; animation-delay: 0s; width: 2px; height: 2px; }
.hero-particles span:nth-child(2) { left: 22%; top: 60%; animation-duration: 22s; animation-delay: -3s; background: rgba(255, 46, 147, 0.3); box-shadow: 0 0 8px rgba(255, 46, 147, 0.2); }
.hero-particles span:nth-child(3) { left: 40%; top: 35%; animation-duration: 20s; animation-delay: -6s; }
.hero-particles span:nth-child(4) { left: 55%; top: 75%; animation-duration: 25s; animation-delay: -2s; width: 4px; height: 4px; background: rgba(0, 240, 255, 0.2); box-shadow: 0 0 10px rgba(0, 240, 255, 0.15); }
.hero-particles span:nth-child(5) { left: 70%; top: 15%; animation-duration: 19s; animation-delay: -8s; }
.hero-particles span:nth-child(6) { left: 85%; top: 50%; animation-duration: 23s; animation-delay: -4s; width: 2px; height: 2px; background: rgba(255, 46, 147, 0.25); }
.hero-particles span:nth-child(7) { left: 15%; top: 80%; animation-duration: 21s; animation-delay: -10s; }
.hero-particles span:nth-child(8) { left: 60%; top: 45%; animation-duration: 17s; animation-delay: -7s; background: rgba(0, 240, 255, 0.25); box-shadow: 0 0 8px rgba(0, 240, 255, 0.15); width: 2px; height: 2px; }
.hero-particles span:nth-child(9) { left: 35%; top: 90%; animation-duration: 24s; animation-delay: -5s; }
.hero-particles span:nth-child(10) { left: 90%; top: 30%; animation-duration: 20s; animation-delay: -1s; width: 2px; height: 2px; }

@keyframes particle-float {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(-30px, -80px) scale(1.3); opacity: 0.7; }
  90% { opacity: 1; }
  100% { transform: translate(20px, -160px) scale(0.8); opacity: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

.preloader-logo {
  animation: spin 1.5s linear infinite;
}

.preloader-logo img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(233, 30, 140, 0.5);
}

/* ---------- Mobile ---------- */
@media (max-width: 992px) {
  .header {
    width: min(1140px, calc(100% - 1.5rem));
    top: 0.85rem;
  }

  .nav {
    padding: 0.5rem 0.85rem;
    gap: 0.5rem;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .logo-name {
    font-size: 1.15rem;
  }

  .nav-links {
    display: none;
  }

  .nav > .btn-sm {
    margin-left: auto;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }

  .burger {
    display: flex;
    margin-left: 0.25rem;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    margin: 0;
    background: rgba(5, 2, 18, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.25rem;
    gap: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
    z-index: 1000;
  }

  .nav.open .nav-links a {
    display: block;
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav.open .nav-links a:hover,
  .nav.open .nav-links a.nav-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }

  .nav.open .nav-links a::after {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7.5rem 0 4rem;
    min-height: auto;
  }

  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: 1;
    width: 100%;
    max-width: 440px;
    margin: 2.5rem auto 0;
  }

  .hero-logo {
    width: 190px;
  }

  .logo-ring::before {
    inset: -24px;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-alt {
    padding: 3.75rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .projects-grid-archive {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-block {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.25rem 1.5rem;
  }

  .contact-block > .contact-content > p {
    margin-inline: auto;
  }

  .contact-links {
    align-items: stretch;
  }

  .contact-item {
    text-align: left;
  }

  .contact-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-domains {
    justify-content: center;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-item {
    padding-left: 2.1rem;
  }

  .timeline-item::before {
    left: 0;
  }

  .page-hero-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-tag {
    display: none;
  }
  .header {
    width: calc(100% - 1rem);
    top: 0.5rem;
  }
  .nav > .btn-sm {
    display: none;
  }
  .studio-card-featured,
  .jm-project-card,
  .classified-card {
    padding: 1.35rem;
  }
  .substudio-head-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ---------- Seednox landing ---------- */
.snx-logo-img {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25);
}

.snx-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.snx-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.snx-logo-ring {
  position: relative;
  animation: float 5s ease-in-out infinite;
}

.snx-logo-ring::before {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--green), #22d3ee, var(--green));
  opacity: 0.35;
  filter: blur(45px);
  z-index: -1;
  animation: spin 14s linear infinite;
}

.snx-hero-logo {
  width: min(280px, 72vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.3),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(52, 211, 153, 0.2);
}

.snx-hero .page-hero-text {
  max-width: 720px;
}

.snx-tagline {
  font-size: 1.15rem;
}

.snx-features {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.snx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.snx-split-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.snx-steps {
  list-style: none;
  counter-reset: snx-step;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.snx-steps li {
  counter-increment: snx-step;
  position: relative;
  padding-left: 2.75rem;
  color: var(--gray);
}

.snx-steps li::before {
  content: counter(snx-step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
}

.snx-steps li strong {
  color: var(--text);
}

.snx-note,
.snx-docker {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--gray);
}

.snx-note code,
.snx-docker code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: #9ee8c9;
  background: rgba(52, 211, 153, 0.1);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}

.code-block {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #c8c4d8;
  white-space: pre;
}

.snx-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.snx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.snx-table th,
.snx-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.snx-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--surface);
}

.snx-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.snx-table td:last-child {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.snx-warnings {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 82, 82, 0.06);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: var(--radius);
  color: var(--gray);
  font-size: 0.95rem;
}

.snx-warnings strong {
  color: #ffb4b4;
}

.snx-cta {
  padding-bottom: 4rem;
}

.snx-cta-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.snx-cta-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.snx-cta-card p {
  color: var(--gray);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 0.5rem;
}

.snx-cta-card .page-hero-links {
  justify-content: center;
  margin-top: 1.5rem;
}

/* Enhanced Seednox v1.0.1 Component Styles */
.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.08rem;
  border-radius: 60px;
}

.snx-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.snx-record-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.snx-record-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(52, 211, 153, 0.15);
}

.snx-record-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.snx-record-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.snx-record-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.45;
  margin: 0;
}

.snx-changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.snx-changelog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.3s ease;
}

.snx-changelog-card.active-version {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.04);
}

.snx-version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.snx-version-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.snx-version-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.snx-changelog-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.snx-changelog-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--gray);
  font-size: 0.92rem;
}

.snx-changelog-card ul li {
  margin-bottom: 0.35rem;
}

.snx-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.snx-quickstep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.snx-quickstep-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-3px);
}

.snx-step-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: block;
}

.snx-quickstep-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.snx-quickstep-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .snx-quickstart-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .snx-split {
    grid-template-columns: 1fr;
  }

  .snx-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .snx-hero-content .page-project-header,
  .snx-hero-content .page-hero-links {
    justify-content: center;
  }

  .snx-hero-visual {
    order: -1;
  }

  .snx-hero-logo {
    width: min(200px, 60vw);
  }
}

/* ---------- Tech Stack ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tech-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.tech-card:hover {
  transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02);
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background var(--transition);
}

.tech-card:hover::before {
  background: linear-gradient(135deg, var(--pink), transparent 50%, var(--blue));
}

.tech-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 46, 147, 0.12) 0%, rgba(0, 240, 255, 0.04) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.tech-card:hover::after {
  opacity: 1;
}

.tech-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  color: var(--white);
  transition: transform var(--transition);
}

.tech-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.tech-card:hover .tech-icon {
  transform: scale(1.08) rotate(5deg);
}

/* Glow effects for each technology brand color */
.card-glow-python:hover {
  border-color: rgba(77, 163, 255, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(77, 163, 255, 0.12);
}
.card-glow-python .tech-icon {
  background: rgba(77, 163, 255, 0.08);
  border-color: rgba(77, 163, 255, 0.25);
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.15);
  color: #4b8bbe;
}

.card-glow-node:hover {
  border-color: rgba(0, 255, 170, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 255, 170, 0.12);
}
.card-glow-node .tech-icon {
  background: rgba(0, 255, 170, 0.08);
  border-color: rgba(0, 255, 170, 0.25);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.15);
  color: #390;
}

.card-glow-docker:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 240, 255, 0.12);
}
.card-glow-docker .tech-icon {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  color: #0db7ed;
}

.card-glow-db:hover {
  border-color: rgba(255, 107, 43, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 107, 43, 0.12);
}
.card-glow-db .tech-icon {
  background: rgba(255, 107, 43, 0.08);
  border-color: rgba(255, 107, 43, 0.25);
  box-shadow: 0 0 20px rgba(255, 107, 43, 0.15);
  color: #336791;
}

.card-glow-ton:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 240, 255, 0.12);
}
.card-glow-ton .tech-icon {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  color: #0088cc;
}

.card-glow-linux:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 255, 255, 0.08);
}
.card-glow-linux .tech-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.tech-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.tech-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Status Dashboard ---------- */
.status-summary-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc800;
  position: relative;
}

.status-dot-pulse.online {
  background: #00ffa0;
}

.status-dot-pulse.online::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #00ffa0;
  animation: status-pulse 1.8s infinite ease-in-out;
}

.status-dot-pulse.offline {
  background: #ff4a5a;
}

.status-dot-pulse.offline::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #ff4a5a;
  animation: status-pulse 1.8s infinite ease-in-out;
}

@keyframes status-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.project-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gray);
  margin-left: 0.5rem;
  transition: all var(--transition);
}

.project-status-badge.online {
  background: rgba(0, 255, 160, 0.12);
  border-color: rgba(0, 255, 160, 0.25);
  color: #00ffa0;
  box-shadow: 0 0 10px rgba(0, 255, 160, 0.08);
}

.project-status-badge.offline {
  background: rgba(255, 74, 90, 0.12);
  border-color: rgba(255, 74, 90, 0.25);
  color: #ff4a5a;
  box-shadow: 0 0 10px rgba(255, 74, 90, 0.08);
}

.project-status-badge.partial {
  background: rgba(255, 200, 0, 0.12);
  border-color: rgba(255, 200, 0, 0.25);
  color: #ffc800;
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.08);
}

/* ---------- Roadmap ---------- */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 800px;
  margin: 2rem auto 0;
  padding-left: 2rem;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--pink), var(--blue), transparent);
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--blue);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  z-index: 2;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.roadmap-item:hover::before {
  transform: scale(1.2);
  border-color: var(--pink);
  box-shadow: 0 0 15px rgba(255, 46, 147, 0.6);
}

.roadmap-quarter {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  padding-top: 0.25rem;
}

.roadmap-content {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.roadmap-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background var(--transition);
}

.roadmap-content:hover::before {
  background: linear-gradient(135deg, var(--pink), transparent 50%, var(--blue));
}

.roadmap-content:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 46, 147, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 46, 147, 0.05);
}

.roadmap-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.roadmap-content p {
  color: var(--gray);
  font-size: 0.925rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .roadmap-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .roadmap-quarter {
    color: var(--pink);
  }
}

/* ---------- Roadmap Incognita (Philosophy of the Unknown) ---------- */
.roadmap-incognita {
  position: relative;
  overflow: hidden;
}

.roadmap-blur-content {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.35;
  transition: filter var(--transition), opacity var(--transition);
}

.roadmap-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(3, 0, 20, 0.35);
  backdrop-filter: blur(0.5px);
}

.roadmap-blur-overlay span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 46, 147, 0.08);
  border: 1px solid rgba(255, 46, 147, 0.25);
  color: var(--pink);
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.15);
  text-shadow: 0 0 10px rgba(255, 46, 147, 0.4);
  animation: incognita-pulse 2.2s infinite ease-in-out;
}

@keyframes incognita-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 25px rgba(255, 46, 147, 0.3); }
  100% { opacity: 0.7; transform: scale(1); }
}

/* ---------- Theme Toggler ---------- */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  padding: 0.5rem;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(15deg);
}

body.light-theme .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: block;
}

body.light-theme .theme-toggle .sun {
  display: block;
}

body.light-theme .theme-toggle .moon {
  display: none;
}

@media (max-width: 768px) {
  .theme-toggle {
    margin-left: auto;
  }
  .nav > .btn-sm {
    margin-left: 0 !important;
  }
}

/* ---------- Light Theme Overrides ---------- */
body.light-theme {
  --bg: #f3f2fa;
  --bg-soft: #ffffff;
  --surface: rgba(0, 0, 0, 0.025);
  --surface-strong: rgba(0, 0, 0, 0.055);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(255, 46, 147, 0.45);
  --text: #1d1b2e;
  --gray: #625f7a;
  --white: #0a0817;
  --dark: #0a0817;
}

body.light-theme .bg-gradient {
  background:
    radial-gradient(ellipse 70% 50% at 70% -5%, rgba(255, 46, 147, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 15%, rgba(255, 107, 43, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 85%, rgba(0, 240, 255, 0.05), transparent 60%),
    var(--bg);
}

body.light-theme .bg-sparkles {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

body.light-theme .header {
  background: rgba(243, 242, 250, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .header.scrolled {
  background: rgba(245, 244, 252, 0.9);
}

body.light-theme .hero-badge {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text);
  border-color: var(--border);
}

body.light-theme .stat-num {
  background: linear-gradient(135deg, var(--text), var(--gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .hero-stat-card {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .hero-stat-card:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .about-card,
body.light-theme .project-card,
body.light-theme .team-card,
body.light-theme .tech-card,
body.light-theme .roadmap-content {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .about-card:hover,
body.light-theme .project-card:hover,
body.light-theme .team-card:hover,
body.light-theme .tech-card:hover,
body.light-theme .roadmap-content:hover {
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 0 25px rgba(255, 46, 147, 0.05);
}

body.light-theme .section-header h2 {
  background: linear-gradient(135deg, var(--text) 0%, rgba(29, 27, 46, 0.85) 40%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .hero-terminal {
  background: rgba(12, 9, 31, 0.95);
}

/* ---------- Custom Cursor ---------- */
@media (pointer: fine) {
  body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><defs><filter id="neon-glow" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur stdDeviation="1.2" result="blur"/><feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><line x1="22" y1="22" x2="28" y2="28" stroke="%23ff2e93" stroke-width="2.5" stroke-linecap="round"/><line x1="23" y1="23" x2="27" y2="27" stroke="%23ffffff" stroke-width="1" stroke-linecap="round"/><ellipse cx="20" cy="20" rx="3.5" ry="1.5" transform="rotate(-45 20 20)" fill="%23030014" stroke="%2300f0ff" stroke-width="1.5" filter="url(%23neon-glow)"/><line x1="2" y1="2" x2="19" y2="19" stroke="%2300f0ff" stroke-width="2.5" stroke-linecap="round" filter="url(%23neon-glow)"/><line x1="3" y1="3" x2="18" y2="18" stroke="%23ffffff" stroke-width="1" stroke-linecap="round"/></svg>') 2 2, auto;
  }
  
  a, button, details summary, .projects-group-title-toggle, .burger, .roadmap-quarter, .contact-item, .project-card-link, .timeline-content a, .timeline-post {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><defs><filter id="neon-glow" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur stdDeviation="1.2" result="blur"/><feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><line x1="22" y1="22" x2="28" y2="28" stroke="%2300f0ff" stroke-width="2.5" stroke-linecap="round"/><line x1="23" y1="23" x2="27" y2="27" stroke="%23ffffff" stroke-width="1" stroke-linecap="round"/><ellipse cx="20" cy="20" rx="3.5" ry="1.5" transform="rotate(-45 20 20)" fill="%23030014" stroke="%23ff2e93" stroke-width="1.5" filter="url(%23neon-glow)"/><line x1="2" y1="2" x2="19" y2="19" stroke="%23ff2e93" stroke-width="2.5" stroke-linecap="round" filter="url(%23neon-glow)"/><line x1="3" y1="3" x2="18" y2="18" stroke="%23ffffff" stroke-width="1" stroke-linecap="round"/><path d="M2,0 L2,4 M0,2 L4,2" stroke="%23ffffff" stroke-width="1"/></svg>') 2 2, pointer !important;
  }
}
/* ---------- Hero Terminal ---------- */
.hero-terminal {
  width: 100%;
  max-width: 420px;
  background: rgba(8, 4, 28, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 240, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--transition);
}

.hero-terminal:hover {
  border-color: rgba(0, 240, 255, 0.25);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(3, 0, 20, 0.5);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots .dot.red { background: #ff5f56; }
.terminal-dots .dot.yellow { background: #ffbd2e; }
.terminal-dots .dot.green { background: #27c93f; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  pointer-events: none;
}

.terminal-body {
  padding: 1.25rem;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.terminal-output {
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.5;
  color: #a5f3fc;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.terminal-output::-webkit-scrollbar {
  width: 4px;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-line.error { color: #f43f5e; }
.terminal-line.success { color: #10b981; }
.terminal-line.info { color: #3b82f6; }
.terminal-line.warning { color: #f59e0b; }

.prompt {
  color: var(--pink);
  font-weight: 700;
  user-select: none;
}

#terminal-input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  flex-grow: 1;
  caret-color: var(--pink);
}

.terminal-body .input-line {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

/* ---------- Cyberpunk 3D Grid Background ---------- */
.hero-grid-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-grid-perspective {
  width: 100%;
  height: 100%;
  perspective: 200px;
}

.hero-grid-lines {
  width: 200%;
  height: 400%;
  margin-left: -50%;
  margin-top: -100%;
  background-image: 
    linear-gradient(to right, var(--pink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pink) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotateX(70deg);
  transform-origin: 50% 50%;
  animation: grid-scroll 16s linear infinite;
  box-shadow: inset 0 0 100px rgba(3, 0, 20, 1);
}

@keyframes grid-scroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 200px;
  }
}

/* Clean logo hover effect without glitches */
.logo:hover {
  opacity: 0.9;
}
