/* =========================================
   GLOBAL RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================
   ROOT COLORS
========================================= */

:root {
  --nw-purple: #4E2A84;
  --accent: #6F4BB8;
  --text: #1a1a1a;
  --muted: #555;
  --border: #e6e6e6;
}

/* =========================================
   BASE
========================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Prevent overflow issues */

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  background: var(--nw-purple);

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

  padding: 18px 80px;

  z-index: 999;

  box-shadow: 0 2px 10px rgba(0,0,0,0.12);

  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.tagline {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;

  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: #d7c7ff;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {

  /* CHANGED */
  min-height: 100vh;

  display: flex;
  align-items: center;

  /* CHANGED */
  justify-content: center;

  /* CHANGED */
  gap: 60px;

  /* CHANGED */
  padding:
    140px   /* top */
    8%      /* left-right */
    80px;   /* bottom */

  background: #ffffff;

  /* IMPORTANT */
  flex-wrap: wrap;
}

/* =========================================
   HERO TEXT
========================================= */

.hero-content {

  /* CHANGED */
  flex: 1 1 520px;

  max-width: 700px;

  /* IMPORTANT */
  min-width: 280px;
}

.hero-content h2 {

  /* VERY IMPORTANT */
  font-size: clamp(2.8rem, 6vw, 4.8rem);

  color: var(--nw-purple);
  font-weight: 700;

  line-height: 1.1;

  margin-bottom: 10px;
}

.hero-content h3 {

  /* CHANGED */
  font-size: clamp(1.2rem, 2vw, 1.8rem);

  color: #333;
  font-weight: 400;

  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--muted);

  margin-top: 20px;

  line-height: 1.9;

  width: 100%;

  text-align: justify;
  text-align-last: left;
}

.hero-content span {
  color: var(--accent);
  font-weight: 600;
}

.line {
  width: 140px;
  height: 5px;

  background: var(--nw-purple);

  margin: 25px 0;

  border-radius: 10px;
}

/* =========================================
   HERO IMAGE
========================================= */

.hero-image {
  /* CHANGED */
  flex: 1 1 380px;
  width: 100%;
  /* CHANGED */
  max-width: 620px;
  /* IMPORTANT */
  aspect-ratio: 4 / 3;
  /* REMOVED FIXED HEIGHT */

  object-fit: cover;

  border-radius: 20px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.18);
}

/* =========================================
   SECTION LAYOUTS
========================================= */

.section {
  padding: 90px 8%;
}

.section-title {
  font-size: 2.2rem;
  color: var(--nw-purple);
  margin-bottom: 40px;
  font-weight: 700;
}

/* TWO COLUMN LAYOUT */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* HOMEPAGE CARD GRID */

.cards-section {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 50px;

  padding: 80px 8%;

  align-items: stretch;
}

/* CARD STYLE */

/*.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}*/

.card {

  background: #ffffff;

  border: 1px solid var(--border);

  border-radius: 18px;

  overflow: hidden;

  position: relative;

  box-shadow: 0 8px 25px rgba(0,0,0,0.05);

  display: flex;

  flex-direction: column;

  height: 100%;
}

.card h3 {
  color: var(--nw-purple);
  margin-bottom: 15px;
}

.card p,

.card li {
  color: var(--muted);
  line-height: 1.8;
}

.card ul {
  padding-left: 20px;
}

.card-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 25px 30px 10px;
}

.card-header h2 {

  color: var(--nw-purple);

  font-size: 1.4rem;
}

.card-header a {

  text-decoration: none;

  color: var(--accent);

  font-weight: 600;
}

.card > img {

  width: 100%;

  height: 260px;

  object-fit: cover;

  display: block;
}

.card-body {

  padding: 25px 30px 30px;

  flex-grow: 1;
}

/* ATTACHED IMAGE SECTION */

.attached-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.attached-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

/* =========================================
   SLIDES / CAROUSEL
========================================= */

.slides {
  position: relative;

  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  border-radius: 12px;

  background: #f8f8f8;

  border: 1px solid var(--border);

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  z-index: 1;
}

.slides {
  z-index: 1;
}

