@import url(fontawesome-all.min.css);
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #f7f7f2;
  --panel: rgba(255, 255, 255, 0.8);
  --ink: #0e172a;
  --muted: #4b5563;
  --accent: #0ea5e9;
  --accent-strong: #0b8cc6;
  --accent-2: #f9735b;
  --border: rgba(14, 23, 42, 0.12);
  --shadow: 0 18px 60px rgba(14, 23, 42, 0.08);
  --radius: 16px;
  --transition: 0.25s ease;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.08), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(15, 23, 42, 0.06), transparent 25%),
    linear-gradient(120deg, #fdfdfc, #f2f5ff);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 4px);
}

p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6rem;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 700;
}

.hero p,
.project-card p,
.meta-item strong {
  line-height: 1.55;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-shell {
  position: relative;
  overflow-x: hidden;
}

.surface-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.08), transparent 28%);
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(247, 247, 242, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links a {
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(14, 23, 42, 0.05);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
}

.page {
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: 3rem 0;
}

section:not(:first-of-type)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.25), rgba(249, 115, 91, 0.12), rgba(14, 165, 233, 0.2));
  opacity: 0.6;
  pointer-events: none;
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.hero-copy {
  max-width: 640px;
  display: grid;
  gap: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.05rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(249, 115, 91, 0.12));
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(14, 23, 42, 0.08);
}


.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(14, 165, 233, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(14, 23, 42, 0.1);
}

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

.meta-item {
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(14, 23, 42, 0.07);
}

.meta-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.hero-visual {
  position: relative;
  align-self: flex-start;
}

.hero-visual .meta-grid {
  margin-top: 1.25rem;
  max-width: 520px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 14px 40px rgba(14, 23, 42, 0.12);
  backdrop-filter: blur(8px);
  max-width: 540px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.22), rgba(249, 115, 91, 0.12), transparent 55%);
  z-index: 0;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.hero-card .note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-strong);
  border-radius: 12px;
  font-weight: 600;
}

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

.pillar-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 14px 30px rgba(14, 23, 42, 0.08);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

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

.project-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(14, 23, 42, 0.12);
}

.project-card .date {
  font-size: 0.9rem;
  color: var(--muted);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(14, 23, 42, 0.12);
  box-shadow: 0 14px 32px rgba(14, 23, 42, 0.08);
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(249, 115, 91, 0.1));
  color: var(--ink);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(14, 23, 42, 0.08);
}

.project-card .actions {
  margin-top: auto;
}

.project-card .actions .btn {
  width: fit-content;
  padding: 0.75rem 1.1rem;
}

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

.skill-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 14px 32px rgba(14, 23, 42, 0.07);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(249, 115, 91, 0.08));
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.contact-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.contact-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-card li + li {
  margin-top: 0.65rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fdfdfd;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.actions {
  display: flex;
  gap: 0.75rem;
}

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.82);
}

.footer .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.page-hero p {
  max-width: 760px;
}

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

.post-card, .resume-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.post-card button {
  border: none;
  background: none;
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.resume-card ul,
.resume-card ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.resume-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 280px;
  align-items: center;
  gap: 1.5rem;
}

.resume-photo {
  width: 100%;
  max-width: 280px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(14, 23, 42, 0.1);
}

.resume-sections {
  display: grid;
  gap: 2.5rem;
}

.resume-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.resume-section a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted rgba(14, 165, 233, 0.35);
  transition: color var(--transition), border-color var(--transition);
}

.resume-section a:hover,
.resume-section a:focus-visible {
  color: var(--accent-2);
  border-color: rgba(249, 115, 91, 0.6);
}

.resume-section h3 {
  margin-bottom: 0.35rem;
}

.section-hint {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.timeline-item strong {
  display: block;
  margin-bottom: 0.1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 0.65rem;
}

.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.badge-stack {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.resume-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.credential-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.credential-card img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.resume-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.resume-list li + li {
  margin-top: 0.35rem;
}

.resume-card li + li {
  margin-top: 0.35rem;
}

.form-toast {
  display: none;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.25);
  z-index: 40;
}

.form-toast.show {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .resume-hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    justify-items: start;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.97);
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    min-width: 200px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 640px) {
  section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 3rem 0 1.75rem;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .hero-visual .meta-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .site-header .inner {
    padding: 0.9rem 1.1rem;
  }

  .container {
    padding: 0 1.1rem;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .blog-grid, .resume-grid {
    grid-template-columns: 1fr;
  }

  .footer .meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    right: 1.5rem;
  }
}
