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

:root {
  --bg: #fafafa;
  --text: #111;
  --card: #fff;
  --gold: #c9a24d;
}

.dark {
  --bg: #0e0e0e;
  --text: #f5f5f5;
  --card: #161616;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s, color 0.4s;
  scroll-behavior: smooth;
}

/* ===============================
   BACKGROUNDS
================================ */

/* Light mode → DOT GRID */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#cfcfcf 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* Dark mode → STARS */
.dark::before {
  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px);
  background-size: 120px 120px, 200px 200px, 300px 300px;
  background-position: 0 0, 50px 80px, 120px 160px;
  opacity: 0.35;
}

/* ===============================
   NAVBAR
================================ */
/* ===============================
   NAVBAR FIX
================================ */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 100;
}

.dark .navbar {
  background: rgba(14,14,14,0.9);
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

/* ===============================
   HERO
================================ */
.hero {
  min-height: 100vh;
  padding: 140px 80px 80px;
  position: relative;
}

.hero-image img {
  width: 360px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

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

/* ===============================
   HERO LAYOUT FIX (DESKTOP + MOBILE)
================================ */

.hero {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-center {
  position: static;
  transform: none;
  max-width: 520px;
}
.hero-center h1 { font-size: 64px; }
.tagline { color: gray; margin: 12px 0 24px; }

/* ===============================
   SECTIONS
================================ */
.projects, .about, .links {
  padding: 120px 80px;
}

/* ===============================
   PROJECTS – ROTATING CARDS
================================ */
.projects {
  margin-top: 5rem;
}

.projects h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.projects-subtitle {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.project-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
}

.project-card h3 {
  margin-bottom: 6px;
}

.project-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

.project-links {
  margin-top: 12px;
}

.project-links a {
  color: #9fb3ff;
  text-decoration: none;
  font-weight: 500;
}

.project-links a:hover {
  text-decoration: underline;
}

/* TAG BADGE */
.tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #e53935;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* Mobile polish */
@media (max-width: 480px) {
  .project-card {
    padding: 18px;
  }

  .tag {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}


/* ===============================
   ICON LINKS
================================ */
.icon-links {
  display: flex;
  gap: 32px;
}

.icon-links a svg {
  width: 28px;
  fill: var(--gold);
  transition: transform 0.3s, filter 0.3s;
}

.icon-links a:hover svg {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 6px 14px rgba(201,162,77,0.7));
}

/* ===============================
   REVEAL
================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero-center {
    position: static;
    transform: none;
    margin-top: 40px;
    text-align: center;
  }


}
.footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #9aa4c7;
  border-top: 1px solid rgba(0, 0, 0, 1);
}

.footer span {
  color: #ffffff;
  font-weight: 500;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}


.about {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.about h2 {
  margin-bottom: 1rem;
}

.about p {
  margin-bottom: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}


/* ===============================
   ASTROPHOTOGRAPHY – APPLE STYLE
================================ */

.astro-apple {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}

.astro-apple h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.astro-desc {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 3.5rem;
}

.astro-apple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.astro-apple-card {
  background: var(--card);
  border-radius: 22px;
  padding: 32px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark .astro-apple-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.astro-apple-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.astro-icon-apple {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.dark .astro-icon-apple {
  background: rgba(255, 255, 255, 0.08);
}

.astro-icon-apple span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.85;
}

.astro-apple-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.astro-apple-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

.astro-cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7cff;
}


/* FORCE GOLD ICON TINT (FINAL OVERRIDE) */
.icon-links a svg {
  fill: var(--gold) !important;
}

.dark .icon-links a svg {
  fill: var(--gold) !important;
}

/* FORCE GOLD ICON TINT (FINAL OVERRIDE) */
.icon-links a svg {
  fill: var(--gold) !important;
}

.dark .icon-links a svg {
  fill: var(--gold) !important;
}


/* ===============================
   FOOTER – FINAL FIX
================================ */

.footer {
  margin-top: 6rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer span {
  color: #111;
  font-weight: 500;
}

.footer-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Dark mode footer */
.dark .footer {
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dark .footer span {
  color: #fff;
}


/* ===============================
   HERO NAME TYPE EFFECT (CSS)
================================ */

.hero-name {
  font-size: 64px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--text);
  width: 0;
  animation:
    typing 2.8s steps(14, end) forwards,
    blink 0.8s step-end infinite;
}

/* Stop cursor after typing */
.hero-name.finished {
  border-right: none;
}

@keyframes typing {
  from { width: 0; }
  to { width: 14ch; } /* length of "Hridhaan Sahay" */
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* ===============================
   HERO MOBILE FIX
================================ */

@media (max-width: 600px) {
  .hero-name {
    font-size: 42px;
    white-space: normal;
    width: auto;
    text-align: center;
  }

  .hero-name::after {
    display: none;
  }
}

/* ===============================
   HERO MOBILE LAYOUT FIX
================================ */

@media (max-width: 768px) {
  .hero {
    padding: 120px 24px 80px;
  }

  .hero-image img {
    width: 260px;
    margin: 0 auto;
    display: block;
  }

  .hero-center {
    position: static;
    transform: none;
    margin-top: 32px;
    text-align: center;
  }

  .hero-name {
    font-size: 40px;
    line-height: 1.15;
    white-space: normal;
  }

  .tagline,
  .statement {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-name {
    white-space: normal;
    width: auto;
    font-size: 40px;
    text-align: center;
  }

  .hero-name::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-center {
    max-width: 100%;
  }

  .hero-image img {
    width: 260px;
  }
}

/* ===============================
   GLOBAL ROCKET CURSOR
================================ */

html, body {
  cursor: url("/assets/rocket.png") 16 16, auto;
}

a, button {
  cursor: pointer;
}

      </div> <!-- project-card -->
    </div> <!-- projects-grid -->


/* ===============================
   ABOUT SECTION – LINKS
================================ */

.about a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(201, 162, 77, 0.35);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.about a:hover {
  opacity: 0.85;
  border-bottom-color: rgba(201, 162, 77, 0.7);
}


/* ===============================
   TOOLS SECTION – FINAL POLISH
   (Add at bottom of CSS)
================================ */

/* Section spacing & anchoring */
.tools-apple {
  margin-top: 3rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  overflow: hidden;
  text-align: left;
}

/* Quiet divider (Apple-style) */
.tools-apple::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 auto 2rem;
}

.dark .tools-apple::before {
  background: rgba(255, 255, 255, 0.12);
}

/* Title refinement */
.tools-apple-title {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  opacity: 0.55;
  margin-bottom: 1.6rem;
}

/* Lanes container */
.tools-lanes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Individual lane */
.tools-lane {
  position: relative;
  overflow: hidden;
  white-space: nowrap;

  /* Edge fade */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 6%,
    black 94%,
    transparent
  );
}

/* Moving track */
.tools-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: max-content;

  animation-name: toolsScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Faster, premium speeds */
.tools-lane.slow   .tools-track { animation-duration: 26s; }
.tools-lane.medium .tools-track { animation-duration: 20s; }
.tools-lane.fast   .tools-track { animation-duration: 14s; }

/* Pause on hover */
.tools-lane:hover .tools-track {
  animation-play-state: paused;
}

/* Tool chips (slightly smaller, premium) */
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(201, 162, 77, 0.28);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 8px 24px rgba(0,0,0,0.08);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dark .tool-chip {
  background: rgba(18, 18, 18, 0.65);
}

/* SVG icons */
.tool-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
}

/* Hover polish */
.tool-chip:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 14px 30px rgba(201, 162, 77, 0.22);
}

/* Animation */
@keyframes toolsScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Mobile behavior */
@media (max-width: 768px) {
  .tools-track {
    animation: none;
    transform: none;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tools-lane {
    mask-image: none;
  }
}

/* ===== TOOLS CENTER START OVERRIDE ===== */
/* Paste this at the VERY END of your CSS */

.tools-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: max-content;

  transform: translateX(-25%);
  animation: toolsScroll linear infinite;
}

@keyframes toolsScroll {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(-75%);
  }
}

/* ===== TOOLS CENTER START OVERRIDE ===== */
/* MUST BE LAST IN FILE */

.tools-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: max-content;

  /* start near visual center */
  transform: translateX(-25%);
  animation: toolsScroll 18s linear infinite;
}

