:root {
  --vw-min: 360; /* Smallest viewport */
  --vw-max: 1200; /* Max container width (instead of 1440px) */

  /* g1 = grid-400x400 (400px -> 118px) */
  --g1-min: 118px;
  --g1-max: 400px;
  --g1-fluid: calc((400 - 118) / (1200 - 360) * (100vw - 360px) + 118px);
  --g1: clamp(var(--g1-min), var(--g1-fluid), var(--g1-max));

  /* g2 = grid-704x400 (704px -> 210px) */
  --g2-min: 210px;
  --g2-max: 704px;
  --g2-fluid: calc((704 - 210) / (1200 - 360) * (100vw - 360px) + 210px);
  --g2: clamp(var(--g2-min), var(--g2-fluid), var(--g2-max));

  /* g3 = grid-488x304 (488px -> 144px) */
  --g3-min: 144px;
  --g3-max: 488px;
  --g3-fluid: calc((488 - 144) / (1200 - 360) * (100vw - 360px) + 144px);
  --g3: clamp(var(--g3-min), var(--g3-fluid), var(--g3-max));

  /* g4 = grid-220x304 (220px -> 66px) */
  --g4-min: 66px;
  --g4-max: 220px;
  --g4-fluid: calc((220 - 66) / (1200 - 360) * (100vw - 360px) + 66px);
  --g4: clamp(var(--g4-min), var(--g4-fluid), var(--g4-max));

  /* g5 = grid-364x304 (364px -> 108px) */
  --g5-min: 108px;
  --g5-max: 364px;
  --g5-fluid: calc((364 - 108) / (1200 - 360) * (100vw - 360px) + 108px);
  --g5: clamp(var(--g5-min), var(--g5-fluid), var(--g5-max));

  --g1-percent: clamp(
    var(--g1-min),
    33.33%,
    var(--g1-max)
  ); /* ~400px at 1200px */
  --g2-percent: clamp(
    var(--g2-min),
    58.67%,
    var(--g2-max)
  ); /* ~704px at 1200px */
  --g3-percent: clamp(
    var(--g3-min),
    40.67%,
    var(--g3-max)
  ); /* ~488px at 1200px */
  --g4-percent: clamp(
    var(--g4-min),
    18.33%,
    var(--g4-max)
  ); /* ~220px at 1200px */
  --g5-percent: clamp(
    var(--g5-min),
    30.33%,
    var(--g5-max)
  ); /* ~364px at 1200px */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #190057 0%, #3a256c 100%);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  position: relative;
}

.main-container {
  margin: 0 auto;
  max-width: 1200px;
  min-height: 100vh;
  width: 90%;
  box-sizing: border-box;
}

.projects-header {
  color: #fff;
  font-family: Poppins;
  /* Scales with viewport width */
  font-size: clamp(32px, 3.76vw + 17.9px, 72px);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-top: 80px;
}

.pink-blur,
.pink-stain {
  pointer-events: none; /* no click-blocking */
  position: absolute; /* tie them to viewport, not parents */
  top: 0;
  z-index: 0; /* stays behind header */
}

.pink-blur {
  background: rgba(255, 173, 169, 0.5);
  border-radius: 50%;
  filter: blur(clamp(30px, 6vw, 67px));
  height: clamp(145px, 15vw, 230px);
  left: 0; /* flush to the left edge */
  width: clamp(145px, 15vw, 230px);
}

.pink-stain {
  right: 0; /* flush to the right edge */
  width: clamp(130px, 24vw, 280px);
}

.header {
  align-items: center;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    90deg,
    rgba(25, 0, 87, 0.7) 0%,
    rgba(64, 40, 121, 0.7) 50.48%,
    rgba(25, 0, 87, 0.7) 100%
  );
  border: 1px solid #7d68b3;
  border-radius: 90px;
  box-shadow: 0 0 40px 0 rgba(125, 104, 179, 0.2);
  display: flex;
  height: 116px;
  justify-content: space-between;
  margin: 0 auto 80px auto;
  max-width: 1320px;
  padding: 0 60px;
  position: sticky;
  top: 32px;
  width: 95%;
  z-index: 1000;
}

.logo {
  align-items: center;
  display: flex;
}

.nav {
  display: flex;
  gap: 48px;
}

