@import url('https://fonts.googleapis.com/css2?family=Limelight&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

html,
body {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0a174e;
  color: #fff;
  /* font-family: 'Times New Roman', Times, serif; */
  font-family: "Raleway", sans-serif;
  /* font-family: 'Segoe UI', Arial, sans-serif; */
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 80px;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* A consistent safe horizontal padding for content blocks */
.page-header,
.about-content,
.project-flex,
.pictures-gallery,
.timeline-container {
  /* padding-left: clamp(12px, 3vw, 40px);
  padding-right: clamp(12px, 3vw, 40px); */
}

/* Your .page-header currently has padding-right only; neutralize on mobile */
.page-header {
  padding-right: 0;
}

/* Slightly responsive type without changing your design */
.page-header h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.page-header p {
  font-size: clamp(1rem, 2.1vw, 1.1rem);
}

/* If any element forces extra width, this helps */
* {
  box-sizing: border-box;
}

.logo {
  width: 2em;
  height: 2em;
  display: inline-block;
}

/* =========================
   HAMBURGER MENU (MOBILE)
========================= */

.top-nav {
  position: fixed;
  /* keep your nav fixed */
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* IMPORTANT: checkbox must NOT be display:none */
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Hamburger icon */
.hamburger {
  display: none;
  width: 34px;
  height: 24px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 10000;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 3px;
  transition: transform .25s ease, opacity .2s ease;
}

/* Desktop menu stays as your normal layout */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/***************************/
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  background-color: #87CEEB;
  padding: 1.5rem 3rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
}

.top-nav ul li:not(:last-child) {
  margin-left: 2.5rem;
}

.top-nav ul li {
  margin-left: 1rem;
}

a.nav-link {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #000080;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

a.nav-link::after,
a.nav-link.active::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #000050;
  transition: width 0.3s ease;
}

a.nav-link:hover::after,
a.nav-link.active::after {
  width: 100%;
}

.top-nav ul li:first-child {
  margin-right: auto;
  margin-left: 0rem;
}

.top-nav .resume-nav-link {
  color: #fff;
  font-weight: normal;
  /* font-family: 'Times New Roman', Times, serif; */
}

.top-nav .resume-nav-link:hover {
  color: #e0e0e0;
}

.centered-name {
  position: relative;
  margin-top: 5%;
  text-align: center;
  height: 100vh;
  font-family: 'Luckiest Guy', cursive;
}

.section-separator.line {
  width: 50%;
  height: 1px;
  margin: 80px auto;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.8),
      transparent);
}

.wave-line {
  position: relative;
}

.wave-line::after {
  content: "";
  width: 40%;
  text-align: center;
  margin: 24px auto;
  display: block;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 12 Q 15 0 30 12 T 60 12 T 90 12 T 120 12' fill='none' stroke='white' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

.page {
  position: relative;
  margin-bottom: 10em;
}

.centered-name h1 {
  font-size: 3rem;
  margin: 0;
  letter-spacing: 2px;
  font-family: 'Times New Roman', Times, serif;
}

/* All headings and nav links in Times New Roman */
.top-nav a,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  /* font-family: 'Times New Roman', Times, serif; */
  font-family: "Raleway", sans-serif;
}

.profile-image {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 300px;
  height: auto;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .top-nav {
    padding: 1rem 1rem;
  }

  .top-nav ul {
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .top-nav a {
    font-size: 1rem;
  }

  .centered-name h1 {
    font-size: 2rem;
  }

  body {
    padding-top: 100px;
  }
}

.sound-toggle {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 9999;
  padding: 5px;
}

.left-images {
  position: fixed;
  left: 2em;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1em;
  z-index: 100;
}

.circle-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  transition: transform 0.3s ease;
}

.circle-image:hover {
  transform: scale(1.1);
}

.copyright {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
  z-index: 100;
}