@keyframes toolsScroll {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(-75%);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* Container */
.scroll {
  position: relative;
  display: flex;
  width: 700px;
  overflow: hidden;
  margin: 12px 0;

  /* Edge fade (Apple-style polish) */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #fff 20%,
    #fff 80%,
    transparent
  );
          mask-image: linear-gradient(
    90deg,
    transparent,
    #fff 20%,
    #fff 80%,
    transparent
  );
}

/* Tracks */
.scroll > div {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee var(--t) linear infinite;
}

/* Second duplicate track */
.scroll > div:nth-child(2) {
  animation: marquee2 var(--t) linear infinite;
}

/* Animations */
@keyframes marquee {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes marquee2 {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}

/* Items */
.scroll span {
  display: inline-flex;
  align-items: center;
  margin: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.8rem;

  background: #333;
  color: #fff;
  transition: background 0.3s, transform 0.3s;
}

/* Hover */
.scroll span:hover {
  background: #f52789;
  transform: translateY(-2px);
  cursor: pointer;
}


/* ===============================
   SKILLS (APPLE-STYLE MARQUEE)
   FINAL VERSION
================================ */

.tools-apple {
  margin-top: 3rem;
  padding: 3rem 0;
  overflow: hidden;
}

.tools-apple-title {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  opacity: 0.7;
  margin-bottom: 1.6rem;
}

/* lanes */
.tools-lanes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* lane */
.tools-lane {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

/* track */
.tools-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: skillsScroll linear infinite;
}

/* speeds */
.tools-lane.slow   .tools-track { animation-duration: 26s; }
.tools-lane.medium .tools-track { animation-duration: 20s; }

/* pause on hover */
.tools-lane:hover .tools-track {
  animation-play-state: paused;
}

/* chip */
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 999px;
  white-space: nowrap;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 162, 77, 0.28);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dark .tool-chip {
  background: rgba(18, 18, 18, 0.65);
}

