:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-raised: #151b23;
  --bg-soft: #1d2633;
  --text: #f0f3f6;
  --muted: #9aa7b6;
  --line: #303d4f;
  --blue: #4ea1ff;
  --green: #69d391;
  --yellow: #f0c674;
  --red: #ff7b72;
  --shadow: rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 56px);
  background: rgba(13, 17, 23, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
.project-card a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 112px clamp(18px, 5vw, 56px) 54px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("https://raw.githubusercontent.com/Costin10/PPC-HackITall-Team-03/main/docs/images/dashboard-overview.png");
  background-size: cover;
  background-position: center top;
  filter: saturate(0.9);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.78) 48%, rgba(13, 17, 23, 0.36) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 17, 23, 0) 35%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow,
.section-label,
.project-type {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.1rem, 8vw, 7rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.hero-content p:not(.eyebrow),
.intro p,
.project-body p,
.recent-list span {
  color: var(--muted);
  line-height: 1.65;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #08111f;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.project-card img,
.terminal-shot {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--bg-soft);
}

.project-card.featured img {
  height: 100%;
  min-height: 360px;
}

.project-body {
  padding: 26px;
}

.project-body a,
.recent-list a,
.site-footer a {
  font-weight: 750;
  text-decoration: none;
}

.terminal-shot {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  color: #d7e3f4;
  font-family: "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.terminal-shot span {
  display: block;
  min-height: 28px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
}

.project-card.compact {
  display: flex;
  align-items: stretch;
  min-height: 280px;
}

.recent {
  border-top: 1px solid var(--line);
}

.recent-list {
  display: grid;
  gap: 12px;
}

.recent-list a {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 56px) 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 72vh;
    padding-top: 76px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.82) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(13, 17, 23, 0) 35%);
  }

  .intro,
  .project-card.featured,
  .project-grid,
  .recent-list a {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    display: block;
  }

  .project-card.featured img,
  .project-card img,
  .terminal-shot {
    height: 220px;
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
