:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0f766e;
  --primary-2: #2563eb;
  --accent: #14b8a6;
  --light: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f3f4f6;
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #dbeafe;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: white;
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #0f766e 55%, #2563eb 100%);
  color: white;
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 800;
}

.hero h2 {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: #dbeafe;
  margin: 0 0 22px;
}

.hero p {
  max-width: 720px;
  font-size: 1.05rem;
  color: #e5eefc;
  margin-bottom: 28px;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: white;
  color: #0f172a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  background: rgba(255,255,255,0.06);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.hero-card h3 {
  margin-top: 0;
  font-size: 1rem;
  color: #dbeafe;
}

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

.hero-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.96rem;
}

.hero-card li:last-child {
  border-bottom: none;
}

section {
  padding: 72px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.section-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  background: #ecfeff;
  color: #115e59;
  border: 1px solid #ccfbf1;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.highlight-list {
  display: grid;
  gap: 16px;
}

.highlight-item {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.highlight-item strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.18rem;
  color: #0f172a;
}

.project-card p {
  color: #4b5563;
  font-size: 0.97rem;
}

.project-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  padding: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.tag {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-links a {
  font-weight: 600;
  color: var(--primary-2);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stack-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #0f172a;
}

.stack-card ul {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
}

.contact-box {
  text-align: center;
  background: linear-gradient(135deg, #0f172a, #134e4a);
  color: white;
  border-radius: 24px;
  padding: 42px 22px;
  box-shadow: var(--shadow);
}

.contact-box h2 {
  margin-top: 0;
  font-size: 2rem;
}

.contact-box p {
  max-width: 720px;
  margin: 0 auto 22px;
  color: #dbeafe;
}

.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  text-align: center;
  padding: 26px 14px 34px;
  color: #6b7280;
  font-size: 0.92rem;
}

.top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #0f766e;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
}

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

  .nav-inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero {
    padding-top: 70px;
  }
}
