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

:root {
  --black:    #0A0A0F;
  --card:     #111827;
  --border:   #1C2333;
  --cyan:     #00E5FF;
  --cyan-dim: #00b4c8;
  --white:    #FFFFFF;
  --grey:     #9DA3AE;
  --grey-lt:  #C9CDD5;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--cyan); }

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

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
}

.hero-name em {
  font-style: normal;
  color: var(--cyan);
}

/* Terminal typing line */
.hero-terminal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.6s 0.7s forwards;
}

.terminal-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--cyan);
}

.terminal-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--grey-lt);
  min-width: 2ch;
}

.terminal-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-desc {
  max-width: 540px;
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s 1s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 1.2s forwards;
}

.btn-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 32px;
  background: var(--cyan);
  color: var(--black);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: var(--cyan-dim); transform: translateY(-2px); }

.btn-ghost {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 13px 32px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ── SECTIONS ── */
section {
  padding: 100px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 48px;
}

.section-title span { color: var(--cyan); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text p strong { color: var(--white); font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.stat-box {
  background: var(--card);
  padding: 28px 24px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── SKILLS ── */
#skills { background: transparent; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.skill-card {
  background: var(--card);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover { background: #161f2e; }

.skill-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.skill-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

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

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--grey);
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}

.skill-card:hover .tag { border-color: rgba(0,229,255,0.25); color: var(--grey-lt); }

/* ── SERVICES ── */
.services-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }

.service-item {
  background: var(--card);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background 0.2s;
  cursor: default;
}

.service-item:hover { background: #161f2e; }

.service-left { display: flex; align-items: center; gap: 20px; }

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  opacity: 0.7;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.service-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--grey);
  max-width: 380px;
}

.service-arrow {
  font-size: 1.1rem;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.service-item:hover .service-arrow { opacity: 1; transform: translateX(4px); }

/* ── CONTACT ── */
#contact {
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.contact-inner .section-label { justify-content: center; display: flex; }

.contact-inner .section-title { text-align: center; margin-bottom: 20px; }

.contact-sub {
  color: var(--grey);
  margin-bottom: 48px;
  font-size: 1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contact-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--grey);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
}

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

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.06em;
}

footer span { color: var(--cyan); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  to   { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  #hero { padding: 100px 24px 60px; }
  section { padding: 72px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .service-desc { display: none; }
  footer { padding: 24px; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
