/* =========================
   RESET
========================= */

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--space-black);
  color: #F5F1E8;
  overflow-x: hidden;
}

:root {
  --content-width: 1320px;
  --space-black:#090909; --deep-black:#11100D; --graphite:#1C1A16; --space-brown:#33291E;
  --saturn-brown:#59452D; --saturn-gold:#C5A46D; --saturn-sand:#D7C19A; --saturn-cream:#E9DDC5;
  --soft-white:#F5F1E8; --text-secondary:#A99F8E; --bg:var(--space-black); --surface:var(--graphite);
  --surface-strong:var(--deep-black); --line:rgba(197,164,109,.22); --gold:var(--saturn-gold);
  --sand:var(--saturn-sand); --text-muted:var(--text-secondary); --text-primary:var(--soft-white);
  --focus-ring:var(--saturn-sand);
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(89, 69, 45, 0.18),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(197, 164, 109, 0.08),
      transparent 30%
    ),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(197, 164, 109, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 164, 109, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  animation: grid-drift 18s linear infinite;
}

.tech-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.ambient-glow {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.14;
  animation: ambient-float 14s ease-in-out infinite alternate;
}

.ambient-glow-one {
  top: 12%;
  left: -140px;
  background: var(--gold);
}

.ambient-glow-two {
  right: -120px;
  bottom: 8%;
  background: var(--sand);
  animation-delay: -7s;
}

/* =========================
   GLOBAL
========================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title span {
  color: #C5A46D;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title h2 {
  font-size: 42px;
  margin-top: 10px;
}

.section-title > p {
  max-width: 660px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* =========================
   HEADER
========================= */

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(17, 16, 13, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #C5A46D;
  letter-spacing: -1px;
  text-shadow: 0 0 25px rgba(197, 164, 109, 0.38);
}

.logo::before {
  content: "</";
  color: var(--sand);
  font-size: 18px;
}

.logo::after {
  content: ">";
  color: var(--sand);
  font-size: 18px;
}

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

.nav-links a {
  text-decoration: none;
  color: #d1d1d1;
  transition: 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: #C5A46D;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--sand));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

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

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  max-width: 760px;
}

