:root {
  --bg: #081120;
  --bg-secondary: #0f1b31;
  --panel: rgba(15, 27, 49, 0.82);
  --panel-strong: rgba(18, 31, 56, 0.95);
  --text: #e8edf7;
  --muted: #aab6cf;
  --accent: #6ea8ff;
  --accent-2: #8ef0d1;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(110, 168, 255, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(142, 240, 209, 0.12), transparent 30%),
    linear-gradient(180deg, #07101d 0%, #091426 40%, #081120 100%);
  z-index: -1;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  padding-left: 1.2rem;
}

.hero {
  width: 100%;
  padding: 24px 24px 80px;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto 64px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 16, 29, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 100;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.eyebrow,
.section-label {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.hero-text h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 12ch;
}

.hero-description {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f7fff);
  color: white;
  box-shadow: 0 12px 30px rgba(78, 128, 255, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card,
.card,
.project-card,
.objective-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.hero-card h2 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.hero-card li {
  margin-bottom: 12px;
  color: var(--muted);
}

.hero-card li a:hover {
  color: var(--accent);
}

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

main {
  padding: 0 24px 40px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.card,
.objective-card {
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 22px;
}

.card h1,
.card h2,
.card h3 {
  margin-bottom: 12px;
}

.card p + p {
  margin-top: 14px;
}

.card p,
.card li {
  color: var(--text);
}

.card strong {
  color: var(--text);
}

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

.project-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 168, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.project-image {
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

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

.project-card-content h3 {
  margin-bottom: 10px;
}

.project-card-content p {
  color: var(--muted);
  margin-bottom: 16px;
}

.project-link {
  color: var(--accent);
  font-weight: 700;
}

.contact-link {
  color: var(--accent);
  font-weight: 700;
}

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

.skill-pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  transition: 0.2s ease;
}

.skill-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 168, 255, 0.35);
}

.footer {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Project pages */
.project-hero {
  margin-bottom: 20px;
}

.project-subtitle {
  color: var(--muted);
  margin-top: 10px;
}

.card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-hero.card {
  padding: 32px 26px;
}

/* Standard large project image blocks */
.project-image-large {
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.project-image-large img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-image-large:hover img {
  transform: scale(1.03);
}

/* Harvest Hawk side-by-side image row */
.harvest-hawk-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.image-card-half {
  padding: 14px;
  margin-bottom: 0;
}

.image-card-half img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Buttons / utility */
.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #4f7fff);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(78, 128, 255, 0.28);
  display: none;
  z-index: 200;
}

.scroll-top-btn.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-content,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    max-width: 14ch;
  }
}

@media (max-width: 760px) {
  .navbar {
    padding: 16px 18px;
    margin-bottom: 40px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    padding: 16px;
    background: rgba(8, 17, 32, 0.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }

  .nav-links.open,
  .nav-links.active {
    display: flex;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-text h1 {
    font-size: 2.6rem;
    max-width: 100%;
  }

  .hero-description {
    font-size: 1rem;
  }

  .project-image {
    height: 180px;
  }

  .project-image-large img {
    height: 240px;
  }

  .harvest-hawk-image-row {
    grid-template-columns: 1fr;
  }

  .image-card-half img {
    height: auto;
  }
}

/* Lightbox (click to expand image) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  cursor: zoom-out;
}

.expandable-img {
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.expandable-img:hover {
  transform: scale(1.02);
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.project-gallery-grid.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.project-gallery-grid .card {
  margin-bottom: 0;
}

.project-gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

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

  .project-gallery-grid img {
    height: auto;
  }
}