.rotating-sayings {
  position: relative;
  height: 60px;
  margin-bottom: 0;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saying {
  position: absolute;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #8fa3b885;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  text-align: center;
}

.saying.active {
  opacity: 0.7;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
  font-size: 1rem;
  padding: 20px;
  margin-top: 30px;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.page-header {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 15px;
  padding-right: 2rem;
}

.page-header h1 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 3rem;
  margin: 0;
}

.page-header p {
  font-size: 1.1rem;
  color: #cfd8e6;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.about-photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  margin-bottom: 40px;
}

.about-photos .photo-row {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.about-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #fff;
  transition: transform 0.3s ease;
}

.about-photo:hover {
  transform: scale(1.05);
}

.resume-download {
  display: inline-block;
  margin-top: 2em;
  padding: 10px 24px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1em;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.resume-download:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  border: 1px solid #888;
}

.project-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.project-left {
  flex: 2 1 300px;
  min-width: 250px;
}

.project-right {
  flex: 1 1 200px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper-download {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.05em;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.paper-download:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #fff;
  border: 1px solid #888;
}

.project-flex {
  display: flex;
  flex-direction: row;
  /* justify-content: center;
  align-items: center; */
  gap: 6em;
  margin: 5em auto 8em auto;
  max-width: 1200px;
  width: 100%;
  padding: 0 16px;
}

.project-main-text {
  flex: 1 1 400px;
  min-width: 220px;
  font-size: 1rem;
  text-align: left;
}

.project-main-text h2 {
  line-height: 1.5;
  margin-top: 0;
}

.project-main-text ul {
  padding-left: 1em;
}

.project-main-text ul li {
  line-height: 1.5;
  margin-top: 0.5em;
}

.project-flex p {
  line-height: 1.5;
}

.box {
  /* background: rgba(135, 206, 235, 0.1); */
  border: solid 1px rgba(135, 206, 235, 1);
  padding: 1em;
  margin: 2em 0;
  border-radius: 0.5em;
  font-style: italic;
}

.box .title {
  font-size: 1em;
  font-weight: 600;
  line-height: 2;
}

.box .subtitle {
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1.5;
  color: #87CEEB;
}

.box .para {
  margin: 0.5em 0;
  font-size: 1em;
  font-weight: 300;
  line-height: 1.5;
}

.project-image-right,
.project-image-left {
  display: flex;
  flex-direction: column;
  /* align-items: center;
  justify-content: center; */
}

.project-image-left img,
.project-image-right img {
  display: block;
  width: auto;
  height: auto;
}

.image-download-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.teeth-segmentation-img {
  /* max-width: 450px; */
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  display: block;
}

.projects-header {
  width: 100%;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 0;
  padding-right: 2rem;
}

.projects-header h1 {
  font-size: 3rem;
  margin: 0 0 16px 0;
  letter-spacing: 2px;
  font-family: 'Times New Roman', Times, serif;
}

.project-main-text .paper-download {
  margin-top: 32px;
  margin-bottom: 0;
  display: inline-block;
}


.art-masonry {
  column-count: 3;
  column-gap: 1.5rem;
  width: 90vw;
  max-width: 1400px;
  margin: 100px auto 40px auto;
}

.art-masonry img {
  width: 100%;
  display: block;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  break-inside: avoid;
}

@media (max-width: 900px) {
  .art-masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .art-masonry {
    column-count: 1;
  }
}

.art-header {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 40px;
  padding-right: 2rem;
}

.art-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-family: 'Times New Roman', Times, serif;
}

.art-header p {
  font-size: 1.2rem;
  color: #cfd8e6;
  margin: 0 auto;
  max-width: 600px;
}

.pictures-gallery {
  max-width: 1200px;
  margin: 140px auto 60px auto;
  padding: 0 24px 60px 24px;
}

.pictures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pictures-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 4;
  display: flex;
}

.pictures-grid figure img {
  flex: 1;
}

.pictures-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pictures-grid img:hover {
  transform: scale(1.03);
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 100px auto 60px auto;
  padding: 0 40px 60px 40px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #87CEEB, #4f8cff);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
  width: 100%;
  z-index: 2;
}

.timeline-left {
  display: flex;
  justify-content: flex-start;
}

.timeline-right {
  display: flex;
  justify-content: flex-end;
}

.timeline-content {
  position: relative;
  width: 45%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.timeline-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 15px;
  object-fit: cover;
  max-height: 400px;
}

.timeline-content img.timeline-full-size {
  max-height: none;
  object-fit: cover;
  object-position: center 8%;
}

.timeline-caption {
  text-align: left;
}

.timeline-caption h3 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  color: #fff;
}

.timeline-caption p {
  font-size: 1rem;
  color: #cfd8e6;
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #87CEEB;
  border: 4px solid #0a174e;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.3);
}

@media (max-width: 768px) {
  .timeline-container {
    padding: 0 20px 60px 20px;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-left,
  .timeline-right {
    justify-content: flex-start;
  }

  .timeline-content {
    width: 100%;
    max-width: none;
  }

  .timeline-item::before {
    left: 30px;
  }
}

/* Place it neatly under the heading */
.down-arrow {
  width: 14px;
  height: 14px;
  margin: 4px auto 0;
  /* center + spacing under title */
  border-right: 3px solid #8fa3b885;
  border-bottom: 3px solid #8fa3b885;
  transform: rotate(45deg);
  animation: oa-bounce 1.6s ease-in-out infinite;
  opacity: .9;
}

/* Gentle up-down bounce */
@keyframes oa-bounce {

  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(8px) rotate(45deg);
  }
}

