* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.navbar {
  background: #111827;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  width: min(1100px, 90%);
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: #38bdf8;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #38bdf8;
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.page-header {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.eyebrow {
  color: #38bdf8;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #93c5fd;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #93c5fd;
  margin-bottom: 1rem;
}

.hero-text,
.page-intro {
  max-width: 700px;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

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

.btn-secondary {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #334155;
}

.cv-button {
    background-color: #22c55e;
    color: #0f172a;
}

.cv-button:hover {
    background-color: #16a34a;
}

main {
  padding: 2rem 0 4rem;
}

.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-link {
  margin-top: auto;
  text-decoration: none;
  font-weight: 700;
  color: #38bdf8;
}

.project-link:hover {
  text-decoration: underline;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list li {
  background: #0f172a;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.link-list a {
  text-decoration: none;
  color: #38bdf8;
  font-weight: 700;
}

.link-list a:hover {
  text-decoration: underline;
}

.stack-groups {
  display: grid;
  gap: 1.5rem;
}

.contact-list p {
  margin: 0.6rem 0;
}

.footer {
  border-top: 1px solid #1f2937;
  padding: 1.5rem 0;
  background: #111827;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 800px) {
  .grid-two,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .nav-container {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .nav-links {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .card {
    padding: 1.2rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .button-group {
    flex-direction: column;
  }
}

.project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.tag-list li {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

