
body {
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
}
nav {
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}
nav a {
  color: white;
  margin: 0 1.5rem;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  color: #40C4FF;
}
header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
  background: black;
}

header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.01) 20%,
    rgba(0, 0, 0, 0.03) 35%,
    rgba(0, 0, 0, 0.07) 50%,
    rgba(0, 0, 0, 0.12) 60%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.35) 80%,
    rgba(0, 0, 0, 0.6) 90%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/Earth-Mars.png") no-repeat center center / cover;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

header * {
  position: relative;
  z-index: 2;
}
header img {
  width: 100px;
  margin-bottom: 1rem;
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.8));
}
h1 {
  font-family: 'Nasalization', sans-serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.tagline {
  font-size: 1.5rem;
  color: #ddd;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}
section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
}
.project {
  background-color: #111;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: background 0.3s ease;
}
.project:hover {
  background-color: #222;
}
.project a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #666;
}
.social-icons {
  text-align: center;
  margin-top: 2rem;
}
.social-icons a {
  margin: 0 1rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.social-icons a:hover {
  color: #40C4FF;
}
a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: #40C4FF;
}
.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/Earth-Mars.png');
  background-size: cover;
  background-position: center;
  z-index: -1;

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.99) 1%,
    rgba(0, 0, 0, 0.98) 2%,
    rgba(0, 0, 0, 0.97) 3%,
    rgba(0, 0, 0, 0.96) 4%,
    rgba(0, 0, 0, 0.95) 5%,
    rgba(0, 0, 0, 0.94) 6%,
    rgba(0, 0, 0, 0.93) 7%,
    rgba(0, 0, 0, 0.92) 8%,
    rgba(0, 0, 0, 0.91) 9%,
    rgba(0, 0, 0, 0.9) 10%,
    rgba(0, 0, 0, 0.85) 15%,
    rgba(0, 0, 0, 0.7) 25%,
    rgba(0, 0, 0, 0.5) 35%,
    rgba(0, 0, 0, 0.3) 45%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.05) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-mode: luminance;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.99) 1%,
    rgba(0, 0, 0, 0.98) 2%,
    rgba(0, 0, 0, 0.97) 3%,
    rgba(0, 0, 0, 0.96) 4%,
    rgba(0, 0, 0, 0.95) 5%,
    rgba(0, 0, 0, 0.94) 6%,
    rgba(0, 0, 0, 0.93) 7%,
    rgba(0, 0, 0, 0.92) 8%,
    rgba(0, 0, 0, 0.91) 9%,
    rgba(0, 0, 0, 0.9) 10%,
    rgba(0, 0, 0, 0.85) 15%,
    rgba(0, 0, 0, 0.7) 25%,
    rgba(0, 0, 0, 0.5) 35%,
    rgba(0, 0, 0, 0.3) 45%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.05) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-mode: luminance;
}
.vignette-mask {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to bottom, transparent, black);
  z-index: 2;
  pointer-events: none;
}
/* ── CARD LAYOUT ───────────────────────────────────────────── */
.project-card {
  display: flex;
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: transform 1s ease, box-shadow 1s ease;
}
.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

/* ── IMAGE + OVERLAY ───────────────────────────────────────── */
.project-image {
  flex: 0 0 40%;
  position: relative;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.project-image::after {
  content: "";
  position: absolute;
  top: 0; left: 25%;
  width: 75%; height: 100%;
  background: linear-gradient(to right, rgba(30,30,30,0) 0%, #1e1e1e 100%);
  pointer-events: none;
}

/* ── TEXT CONTENT WITH OVERLAP ─────────────────────────────── */
.project-content {
  flex: 1;
  position: relative;
  z-index: 2;
  margin-left: -125px;   
  padding: 20px;
}

/* ── DESCRIPTION CLAMP & TRANSITION ───────────────────────── */
.project-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;      
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6em;
  max-height: 3.2em;          
  transition: max-height 1s ease;
}

/* ── UNCLAMP ON HOVER ──────────────────────────────────────── */
.project-card:hover .project-description {
  -webkit-line-clamp: unset;
  max-height: 1000px;         
}

/* ── STATUS ALWAYS VISIBLE ─────────────────────────────────── */
.project-status {
  margin-top: 1em;
  font-weight: bold;
}

/* keep your existing hover‐scale effect below unchanged */
.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.project-image-heatpump {
  background-image: url('assets/3DHeatPump.png');
}

.project-image-placeholder {
  background-image: url('assets/PlaceHolder.png');
}
