/* ============ ROOT & GLOBAL ============ */

:root {
  --bg: #050816;
  --bg-alt: #0b1120;
  --surface: #020617;
  --surface-soft: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #3b82f6;          /* electric blue */
  --accent-soft: rgba(59, 130, 246, 0.16);
  --border-subtle: #1f2937;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --shadow-chip: 0 10px 25px rgba(15, 23, 42, 0.8);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top, #1f2937 0, #020617 52%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

/* ============ UTILITIES ============ */

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

.section {
  padding: 4.25rem 0;
}

.section-alt {
  padding: 4.25rem 0;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%);
}

.section-title {
  font-size: 2rem;
  margin: 0 0 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

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

.logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(from 160deg, var(--accent), #6366f1, #22d3ee);
  color: #f9fafb;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.7);
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
  transition: color 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.27rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  transition: width 0.22s ease;
}

.nav a:hover {
  color: #e5e7eb;
}

.nav a:hover::after {
  width: 100%;
}

/* ============ HERO ============ */

.hero {
  padding: 5.2rem 0 4.25rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2.7rem;
  align-items: center;
}

.hero-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 3.1vw + 1rem, 3.1rem);
  margin: 0 0 0.7rem;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 33rem;
  color: #d1d5db;
}

.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #f9fafb;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.62);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.82);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.5);
  color: var(--text);
  border-color: var(--border-subtle);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.hero-card {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 60%);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.hero-card h2 {
  font-size: 1.08rem;
  margin: 0 0 0.8rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.hero-card li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.65rem;
  color: #d1d5db;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

/* ============ ABOUT ============ */

.about-grid {
  display: grid;
  gap: 1.7rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  font-size: 0.98rem;
  color: #e5e7eb;
}

.about-grid p {
  margin: 0;
}

/* ============ SKILLS ============ */

.skills-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.skill-card {
  background: radial-gradient(circle at top, #020617 0, #020617 32%, #020617);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.9);
}

.skill-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.02rem;
}

.skill-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
}

.skill-card li {
  margin-bottom: 0.42rem;
}

/* ============ PROJECTS ============ */

.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  background: radial-gradient(circle at top, #020617 0, #020617 58%, #020617);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(59, 130, 246, 0.14),
    transparent 55%
  );
  pointer-events: none;
}

.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.project-card p {
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  position: relative;
  z-index: 1;
}

.project-tags {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.project-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.project-links a {
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.5);
  box-shadow: var(--shadow-chip);
}

.project-links a:hover {
  background: rgba(59, 130, 246, 0.2);
}

.coming-soon {
  color: var(--muted);
}

/* ============ WGU TIMELINE ============ */

.timeline {
  border-left: 2px solid var(--border-subtle);
  margin-left: 0.5rem;
  padding-left: 1.6rem;
  display: grid;
  gap: 1.6rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.8rem;
  top: 0.38rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.32);
}

.timeline-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* ============ RESUME GRID ============ */

.resume-grid {
  display: grid;
  gap: 1.7rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.4fr);
}

.resume-grid h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.resume-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
}

.resume-list li {
  margin-bottom: 0.9rem;
}

.resume-list strong {
  font-weight: 600;
}

.resume-note {
  margin-top: 1.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============ CONTACT ============ */

.contact-text {
  max-width: 480px;
  font-size: 0.95rem;
}

.contact-links {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.3rem 0;
  background: rgba(15, 23, 42, 0.96);
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============ RESPONSIVE ============ */

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

  .hero-card {
    order: -1;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .resume-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
  }

  .nav {
    display: none; /* keep header minimal on mobile for now */
  }

  .section {
    padding: 3.4rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 4.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card,
  .skill-card {
    padding: 1.25rem 1.3rem;
  }
}