.tag {
  display: inline-block;
  background: rgba(197, 164, 109, 0.15);
  color: #D7C19A;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 25px;
  font-size: 14px;
  border: 1px solid rgba(197, 164, 109, 0.3);
  box-shadow: inset 0 0 22px rgba(197, 164, 109, 0.08);
  letter-spacing: 1px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: -10px 0 22px;
  color: #A99F8E;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow:
    0 0 0 5px rgba(215, 193, 154, 0.08),
    0 0 16px var(--sand);
  animation: status-pulse 2s ease-in-out infinite;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 25px;
  background: linear-gradient(110deg, #F5F1E8 20%, #E9DDC5 62%, #D7C19A);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2.5px;
}

.hero-text p {
  color: #b0b0b0;
  font-size: 18px;
  line-height: 1.7;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.btn {
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.primary {
  background: linear-gradient(135deg, #D7C19A, #C5A46D);
  color: white;
  box-shadow: 0 12px 35px rgba(197, 164, 109, 0.28);
}

.primary:hover {
  background: #C5A46D;
  transform: translateY(-3px);
}

.secondary {
  border: 1px solid #C5A46D;
  color: #C5A46D;
}

.secondary:hover {
  background: #C5A46D;
  color: white;
}

/* =========================
   HERO CARD
========================= */

.hero-card {
  width: 320px;
  height: 320px;
  background: linear-gradient(
    145deg,
    rgba(28, 26, 22, 0.92),
    rgba(17, 16, 13, 0.86)
  );
  border: 1px solid rgba(197, 164, 109, 0.34);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    inset 0 0 40px rgba(197, 164, 109, 0.04);
  transform-style: preserve-3d;
  animation: card-float 5s ease-in-out infinite;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(215, 193, 154, 0.12),
    transparent
  );
  transform: translateY(-110%) rotate(25deg);
  animation: card-scan 5s ease-in-out infinite;
}

.card-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: #C5A46D;
  filter: blur(120px);
  opacity: 0.3;
  top: -50px;
  right: -50px;
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.card-content i {
  font-size: 80px;
  color: #C5A46D;
  filter: drop-shadow(0 0 18px rgba(197, 164, 109, 0.45));
}

.code-label {
  color: var(--sand);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tech-corner {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-color: var(--sand);
  opacity: 0.75;
}

.corner-top-left {
  top: 18px;
  left: 18px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.corner-top-right {
  top: 18px;
  right: 18px;
  border-top: 2px solid;
  border-right: 2px solid;
}
.corner-bottom-left {
  bottom: 18px;
  left: 18px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}
.corner-bottom-right {
  right: 18px;
  bottom: 18px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.card-content h3 {
  font-size: 32px;
}

.card-content p {
  color: #b0b0b0;
  text-align: center;
  max-width: 220px;
  line-height: 1.6;
}

/* =========================
   MODERN HERO
========================= */

.header {
  background: rgba(17, 16, 13, 0.62);
  border-bottom-color: rgba(197, 164, 109, 0.12);
}

.nav {
  height: 74px;
}

.logo {
  font-family: Consolas, "Courier New", monospace;
  font-size: 21px;
  letter-spacing: -0.7px;
}

.nav-links {
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(197, 164, 109, 0.1);
  border-radius: 12px;
  background: rgba(17, 16, 13, 0.48);
}

.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: #9999aa;
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(197, 164, 109, 0.1);
  color: #F5F1E8;
}

.nav-links a::after {
  right: 14px;
  bottom: 3px;
  left: 14px;
  width: auto;
  height: 1px;
}

.hero-modern {
  min-height: 100vh;
  padding: 140px 0 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(197, 164, 109, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 164, 109, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 76%);
}

.hero-modern::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 74px;
  right: 5%;
  width: 44vw;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(215, 193, 154, 0.3),
    transparent
  );
}

.hero-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.hero-orb-one {
  top: 15%;
  right: 6%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(197, 164, 109, 0.1);
  box-shadow:
    inset 0 0 70px rgba(197, 164, 109, 0.035),
    0 0 120px rgba(197, 164, 109, 0.04);
}

.hero-orb-one::before,
.hero-orb-one::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(215, 193, 154, 0.08);
}

.hero-orb-one::before {
  inset: 55px;
}

.hero-orb-one::after {
  inset: 120px;
}

.hero-orb-two {
  bottom: 4%;
  left: -130px;
  width: 280px;
  height: 280px;
  background: rgba(197, 164, 109, 0.06);
  filter: blur(70px);
}

.hero-modern .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

.hero-modern .tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 13px;
  border-color: rgba(197, 164, 109, 0.22);
  border-radius: 9px;
  background: rgba(197, 164, 109, 0.08);
  color: var(--sand);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.7px;
}

.hero-modern .tag i {
  color: var(--sand);
}

.hero-modern .system-status {
  margin: 0;
  color: #839a9c;
  font-size: 9px;
}

.hero-modern .status-dot {
  width: 6px;
  height: 6px;
}

.hero-modern .hero-text h1 {
  margin-bottom: 25px;
  background: none;
  color: #D7C19A;
  font-size: clamp(48px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -4px;
  -webkit-text-fill-color: currentColor;
}

.hero-modern .hero-text h1 strong {
  display: inline;
  background: linear-gradient(
    110deg,
    var(--sand),
    #D7C19A 45%,
    var(--sand)
  );
  background-clip: text;
  color: transparent;
  font-weight: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-modern .hero-text > p {
  max-width: 620px;
  color: #9999aa;
  font-size: 17px;
  line-height: 1.75;
}

.hero-modern .hero-text > p b {
  color: #D7C19A;
  font-weight: 600;
}

.hero-modern .hero-buttons {
  gap: 12px;
  margin-top: 32px;
}

.hero-modern .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
}

.hero-modern .primary {
  background: linear-gradient(135deg, #C5A46D, #59452D);
}

.hero-modern .primary i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.hero-modern .primary:hover i {
  transform: translateX(4px);
}

.hero-modern .secondary {
  border-color: rgba(197, 164, 109, 0.25);
  background: rgba(197, 164, 109, 0.04);
  color: #D7C19A;
}

.hero-modern .secondary:hover {
  border-color: rgba(215, 193, 154, 0.3);
  background: rgba(215, 193, 154, 0.06);
  color: var(--sand);
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(197, 164, 109, 0.11);
}

.hero-stats > div {
  min-width: 145px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(197, 164, 109, 0.1);
}

.hero-stats > div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  margin-bottom: 5px;
  color: #D7C19A;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.hero-stats span {
  color: #656577;
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

.hero-modern .hero-card {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 440px;
  border-color: rgba(197, 164, 109, 0.2);
  border-radius: 18px;
  background: rgba(17, 16, 13, 0.9);
  animation: hero-panel-float 6s ease-in-out infinite;
}

.hero-modern .hero-card::before {
  display: none;
}

.hero-modern .card-glow {
  top: 5%;
  right: -10%;
  width: 230px;
  height: 230px;
  opacity: 0.14;
}

.hero-window-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 17px;
  border-bottom: 1px solid rgba(197, 164, 109, 0.12);
  color: #666678;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.hero-window-bar > i {
  margin-left: auto;
  color: var(--sand);
  font-size: 10px;
}

.hero-window-dots {
  display: flex;
  gap: 6px;
}

.hero-window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c3c49;
}

.hero-window-dots span:first-child {
  background: var(--gold);
}

.hero-window-dots span:nth-child(2) {
  background: #C5A46D;
}

.hero-code {
  position: relative;
  z-index: 2;
  padding: 28px 20px 24px;
  font-family: Consolas, "Courier New", monospace;
}

.code-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  min-height: 31px;
  color: #a4a4b4;
  font-size: 12px;
}

