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

:root {
  --bg: #070a13;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --muted: #a8b3cf;
  --line: rgba(255, 255, 255, 0.13);
  --primary: #7c3aed;
  --secondary: #06b6d4;
  --accent: #22c55e;
  --warm: #f59e0b;
  --gradient: linear-gradient(135deg, #7c3aed, #06b6d4 55%, #22c55e);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; }

.page-glow { position: fixed; width: 380px; height: 380px; border-radius: 999px; filter: blur(90px); opacity: .42; pointer-events: none; z-index: -1; }
.glow-one { background: #7c3aed; top: -110px; left: -80px; }
.glow-two { background: #06b6d4; right: -100px; bottom: 10%; }

.section { padding: 110px 8%; }
.glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  border-radius: 30px;
}

.header { position: fixed; inset: 0 0 auto; z-index: 1000; transition: .3s ease; }
.header.scrolled { background: rgba(7, 10, 19, .72); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.navbar { height: 82px; padding: 0 8%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.logo span { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); margin-top: -3px; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--muted); font-weight: 700; font-size: 14px; transition: .25s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-cta { padding: 12px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-weight: 800; transition: .3s; }
.nav-cta:hover { background: var(--gradient); transform: translateY(-3px); }
.menu-btn { display: none; background: transparent; border: 0; color: var(--text); font-size: 34px; cursor: pointer; }

.hero { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-top: 150px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #bae6fd; background: rgba(6,182,212,.11); border: 1px solid rgba(6,182,212,.24); padding: 9px 15px; border-radius: 999px; font-weight: 800; font-size: 13px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(46px, 7vw, 86px); line-height: .98; letter-spacing: -.065em; max-width: 920px; }
.hero h1::first-letter { color: var(--secondary); }
.hero-copy p { color: var(--muted); font-size: 18px; line-height: 1.8; max-width: 690px; margin: 28px 0 34px; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 22px; border-radius: 16px; font-weight: 900; transition: .3s; border: 1px solid transparent; }
.primary-btn { background: var(--gradient); color: white; box-shadow: 0 18px 48px rgba(6,182,212,.22); }
.ghost-btn { background: var(--card); border-color: var(--line); color: var(--text); }
.btn:hover { transform: translateY(-4px); }
.hero-metrics { margin-top: 42px; display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 16px; max-width: 560px; }
.hero-metrics div { padding: 20px; border-radius: 22px; background: rgba(255,255,255,.055); border: 1px solid var(--line); }
.hero-metrics strong { display: block; font-size: 32px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-metrics span { color: var(--muted); font-weight: 700; font-size: 13px; }
.hero-panel { position: relative; }
.profile-card { padding: 24px; transform: rotate(1.2deg); }
.profile-top { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.profile-top img { width: 92px; height: 92px; object-fit: cover; border-radius: 26px; border: 1px solid var(--line); }
.profile-top h2 { font-size: 25px; }
.profile-top p { color: var(--secondary); font-weight: 800; margin-top: 7px; }
.code-window { background: #020617; border: 1px solid var(--line); border-radius: 24px; padding: 18px; overflow-x: auto; }
.window-dots { display: flex; gap: 7px; margin-bottom: 16px; }
.window-dots span { width: 11px; height: 11px; border-radius: 999px; background: var(--secondary); }
.window-dots span:nth-child(2) { background: var(--warm); }
.window-dots span:nth-child(3) { background: var(--accent); }
pre { color: #dbeafe; line-height: 1.7; font-size: 14px; }

.section-heading { max-width: 820px; margin-bottom: 44px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading span { color: var(--secondary); text-transform: uppercase; letter-spacing: .16em; font-weight: 900; font-size: 13px; }
.section-heading h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -.045em; margin-top: 12px; }
.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: stretch; }
.about-card, .timeline { padding: 34px; }
.about-card h3, .skill-card h3, .project-feature h3, .cert-card h3 { font-size: 23px; margin-bottom: 14px; }
.about-card p, .timeline p, .skill-card p, .project-feature p, .cert-card p, .contact-shell p { color: var(--muted); line-height: 1.75; }
.about-tags, .tech-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-tags span, .tech-stack span { padding: 8px 12px; border-radius: 999px; background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.22); color: #bae6fd; font-size: 13px; font-weight: 800; }
.timeline { display: grid; gap: 18px; }
.timeline-item { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; }
.timeline-item > span { width: 44px; height: 44px; border-radius: 14px; background: var(--gradient); display: grid; place-items: center; font-weight: 900; }
.timeline h4 { font-size: 18px; margin-bottom: 7px; }

.skills-grid, .cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-card, .cert-card { padding: 28px; transition: .3s; }
.skill-card:hover, .cert-card:hover, .project-feature:hover { transform: translateY(-10px); border-color: rgba(6,182,212,.45); }
.skill-card i, .cert-card i, .project-icon i { font-size: 42px; color: var(--secondary); margin-bottom: 18px; }

.featured-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-feature { padding: 30px; transition: .3s; position: relative; overflow: hidden; }
.highlight-card { background: linear-gradient(145deg, rgba(124,58,237,.27), rgba(6,182,212,.13)); }
.project-feature a { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: #bae6fd; font-weight: 900; }
.view-all-wrap { margin-top: 28px; text-align: center; }

.cert-grid { grid-template-columns: repeat(3, 1fr); }
.cert-card span { display: inline-block; margin-top: 20px; color: #dcfce7; background: rgba(34,197,94,.11); border: 1px solid rgba(34,197,94,.22); padding: 8px 12px; border-radius: 999px; font-weight: 900; font-size: 13px; }

.contact-shell { padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.contact-shell h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.04em; margin-bottom: 14px; }
.footer { padding: 36px 8%; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 22px; transition: .3s; }
.footer-socials a:hover { background: var(--gradient); transform: translateY(-4px); }

@media (max-width: 1050px) {
  .nav-cta { display: none; }
  .hero, .about-layout, .contact-shell { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero-copy p, .hero-metrics { margin-left: auto; margin-right: auto; }
  .hero-actions, .contact-actions { justify-content: center; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-projects, .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 90px 6%; }
  .navbar { padding: 0 6%; }
  .menu-btn { display: block; }
  .nav-menu { position: fixed; top: 82px; left: -100%; width: 100%; height: calc(100vh - 82px); background: rgba(7,10,19,.96); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; transition: .3s; }
  .nav-menu.show { left: 0; }
  .hero { padding-top: 130px; }
  .hero-metrics, .skills-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
}
