/* ================= COLOR VARIABLES & BASE RESET ================= */
:root {
  --bg-obsidian: #060913;
  --glass-bg: rgba(14, 21, 42, 0.76);
  --glass-border: rgba(56, 189, 248, 0.24);
  --cyan: #38bdf8;
  --emerald: #10b981;
  --purple: #a855f7;
  --gold: #fbbf24;
  --pink: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .brand {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.2;
}

.container {
  width: 92%;
  max-width: 1160px;
  margin: 0 auto;
}

/* ================= BACKGROUND GRID & AMBIENT ORBS ================= */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}

.orb-cyan {
  width: 420px;
  height: 420px;
  background: var(--cyan);
  top: -120px;
  left: -100px;
}

.orb-purple {
  width: 420px;
  height: 420px;
  background: var(--purple);
  bottom: -120px;
  right: -100px;
}

/* ================= STICKY NAVIGATION BAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.95rem 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.brand strong {
  color: var(--cyan);
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}

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

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--cyan);
}

/* ================= BUTTON STYLES & SHIMMER EFFECT ================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.72);
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  animation: shimmer 3.2s infinite;
}

@keyframes shimmer {
  0% { left: -120%; }
  45%, 100% { left: 160%; }
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px dashed rgba(56, 189, 248, 0.45);
}

.btn-nav {
  padding: 0.55rem 1.2rem;
  font-size: 0.86rem;
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}

.btn-sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.86rem;
}

.btn-full {
  width: 100%;
}

/* ================= HERO SECTION & AVATAR ================= */
.hero {
  padding: 4.5rem 0 3.5rem;
}

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

.status-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 0.65rem;
}

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

.typing-line {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  margin-bottom: 1.1rem;
  color: var(--text-main);
}

.typed-text {
  color: var(--gold);
}

.cursor {
  color: var(--cyan);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero p {
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 600px;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-ring {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--emerald));
  box-shadow: 0 0 45px rgba(56, 189, 248, 0.35);
  animation: floatAvatar 5s ease-in-out infinite alternate;
}

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

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #0b1121;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0b1121;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  gap: 0.5rem;
  color: var(--text-muted);
}

.floating-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--glass-border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.badge-top {
  top: 12px;
  right: 8px;
  color: var(--gold);
}

.badge-bottom {
  bottom: 14px;
  left: 8px;
  color: var(--cyan);
}

/* ================= SECTIONS & GLASS CARDS ================= */
.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.45rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--text-muted);
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-7px);
  border-color: var(--cyan);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.18);
}

/* ================= PLAYABLE ARCADE CABINET ================= */
.arcade-cabinet {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.4fr;
  gap: 0.6rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.65rem 1rem;
}

.hud-box .label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.hud-box .val {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.val.cyan { color: var(--cyan); }
.val.gold { color: var(--gold); }

.hull-bar {
  width: 100%;
  height: 11px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.hull-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  transition: width 0.2s ease;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 540;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  background: #03050c;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 19, 0.86);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.game-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mini-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.game-overlay h3 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.game-overlay h3 span {
  color: var(--cyan);
}

.game-overlay p {
  max-width: 480px;
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.control-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
}

.control-pills span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #e2e8f0;
}

/* ================= PROJECT CARDS GRID ================= */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.highlight-card {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
}

.card-top {
  margin-bottom: 0.75rem;
}

.platform-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.pc-pill {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}

.web-pill {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.db-pill {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.glass-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 1.1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.tech-tags span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ================= SKILLS, PRICING & CONTACT BANNER ================= */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.skill-pills span {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text-main);
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.skill-pills span:hover {
  transform: translateY(-3px);
  background: rgba(56, 189, 248, 0.25);
}

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.cred-list strong {
  color: var(--text-main);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.2);
}

.popular-ribbon {
  position: absolute;
  top: -13px;
  right: 20px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

.tier-name {
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.price-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0.45rem 0;
}

.price-tag span {
  font-size: 0.95rem;
  color: var(--gold);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.price-sub {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  flex-grow: 1;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 1.5rem;
}

.pricing-note code {
  color: var(--cyan);
}

.contact-banner {
  background: linear-gradient(135deg, rgba(14, 21, 42, 0.92), rgba(30, 27, 75, 0.92));
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 3.2rem 2rem;
  text-align: center;
}

.contact-banner h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.7rem;
}

.contact-banner p {
  max-width: 580px;
  margin: 0 auto 1.8rem;
  color: var(--text-muted);
}

.contact-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 1.8rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ================= SCROLL REVEAL & RESPONSIVE ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav-inner {
    flex-direction: column;
    gap: 0.65rem;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav-links a:not(.btn):not(:first-child) {
    display: none;
  }
  .nav-links .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hud {
    grid-template-columns: repeat(2, 1fr);
  }
  .canvas-wrap {
    aspect-ratio: 4 / 3;
    min-height: 360px;
  }
  .game-overlay {
    padding: 0.9rem;
    gap: 0.35rem;
  }
  .mini-tag {
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
    padding: 0.22rem 0.7rem;
  }
  .game-overlay h3 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
  }
  .game-overlay p {
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
  }
  .control-pills {
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }
  .control-pills span {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  #startBtn {
    padding: 0.7rem 1.35rem;
    font-size: 0.86rem;
  }
}
