* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui;
}

body {
  background: #050814;
  color: #d6e6ff;
  overflow-x: hidden;
}

/* ===== GRID BACKGROUND FIX (FULL SCREEN) ===== */
#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;

  background:
    linear-gradient(to right, rgba(80,120,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(80,120,255,0.05) 1px, transparent 1px);

  background-size: 80px 80px;
  transform-origin: center;
}

/* ===== HERO ===== */
.hero {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  position: relative;
  overflow: hidden;
}

/* background ONLY in hero */
.hero-bg {
  position: absolute;
  inset: 0;

  background: url("background.png") left center / cover no-repeat;

  opacity: 0.25;
  z-index: 0;

  /* 👇 KEY PART: fade out at bottom */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0) 100%
  );

    mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0) 100%
    );
}


/* dark overlay for readability */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0.6px);
}

/* keep text above background */
.hero-content {
  position: relative;
  z-index: 2;
}

/* ===== SEPARATOR (NEW) ===== */
.section-separator {
  width: 60%;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(77,163,255,0.6),
    transparent
  );
}

/* ===== SECTIONS ===== */
.section {
  padding: 110px 15%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
}

/* LARGE SHOWCASE STYLE */
.card {
  padding: 26px;
  border-radius: 14px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(100,150,255,0.15);

  transition: 0.25s;

  display: flex;
  flex-direction: column;
  gap: 12px;

  min-height: 160px;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #4da3ff;
}

/* PROJECT TITLE BIGGER */
.card h3 {
  font-size: 1.25rem;
  color: #e6f0ff;
}

/* STARS MORE VISIBLE */
.stars {
  color: #ffd166;
  font-weight: 500;
}

/* LINK ALWAYS AT BOTTOM */
.card a {
  margin-top: auto;
  color: #4da3ff;
  text-decoration: none;
}

/* ===== Navbar (FIXED) ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 14px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(10, 14, 30, 0.92);
  border-bottom: 1px solid rgba(120,160,255,0.15);

  backdrop-filter: blur(12px);
  z-index: 1000;
}

.logo {
  font-weight: 700;
  color: #4da3ff;
}

nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #cfe3ff;
}

nav a:hover {
  color: #4da3ff;
}

.github {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #4da3ff;
  border-radius: 8px;
}

/* ===== HERO (20% smaller) ===== */
.hero {
  height: 80vh; /* ↓ reduced */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  color: #4da3ff;
}

/* ===== Sections ===== */
.section {
  padding: 110px 15%;
}

.dark {
  background: rgba(10, 15, 35, 0.45);
}

h2 {
  color: #4da3ff;
  margin-bottom: 20px;
}

/* ===== Projects ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  padding: 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(100,150,255,0.15);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #4da3ff;
}

.card a {
  color: #4da3ff;
  text-decoration: none;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
}