@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'FiraCode';
  src: url('fonts/FiraCode/FiraCode-Light.ttf') format('truetype');
  font-weight: 300;
}

@font-face {
  font-family: 'FiraCode';
  src: url('fonts/FiraCode/FiraCode-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'FiraCode';
  src: url('fonts/FiraCode/FiraCode-Retina.ttf') format('truetype');
  font-weight: 450;
}

@font-face {
  font-family: 'FiraCode';
  src: url('fonts/FiraCode/FiraCode-Medium.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'FiraCode';
  src: url('fonts/FiraCode/FiraCode-SemiBold.ttf') format('truetype');
  font-weight: 600;
}

@font-face {
  font-family: 'FiraCode';
  src: url('fonts/FiraCode/FiraCode-Bold.ttf') format('truetype');
  font-weight: 700;
}

:root {
  --bg: #0f1016;
  --card: #111827;
  --pink: #FF80FB;
  --cyan: #00FFFF;
  --fg: #e8f4f8;
  --muted: #7BBDD4;
  --mono: 'FiraCode', monospace;
  --display: 'Orbitron', sans-serif;
  --side-pad: clamp(1.25rem, 0.9rem + 1.2vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--fg);
  font-family: var(--mono);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

svg.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

svg.icon.icon-brand {
  fill: currentColor;
  stroke: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(0, 255, 255, 0.6) 2px, rgba(0, 255, 255, 0.6) 3px
  );
  background-size: 100% 3px;
}

.hud-corners {
  position: relative;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.corner-mark {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  border-style: solid;
  border-color: var(--cyan);
  border-width: 0;
}

.corner-mark.tl { top: 0; left: 0; border-top-width: var(--cbw, 2px); border-left-width: var(--cbw, 2px); }
.corner-mark.tr { top: 0; right: 0; border-top-width: var(--cbw, 2px); border-right-width: var(--cbw, 2px); }
.corner-mark.bl { bottom: 0; left: 0; border-bottom-width: var(--cbw, 2px); border-left-width: var(--cbw, 2px); }
.corner-mark.br { bottom: 0; right: 0; border-bottom-width: var(--cbw, 2px); border-right-width: var(--cbw, 2px); }

.corner-photo { width: 20px; height: 20px; }
.corner-photo.tl { top: -4px; left: -4px; }
.corner-photo.tr { top: -4px; right: -4px; }
.corner-photo.bl { bottom: -4px; left: -4px; }
.corner-photo.br { bottom: -4px; right: -4px; }

.corner-card { width: 24px; height: 24px; }

.corner-skill { width: 20px; height: 20px; opacity: 0.7; }

.corner-project { width: 20px; height: 20px; opacity: 0.7; }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--side-pad);
  background: rgba(15, 16, 22, 0.95);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links a.active { color: var(--pink); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px var(--side-pad) 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  left: 25%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.05);
  filter: blur(90px);
  pointer-events: none;
}

.hero-inner {
  max-width: 1084px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  position: relative;
}

.hero-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-photo-frame {
  position: relative;
  width: 338px;
  height: 416px;
}

.hero-photo-frame.hud-corners {
  border-color: rgba(0, 255, 255, 0.35);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-photo-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 255, 255, 0.1), transparent 60%);
}

.hero-photo-ring {
  position: absolute;
  inset: -8px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(0, 255, 255, 0.08);
}

.hud-tick {
  position: absolute;
  z-index: 11;
  pointer-events: none;
  background: var(--cyan);
}

.hud-tick.tick-v { width: 3px; }
.hud-tick.tick-h { height: 1px; opacity: 0.4; }

.hero-circuit {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

.hero-circuit-left {
  left: -32px;
  bottom: -24px;
  width: 130px;
  height: 160px;
}

.hero-circuit-right {
  right: -24px;
  top: -24px;
  width: 100px;
  height: 112px;
}

.hero-status-tag {
  position: absolute;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: var(--bg);
  padding: 7px 16px;
  white-space: nowrap;
}

.hero-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero-status-tag span {
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-info-col { display: flex; }

.hero-info-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}

.hero-info-card.hud-corners {
  border-color: rgba(0, 255, 255, 0.25);
}

.hero-card-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom right, rgba(0, 255, 255, 0.04), transparent 60%);
}

.hero-id-tag {
  position: absolute;
  top: 10px;
  right: 24px;
  font-size: 0.6rem;
  color: rgba(0, 255, 255, 0.5);
  letter-spacing: 0.2em;
}

