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

:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, .62);
  --surface-solid: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: rgba(0, 0, 0, .08);
  --accent: #0071e3;
  --accent-2: #8b5cf6;
  --shadow: 0 25px 80px rgba(0, 0, 0, .08);
  --radius: 30px;
}

[data-theme="dark"] {
  --bg: #050506;
  --surface: rgba(25, 25, 28, .58);
  --surface-solid: #18181b;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --border: rgba(255, 255, 255, .1);
  --accent: #2997ff;
  --accent-2: #a78bfa;
  --shadow: 0 25px 80px rgba(0, 0, 0, .35);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background .4s ease, color .4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 113, 227, .09), transparent 28%),
    radial-gradient(circle at 85% 40%, rgba(139, 92, 246, .08), transparent 30%);
}

.bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
  z-index: -1;
  pointer-events: none;
  animation: float 12s ease-in-out infinite alternate;
}

.orb-one { background: #0071e3; top: -160px; left: -100px; }
.orb-two { background: #8b5cf6; right: -160px; top: 30%; animation-delay: -4s; }
.orb-three { background: #06b6d4; bottom: -180px; left: 35%; animation-delay: -7s; }

@keyframes float {
  to { transform: translate(40px, 50px) scale(1.1); }
}

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 60%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
}

.brand, .nav-links a, .socials a { color: var(--text); text-decoration: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #0071e3, #8b5cf6);
  box-shadow: 0 5px 20px rgba(0,113,227,.3);
}

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

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: .25s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(127,127,127,.1);
}

.nav-actions { display: flex; gap: 7px; }

.icon-button, .menu-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(127,127,127,.1);
  cursor: pointer;
  font-size: 16px;
}

.menu-button { display: none; }

.section {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: 120px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 80px;
  padding-top: 150px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 5px rgba(52,199,89,.12);
}

h1 {
  max-width: 760px;
  font-size: clamp(54px, 7vw, 94px);
  line-height: .94;
  letter-spacing: -.07em;
}

h1 span, .contact-card h2 span { 
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 600px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 21px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform .25s, box-shadow .25s;
}

.button:hover { transform: translateY(-3px); }

.button.primary {
  color: white;
  background: var(--text);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(15px);
}

.socials { display: flex; gap: 22px; margin-top: 30px; }
.socials a { color: var(--muted); font-size: 13px; }
.socials a:hover { color: var(--text); }

.glass {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(25px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(150%);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  padding: 26px;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: rotate(2deg);
  transition: transform .5s;
}

.hero-card:hover { transform: rotate(0) translateY(-8px); }

.window-controls { display: flex; gap: 7px; position: absolute; top: 20px; left: 24px; }
.window-controls i { width: 10px; height: 10px; border-radius: 50%; background: rgba(127,127,127,.25); }

.profile-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 42px;
  color: white;
  font-size: 70px;
  font-weight: 700;
  background: linear-gradient(135deg, #0071e3, #8b5cf6);
  box-shadow: 0 30px 70px rgba(0,113,227,.3);
}

.mini-label { color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.hero-card h2 { margin-top: 10px; font-size: 36px; letter-spacing: -.05em; }
.hero-card h2 span { color: var(--accent); }

.floating-chip {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(15px);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  animation: chipFloat 5s ease-in-out infinite alternate;
}

.chip-one { top: 26%; left: 12%; }
.chip-two { top: 36%; right: 10%; animation-delay: -2s; }
.chip-three { top: 57%; left: 18%; animation-delay: -4s; }

@keyframes chipFloat { to { transform: translateY(-15px) rotate(3deg); } }

.section-heading { margin-bottom: 55px; }
.section-heading h2 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -.06em;
  line-height: 1;
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-text { padding: 40px; border-radius: var(--radius); }
.about-text p { color: var(--muted); line-height: 1.8; }
.about-text .large-copy { margin-bottom: 25px; color: var(--text); font-size: 25px; line-height: 1.4; letter-spacing: -.03em; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { min-height: 170px; padding: 28px; border-radius: 25px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card strong { font-size: 42px; letter-spacing: -.06em; }
.stat-card span { color: var(--muted); font-size: 13px; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { position: relative; padding: 32px; min-height: 330px; border-radius: var(--radius); overflow: hidden; transition: transform .3s; }
.skill-card:hover { transform: translateY(-8px); }
.skill-number { position: absolute; top: 28px; right: 30px; color: var(--muted); font-size: 11px; }
.skill-icon { font-size: 38px; margin-bottom: 50px; }
.skill-card h3 { font-size: 24px; margin-bottom: 12px; letter-spacing: -.04em; }
.skill-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.tags span { padding: 7px 10px; border-radius: 999px; background: rgba(127,127,127,.1); color: var(--muted); font-size: 10px; }

.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-card { overflow: hidden; border-radius: var(--radius); transition: transform .3s; }
.project-card:hover { transform: translateY(-7px); }
.project-featured { grid-column: span 2; }
.project-visual {
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.project-visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  filter: blur(5px);
}
.project-visual span { position: relative; z-index: 1; color: white; font-size: 44px; font-weight: 800; letter-spacing: -.07em; }
.visual-blue { background: linear-gradient(135deg, #0071e3, #42a5f5); }
.visual-purple { background: linear-gradient(135deg, #6d28d9, #c084fc); }
.visual-orange { background: linear-gradient(135deg, #f97316, #fbbf24); }

.project-info { padding: 28px; }
.project-info h3 { margin: 7px 0 12px; font-size: 26px; letter-spacing: -.04em; }
.project-info > p:not(.project-type) { max-width: 600px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.project-type { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.project-link { display: inline-block; margin-top: 22px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }

.contact-section { padding-bottom: 80px; }
.contact-card { padding: 80px 60px; border-radius: 40px; text-align: center; }
.contact-card h2 { font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.07em; }
.contact-card > p:not(.eyebrow) { max-width: 520px; margin: 25px auto 30px; color: var(--muted); line-height: 1.7; }
.contact-card .button { display: inline-flex; }

footer {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: 25px 0 45px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 850px) {
  .nav-links {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    padding: 10px;
    display: none;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-solid);
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr; gap: 50px; }
  .hero-card { height: 430px; max-width: 600px; width: 100%; margin: auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: auto; }
}

@media (max-width: 650px) {
  .section { padding: 90px 0; }
  h1 { font-size: 58px; }
  .hero-text { font-size: 16px; }
  .about-grid, .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 140px; padding: 20px; }
  .stat-card strong { font-size: 32px; }
  .about-text { padding: 28px; }
  .contact-card { padding: 55px 25px; border-radius: 30px; }
  footer { flex-direction: column; gap: 10px; }
}
