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

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0b0f;
  color: #ffffff;
  overflow-x: hidden;
}

:root {
  --bg: #07070c;
  --surface: rgba(17, 17, 27, 0.78);
  --surface-strong: #12121d;
  --line: rgba(155, 92, 255, 0.2);
  --purple: #9b5cff;
  --purple-light: #c7a5ff;
  --cyan: #42e8e0;
  --text-muted: #a8a8b8;
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(92, 51, 160, 0.18),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(31, 174, 184, 0.08),
      transparent 30%
    ),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 92, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 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(--purple);
}

.ambient-glow-two {
  right: -120px;
  bottom: 8%;
  background: var(--cyan);
  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: #9b5cff;
  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(7, 7, 12, 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: #9b5cff;
  letter-spacing: -1px;
  text-shadow: 0 0 25px rgba(155, 92, 255, 0.38);
}

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

.logo::after {
  content: ">";
  color: var(--cyan);
  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: #9b5cff;
}

.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(--purple), var(--cyan));
  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(155, 92, 255, 0.15);
  color: #b88cff;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 25px;
  font-size: 14px;
  border: 1px solid rgba(155, 92, 255, 0.3);
  box-shadow: inset 0 0 22px rgba(155, 92, 255, 0.08);
  letter-spacing: 1px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: -10px 0 22px;
  color: #8bddd8;
  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(--cyan);
  box-shadow:
    0 0 0 5px rgba(66, 232, 224, 0.08),
    0 0 16px var(--cyan);
  animation: status-pulse 2s ease-in-out infinite;
}

.hero-text h2 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 25px;
  background: linear-gradient(110deg, #ffffff 20%, #d9c8ff 62%, #79eee8);
  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, #a463ff, #7440dd);
  color: white;
  box-shadow: 0 12px 35px rgba(116, 64, 221, 0.28);
}

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

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

.secondary:hover {
  background: #9b5cff;
  color: white;
}

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