.nav a {
  color: #fff;
  font-family: Inter;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover {
  color: rgba(255, 173, 169, 1);
}

.nav a:focus {
  color: #fb1d5a;
}

.nav a.nav-active {
  color: #fb1d5a;
}

.burger {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

.mobile-menu {
  display: none;
}

.burger-icon {
  display: block;
}

.close-icon {
  display: none;
}

/* ===============================
   FOOTER — DESKTOP BASE
   =============================== */
.footer {
  align-items: center;
  background: #020b4b;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 132px;
  justify-content: center;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
  right: 50%;
  width: 100vw;
}

.footer-content {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  max-width: 1440px;
  padding: 0 80px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.footer-left {
  align-items: center;
  display: flex;
  gap: 24px;
}

.footer-logo {
  align-items: center;
  display: flex;
}

.footer-text {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.footer-social {
  display: flex;
  gap: 40px;
}

.social-link {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  height: 40px;
  justify-content: center;
  text-decoration: none;
  width: 40px;
}

.create-together {
  box-sizing: border-box;
  max-width: 1440px;
  min-height: 320px;
  position: relative;
}

.create-content {
  text-align: left;
  z-index: 2;
}

.create-title {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.create-subtitle {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin-top: 16px;
}

.create-btn {
  align-items: center;
  background: #ffd455;
  border-radius: 8px;
  box-shadow: 0 0 28px 0 rgba(255, 212, 85, 0.2);
  color: #190057;
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  line-height: normal;
  margin-top: 40px;
  padding: 20px 40px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  width: 236px;
  z-index: 3;
}

.btn:hover {
  background-color: rgba(255, 224, 134, 1);
}

.btn:active {
  background-color: rgba(255, 237, 185, 1);
}
.create-top-btn {
  align-items: center;
  background: rgba(27, 35, 92, 0.97);
  border-radius: 8px;
  bottom: 100px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 80px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 100px;
  width: 80px;
  z-index: 1000;
}

.create-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.create-bee {
  align-items: center;
  bottom: 30px;
  display: flex;
  flex-shrink: 0;
  height: 321px;
  justify-content: center;
  position: absolute;
  right: 90px;
  width: 387px;
  z-index: -1;
}

.create-bee .bee-img {
  max-height: 100%;
  max-width: 100%;
}

.create-divider {
  background: linear-gradient(
    90deg,
    rgba(251, 29, 90, 0) 0%,
    #fb1d5a 50%,
    rgba(251, 29, 90, 0) 100%
  );
  height: 2px;
  margin: 60px auto;
  opacity: 0.5;
  width: 100%;
}

.yellow-stain {
  bottom: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.yellow-stain img {
  height: auto;
  width: 100%;
}

.create-bee {
  bottom: -34%;
  position: absolute;
  right: 0;
  z-index: 0;
}

.create-bee img {
  height: auto;
  width: 100%;
}

/* ========== BASE CONTAINERS ========== */
.grid-container {
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  padding: 0;
  margin-bottom: 5rem;
}

.grid-container:first-of-type {
  padding-top: 2.778vw;
}
/* Section wrapper */
.grid-section {
  align-items: flex-start;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid #ded0ff;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(74, 61, 107, 0.2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 2rem 0;
  width: 100%;
}

/* Top + Bottom grid rows */
.grid-top,
.grid-bottom {
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  width: 100%;
}

.grid-top,
.grid-bottom {
  flex-wrap: nowrap;
  justify-content: center;
}

/* ========== GRID BOXES (FLUID SCALING) ========== */
.grid-item {
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 1️⃣ 400×400 → 118×118 */
.grid-400x400 {
  aspect-ratio: 1 / 1;
  width: var(--g1-percent);
}

/* 2️⃣ 704×400 → 210×118 */
.grid-704x400 {
  aspect-ratio: 44 / 25;
  width: var(--g2-percent);
}

/* 3️⃣ 488×304 → 144×88 */
.grid-488x304 {
  aspect-ratio: 61 / 38;
  width: var(--g3-percent);
}

/* 4️⃣ 220×304 → 66×88 */
.grid-220x304 {
  aspect-ratio: 55 / 76;
  width: var(--g4-percent);
}

/* 5️⃣ 364×304 → 108×88 */
.grid-364x304 {
  aspect-ratio: 91 / 76;
  width: var(--g5-percent);
}

/* Inner content (images/videos) */
.grid-image,
.grid-video {
  border-radius: 8px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* ========== TEXT SECTION ========== */
.grid-text {
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  gap: 2vw;
  margin-bottom: 3vw;
}

.grid-title {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 700;
  line-height: 34px;
}

.grid-subtitle {
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 34px;
}

.grid-paragraph {
  font-size: clamp(14px, 1.5vw, 24px);
  font-weight: 300;
  line-height: 34px;
  max-width: 1200px;
}

/* ========== MEDIA QUERIES ========== */

/* 🧭 Tablet (1024px and down) */
@media (max-width: 1024px) {
  .grid-section {
    gap: 24px;
    padding: 24px;
  }

  .grid-top,
  .grid-bottom {
    gap: inherit;
  }

  .grid-text {
    gap: 24px;
    margin-bottom: 32px;
  }
}

/* 📱 Mobile (768px and down) */
@media (max-width: 768px) {
  .grid-section {
    gap: 10px;
    padding: 16px;
  }

  .grid-item {
    margin: 0 auto;
  }

  .grid-title {
    font-size: 24px;
  }

  .grid-subtitle,
  .grid-paragraph {
    font-size: 14px;
  }
}

@media (max-width: 425px) {
  .grid-section {
    gap: 10px;
    padding: 10px;
  }
}

@media (max-width: 375px) {
  .grid-section {
    gap: 0;
    padding: 10px;
  }

  .grid-item {
    transform: scale(0.9);
    /* transform-origin: top center;  ??????????? */
  }

  :root {
    --g1-min: 60px;
    --g2-min: 100px;
    --g3-min: 70px;
    --g4-min: 44px;
    --g5-min: 60px;
  }
}
