:root {
  --bg: #1a1a1a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.8);
  --border: #404040;
  --accent: #4ade80;
  --nav-accent: #33d17a;

  --container: 1200px;
  --container-narrow: 860px;

  --nav-h: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.container-narrow {
  width: min(var(--container-narrow), calc(100% - 48px));
  margin: 0 auto;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: 14px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link.is-active {
  opacity: 1;
}

.nav-more {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.nav-caret {
  font-size: 10px;
  opacity: 0.85;
  margin-left: 6px;
}

.nav-accent-line {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--nav-accent);
  z-index: 49;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* CHANGED: arrows now centered vertically and pushed to corners */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;

  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  border-radius: 10px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.hero-arrow svg {
  width: 40px;
  height: 40px;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

/* CHANGED: flush to edges (corners) */
.hero-arrow-left {
  left: 0;
}

.hero-arrow-right {
  right: 0;
}

/* Add a little breathing room so it's not literally clipped */
.hero-arrow-left,
.hero-arrow-right {
  margin: 0 12px;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: calc(100% - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}

.hero-title {
  margin: 0 0 12px 0;
  font-size: 42px;
  font-weight: 800;
}

.hero-subtitle {
  margin: 0;
  font-size: 20px;
  opacity: 0.9;
}

.hero-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 130px;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.indicator-dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: width 180ms ease, background 180ms ease, opacity 180ms ease;
}

.indicator-dot.is-active {
  width: 30px;
  background: var(--accent);
}

/* Hero bottom bar */
.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 22px 0;
}

.hero-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.hero-bottom-text {
  margin: 0;
  font-size: 18px;
  opacity: 0.95;
}

/* Buttons */
.btn {
  border-radius: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.btn-outline {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transition: background 140ms ease;
}

.btn-outline:hover {
  background: #e8e8e8;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 28px 0;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.about-copy {
  line-height: 1.8;
  font-size: 14px;
  color: var(--text);
}

.about-bold {
  font-weight: 800;
}

/* Portfolio grid */
.portfolio-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.project-card {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-card .project-overlay {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  display: flex;
  padding: 14px;
  background: linear-gradient(to top, rgba(56, 66, 124, 0.25), rgba(56, 66, 124,.5));
  opacity: 0;
  transition: opacity 160ms ease;
  cursor: pointer;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-title {
  font-weight: 800;
  font-size: 28px;
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 22px 0;
  opacity: 0.75;
}

.footer-inner {
  text-align: center;
  font-size: 14px;
}

/* Responsive */
@media (min-width: 768px) {
  /* CHANGED: removed corner offsets so it stays in the corners */
  .hero-title {
    font-size: 64px;
  }

  .hero-subtitle {
    font-size: 28px;
  }

  .hero-bottom {
    padding: 26px 0;
  }

  .hero-indicators {
    bottom: 140px;
  }

  .about-copy {
    font-size: 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}