/* icon */
.tool-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
}

/* hover */
.tool-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 162, 77, 0.25);
}

/* animation */
@keyframes skillsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* mobile */
@media (max-width: 768px) {
  .tools-track {
    animation: none;
    overflow-x: auto;
  }

  .tools-lane {
    mask-image: none;
  }
}

/* ===== SKILLS MARQUEE – TRUE INFINITE SCROLL ===== */

.tools-track {
  display: flex;
  gap: 14px;
  width: max-content;

  animation: skillsInfinite linear infinite;
}

/* speeds */
.tools-lane.slow   .tools-track { animation-duration: 22s; }
.tools-lane.medium .tools-track { animation-duration: 18s; }
.tools-lane.fast   .tools-track { animation-duration: 14s; }

/* 🔑 REAL INFINITE MARQUEE */
@keyframes skillsInfinite {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ===============================
   SKILLS – TRUE INFINITE MARQUEE
   NO DEAD SPACE
================================ */

.tools-lane {
  position: relative;
  display: flex;
  overflow: hidden;
  white-space: nowrap;

  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.tools-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee linear infinite;
}

/* second track starts immediately after first */
.tools-track:nth-child(2) {
  animation-delay: calc(var(--duration) / -2);
}

/* speeds per lane */
.tools-lane.slow   { --duration: 26s; }
.tools-lane.medium { --duration: 20s; }
.tools-lane.fast   { --duration: 14s; }

.tools-track {
  animation-duration: var(--duration);
}

/* TRUE infinite motion */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* pause on hover */
.tools-lane:hover .tools-track {
  animation-play-state: paused;
}

/* mobile fallback */
@media (max-width: 768px) {
  .tools-track {
    animation: none;
  }

  .tools-lane {
    mask-image: none;
  }
}

/* ===== SKILLS – TRUE CONTINUOUS MARQUEE ===== */

.tools-lane {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  position: relative;

  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.tools-track {
  display: flex;
  gap: 14px;
  min-width: 200vw;   /* 🔑 THIS IS THE MAGIC */
  animation: marquee linear infinite;
}

/* speeds */
.tools-lane.slow   .tools-track { animation-duration: 26s; }
.tools-lane.medium .tools-track { animation-duration: 20s; }

/* second track offset */
.tools-track:nth-child(2) {
  animation-delay: -13s;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* pause on hover */
.tools-lane:hover .tools-track {
  animation-play-state: paused;
}

/* DESKTOP TYPING */
.hero-name {
  font-size: 64px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--text);
  width: 0;
  animation:
    typing 2.8s steps(14, end) forwards,
    blink 0.8s step-end infinite;
}

/* Stop cursor */
.hero-name.finished {
  border-right: none;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .hero-name {
    animation: none;        /* ❌ kill typing */
    width: auto;            /* ❌ remove width limit */
    white-space: normal;    /* ✅ allow wrap */
    border-right: none;     /* ❌ cursor gone */
    font-size: 40px;
    line-height: 1.2;
    text-align: center;
  }
}

.tools-apple {
  padding: 4rem 0;
  overflow: hidden;
}

.tools-apple-title {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

/* Lane */
.tools-lane {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

/* Track */
.tools-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee linear infinite;
}

/* Speeds */
.tools-lane.slow .tools-track   { animation-duration: 26s; }
.tools-lane.medium .tools-track { animation-duration: 20s; }

/* Pause on hover */
.tools-lane:hover .tools-track {
  animation-play-state: paused;
}

/* Chip */
.tool-chip {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201,162,77,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Dark */
.dark .tool-chip {
  background: rgba(18,18,18,0.6);
}

/* Animation */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mobile fallback */
@media (max-width: 768px) {
  .tools-track {
    animation: none;
    overflow-x: auto;
  }

  .tools-lane {
    mask-image: none;
  }
}

/* ===============================
   NAVBAR — APPLE GLASS
================================ */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  z-index: 100;

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 8px 30px rgba(0,0,0,0.08);

  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.dark .navbar {
  background: rgba(18, 18, 18, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 35px rgba(0,0,0,0.6);
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Links */
.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* Apple underline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Theme toggle */
#themeToggle {
  border: none;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 4px 14px rgba(0,0,0,0.12);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#themeToggle:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 8px 22px rgba(0,0,0,0.18);
}

.dark #themeToggle {
  background: rgba(30,30,30,0.6);
}
/* ===============================
   ABOUT — GOLD LINKS
================================ */

.about a {
  position: relative;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;

  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

/* subtle underline */
.about a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
  opacity: 0.6;
}

/* hover polish */
.about a:hover {
  opacity: 0.85;
}


/* ===============================
   MOBILE NAVBAR
================================ */

.nav-toggle {
  display: none;
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile menu (hidden by default) */
.nav-mobile {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: calc(100% - 32px);

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 18px;
  padding: 14px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  pointer-events: none;

  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dark .nav-mobile {
  background: rgba(18,18,18,0.7);
}

/* Active */
.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Mobile links */
.nav-mobile a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 10px;
}

.nav-mobile a:hover {
  background: rgba(0,0,0,0.06);
}

.dark .nav-mobile a:hover {
  background: rgba(255,255,255,0.08);
}

/* Breakpoint */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* ===== GAP KILL OVERRIDE ===== */
/* MUST BE LAST LINE OF CSS */

.about {
  padding-bottom: 2rem !important;
  margin-bottom: 0 !important;
}

.tools-apple {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  margin-bottom: 0 !important;
}

.footer {
  margin-top: 2rem !important;
}

/* Prevent body creating fake space */
body {
  overflow-x: hidden;
}

/* ===== BACKGROUND FIX ===== */
body::before {
  height: 100vh;
  inset: 0;
}