.code-row code {
  white-space: nowrap;
}

.code-row em {
  color: #D7C19A;
  font-style: normal;
}

.code-row b {
  color: #D7C19A;
  font-weight: 400;
}

.code-row strong {
  color: #D7C19A;
  font-weight: 400;
}

.line-number {
  color: #A99F8E;
  user-select: none;
}

.code-indent code {
  padding-left: 18px;
}

.code-indent-more code {
  padding-left: 36px;
}

.hero-terminal {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(215, 193, 154, 0.12);
  border-radius: 9px;
  background: rgba(5, 9, 12, 0.72);
  color: var(--sand);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.hero-terminal code {
  color: #9aafb0;
}

.hero-terminal i {
  width: 6px;
  height: 13px;
  background: var(--sand);
  animation: console-blink 0.9s steps(1) infinite;
}

.floating-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 160px;
  padding: 11px 13px;
  border: 1px solid rgba(197, 164, 109, 0.18);
  border-radius: 11px;
  background: rgba(17, 16, 13, 0.88);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.floating-chip > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: rgba(197, 164, 109, 0.1);
  color: var(--sand);
}

.floating-chip b,
.floating-chip small {
  display: block;
}

.floating-chip b {
  margin-bottom: 3px;
  color: #D7C19A;
  font-size: 11px;
}

.floating-chip small {
  color: #686879;
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
}

.chip-code {
  top: 70px;
  left: -72px;
}

.chip-stack {
  right: -54px;
  bottom: 70px;
}

.chip-stack > i {
  background: rgba(215, 193, 154, 0.08);
  color: var(--sand);
}

.hero-scroll {
  position: absolute;
  bottom: 25px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555567;
  text-decoration: none;
  transform: translateX(-50%);
}

.hero-scroll span {
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  letter-spacing: 2px;
}

.hero-scroll i {
  color: var(--sand);
  font-size: 9px;
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes hero-panel-float {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes scroll-hint {
  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 1050px) {
  .hero-modern .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-modern .hero-text {
    max-width: 820px;
  }

  .hero-visual {
    max-width: 560px;
    margin: 20px auto 0;
  }

  .chip-code {
    left: -30px;
  }

  .chip-stack {
    right: -30px;
  }
}

@media (max-width: 768px) {
  .header .nav {
    height: 68px;
  }

  .logo {
    font-size: 17px;
  }

  .nav-links {
    gap: 1px;
    padding: 3px;
  }

  .nav-links a {
    padding: 8px;
    font-size: 11px;
  }

  .hero-modern {
    padding: 120px 0 80px;
  }

  .hero-eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-modern .hero-text h1 {
    font-size: clamp(44px, 13vw, 64px);
    letter-spacing: -2.5px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 18px 0;
  }

  .hero-stats > div {
    min-width: 50%;
    margin-right: 0;
  }

  .hero-modern .hero-card {
    min-height: 420px;
  }

  .floating-chip {
    display: none;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 500px) {
  .nav-links li:nth-child(2) {
    display: none;
  }

  .hero-modern .hero-buttons {
    flex-direction: column;
  }

  .hero-modern .btn {
    width: 100%;
  }

  .hero-stats > div {
    min-width: 100%;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(197, 164, 109, 0.08);
  }

  .hero-stats > div:last-child {
    border-bottom: 0;
  }

  .hero-modern .hero-card {
    min-height: 390px;
  }

  .hero-code {
    padding: 24px 13px;
  }

  .code-row {
    grid-template-columns: 24px 1fr;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-modern .hero-card,
  .hero-scroll i,
  .hero-terminal i {
    animation: none;
  }
}

/* =========================
   ABOUT
========================= */

.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
}

.about-text p {
  color: #b0b0b0;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 17px;
}

.skills {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: 0.3s;
  backdrop-filter: blur(12px);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: #C5A46D;
}

.skill-card i {
  font-size: 42px;
  color: #C5A46D;
  margin-bottom: 15px;
}

.skill-card span {
  font-weight: bold;
}

/* =========================
   MODERN ABOUT
========================= */

.about-modern {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.about-modern::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto;
  z-index: -2;
  height: 78%;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(197, 164, 109, 0.035), transparent),
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(197, 164, 109, 0.035) 80px
    );
}

.about-glow {
  position: absolute;
  z-index: -1;
  top: 16%;
  left: 35%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(197, 164, 109, 0.11);
  filter: blur(120px);
  pointer-events: none;
}

.about-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.about-modern .section-title {
  max-width: 720px;
  margin: 0;
  text-align: left;
}

.about-modern .section-title span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sand);
}

