/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050608;
  --bg-elevated: #0b0e14;
  --bg-card: #0f131b;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.1);
  --text-main: #f6f7fb;
  --text-muted: #9ea4b8;
  --border-subtle: #202532;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #151829 0, #050608 55%, #020307 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Containers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header / Nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 8, 0.92),
    rgba(5, 6, 8, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(48, 56, 76, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}

.nav {
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  width: 100%;
}

/* ===== Hero ===== */

.hero {
  padding: 4rem 0 2rem;
}

.hero-inner {
  padding-top: 1rem;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(81, 93, 128, 0.8);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: radial-gradient(circle at top left, #181d2c 0, #050608 60%);
}

/* ===== Sections ===== */

.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* ===== Cards ===== */

.cards {
  display: grid;
  gap: 1.5rem;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: radial-gradient(circle at top, #191e2c 0, #050608 70%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.card-outcome {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent-soft);
}

/* Meta list (chips in project cards) */

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meta-list li {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(92, 104, 139, 0.7);
  color: var(--text-muted);
}

/* ===== Skills ===== */

.skills-category {
  margin-bottom: 2rem;
}

.skills-category h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.skill-pill {
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(92, 104, 139, 0.7);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #060812;
}

/* ===== About section ===== */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 1.5rem;
}

.fast-facts {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

.fast-facts li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.1rem;
}

.fast-facts li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== Contact ===== */

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.email-text {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  background: #060814;
  border: 1px solid rgba(81, 93, 128, 0.9);
  font-size: 0.9rem;
  word-break: break-all;
}

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  padding: 0.45rem 0.9rem;
  background: var(--accent-soft);
  color: var(--text-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.btn:hover {
  background: rgba(79, 140, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.4);
}

.btn:active {
  transform: scale(0.97);
}

.copy-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 60px;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid rgba(48, 56, 76, 0.6);
  padding: 1.2rem 0 1.5rem;
  background: rgba(3, 4, 7, 0.95);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
/* Project card actions (buttons) */
.card-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-main);
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease;
}

.card-btn:hover {
  background: rgba(79, 140, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.4);
}

.card-btn:active {
  transform: scale(0.97);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-container {
    justify-content: space-between;
  }

  .nav-links {
    gap: 0.7rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .email-text {
    width: 100%;
  }
}