/* Respect reduced motion users */
@media (prefers-reduced-motion: reduce) {
  .down-arrow {
    animation: none;
  }
}

/* Optional: subtle hover emphasis */
.down-arrow:hover {
  opacity: 1;
}

.down-arrow-link {
  color: #8fa3b885;
  display: inline-block;
  margin: 0 auto;
  text-decoration: none;
}

.down-arrow-link h5 {
  margin-bottom: 0;
}

/* =========================
   PROJECTS PAGE (PRETTY CARD LAYOUT)
========================= */

.project-flex {
  max-width: 1200px;
  margin: 60px auto;
  padding: 28px;
  gap: 44px;
  /* background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35); */

  align-items: flex-start;
}

.project-main-text {
  flex: 1 1 560px;
  min-width: 340px;
  font-size: 1rem;
  line-height: 1.75;
}

.project-main-text p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 14px 0;
}

.project-main-text h2 {
  font-size: 1.55rem;
  margin: 0 0 14px 0;
  line-height: 1.35;
}

.project-image-left,
.project-image-right {
  flex: 0 0 420px;
  max-width: 420px;
  width: 100%;
}

.image-download-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.teeth-segmentation-img {
  width: 100%;
  /* max-width: 420px; */
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-image-left a:hover img,
.project-image-right a:hover img {
  transform: translateY(-4px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.55);
}

/* better box styling */
.box {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(135, 206, 235, 0.08);
  border: 1px solid rgba(135, 206, 235, 0.22);
  font-style: normal;
  /* remove italic to look cleaner */
}

/* nicer separator */
.section-separator.line {
  width: min(900px, 82%);
  height: 1px;
  margin: 46px auto;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.18), transparent);
}

/**********************************************************************************************
      RESPONSIVE CSS
**********************************************************************************************/
@media (max-width: 900px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 22px;
    z-index: 10000;
  }

  /* Turn menu into dropdown + CLOSED by default */
  .top-nav ul.nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #87CEEB;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;
    margin: 0;

    max-height: 0;
    /* CLOSED */
    overflow: hidden;
    /* hide items */
    padding: 0;
    /* no padding when closed */

    border-top: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transition: max-height .3s ease, padding .3s ease;
  }

  /* Remove desktop spacing that breaks dropdown */
  .top-nav ul.nav-menu li,
  .top-nav ul.nav-menu li:not(:last-child) {
    margin-left: 0;
  }

  /* OPEN when checked */
  .nav-toggle:checked~ul.nav-menu {
    max-height: 420px;
    padding: 16px 0;
  }

  /* Animate hamburger → X */
  .nav-toggle:checked+.hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .nav-toggle:checked+.hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked+.hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .top-nav ul li:first-child {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .sound-toggle {
    z-index: 1;
  }
}

@media (max-width: 520px) {
  a.nav-link {
    font-size: 0.9rem;
  }

  .logo {
    width: 1.75em;
    height: 1.75em;
  }
}

/* =========================
   INDEX PAGE RESPONSIVE
========================= */

/* Make the hero content not feel cramped on shorter phones */
@media (max-width: 900px) {
  .centered-name {
    height: auto;
    min-height: 30vh;
    padding-bottom: 24px;
  }

  .profile-image {
    max-width: 240px;
  }
}

/* Move the fixed left image rail into a top/bottom scroller on mobile */
@media (max-width: 768px) {
  .left-images {
    position: static;
    /* stop covering content */
    transform: none;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 12px;
    margin: 0px auto 12px auto;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
  }

  .left-images::-webkit-scrollbar {
    display: none;
  }

  .circle-image {
    width: 40px;
    height: 40px;
    border-width: 2px;
    flex: 0 0 auto;
  }

  /* Fixed elements can be annoying on phones */
  .copyright {
    position: static;
    text-align: center;
    margin: 16px 0;
  }

  .sound-toggle {
    top: 68px;
    right: 12px;
    width: 30px;
    height: 30px;
    color: #fff;
    filter: invert(100%);
    opacity: 0.5;
  }
}

/* About section photos: wrap nicely */
@media (max-width: 900px) {
  .about-photos .photo-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .about-photo {
    width: min(44vw, 200px);
    height: min(44vw, 200px);
  }
}

@media (max-width: 520px) {
  .about-photo {
    width: 46vw;
    height: 46vw;
  }

  .rotating-sayings {
    height: 80px;
  }

  .saying {
    font-size: 1rem;
  }
}

/* =========================
   PROJECTS PAGE RESPONSIVE
========================= */