.about-modern .section-title h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.about-modern .section-title h2 strong {
  color: var(--sand);
  font-weight: inherit;
}

.about-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(215, 193, 154, 0.16);
  border-radius: 999px;
  background: rgba(10, 17, 20, 0.62);
  color: #9fb6b8;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  white-space: nowrap;
}

.about-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 10px var(--sand);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.about-modern .about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: stretch;
  gap: 28px;
}

.about-profile,
.about-stack {
  border: 1px solid rgba(197, 164, 109, 0.17);
  border-radius: 20px;
  background: rgba(17, 16, 13, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.about-profile {
  overflow: hidden;
}

.about-terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(197, 164, 109, 0.13);
  background: rgba(17, 16, 13, 0.7);
  color: #77778b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.about-terminal-bar > i {
  margin-left: auto;
  color: var(--gold);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b3b48;
}

.terminal-dots span:first-child {
  background: var(--gold);
}

.terminal-dots span:nth-child(2) {
  background: #C5A46D;
}

.about-modern .about-text {
  padding: 28px 30px 24px;
}

.about-code-line {
  display: flex;
  gap: 18px;
  color: #777789;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.about-code-line b {
  color: #444453;
  font-weight: 400;
}

.about-code-line em {
  color: var(--sand);
  font-style: normal;
}

.about-copy {
  position: relative;
  margin: 22px 0 22px 36px;
  padding-left: 20px;
  border-left: 1px solid rgba(215, 193, 154, 0.16);
}

.about-key {
  display: block;
  margin-bottom: 8px;
  color: var(--sand);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.about-modern .about-copy p {
  margin: 0;
  color: #A99F8E;
  font-size: 16px;
  line-height: 1.75;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(197, 164, 109, 0.13);
}

.about-metrics > div {
  padding: 18px 20px;
  border-right: 1px solid rgba(197, 164, 109, 0.1);
}

.about-metrics > div:last-child {
  border-right: 0;
}

.about-metrics strong,
.about-metrics span {
  display: block;
}

.about-metrics strong {
  margin-bottom: 5px;
  color: #D7C19A;
  font-size: 14px;
}

.about-metrics span {
  color: #686879;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.about-stack {
  padding: 22px;
}

.stack-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stack-heading span {
  color: #D7C19A;
  font-size: 17px;
  font-weight: 700;
}

.stack-heading small {
  color: #555567;
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.about-modern .skills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.about-modern .skill-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 67px;
  padding: 11px 42px 11px 14px;
  border: 1px solid rgba(197, 164, 109, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
}

.about-modern .skill-card:hover {
  transform: translateX(5px);
  border-color: rgba(215, 193, 154, 0.28);
  background: linear-gradient(
    90deg,
    rgba(197, 164, 109, 0.09),
    rgba(215, 193, 154, 0.035)
  );
}

.about-modern .skill-card > i {
  margin: 0;
  color: var(--sand);
  font-size: 27px;
  text-align: center;
  transition: 0.3s ease;
}

.about-modern .skill-card:hover > i {
  color: var(--sand);
  filter: drop-shadow(0 0 10px rgba(215, 193, 154, 0.35));
}

.about-modern .skill-card div strong,
.about-modern .skill-card div small {
  display: block;
}

.about-modern .skill-card div strong {
  margin-bottom: 4px;
  color: #D7C19A;
  font-size: 13px;
}

.about-modern .skill-card div small {
  color: #707081;
  font-size: 10px;
}

.skill-index {
  position: absolute;
  top: 9px;
  right: 10px;
  color: #444451;
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
}

@keyframes status-pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

@media (max-width: 920px) {
  .about-modern .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-modern .section-title h2 {
    font-size: 40px;
    letter-spacing: -1.5px;
  }

  .about-status {
    white-space: normal;
  }

  .about-modern .about-text {
    padding: 24px 20px;
  }

  .about-copy {
    margin-left: 24px;
  }
}

@media (max-width: 500px) {
  .about-metrics {
    grid-template-columns: 1fr;
  }

  .about-metrics > div {
    border-right: 0;
    border-bottom: 1px solid rgba(197, 164, 109, 0.1);
  }

  .about-metrics > div:last-child {
    border-bottom: 0;
  }

  .stack-heading small {
    display: none;
  }
}

/* =========================
   PROJECTS
========================= */

.project-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: -25px 0 40px;
}

.project-tab {
  min-width: 130px;
  padding: 12px 22px;
  border: 1px solid #A99F8E;
  border-radius: 999px;
  background: rgba(17, 16, 13, 0.74);
  color: #d1d1d1;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.project-tab:hover,
.project-tab:focus-visible {
  color: #F5F1E8;
  border-color: #C5A46D;
  outline: none;
}

.project-tab.active {
  background: #C5A46D;
  color: #F5F1E8;
  border-color: #C5A46D;
  box-shadow: 0 8px 25px rgba(197, 164, 109, 0.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.project-card[hidden] {
  display: none;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
  transition: 0.3s;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #C5A46D;
}

.project-image {
  height: 220px;
  background: linear-gradient(135deg, #C5A46D, #A99F8E);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197, 164, 109, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 164, 109, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: perspective(300px) rotateX(55deg) scale(1.4);
  opacity: 0.6;
}

.project-image i {
  font-size: 70px;
  color: #C5A46D;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(197, 164, 109, 0.5));
}

.project-info {
  padding: 30px;
}

.project-info h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.project-info p {
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: 25px;
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.project-tech span {
  background: rgba(197, 164, 109, 0.15);
  color: #D7C19A;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.project-btn {
  display: inline-block;
  text-decoration: none;
  background: #C5A46D;
  color: white;
  padding: 14px 25px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.3s;
}

.project-btn:hover {
  background: #C5A46D;
}

/* =========================
   FOOTER
========================= */

.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 16, 13, 0.15),
    rgba(17, 16, 13, 0.92)
  );
}

.footer::before {
  content: "";
  position: absolute;
  top: 120px;
  left: 50%;
  width: 720px;
  height: 420px;
  border-radius: 50%;
  background: rgba(197, 164, 109, 0.12);
  filter: blur(120px);
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer h2 {
  color: var(--sand);
}

.footer p {
  color: #9a9a9a;
}

.footer-bottom {
  position: relative;
  padding: 32px 0;
  border-top: 1px solid rgba(197, 164, 109, 0.14);
  background: rgba(17, 16, 13, 0.62);
  backdrop-filter: blur(16px);
}

.footer-brand h2 {
  margin-bottom: 7px;
  font-size: 20px;
  letter-spacing: -0.4px;
}

.footer-brand p,
.footer-copy {
  font-size: 13px;
}

.footer-copy {
  text-align: center;
}

.socials {
  display: flex;
  gap: 20px;
}

.socials a {
  width: 45px;
  height: 45px;
  background: rgba(17, 16, 13, 0.82);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C5A46D;
  text-decoration: none;
  transition: 0.3s;
}

.socials a:hover {
  background: linear-gradient(135deg, var(--gold), #C5A46D);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(197, 164, 109, 0.25);
}

/* =========================
   RESPONSIVE
========================= */

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

  .hero-text h1 {
    font-size: 52px;
  }

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

  .about-content {
    flex-direction: column;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    max-width: 680px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .section-title h2 {
    font-size: 34px;
  }

  .hero-card {
    width: 100%;
    max-width: 320px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .hero-text h1 {
    font-size: 34px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .project-tabs {
    width: 100%;
  }

  .project-tab {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
  }

  .contact {
    padding: 80px 0 70px;
  }

  .contact-panel {
    border-radius: 20px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .panel-header {
    padding: 14px 16px;
  }

  .panel-status {
    display: none;
  }

  .contact-submit {
    width: 100%;
  }
}

/* =========================
   CONTACT
========================= */

.contact {
  position: relative;
  z-index: 1;
  padding: 110px 0 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(430px, 1.3fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.contact-intro {
  position: relative;
}

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--sand);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.contact-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--sand);
  box-shadow: 0 0 10px rgba(215, 193, 154, 0.7);
}

.contact-intro h3 {
  max-width: 430px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.contact-intro > p {
  max-width: 480px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.contact-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 35px;
}

.contact-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(197, 164, 109, 0.13);
  border-radius: 16px;
  background: rgba(17, 16, 13, 0.45);
  transition: 0.3s ease;
}

.contact-highlight:hover {
  border-color: rgba(215, 193, 154, 0.35);
  transform: translateX(5px);
}

.contact-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(197, 164, 109, 0.25);
  border-radius: 13px;
  background: rgba(197, 164, 109, 0.1);
  color: var(--sand);
}

.contact-highlight div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-highlight strong {
  font-size: 14px;
}

.contact-highlight span,
.contact-highlight a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}

.contact-highlight a:hover {
  color: var(--sand);
}

.contact-panel {
  overflow: hidden;
  border: 1px solid rgba(197, 164, 109, 0.26);
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    rgba(17, 16, 13, 0.94),
    rgba(17, 16, 13, 0.88)
  );
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.38),
    inset 0 0 40px rgba(197, 164, 109, 0.03);
  backdrop-filter: blur(18px);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(197, 164, 109, 0.14);
  background: rgba(17, 16, 13, 0.48);
  color: #777789;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}

.panel-dots span:nth-child(2) {
  background: #febc2e;
}

.panel-dots span:nth-child(3) {
  background: #28c840;
}

.panel-status {
  margin-left: auto;
  color: #76d9d3;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 34px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 9px;
  color: #E9DDC5;
  font-size: 13px;
  font-weight: 600;
}

.input-control {
  position: relative;
}

.input-control > i {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  color: #777789;
  transform: translateY(-50%);
  transition: 0.3s ease;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px 16px 16px 47px;
  border-radius: 13px;
  border: 1px solid rgba(197, 164, 109, 0.16);
  background: rgba(17, 16, 13, 0.62);
  color: white;
  outline: none;
  font-size: 16px;
  transition: 0.3s;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #686878;
}

.textarea-control > i {
  top: 20px;
  transform: none;
}

.hero-text,
.hero-card,
.about-text,
.skill-card,
.project-card,
.contact-intro,
.contact-panel {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-text.show,
.hero-card.show,
.about-text.show,
.skill-card.show,
.project-card.show,
.contact-intro.show,
.contact-panel.show {
  opacity: 1;
  transform: translateY(0);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes grid-drift {
  to {
    background-position: 48px 48px;
  }
}

@keyframes ambient-float {
  to {
    transform: translate(80px, 60px) scale(1.2);
  }
}

@keyframes status-pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

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

@keyframes card-scan {
  0%,
  25% {
    transform: translateY(-120%) rotate(25deg);
  }
  70%,
  100% {
    transform: translateY(140%) rotate(25deg);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

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

  .tech-background {
    display: none;
  }
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: rgba(215, 193, 154, 0.55);
  box-shadow: 0 0 0 4px rgba(215, 193, 154, 0.06);
}

.input-control:focus-within > i {
  color: var(--sand);
}

.input-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  border: none;
  cursor: pointer;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: 12px;
}

.contact-submit i {
  transition: transform 0.3s ease;
}

.contact-submit:hover i {
  transform: translate(3px, -3px);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 20px;
  font-size: 13px;
}

.form-status.success {
  color: #75e6b4;
}

.form-status.error {
  color: #ff8f9a;
}

@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    max-width: 680px;
  }
}

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

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

  .footer-brand p {
    max-width: 340px;
  }
}

@media (max-width: 600px) {
  .nav {
    height: 72px;
  }

  .logo {
    font-size: 20px;
  }

  .logo::before,
  .logo::after {
    font-size: 13px;
  }

  .nav-links {
    gap: 11px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .contact {
    padding: 80px 0 70px;
  }

  .contact-panel {
    border-radius: 20px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .panel-header {
    padding: 14px 16px;
  }

  .panel-status {
    display: none;
  }

  .contact-submit {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 0;
  }

  .logo::before {
    content: "</GG>";
    font-size: 18px;
  }

  .logo::after {
    content: "";
  }

  .contact-highlight {
    padding: 14px 12px;
  }
}

/* =========================
   MODERN PROJECT SHOWCASE
========================= */

.projects-modern {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(9, 9, 9, 0.72) 18%,
    rgba(17, 16, 13, 0.88)
  );
}
.projects-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(215, 193, 154, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 193, 154, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
}

.projects-orbit {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(197, 164, 109, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.projects-orbit::before,
.projects-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(215, 193, 154, 0.09);
  border-radius: inherit;
}

.projects-orbit::before {
  inset: 52px;
}

.projects-orbit::after {
  inset: 112px;
}

.orbit-one {
  top: 6%;
  left: -260px;
}

.orbit-two {
  right: -280px;
  bottom: 5%;
}

.projects-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.projects-modern .section-title {
  max-width: 740px;
  margin: 0;
  text-align: left;
}

.projects-modern .section-title span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sand);
}

.projects-modern .section-title h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -2.5px;
}

.projects-modern .section-title h2 strong {
  color: var(--sand);
  font-weight: inherit;
}

.projects-modern .section-title > p {
  margin: 20px 0 0;
}

.projects-console {
  flex: 0 0 auto;
  width: 250px;
  padding: 13px 16px 16px;
  border: 1px solid rgba(215, 193, 154, 0.17);
  border-radius: 12px;
  background: rgba(7, 9, 14, 0.72);
}

.projects-console > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #3b3d48;
}

.projects-console > span:first-child {
  background: var(--gold);
}

.projects-console code {
  display: block;
  margin-top: 16px;
  color: #8fa5ab;
  font-size: 12px;
}

.projects-console b {
  color: var(--sand);
  animation: console-blink 0.9s steps(1) infinite;
}

.projects-modern .project-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 34px;
  padding: 6px;
  border: 1px solid rgba(197, 164, 109, 0.18);
  border-radius: 16px;
  background: rgba(17, 16, 13, 0.72);
  backdrop-filter: blur(16px);
}

.projects-modern .project-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #9292a4;
}