.hero-card {
  width: 320px;
  height: 320px;
  background: linear-gradient(
    145deg,
    rgba(26, 24, 41, 0.92),
    rgba(10, 10, 17, 0.86)
  );
  border: 1px solid rgba(155, 92, 255, 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(155, 92, 255, 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(66, 232, 224, 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: #9b5cff;
  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: #9b5cff;
  filter: drop-shadow(0 0 18px rgba(155, 92, 255, 0.45));
}

.code-label {
  color: var(--cyan);
  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(--cyan);
  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(7, 7, 12, 0.62);
  border-bottom-color: rgba(155, 92, 255, 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(155, 92, 255, 0.1);
  border-radius: 12px;
  background: rgba(12, 12, 20, 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(155, 92, 255, 0.1);
  color: #ffffff;
}

.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(155, 92, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 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(66, 232, 224, 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(155, 92, 255, 0.1);
  box-shadow:
    inset 0 0 70px rgba(155, 92, 255, 0.035),
    0 0 120px rgba(155, 92, 255, 0.04);
}

.hero-orb-one::before,
.hero-orb-one::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(66, 232, 224, 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(155, 92, 255, 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(155, 92, 255, 0.22);
  border-radius: 9px;
  background: rgba(155, 92, 255, 0.08);
  color: var(--purple-light);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.7px;
}

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

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

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

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

.hero-modern .hero-text h2 strong {
  display: inline;
  background: linear-gradient(
    110deg,
    var(--purple-light),
    #b78aff 45%,
    var(--cyan)
  );
  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: #d9d3e5;
  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, #9b5cff, #7040cd);
}

.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(155, 92, 255, 0.25);
  background: rgba(155, 92, 255, 0.04);
  color: #b7a6d4;
}

.hero-modern .secondary:hover {
  border-color: rgba(66, 232, 224, 0.3);
  background: rgba(66, 232, 224, 0.06);
  color: var(--cyan);
}

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

.hero-stats > div {
  min-width: 145px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(155, 92, 255, 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: #e9e4f2;
  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(155, 92, 255, 0.2);
  border-radius: 18px;
  background: rgba(10, 10, 18, 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(155, 92, 255, 0.12);
  color: #666678;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.hero-window-bar > i {
  margin-left: auto;
  color: var(--cyan);
  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(--purple);
}

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

.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: #c197ff;
  font-style: normal;
}

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

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

.line-number {
  color: #3f3f4e;
  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(66, 232, 224, 0.12);
  border-radius: 9px;
  background: rgba(5, 9, 12, 0.72);
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

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

.hero-terminal i {
  width: 6px;
  height: 13px;
  background: var(--cyan);
  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(155, 92, 255, 0.18);
  border-radius: 11px;
  background: rgba(13, 13, 22, 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(155, 92, 255, 0.1);
  color: var(--purple-light);
}

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

.floating-chip b {
  margin-bottom: 3px;
  color: #ded9e8;
  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(66, 232, 224, 0.08);
  color: var(--cyan);
}

.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(--cyan);
  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 h2 {
    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(155, 92, 255, 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: #9b5cff;
}

.skill-card i {
  font-size: 42px;
  color: #9b5cff;
  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(155, 92, 255, 0.035), transparent),
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(155, 92, 255, 0.035) 80px
    );
}

.about-glow {
  position: absolute;
  z-index: -1;
  top: 16%;
  left: 35%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(155, 92, 255, 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(--cyan);
}

.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(--purple-light);
  font-weight: inherit;
}

.about-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(66, 232, 224, 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(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  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(155, 92, 255, 0.17);
  border-radius: 20px;
  background: rgba(13, 13, 22, 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(155, 92, 255, 0.13);
  background: rgba(7, 7, 13, 0.7);
  color: #77778b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

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

.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(--purple);
}

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

.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(--purple-light);
  font-style: normal;
}

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

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

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

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

.about-metrics > div {
  padding: 18px 20px;
  border-right: 1px solid rgba(155, 92, 255, 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: #eee8f8;
  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: #f1edf8;
  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(155, 92, 255, 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(66, 232, 224, 0.28);
  background: linear-gradient(
    90deg,
    rgba(155, 92, 255, 0.09),
    rgba(66, 232, 224, 0.035)
  );
}

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

.about-modern .skill-card:hover > i {
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(66, 232, 224, 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: #ddd8e8;
  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(155, 92, 255, 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 #343445;
  border-radius: 999px;
  background: rgba(18, 18, 26, 0.74);
  color: #d1d1d1;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.project-tab:hover,
.project-tab:focus-visible {
  color: #ffffff;
  border-color: #9b5cff;
  outline: none;
}

.project-tab.active {
  background: #9b5cff;
  color: #ffffff;
  border-color: #9b5cff;
  box-shadow: 0 8px 25px rgba(155, 92, 255, 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: #9b5cff;
}

.project-image {
  height: 220px;
  background: linear-gradient(135deg, #1f1237, #0f0f15);
  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(155, 92, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 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: #9b5cff;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(155, 92, 255, 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(155, 92, 255, 0.15);
  color: #c8a8ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

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

.project-btn:hover {
  background: #8347e5;
}

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

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

.footer::before {
  content: "";
  position: absolute;
  top: 120px;
  left: 50%;
  width: 720px;
  height: 420px;
  border-radius: 50%;
  background: rgba(123, 72, 220, 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(--purple-light);
}

.footer p {
  color: #9a9a9a;
}

.footer-bottom {
  position: relative;
  padding: 32px 0;
  border-top: 1px solid rgba(155, 92, 255, 0.14);
  background: rgba(7, 7, 12, 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(18, 18, 29, 0.82);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9b5cff;
  text-decoration: none;
  transition: 0.3s;
}

.socials a:hover {
  background: linear-gradient(135deg, var(--purple), #7140d4);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(155, 92, 255, 0.25);
}

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

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

  .hero-text h2 {
    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 h2 {
    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 h2 {
    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(--cyan);
  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(--cyan);
  box-shadow: 0 0 10px rgba(66, 232, 224, 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(155, 92, 255, 0.13);
  border-radius: 16px;
  background: rgba(18, 18, 29, 0.45);
  transition: 0.3s ease;
}

.contact-highlight:hover {
  border-color: rgba(66, 232, 224, 0.35);
  transform: translateX(5px);
}

.contact-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(155, 92, 255, 0.25);
  border-radius: 13px;
  background: rgba(155, 92, 255, 0.1);
  color: var(--purple-light);
}

.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(--cyan);
}

.contact-panel {
  overflow: hidden;
  border: 1px solid rgba(155, 92, 255, 0.26);
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    rgba(21, 20, 34, 0.94),
    rgba(10, 10, 18, 0.88)
  );
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.38),
    inset 0 0 40px rgba(155, 92, 255, 0.03);
  backdrop-filter: blur(18px);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(155, 92, 255, 0.14);
  background: rgba(7, 7, 12, 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: #d8d8e3;
  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(155, 92, 255, 0.16);
  background: rgba(7, 7, 12, 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(66, 232, 224, 0.55);
  box-shadow: 0 0 0 4px rgba(66, 232, 224, 0.06);
}

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

.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, 7, 18, 0.72) 18%,
    rgba(7, 7, 12, 0.88)
  );
}
.projects-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(66, 232, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 232, 224, 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(155, 92, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.projects-orbit::before,
.projects-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(66, 232, 224, 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(--cyan);
}

.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(--purple-light);
  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(66, 232, 224, 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(--purple);
}

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

.projects-console b {
  color: var(--cyan);
  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(155, 92, 255, 0.18);
  border-radius: 16px;
  background: rgba(12, 12, 20, 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(155, 92, 255, 0.07);
}

.projects-modern .project-tab.active {
  border-color: rgba(155, 92, 255, 0.28);
  background: linear-gradient(
    135deg,
    rgba(155, 92, 255, 0.22),
    rgba(66, 232, 224, 0.07)
  );
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.projects-modern .project-tab.active i {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(66, 232, 224, 0.5);
}

.projects-modern .project-tab.active small {
  background: rgba(66, 232, 224, 0.1);
  color: var(--cyan);
}

.projects-modern .projects-grid {
  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(155, 92, 255, 0.17);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      rgba(155, 92, 255, 0.11),
      transparent 34%
    ),
    rgba(14, 14, 23, 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(66, 232, 224, 0.36);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.32),
    0 0 38px rgba(155, 92, 255, 0.07);
}

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

.projects-modern .project-image::before {
  background-image:
    linear-gradient(rgba(66, 232, 224, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 232, 224, 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(155, 92, 255, 0.18);
  border-radius: 50%;
}

.projects-modern .project-symbol {
  position: relative;
  z-index: 2;
  color: var(--purple-light);
  font-size: 62px;
  filter: drop-shadow(0 0 22px rgba(155, 92, 255, 0.55));
  transition: 0.4s ease;
}

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

.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(66, 232, 224, 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(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.project-scanline {
  position: absolute;
  z-index: 2;
  top: -5%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(66, 232, 224, 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(--cyan);
}

.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(155, 92, 255, 0.14);
  border-radius: 7px;
  background: rgba(155, 92, 255, 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(155, 92, 255, 0.2);
  border-radius: 10px;
  background: rgba(155, 92, 255, 0.07);
  color: #e6dcf7;
  font-size: 13px;
}

.projects-modern .project-btn:hover {
  border-color: rgba(66, 232, 224, 0.35);
  background: linear-gradient(
    90deg,
    rgba(155, 92, 255, 0.15),
    rgba(66, 232, 224, 0.1)
  );
}

.projects-modern .project-btn i {
  color: var(--cyan);
  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;
  }
}

/* =========================
   TESTIMONIALS
========================= */

.testimonials {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.testimonial-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(184, 140, 255, 0.18);
  border-radius: 20px;
  background: rgba(20, 14, 32, 0.72);
  backdrop-filter: blur(14px);
  transition: 0.3s ease;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(184, 140, 255, 0.12),
    transparent 55%
  );
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 140, 255, 0.45);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-rating i {
  color: #b88cff;
  font-size: 15px;
}

.testimonial-message {
  position: relative;
  z-index: 1;
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.testimonial-author {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 140, 255, 0.12);
  border: 1px solid rgba(184, 140, 255, 0.25);
  color: #b88cff;
  font-weight: 700;
}

.testimonial-author strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.testimonial-author span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.testimonial-action {
  display: flex;
  justify-content: center;
  margin-top: 45px;
}

/* =========================
   FEEDBACK MODAL
========================= */

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.feedback-modal.active {
  visibility: visible;
  opacity: 1;
}

.feedback-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.feedback-modal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 35px;
  border: 1px solid rgba(184, 140, 255, 0.25);
  border-radius: 24px;
  background: #100c18;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  transform: translateY(15px) scale(0.98);
  transition: transform 0.25s ease;
}

.feedback-modal.active .feedback-modal-content {
  transform: translateY(0) scale(1);
}

.feedback-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: 0.2s ease;
}

.feedback-modal-close:hover {
  background: rgba(184, 140, 255, 0.12);
  color: #fff;
}

.feedback-modal-header {
  margin-bottom: 30px;
  padding-right: 40px;
}

.feedback-modal-header > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #b88cff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feedback-modal-header h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
}

.feedback-modal-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  font-size: 14px;
}

.feedback-stars {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.feedback-stars button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(184, 140, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: 0.2s ease;
}

.feedback-stars button:hover,
.feedback-stars button.active {
  color: #b88cff;
  border-color: rgba(184, 140, 255, 0.45);
  background: rgba(184, 140, 255, 0.08);
  transform: translateY(-2px);
}

.feedback-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

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

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

@media (max-width: 600px) {
  .testimonials {
    padding: 80px 0;
  }

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

  .feedback-modal-content {
    padding: 28px 22px;
  }

  .feedback-modal-header h2 {
    font-size: 23px;
  }

  .feedback-stars {
    gap: 5px;
  }

  .feedback-stars button {
    width: 38px;
    height: 38px;
  }
}

/* =========================
   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: #b88cff;
}
