:root {
  --bg-dark: #111827;
  --bg-darker: #0b1220;
  --bg-light: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
}

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

.site-header {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
  color: white;
  padding-bottom: 56px;
}

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

.brand {
  font-size: 1.15rem;
  font-weight: 700;
}

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

.nav-links a {
  color: #dbeafe;
  font-weight: 600;
}

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

.hero {
  padding: 52px 0 24px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  box-shadow: none;
}

.section {
  padding: 64px 0;
}

.section-title {
  margin: 0 0 18px;
  font-size: 2rem;
}

.section-intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

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

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.skills-list,
.parts-list {
  padding-left: 18px;
  margin: 0;
}

.skills-list li,
.parts-list li {
  margin-bottom: 8px;
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-card img {
  border-radius: 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-card-content {
  padding: 22px;
}

.project-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.project-hero {
  padding: 54px 0 20px;
  color: white;
}

.project-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.35fr 0.9fr;
  align-items: start;
}

.project-main,
.project-side {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.project-main h2,
.project-side h2 {
  margin-top: 0;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 28px 0;
  margin-top: 40px;
}

.footer a {
  color: white;
}

@media (max-width: 860px) {
  .project-layout {
    grid-template-columns: 1fr;
  }

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