.projects-modern .project-tab i {
  color: #69697a;
  transition: inherit;
}

.projects-modern .project-tab small {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #777789;
  font-size: 10px;
  letter-spacing: 1px;
}

.projects-modern .project-tab:hover,
.projects-modern .project-tab:focus-visible {
  background: rgba(197, 164, 109, 0.07);
}

.projects-modern .project-tab.active {
  border-color: rgba(197, 164, 109, 0.28);
  background: linear-gradient(
    135deg,
    rgba(197, 164, 109, 0.22),
    rgba(215, 193, 154, 0.07)
  );
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.projects-modern .project-tab.active i {
  color: var(--sand);
  text-shadow: 0 0 14px rgba(215, 193, 154, 0.5);
}

.projects-modern .project-tab.active small {
  background: rgba(215, 193, 154, 0.1);
  color: var(--sand);
}

.projects-modern .projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.projects-modern .project-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 510px;
  border-color: rgba(197, 164, 109, 0.17);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      rgba(197, 164, 109, 0.11),
      transparent 34%
    ),
    rgba(17, 16, 13, 0.86);
  animation: project-reveal 0.5s ease both;
}

.projects-modern .project-card[hidden] {
  display: none;
}

.projects-modern .project-card:hover {
  transform: translateY(-9px);
  border-color: rgba(215, 193, 154, 0.36);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.32),
    0 0 38px rgba(197, 164, 109, 0.07);
}