/* all images stacked */
.slides img {
  position: absolute;

  /*
  top: 0;
  left: 0;*/

  inset: 0;

  width: 100%;
  height: 100%;

  /*object-fit: cover;*/

  object-fit: contain;

  padding: 10px;

  display: block;

  cursor: zoom-in;

  opacity: 0;
  transition: opacity 0.6s ease;
}


/* active slide */
.slides img.active {
  opacity: 1;
  z-index: 1;
}

/* arrows */
.slides .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0,0,0,0.4);
  color: white;

  border: none;
  font-size: 20px;
  padding: 8px 12px;

  cursor: pointer;
  z-index: 2;

  border-radius: 6px;
}

.slides .arrow.left {
  left: 10px;
}

.slides .arrow.right {
  right: 10px;
}

.slides .arrow:hover {
  background: rgba(0,0,0,0.7);
}

/* =========================================
   LIGHTBOX
========================================= */

.lightbox-overlay {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.85);

  align-items: center;
  justify-content: center;

  z-index: 2000;

  padding: 40px;

  cursor: zoom-out;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;

  object-fit: contain;

  border-radius: 10px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;

  background: rgba(255,255,255,0.12);
  color: #ffffff;

  border: none;
  border-radius: 50%;

  width: 44px;
  height: 44px;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .hero {
    flex-direction: column;
    text-align: center;

    padding:
      260px
      25px
      70px;

    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content p {
    text-align: justify;
  }

  .line {
    margin: 25px auto;
  }

  .hero-image {
    width: 100%;
    max-width: 500px;
    min-height: 320px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}

/* SMALL MOBILE */

@media (max-width: 600px) {

  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    justify-content: center;
    gap: 18px;
  }

  .hero {
    padding-top: 250px;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content h3 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-image {
    max-width: 100%;
    min-height: 260px;
    border-radius: 16px;
  }

  .section {
    padding: 70px 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .card {
    padding: 22px;
  }

  .cards-section {
  grid-template-columns: 1fr;
}
}

/* =========================================
   ABOUT PAGE
========================================= */

.about-page {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 70px;

  padding:
    160px
    8%
    90px;

  flex-wrap: wrap;
}

/* LEFT IMAGE */

.about-image {

  flex: 1 1 320px;

  max-width: 420px;
}

.about-image img {

  width: 100%;

  border-radius: 22px;

  object-fit: cover;

  box-shadow:
    0 20px 45px rgba(0,0,0,0.18);
}

/* RIGHT CONTENT */

.about-content {

  flex: 1 1 600px;

  max-width: 760px;
}

.about-content h2 {

  font-size: clamp(2.5rem, 5vw, 4rem);

  color: var(--nw-purple);

  font-weight: 700;

  margin-bottom: 10px;
}

.about-content p {

  font-size: 1.05rem;

  color: var(--muted);

  line-height: 1.95;

  margin-bottom: 24px;

  text-align: justify;
}

.about-content span {

  color: var(--accent);

  font-weight: 600;
}

/* RESEARCH BOX */

.research-box {

  margin-top: 45px;

  background: #fafafa;

  border: 1px solid var(--border);

  border-radius: 18px;

  padding: 30px 35px;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.04);
}

.research-box h3 {

  color: var(--nw-purple);

  font-size: 1.5rem;

  margin-bottom: 20px;
}

.research-box ul {

  padding-left: 20px;
}

.research-box li {

  margin-bottom: 12px;

  color: var(--muted);

  line-height: 1.7;
}

/* ACTIVE NAV LINK */

.nav-links a.active {

  color: #d7c7ff;
}

/* =========================================
   ABOUT PAGE MOBILE
========================================= */

@media (max-width: 900px) {

  .about-page {

    flex-direction: column;

    text-align: center;

    gap: 50px;
  }

  .about-content {

    max-width: 100%;
  }

  .about-content p {

    text-align: justify;
  }

  .about-image {

    max-width: 340px;
  }

  .research-box {

    text-align: left;
  }
}

/* =========================================
   SPECIALIZATION SECTION
========================================= */

.specialization-section {

  margin-top: 55px;
}

.specialization-section h3 {

  font-size: 1.8rem;

  color: var(--nw-purple);

  margin-bottom: 35px;

  font-weight: 700;
}

.specialization-item {

  margin-bottom: 35px;

  padding-bottom: 25px;

  border-bottom: 1px solid var(--border);
}

.specialization-item:last-child {

  border-bottom: none;
}

.specialization-item h4 {

  color: var(--accent);

  font-size: 1.15rem;

  margin-bottom: 12px;

  font-weight: 600;
}

.specialization-item p {

  margin-bottom: 0;

  color: var(--muted);

  line-height: 1.9;

  text-align: justify;
}

.specialization-item ul {

  padding-left: 22px;

  margin-top: 10px;
}

.specialization-item li {

  margin-bottom: 10px;

  color: var(--muted);

  line-height: 1.8;
}

/* =========================================
   RESEARCH VISION
========================================= */

.research-vision {

  margin-top: 40px;

  padding: 30px 35px;

  background: #fafafa;

  border-left: 5px solid var(--nw-purple);

  border-radius: 14px;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.04);
}