.hero-top { display: flex; flex-direction: column; gap: 14px; }

.hero-name h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.hero-name h1.hero-name-last { font-size: 2rem; }

.hero-name .accent-pink {
  color: var(--pink);
  text-shadow: 0 0 20px rgba(255, 128, 251, 0.45);
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(232, 244, 248, 0.75);
}

.hero-tagline .chevron { color: var(--cyan); }

.hero-bio {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
}

.hero-row-divider {
  height: 1px;
  margin-top: 18px;
  background: rgba(232, 244, 248, 0.15);
}

.hero-socials {
  display: flex;
  gap: 8px;
  padding-top: 14px;
}

.hero-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 4px;
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s;
}

.hero-socials a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.lang-chip {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 255, 255, 0.45);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.lang-chip .lang-level {
  color: var(--pink);
  font-weight: 400;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-label .rule {
  height: 1px;
  width: 48px;
  background: linear-gradient(to right, rgba(0, 255, 255, 0.6), transparent);
}

.section-label .rule.flex {
  flex: 1;
  width: auto;
  background: linear-gradient(to left, transparent, rgba(0, 255, 255, 0.15), transparent);
}

.section-label h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.45);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#skills {
  padding: 110px var(--side-pad);
  max-width: 1180px;
  margin: 0 auto;
}

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

.skill-box {
  background: var(--card);
  padding: 20px;
}

.skill-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--cyan);
}

.skill-box-header .icon { font-size: 0.9rem; }

.skill-box-header span {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.skill-box-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  background: var(--bg);
  padding: 8px 12px;
}

.skill-chip .icon { color: rgba(0, 255, 255, 0.7); font-size: 0.8rem; }

.skill-chip span {
  font-size: 12px;
  color: rgba(232, 244, 248, 0.8);
  white-space: nowrap;
}

#projects {
  padding: 50px var(--side-pad) 70px;
  max-width: 1180px;
  margin: 0 auto;
}

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

.project-card {
  position: relative;
  background: var(--card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-mockup {
  position: relative;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  padding: 20px 28px;
  background: var(--card);
}

.phones-wrap {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-back {
  width: 95px;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
  border-radius: 12px;
}

.phone-left { z-index: 1; margin-right: -20px; }
.phone-right { z-index: 1; margin-left: -20px; }

.phone-front {
  width: 116px;
  height: auto;
  object-fit: contain;
  z-index: 2;
  border-radius: 14px;
}

.laptop-shot {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.project-title-row span {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
}

.project-github {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 255, 0.25);
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}

.project-github:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.project-desc-box {
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: var(--bg);
  padding: 12px 14px;
  margin-bottom: 14px;
  flex: 1;
}

.project-desc-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags .tag {
  border: 1px solid rgba(0, 255, 255, 0.25);
  background: var(--bg);
  padding: 5px 10px;
  font-size: 12px;
  color: rgba(232, 244, 248, 0.7);
  letter-spacing: 0.03em;
}

#contact {
  padding: 50px var(--side-pad) 110px;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-inner {
  max-width: 1084px;
  margin: 0 auto;
}

.contact-intro {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.contact-chips {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 24px;
}

.contact-chip {
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.contact-chip .icon { font-size: 1.3rem; }

.contact-chip span {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-chip:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

footer {
  background: var(--bg);
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  padding: 28px var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.footer-brand span {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 255, 0.2); }

@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-photo-col { order: 2; }
  .hero-info-col { order: 1; }
}

@media (max-width: 768px) {
  nav { padding: 14px var(--side-pad); }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 16, 22, 0.98);
    padding: 8px 20px 16px;
    border-top: 1px solid var(--cyan);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
  }

  .nav-links a:last-child { border-bottom: none; }

  #hero { padding: 90px var(--side-pad) 60px; }

  .hero-photo-frame { width: 260px; height: 300px; }

  .hero-info-card { padding: 24px; }

  #skills { padding-top: 80px; padding-bottom: 80px; }
  #projects { padding-top: 40px; padding-bottom: 50px; }
  #contact { padding-top: 40px; padding-bottom: 80px; }

  .contact-chips { gap: 12px; }

  .contact-chip { width: 84px; height: 84px; }

  .hero-socials a { width: 44px; height: 44px; font-size: 1.1rem; }

  .lang-chip { height: 44px; font-size: 0.8rem; }

  .section-label h2 { font-size: 1.2rem; }

  footer { padding: 24px 20px; }
}