.projects-modern .project-image {
  height: 210px;
  background:
    radial-gradient(
      circle at 50% 55%,
      rgba(197, 164, 109, 0.2),
      transparent 31%
    ),
    linear-gradient(145deg, #C5A46D, #0b0e15);
}

.projects-modern .project-image::before {
  background-image:
    linear-gradient(rgba(215, 193, 154, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 193, 154, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, black);
  transform: none;
}

.projects-modern .project-image::after {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(197, 164, 109, 0.18);
  border-radius: 50%;
}

.projects-modern .project-symbol {
  position: relative;
  z-index: 2;
  color: var(--sand);
  font-size: 62px;
  filter: drop-shadow(0 0 22px rgba(197, 164, 109, 0.55));
  transition: 0.4s ease;
}

.projects-modern .project-card:hover .project-symbol {
  transform: scale(1.08) rotate(-3deg);
  color: var(--sand);
}

.project-number {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.26);
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 2px;
}

.project-status {
  position: absolute;
  top: 15px;
  right: 17px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 193, 154, 0.14);
  border-radius: 999px;
  background: rgba(5, 10, 13, 0.58);
  color: #9eaeb1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.project-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 8px var(--sand);
}

.project-scanline {
  position: absolute;
  z-index: 2;
  top: -5%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(215, 193, 154, 0.5),
    transparent
  );
  opacity: 0;
}