.research-vision p {

  margin-bottom: 18px;

  line-height: 1.9;

  color: var(--muted);

  text-align: justify;
}

.research-vision p:last-child {

  margin-bottom: 0;
}

.research-vision span {

  color: var(--accent);

  font-weight: 600;
}


/* =========================================
   CV PAGE
========================================= */

.cv-page {

  padding:
    150px
    5%
    80px;

  display: flex;

  flex-direction: column;

  align-items: center;
}

/* HEADER */

.cv-header {

  width: 100%;

  max-width: 1100px;

  text-align: center;

  margin-bottom: 45px;
}

.cv-header h2 {

  font-size: clamp(2.8rem, 5vw, 4.5rem);

  color: var(--nw-purple);

  font-weight: 700;

  margin-bottom: 12px;
}

.cv-header .line {

  margin:
    20px auto
    30px;
}

.cv-header p {

  max-width: 850px;

  margin: auto;

  color: var(--muted);

  line-height: 1.9;

  font-size: 1.05rem;
}

/* DOWNLOAD BUTTON */

.cv-download {

  display: inline-block;

  margin-top: 30px;

  padding:
    14px
    30px;

  background: var(--nw-purple);

  color: white;

  text-decoration: none;

  border-radius: 12px;

  font-weight: 600;

  transition: 0.3s ease;

  box-shadow:
    0 6px 16px rgba(0,0,0,0.12);
}

.cv-download:hover {

  background: var(--accent);

  transform: translateY(-2px);
}

/* PDF CONTAINER */

.cv-container {

  width: 100%;

  max-width: 1400px;

  height: 88vh;

  background: white;

  border-radius: 22px;

  overflow: hidden;

  box-shadow:
    0 20px 45px rgba(0,0,0,0.15);

  border: 1px solid var(--border);

  margin: auto;
}

/* PDF */

.cv-container iframe {

  width: 100%;

  height: 100%;

  border: none;

  display: block;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

  .cv-page {

    padding:
      260px
      20px
      60px;
  }

  .cv-container {

    height: 75vh;

    border-radius: 16px;
  }

  .cv-header h2 {

    font-size: 2.5rem;
  }
}

/* =========================================
   RESEARCH PAGE
========================================= */

.research-page {

  padding:
    150px
    5%
    80px;

  display: flex;

  flex-direction: column;

  align-items: center;
}

/* HEADER */

.research-header {

  width: 100%;

  max-width: 1400px;

  text-align: center;

  margin-bottom: 45px;
}

.research-header h2 {

  font-size: clamp(2.8rem, 5vw, 4.5rem);

  color: var(--nw-purple);

  font-weight: 700;

  margin-bottom: 12px;
}

.research-header .line {

  margin:
    20px auto
    30px;
}

.research-header p {

  max-width: 1150px;

  margin: auto;

  color: var(--muted);

  line-height: 1.9;

  font-size: 1.05rem;

  text-align: justify;
  text-align-last: left;
}

@media (max-width: 900px) {

  .research-page {

    padding:
      260px
      20px
      60px;
  }

  .research-header h2 {

    font-size: 2.5rem;
  }
}

/* =========================================
   Publication PAGE
========================================= */

