:root {
  --bg: #050816;
  --accent: #ff7a3c;
  --accent-2: #6c5ce7;
  --accent-3: #00cec9;
  --text: #f7f7ff;
  --muted: #a0a4c0;
  --card-bg: rgba(15, 18, 40, 0.9);
  --border-soft: rgba(255, 255, 255, 0.12);
  --radius-lg: 18px;
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.6);
  --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, #1b2140 0, #050816 45%, #02030a 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* BACKGROUND ORBS */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -2;
  mix-blend-mode: screen;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.bg-orb:nth-child(1) {
  width: 460px;
  height: 460px;
  background: #ff7a3c;
  top: -120px;
  left: -100px;
}

.bg-orb:nth-child(2) {
  width: 380px;
  height: 380px;
  background: #6c5ce7;
  bottom: -150px;
  right: -40px;
  animation-delay: -5s;
}

.bg-orb:nth-child(3) {
  width: 280px;
  height: 280px;
  background: #00cec9;
  top: 35%;
  right: 15%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(60px, -40px, 0) scale(1.06);
  }
}

/* LAYOUT */
.shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 70px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.96),
    rgba(5, 8, 22, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}



.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffce3c, #ff7a3c);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  padding: 90px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.2fr);
  gap: 55px;
  align-items: center;
}

.hero-left {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--muted);
  background: rgba(12, 17, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  margin-bottom: 14px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #11d67b;
  box-shadow: 0 0 14px rgba(17, 214, 123, 0.9);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.hero-highlight {
  background: linear-gradient(90deg, #ffce3c, #ff7a3c, #ff58c2);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-roles {
  font-size: 0.80rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.typewriter {
  display: inline-block;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation:
    typing 4s steps(60, end) forwards,
    caret 0.7s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes caret {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: rgba(255, 255, 255, 0.8);
  }
}

.hero-text {
  max-width: 540px;
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-text strong {
  color: #fff;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at top left, #ff7a3c 0, #fc3c9c 45%, #6c5ce7 100%);
  color: #050816;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
}

.btn-outline {
  background: rgba(9, 11, 26, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12, 18, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-right {
  position: relative;
  max-width: 360px;
  justify-self: center;
}

.hero-card {
  position: relative;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(18, 22, 50, 0.98), rgba(5, 8, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  animation: heroFloat 8s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -6px, 0);
  }
}

.hero-orbit {
  position: absolute;
  inset: -40%;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  transform: rotate(10deg);
  opacity: 0.6;
}

.hero-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(5, 8, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-avatar {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, #ff7a3c, #ffce3c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  color: #1e1420;
  margin-bottom: 14px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(10, 14, 35, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-metric-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.8rem;
}

.hero-metric {
  flex: 1;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(8, 13, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-card:hover .hero-glow {
  opacity: 1;
}

/* SECTIONS */
section {
  padding: 34px 0 26px;
}

.section-header {
  margin-bottom: 22px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
  max-width: 540px;
}

.subheading {
  font-size: 1rem;
  margin: 22px 0 10px;
}

/* CARDS & GRIDS */
.grid-2,
.grid-3 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: minmax(0, 1fr);
}

.grid-3 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 750px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(255, 122, 60, 0.14), transparent 55%);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: -1;
}

.card:hover {
  transform: translateY(-4px) translateZ(0) rotate3d(1, -1, 0, 5deg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 122, 60, 0.8);
  background: rgba(17, 24, 55, 0.98);
}

.card:hover::before {
  opacity: 1;
  transform: translate3d(10px, -10px, 0);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 16, 35, 0.96);
  border: 1px solid var(--border-soft);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.88rem;
  color: #dde0f5;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: #ffce3c;
}

.card-link span {
  font-size: 1.1rem;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 650px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* make items nice cards with background image */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, #ff7a3c, #6c5ce7);
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 1);
}

/* text sits above overlay & image */
.gallery-item > div {
  position: relative;
  z-index: 2;
}

.gallery-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #050816;
  background: rgba(245, 245, 245, 0.94);
  padding: 4px 9px;
  border-radius: 999px;
  align-self: flex-start;
}

.gallery-caption {
  font-size: 0.8rem;
  color: rgba(250, 250, 255, 0.98);
  margin-top: auto;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(5, 8, 22, 0.3), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* actual image as background */
.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  cursor: pointer;
  opacity: 0.92;
}

/* CONTACT */
.contact-card {
  max-width: 520px;
  margin-top: 12px;
}

.contact-row {
  margin-top: 12px;
  font-size: 0.9rem;
}

.contact-row span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 2px;
}

/* FOOTER */
footer {
  padding: 26px 20px 40px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* SCROLL REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* SKILLS + CONTACT LAYOUT */
.skills-contact-grid {
  display: grid;
  gap: 32px;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .skills-contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .contact-card {
    margin-top: 0;
  }
}

.skills-col .section-header,
.contact-col .section-header {
  margin-bottom: 16px;
}

/* IMAGE MODAL */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.image-modal.open {
  display: flex;
}

.image-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 32px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 70px;
  }

  .hero-right {
    order: -1;
  }

  .nav-links {
    display: none;
  }
}