.projects-modern .project-card:hover .project-scanline {
  opacity: 1;
  animation: project-scan 1.8s linear infinite;
}

.projects-modern .project-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.projects-modern .project-info h3 {
  margin: 0;
  font-size: 24px;
}

.project-title-row > i {
  color: #575767;
  font-size: 13px;
  transition: 0.3s ease;
}

.projects-modern .project-card:hover .project-title-row > i {
  transform: translate(2px, -2px);
  color: var(--sand);
}

.projects-modern .project-info p {
  min-height: 72px;
  margin-bottom: 20px;
}

.projects-modern .project-tech {
  gap: 8px;
  margin-bottom: 22px;
}

.projects-modern .project-tech span {
  padding: 6px 10px;
  border: 1px solid rgba(197, 164, 109, 0.14);
  border-radius: 7px;
  background: rgba(197, 164, 109, 0.07);
  font-family: monospace;
  font-size: 11px;
}

.projects-modern .project-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 13px 15px;
  border: 1px solid rgba(197, 164, 109, 0.2);
  border-radius: 10px;
  background: rgba(197, 164, 109, 0.07);
  color: #D7C19A;
  font-size: 13px;
}

.projects-modern .project-btn:hover {
  border-color: rgba(215, 193, 154, 0.35);
  background: linear-gradient(
    90deg,
    rgba(197, 164, 109, 0.15),
    rgba(215, 193, 154, 0.1)
  );
}

.projects-modern .project-btn i {
  color: var(--sand);
  font-size: 16px;
}

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