.publication-page {

  padding:
    150px
    5%
    80px;

  display: flex;

  flex-direction: column;

  align-items: center;
}

/* HEADER */

.publication-header {

  width: 100%;

  max-width: 1100px;

  text-align: center;

  margin-bottom: 60px;
}

.publication-header h2 {

  font-size: clamp(2.8rem, 5vw, 4.5rem);

  color: var(--nw-purple);

  font-weight: 700;

  margin-bottom: 12px;
}

.publication-header .line {

  margin:
    22px auto
    45px;
}


/* =========================================
   PROFILE LINKS
========================================= */

.profile-links {

  display: flex;

  justify-content: center;

  gap: 20px;

  flex-wrap: wrap;

}

.profile-links a {

  display: inline-block;

  padding:
    14px
    26px;

  background: white;

  color: var(--nw-purple);

  text-decoration: none;

  border-radius: 12px;

  border: 1px solid var(--border);

  font-weight: 600;

  transition: 0.3s ease;

  box-shadow:
    0 6px 16px rgba(0,0,0,0.06);
}

.profile-links a:hover {

  background: var(--nw-purple);

  color: white;

  transform: translateY(-3px);
}

/* =========================================
   PUBLICATION CONTAINER
========================================= */

.publications-container {

  width: 100%;

  max-width: 1200px;
}

/* =========================================
   PUBLICATION CARD
========================================= */

.publication-item {

  background: white;

  border: 1px solid var(--border);

  border-radius: 22px;

  padding:
    32px
    38px;

  margin-bottom: 30px;

  box-shadow:
    0 10px 28px rgba(0,0,0,0.06);

  transition: 0.3s ease;
}

.publication-item:hover {

  transform: translateY(-4px);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.10);
}

/* =========================================
   TITLE
========================================= */

.publication-title {

  font-size: 1.2rem;

  font-weight: 700;

  color: var(--nw-purple);

  line-height: 1.7;

  margin-bottom: 14px;
}

/* =========================================
   AUTHORS
========================================= */

.publication-authors {

  font-size: 1rem;

  color: var(--text);

  line-height: 1.8;

  margin-bottom: 10px;
}

/* =========================================
   JOURNAL
========================================= */

.publication-journal {

  font-size: 0.98rem;

  color: var(--muted);

  font-style: italic;

  line-height: 1.7;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

  .publication-page {

    padding:
      260px
      20px
      60px;
  }

  .publication-header h2 {

    font-size: 2.5rem;
  }

  .publication-item {

    padding:
      24px
      22px;
  }
}

@media (max-width: 600px) {

  .profile-links {

    flex-direction: column;

    align-items: center;
  }

  .profile-links a {

    width: 100%;

    max-width: 320px;

    text-align: center;
  }
}

/* =========================================
   RESEARCH THEME ROWS
========================================= */

.theme-row {
  display: flex;
  align-items: center;
  gap: 60px;

  width: 100%;
  max-width: 1400px;

  margin-bottom: 80px;

  flex-wrap: wrap;
}

.theme-row.reverse {
  flex-direction: row-reverse;
}

.theme-row .theme-text {
  flex: 1 1 420px;
  min-width: 280px;
}

.theme-row .theme-text h3 {
  color: var(--nw-purple);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.theme-row .theme-text p {
  color: var(--muted);
  line-height: 1.9;
  text-align: justify;
}

.theme-row .theme-image {
  flex: 1 1 420px;
  min-width: 280px;
}

.theme-row.text-only .theme-text {
  flex: 1 1 100%;
  max-width: 900px;
}

.subsection-heading {
  color: var(--nw-purple);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .theme-row,
  .theme-row.reverse {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
  }
}

/* =========================================
   NEWS SECTION (HOMEPAGE)
========================================= */

.news-section {
  padding: 80px 8%;
  max-width: 1000px;
  margin: 0 auto;
}

.news-list {
  margin-top: 40px;
}

.news-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;

  padding: 22px 0;

  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex: 0 0 90px;

  color: var(--nw-purple);
  font-weight: 700;
  font-size: 0.95rem;
}

.news-text {
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .news-item {
    flex-direction: column;
    gap: 6px;
  }
}