@media (max-width: 900px) {
  .project-flex {
    flex-direction: column;
    padding: 22px;
    gap: 18px;
  }

  .project-image-left,
  .project-image-right,
  .teeth-segmentation-img {
    max-width: 100%;
  }

  .project-main-text p {
    max-width: 70ch;
  }

  .project-main-text {
    font-size: 0.98em;
  }

  .carousel-wrapper {
    max-width: 100%;
  }
}

/* Make carousel arrows usable on touch + smaller screens */
@media (max-width: 600px) {
  .project-flex {
    margin: 40px 14px;
    padding: 16px;
  }

  .project-main-text h2 {
    font-size: 1.25rem;
  }

  .project-main-text ul {
    padding-left: 1.1em;
  }
}

/* =========================
   ART PAGE RESPONSIVE
========================= */

@media (max-width: 900px) {
  .art-masonry {
    margin: 90px auto 40px auto;
    width: 92vw;
  }
}

@media (max-width: 600px) {
  .art-masonry {
    margin: 80px auto 32px auto;
    width: 94vw;
  }

  .art-masonry img {
    margin-bottom: 1rem;
  }
}

/* =========================
   TIMELINE PAGE RESPONSIVE
========================= */

@media (max-width: 768px) {
  .timeline-container {
    margin: 90px auto 40px auto;
  }

  .timeline-content {
    padding: 16px;
  }

  .timeline-content img {
    max-height: 320px;
  }
}

@media (max-width: 520px) {
  .timeline-item {
    margin-bottom: 56px;
  }

  .timeline-caption h3 {
    font-size: 1.25rem;
  }

  .timeline-caption p {
    font-size: 0.98rem;
  }
}

/* =========================
   GALLERY PAGE RESPONSIVE
========================= */

@media (max-width: 768px) {
  .pictures-gallery {
    margin: 110px auto 40px auto;
    padding-bottom: 40px;
  }

  .pictures-grid {
    gap: 16px;
  }

  .pictures-grid figure {
    border-width: 2px;
  }
}

@media (max-width: 520px) {
  .pictures-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }

  .pictures-grid figure {
    border-radius: 10px;
  }
}

/**********************************************************************************************/


/* =========================================================
   PROJECTS – Layout like your mock image (Title/Summary/Image/Desc/Button)
   Paste at the very bottom of style.css
========================================================= */

.project-card {
  max-width: 1200px;
  margin: 50px auto;
  padding: 22px;
  /* border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35); */
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "head  media"
    "desc  desc";
  gap: 18px 22px;
  align-items: start;
}

/* Left top: Title + Summary */
.project-head {
  grid-area: head;
}

/* Right top: Image */
.project-media {
  grid-area: media;
}

/* Full width: Description + Button */
.project-desc {
  grid-area: desc;
}

/* --- Title box --- */
.project-title {
  margin: 0 0 14px 0;
  padding: 0 18px 18px 18px;
  font-size: 1.6rem;
  line-height: 1.35;
}

/* --- Summary box (your .box, refined) --- */
.project-summary.box {
  margin: 0 18px;
  padding: 18px 18px;
  border-radius: 14px;

  background: rgba(135, 206, 235, 0.08);
  border: 1px solid rgba(135, 206, 235, 0.22);

  font-style: normal;
  /* remove italic for cleaner look */
}

.project-summary .title {
  font-weight: 700;
  margin-bottom: 4px;
}

.project-summary .subtitle {
  color: rgba(135, 206, 235, 0.95);
  font-weight: 600;
  margin-bottom: 10px;
}

.project-summary .para {
  margin: 0;
  opacity: 0.92;
  line-height: 1.6;
}

/* --- Image area --- */
.project-media .image-download-stack {
  width: 100%;
  display: grid;
  gap: 14px;
}

.project-media .teeth-segmentation-img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* --- Description box (full width) --- */
.project-desc {
  padding: 18px 18px;
  border-radius: 14px;

  grid-column: 1 / -1;
  max-width: 100%;
}

.project-desc p {
  max-width: none;
  width: 100%;

  margin: 0 0 14px 0;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

/* Button bottom-left */
.project-desc .paper-download {
  display: inline-block;
  margin-top: 10px;

  padding: 12px 18px;
  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.project-desc .paper-download:hover {
  background: rgba(135, 206, 235, 0.20);
  border-color: rgba(135, 206, 235, 0.35);
}

/* Better separators for this card style */
.section-separator.line {
  width: min(980px, 86%);
  height: 1px;
  margin: 40px auto;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.18), transparent);
}

/* Responsive: stack neatly */
@media (max-width: 980px) {
  .project-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "media"
      "desc";
    padding: 18px;
  }
}