@keyframes project-scan {
  to {
    top: 105%;
  }
}

@keyframes project-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (max-width: 768px) {
  .projects-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .projects-console {
    display: none;
  }

  .projects-modern .section-title h2 {
    font-size: 40px;
    letter-spacing: -1.5px;
  }

  .projects-modern .project-tabs {
    width: 100%;
  }

  .projects-modern .project-tab {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 12px 10px;
  }

  .projects-modern .project-tab small {
    display: none;
  }

  .projects-modern .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-modern .project-card {
    min-height: auto;
  }

  .projects-modern .project-info p {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-modern .project-card,
  .projects-modern .project-scanline,
  .projects-console b {
    animation: none;
  }
}

/* =========================
   GITHUB PROJECTS / CYBERSECURITY
========================= */
.nav-links a .nav-development {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.project-btn-disabled {
  cursor: default;
  opacity: 0.72;
}

.cyber-project-card .project-status {
  color: #D7C19A;
}

/* Navigation and responsive polish */
body { color: var(--text-primary); background-color: var(--bg); }
.container { width: min(calc(100% - 40px), var(--content-width)); max-width: var(--content-width); padding-right: 0; padding-left: 0; }
section[id], footer[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 10001; top: 12px; left: 12px; padding: 10px 15px; border-radius: 8px; background: var(--gold); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.header { transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.header.is-scrolled { border-bottom-color: rgba(215,193,154,.24); box-shadow: 0 12px 34px rgba(0,0,0,.28); background: rgba(9,9,9,.88); }
.logo { color: var(--sand); text-shadow: none; }
.logo::before, .logo::after { color: var(--gold); }
.hero-modern .hero-content { max-width: 1240px; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(36px, 5vw, 72px); }
.hero-modern .hero-text { max-width: 660px; }
.hero-modern .hero-text h1 { max-width: 640px; margin: 22px 0 18px; color: var(--text-primary); font-size: clamp(42px, 5vw, 66px); line-height: 1.06; letter-spacing: -2.8px; }
.hero-modern .hero-text > p { max-width: 560px; }
.hero-modern .hero-text h1 strong { display: inline; color: var(--sand); font-weight: inherit; }
.nav { position: relative; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(28,26,22,.84); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--sand); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.nav-links a { transition: color .2s ease, background .2s ease; }
.project-tabs { max-width: 100%; overflow-x: auto; }
.project-card, .contact-panel, .about-profile, .skill-card { border-color: rgba(197,164,109,.16); }
.project-card:hover { border-color: rgba(215,193,154,.42); }
.project-image { background-color: #11100D; }
.project-status { border-color: rgba(215,193,154,.2); }
.project-status i, .status-dot { background: var(--sand); box-shadow: 0 0 9px rgba(215,193,154,.5); }
.btn, .project-btn { transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover, .project-btn:not(.project-btn-disabled):hover { transform: translateY(-2px); }
.input-control input, .input-control textarea { color: var(--text-primary); }
.input-control input:focus, .input-control textarea:focus { border-color: rgba(215,193,154,.62); }
button:disabled { cursor: wait; opacity: .65; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header nav { position: absolute; top: calc(100% + 8px); right: 20px; left: 20px; z-index: 1000; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,16,13,.98); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 14px; }
  .nav-links a::after { display: none; }
  .hero-modern .hero-text h1 { font-size: clamp(40px, 10vw, 60px); letter-spacing: -1.8px; }
  .projects-modern .project-tabs { display: flex; }
  }
@media (max-width: 460px) {
  .hero-modern .hero-text h1 { font-size: 40px; }
  .hero-stats { gap: 10px; }
  .hero-stats > div { min-width: 0; }
  .hero-stats strong { font-size: 16px; }
}
@media (max-width: 980px) {
  .projects-modern .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--content-width)); }
  .projects-modern .projects-grid { grid-template-columns: 1fr; }
  .hero-modern { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


.contact-options { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: clamp(24px, 4vw, 34px); }
.contact-options .btn { justify-content: center; }
.contact-options > p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.whatsapp-float { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 1000; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 1px solid rgba(215,193,154,.42); border-radius: 999px; background: rgba(17,16,13,.94); box-shadow: 0 12px 32px rgba(0,0,0,.38), 0 0 24px rgba(197,164,109,.12); color: var(--text-primary); font-size: 13px; font-weight: 650; text-decoration: none; backdrop-filter: blur(12px); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.whatsapp-float i { color: var(--sand); font-size: 22px; }
.whatsapp-float:hover { transform: translateY(-3px); border-color: var(--sand); background: rgba(28,26,22,.98); }
.whatsapp-float:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }
@media (max-width: 500px) { .whatsapp-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); min-height: 48px; padding: 0 15px; } }
