@import url("variables.css");
@import url("https://fonts.googleapis.com/css2?family=Geist+Sans:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500&display=swap");

@font-face {
  font-family: "GeneralSans";
  src: url("../GeneralSans-Regular.otf");
}

body {
  position: relative;
  margin-left: 250px;
  font-family: var(--font);
  min-height: 100vh;
}

@media screen and (max-width: 768px) {
  body {
    margin-left: 0;
  }
}
.page-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0px;
  min-height: 100vh;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      circle at 90% 15%,
      #bbc2f1 0%,
      #bbc2f180 15%,
      transparent 30%
    ),
    radial-gradient(
      circle at 75% 40%,
      #f3b6ae 0%,
      #f3b6ae80 15%,
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 70%,
      #ffdeb7 0%,
      #ffdeb780 15%,
      transparent 30%
    ),
    radial-gradient(
      circle at 60% 60%,
      #ffd3c6 0%,
      #ffd3c680 15%,
      transparent 30%
    ),
    radial-gradient(
      circle at 70% 30%,
      #ffcbdb 0%,
      #ffcbdb80 15%,
      transparent 30%
    ),
    linear-gradient(
      to left,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 1) 100%
    );
  opacity: 0.7;
}

.feelgraph-title-container {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feelgraph-hero {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 2rem 0;
}

.problem-statement {
  font-weight: 500;
}

.main-info {
  font-size: 24px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -1px;
}

.feelgraph-content {
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

h2 {
  font-size: 32px;
  letter-spacing: -1px;
}

h4 {
  font-size: 20px;
  color: var(--black);
  margin-top: 10px;
  letter-spacing: -0.5px;
  margin-bottom: -10px;
}

h5 {
  font-size: 16px;
  color: var(--black);
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: -0.5px;
  margin-bottom: -10px;
}

.role p {
  font-size: 16px;
  font-weight: 400;
  color: var(--grey-text);
}

section,
.project-description section > h1 {
  margin-bottom: 4rem;
}

.project-description section > p {
  margin-bottom: 2rem;
}

.role-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.role-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 36px;
  box-shadow: 0 0 60px rgba(156, 161, 255, 0.3); /* soft, diffused shadow */
  backdrop-filter: blur(50px);
  padding: 2rem;
  flex: 1 1 1 250px;
  max-width: 150px;
}

.role-card h4 {
  font-size: 20px;
  color: var(--black);
  margin-bottom: 0.5rem;
  text-align: center;
}

.role-card svg {
  height: 0.85em;
  width: auto;
  vertical-align: baseline;
  margin-right: 8px;
}

.role-card p {
  font-size: 16px;
  color: var(--grey-text);
  line-height: 1.5;
  text-align: center;
}

#lowfi-sketches {
  margin-bottom: 4rem;
}

.sketch-card {
  background: white; /* 40% opacity of #9CA1FF */
  border-radius: 36px;
  box-shadow: 0 0 60px rgba(156, 161, 255, 0.3); /* soft, diffused shadow */
  backdrop-filter: blur(50px);
  padding: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
}

.sketch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.sketch-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.sketch-card figcaption {
  font-size: 16px;
  color: var(--grey-text);
  text-align: center;
  margin-top: 1rem;
}

.poster-card {
  max-width: 1000px;
  margin: 3rem auto;
  text-align: center;
}

.poster-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(156, 161, 255, 0.3);
  background: transparent;

  backdrop-filter: blur(50px);
}

.poster-card figcaption,
.poster-card .image-caption {
  font-size: 16px;
  color: var(--grey-text);
  margin-top: 1rem;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .feelgraph-content {
    padding: 1rem; /* Add padding to prevent cropping */
    margin-top: 60px; /* Account for mobile navbar */
  }

  .feelgraph-title-container {
    padding: 0 1rem; /* Add horizontal padding */
    margin-bottom: 1rem;
  }

  .feelgraph-hero {
    width: calc(100% - 2rem); /* Account for container padding */
    max-width: calc(100% - 2rem);
    margin: 1rem auto; /* Center the image */
    display: block;
  }

  .role-cards {
    flex-direction: column; /* Stack vertically on mobile */
    align-items: stretch;
    gap: 1.5rem; /* Increase gap for mobile */
  }

  .role-card {
    width: 100%; /* Full width on mobile */
    max-width: none; /* Remove max-width constraint */
    flex: none; /* Remove flex grow/shrink */
    box-sizing: border-box;
  }

  /* Also fix section spacing */
  #context,
  #my-role,
  #research-insights {
    padding: 0 1rem;
    margin: 2rem 0;
  }
}
