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

html, body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #050816;
  color: #e5e7eb;
  line-height: 1.5;
}

body {
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */
.site-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent),
              rgba(3, 7, 18, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #22d3ee, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
}

.brand-tagline {
  font-size: 0.78rem;
  color: #9ca3af;
}

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.nav a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.nav a:hover {
  border-color: rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.25), transparent);
}

/* HERO */
.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(129, 140, 248, 0.18), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #38bdf8;
  margin-bottom: 0.6rem;
}

.hero h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.hero-body {
  font-size: 0.95rem;
  color: #d1d5db;
  max-width: 34rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #22d3ee);
  color: #020617;
  font-weight: 600;
}

.btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

.btn.ghost:hover {
  background: rgba(30, 64, 175, 0.6);
}

.hero-panel {
  border-radius: 1.2rem;
  padding: 1.25rem 1.1rem;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.35), transparent),
              rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-metric {
  padding: 0.6rem 0.7rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.metric-value {
  font-size: 0.86rem;
  color: #e5e7eb;
}

/* SECTIONS */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
              #020617;
}

.section h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 0.95rem;
  color: #9ca3af;
  max-width: 34rem;
  margin: 0.25rem 0 1.7rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(0, 2fr);
  gap: 2rem;
}

.about-grid p {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 0.7rem;
}

.about-card {
  border-radius: 1rem;
  padding: 1.1rem 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.85);
}

.about-card h4 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.about-card ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.about-card ul li {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.skill-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 0.9rem;
  padding: 0.9rem 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.skill-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.skill-card ul li {
  font-size: 0.88rem;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1.1rem;
  padding: 1.1rem 1.1rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.project-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5b4fc;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.6);
  align-self: flex-start;
}

.project-card h4 {
  font-size: 1.05rem;
}

.project-body {
  font-size: 0.88rem;
  color: #d1d5db;
}

.project-highlights {
  margin-top: 0.4rem;
  padding-left: 0.9rem;
}

.project-highlights li {
  position: relative;
  font-size: 0.86rem;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

.project-highlights li::before {
  content: "•";
  position: absolute;
  left: -0.75rem;
  color: #22d3ee;
}

.project-meta {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.project-links {
  margin-top: auto;
  font-size: 0.8rem;
  color: #64748b;
}

/* Project card button (reusable) */
.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.02);
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.project-btn:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 8px 18px rgba(2,6,23,0.6);
}

.project-btn:focus-visible {
  outline: 3px solid rgba(76,76,255,0.22);
  outline-offset: 3px;
}

.hint {
  font-style: italic;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 2fr);
  gap: 2rem;
}

.contact-grid p {
  font-size: 0.94rem;
  color: #d1d5db;
}

.contact-card {
  border-radius: 1rem;
  padding: 1rem 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.contact-card h4 {
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
}

.contact-card ul li {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Tech badges under project cards */
.tech-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  font-size: 0.78rem;
  color: #d1d5db;
}
.tech-badge svg { width: 18px; height: 18px; flex: 0 0 18px; }
.tech-badge .label { font-size: 0.78rem; color: #d1d5db; }

.contact-note {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.9rem 0 1.2rem;
  background: #020617;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #6b7280;
}

.footer-tag {
  color: #9ca3af;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-panel {
    order: -1;
  }
  .about-grid,
  .skills-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
