body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #e6edf8;
  background: radial-gradient(circle at top left, rgba(79, 123, 255, 0.18), transparent 32%),
              linear-gradient(180deg, #06090f 0%, #08101c 55%, #091922 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -12%;
  left: -20%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(112, 141, 255, 0.14);
  filter: blur(80px);
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  bottom: -14%;
  right: -18%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(38, 220, 255, 0.08);
  filter: blur(110px);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, 14px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, -18px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 157, 255, 0.12); }
  50% { box-shadow: 0 0 0 18px rgba(125, 157, 255, 0.04); }
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.site-header, .site-footer {
  background: #050816;
  color: #f3f7ff;
  padding: 3rem 0 2rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header h1,
.site-header p {
  margin: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  color: #dbe3ff;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.site-nav a:hover {
  background: rgba(125, 157, 255, 0.14);
  color: #fff;
}

.hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.hero-code-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero-code-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 25, 60, 0.15), transparent 45%);
}

.hero-code-bg pre {
  position: relative;
  margin: 0;
  padding: 1rem 1.25rem;
  max-width: 760px;
  color: rgba(173, 194, 255, 0.16);
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-wrap;
  text-align: left;
  background: rgba(7, 12, 22, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform: translateY(-3px) rotate(-1deg);
  animation: codeSlide 18s linear infinite;
}

@keyframes codeSlide {
  0% { transform: translate(-8px, -3px) rotate(-1deg); }
  50% { transform: translate(8px, 2px) rotate(0deg); }
  100% { transform: translate(-8px, -3px) rotate(-1deg); }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #7c9cff;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin: 0 0 1rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 0 1.75rem;
  color: #c7d2ff;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-panel {
  display: grid;
  place-items: center;
}

.hero-card {
  background: rgba(16, 24, 40, 0.92);
  border: 1px solid rgba(79, 123, 255, 0.22);
  border-radius: 28px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.3);
  animation: fadeUp 0.9s ease both;
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-copy,
.hero-card,
.metrics-grid article,
.project-grid article,
.experience-list article,
.skill-grid span,
.education-contact > div {
  opacity: 0;
  animation: fadeUp 0.9s ease both;
}

.hero-copy {
  animation-delay: 0.15s;
}

.hero-card {
  animation-delay: 0.25s;
}

.metrics-grid article {
  transform: translateY(18px);
}

.project-grid article,
.experience-list article,
.skill-grid span,
.education-contact > div {
  transform: translateY(18px);
}

.metrics-grid article,
.project-grid article,
.experience-list article,
.skill-grid span,
.education-contact > div {
  animation-duration: 0.85s;
  animation-delay: 0.3s;
}

.metrics-grid article:hover,
.project-grid article:hover,
.experience-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(5, 9, 18, 0.45);
}

.skill-grid span {
  transition: transform 0.25s ease, background 0.25s ease;
}

.skill-grid span:hover {
  transform: translateY(-2px);
  background: rgba(125, 157, 255, 0.14);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li {
  margin-bottom: 0.85rem;
  color: #c9d6ff;
}

.metrics {
  padding: 2rem 0 3rem;
}

.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1.5rem;
}

.metrics-grid article {
  background: rgba(8, 15, 27, 0.9);
  border: 1px solid rgba(96, 125, 255, 0.14);
  border-radius: 24px;
  padding: 1.75rem;
  text-align: center;
  animation: fadeUp 0.9s ease both;
}

.metrics-grid article:nth-child(1) { animation-delay: 0.22s; }
.metrics-grid article:nth-child(2) { animation-delay: 0.30s; }
.metrics-grid article:nth-child(3) { animation-delay: 0.38s; }
.metrics-grid article:nth-child(4) { animation-delay: 0.46s; }

.project-grid article:nth-child(1) { animation-delay: 0.28s; }
.project-grid article:nth-child(2) { animation-delay: 0.34s; }
.project-grid article:nth-child(3) { animation-delay: 0.40s; }
.project-grid article:nth-child(4) { animation-delay: 0.46s; }

.experience-list article:nth-child(1) { animation-delay: 0.30s; }
.experience-list article:nth-child(2) { animation-delay: 0.36s; }
.experience-list article:nth-child(3) { animation-delay: 0.42s; }
.experience-list article:nth-child(4) { animation-delay: 0.48s; }

.skill-grid span:nth-child(1) { animation-delay: 0.30s; }
.skill-grid span:nth-child(2) { animation-delay: 0.34s; }
.skill-grid span:nth-child(3) { animation-delay: 0.38s; }
.skill-grid span:nth-child(4) { animation-delay: 0.42s; }
.skill-grid span:nth-child(5) { animation-delay: 0.46s; }
.skill-grid span:nth-child(6) { animation-delay: 0.50s; }
.skill-grid span:nth-child(7) { animation-delay: 0.54s; }
.skill-grid span:nth-child(8) { animation-delay: 0.58s; }
.skill-grid span:nth-child(9) { animation-delay: 0.62s; }
.skill-grid span:nth-child(10) { animation-delay: 0.66s; }

.education-contact > div:nth-child(1) { animation-delay: 0.32s; }
.education-contact > div:nth-child(2) { animation-delay: 0.36s; }

.metrics-grid span {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #b5c7ff;
}

.metrics-grid p {
  margin: 0.75rem 0 0;
  color: #afc2ff;
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  background: linear-gradient(135deg, #7d9dff, #3b6dff);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 18px 35px rgba(59, 109, 255, 0.18);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(59, 109, 255, 0.25);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #c7d2ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.services, .summary, .skills, .projects, .experience, .education-contact {
  padding: 3rem 0;
}

.services h2, .summary h2, .skills h2, .projects h2, .experience h2, .education-contact h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #f4f7ff;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

article {
  background: rgba(7, 12, 22, 0.96);
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid rgba(79, 123, 255, 0.14);
  box-shadow: 0 18px 50px rgba(5, 9, 18, 0.35);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.summary, .skills, .experience, .education-contact {
  padding: 3rem 0;
}

.summary p {
  max-width: 880px;
  margin: 0.75rem auto;
  text-align: center;
  color: #c7d2ff;
}

.skill-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.skill-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe3ff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.experience-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.experience-list article h3 {
  margin-top: 0;
  color: #f8fbff;
}

.projects {
  padding: 3rem 0;
}

.project-grid article {
  min-height: 220px;
  background: rgba(7, 12, 22, 0.92);
  border: 1px solid rgba(79, 123, 255, 0.16);
  backdrop-filter: blur(12px);
}

.project-grid article h3 {
  margin-top: 0;
  color: #e8eeff;
}

.project-grid article p {
  color: #c7d2ff;
}

.experience-list .meta {
  color: #98a9c7;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.experience-list ul {
  padding-left: 1.25rem;
  margin: 0;
  color: #c7d2ff;
}

.experience-list li {
  margin-bottom: 0.85rem;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.education-contact h2 {
  margin-top: 0;
}

.contact a {
  color: #7d9dff;
  text-decoration: none;
}

.site-footer {
  background: linear-gradient(180deg, #050816 0%, #071021 100%);
}

a[href^="mailto:"] {
  color: #7d9dff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

a[href^="mailto:"]:hover {
  background: rgba(125, 157, 255, 0.1);
  color: #b5c7ff;
}