/* ============================================================
   DR. MAHESH GANGULY
   FINAL CLEAN PORTFOLIO
   DARK CINEMATIC HERO / PORTRAIT EXTREME RIGHT
   ============================================================ */


/* ============================================================
   01. VARIABLES
   ============================================================ */

:root {
  --navy: #183f63;
  --blue: #245f91;
  --blue-dark: #163f63;

  --cream: #f5efe4;
  --paper: #fbf7ef;
  --paper-white: #fffdf8;

  --ink: #1f2933;
  --muted: #68727d;

  --line: #ddd2c2;

  --gold: #b58b59;
  --gold-light: #d6b37f;
  --gold-dark: #92683a;

  --hero-dark: #211b16;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", Arial, sans-serif;

  --content-width: 1180px;
}


/* ============================================================
   02. RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;

  background: var(--cream);
  color: var(--ink);

  font-family: var(--sans);
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--gold);
  color: #fff;
}

.wrap {
  width: 100%;
  overflow: clip;
}


/* ============================================================
   03. ACCESSIBILITY
   ============================================================ */

.skip-link {
  position: fixed;
  z-index: 9999;

  top: 12px;
  left: 12px;

  padding: 10px 15px;

  background: #fff;
  color: #111;

  transform: translateY(-160%);

  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(181, 139, 89, 0.55);
  outline-offset: 4px;
}


/* ============================================================
   04–09. PROFESSIONAL ACADEMIC HERO
   CLASSROOM BACKGROUND / CLEAN OVERLAY / PORTRAIT RIGHT
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: 760px;

  overflow: hidden;

  color: #ffffff;

  background:
    linear-gradient(90deg,
      rgba(16, 30, 43, 0.94) 0%,
      rgba(20, 36, 50, 0.88) 30%,
      rgba(24, 42, 56, 0.70) 52%,
      rgba(24, 39, 51, 0.30) 72%,
      rgba(18, 29, 38, 0.08) 100%),
    url("../images/images.jpeg") center center / cover no-repeat;
}


/* ------------------------------------------------------------
   CLEAN OVERLAY
   No circles / no dramatic brown effect
   ------------------------------------------------------------ */

.hero::before {
  content: "";

  position: absolute;
  z-index: 0;

  inset: 0;

  background:
    linear-gradient(180deg,
      rgba(8, 20, 30, 0.08) 0%,
      rgba(8, 20, 30, 0.02) 55%,
      rgba(8, 20, 30, 0.14) 100%);

  pointer-events: none;
}


/* remove decorative circle completely */

.hero::after {
  content: none;

  display: none;
}


/* ============================================================
   HERO INNER
   ============================================================ */

.hero-inner {
  position: relative;
  z-index: 2;

  width: 100%;
  min-height: 760px;

  margin: 0;
}


/* ============================================================
   LEFT CONTENT
   ============================================================ */

.hero-copy {
  position: relative;
  z-index: 20;

  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 58%;
  max-width: 980px;

  min-height: 760px;

  margin: 0;

  padding:
    80px 40px 75px max(7vw, calc((100vw - 1180px) / 2));
}


/* ============================================================
   EYEBROW
   ============================================================ */

.eyebrow {
  margin: 0 0 22px;

  color: #d9c7a7;

  font-family:
    "IBM Plex Sans",
    Arial,
    sans-serif;

  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;

  letter-spacing: 0.2em;
  text-transform: uppercase;

  text-shadow: none;
}


/* ============================================================
   NAME — ONE LINE
   ============================================================ */

.hero h1 {
  width: max-content;
  max-width: none;

  margin: 0;

  color: #ffffff;

  font-family:
    "Source Serif 4",
    Georgia,
    serif;

  font-size:
    clamp(3.6rem, 5.1vw, 5.8rem);

  font-weight: 400;
  line-height: 1;

  letter-spacing: -0.045em;

  white-space: nowrap;

  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.16);
}


/* ============================================================
   ROLE
   ============================================================ */

.hero-role {
  max-width: 760px;

  margin: 28px 0 0;

  color: rgba(255, 255, 255, 0.94);

  font-family:
    "IBM Plex Sans",
    Arial,
    sans-serif;

  font-size:
    clamp(0.94rem, 1.05vw, 1.08rem);

  font-weight: 600;
  line-height: 1.6;

  text-shadow: none;
}


/* ============================================================
   DIVIDER
   ============================================================ */

.hero-rule {
  width: 100px;
  height: 2px;

  margin: 28px 0;

  background: #c7a66f;
}


/* ============================================================
   INTRO
   ============================================================ */

.hero-intro {
  max-width: 700px;

  margin: 0;

  color: rgba(255, 255, 255, 0.78);

  font-family:
    "IBM Plex Sans",
    Arial,
    sans-serif;

  font-size:
    clamp(0.88rem, 0.94vw, 0.96rem);

  font-weight: 400;
  line-height: 1.75;

  text-shadow: none;
}


/* ============================================================
   FOCUS TAGS
   ============================================================ */

.hero-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 24px;
}


.hero-meta span {
  display: inline-flex;
  align-items: center;

  padding: 7px 12px;

  border:
    1px solid rgba(255, 255, 255, 0.28);

  border-radius: 3px;

  background:
    rgba(16, 29, 40, 0.28);

  color:
    rgba(255, 255, 255, 0.88);

  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1;

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}


/* ============================================================
   HERO LINKS
   ============================================================ */

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 12px;

  margin-top: 27px;
}


/* common button */

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  min-width: 180px;
  min-height: 47px;

  padding: 0 18px;

  border-radius: 3px;

  font-size: 0.75rem;
  font-weight: 700;

  text-decoration: none;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}


/* professional blue primary */

.hero-btn-primary {
  border:
    1px solid #2d668e;

  background: #245b82;

  color: #ffffff;

  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.12);
}


.hero-btn-primary:hover {
  background: #2b698f;

  transform: translateY(-2px);
}


/* secondary */

.hero-btn-secondary {
  border:
    1px solid rgba(255, 255, 255, 0.52);

  background:
    rgba(13, 27, 38, 0.22);

  color: #ffffff;

  box-shadow: none;
}


.hero-btn-secondary:hover {
  border-color:
    rgba(255, 255, 255, 0.82);

  background:
    rgba(255, 255, 255, 0.08);

  transform: translateY(-2px);
}


/* LinkedIn */

.hero-linkedin {
  padding: 8px 3px;

  border-bottom:
    1px solid rgba(216, 199, 167, 0.55);

  color: #d9c7a7;

  font-size: 0.75rem;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 180ms ease,
    border-color 180ms ease;
}


.hero-linkedin:hover {
  color: #ffffff;

  border-bottom-color: #ffffff;
}


/* ============================================================
   PORTRAIT
   EXTREME RIGHT
   ============================================================ */

.hero-portrait {
  position: absolute;
  z-index: 10;

  top: 0;
  right: 0;
  bottom: 0;
  left: auto;

  width: 46%;
  height: 100%;

  min-height: 760px;

  margin: 0;
  padding: 0;

  overflow: visible;

  pointer-events: none;
}


/* subtle separation between copy and portrait */

.hero-portrait::before {
  content: "";

  position: absolute;
  z-index: 11;

  top: 0;
  bottom: 0;
  left: -70px;

  width: 160px;

  background:
    linear-gradient(90deg,
      rgba(19, 34, 46, 0.20),
      rgba(19, 34, 46, 0));

  pointer-events: none;
}


/* ============================================================
   ACTUAL PORTRAIT IMAGE
   ============================================================ */

.hero-portrait img {
  position: absolute;
  z-index: 12;

  top: auto;
  right: 0;
  bottom: 0;
  left: auto;

  display: block;

  width:
    clamp(610px, 45vw, 850px);

  height: auto;

  max-width: none;
  max-height: 735px;

  margin: 0;
  padding: 0;

  object-fit: contain;
  object-position: right bottom;

  filter:
    drop-shadow(-8px 8px 20px rgba(0, 0, 0, 0.10));

  transform: none;
  animation: none;
}


/* ============================================================
   LAPTOP
   ============================================================ */

@media (min-width: 981px) and (max-width: 1250px) {

  .hero,
  .hero-inner {
    min-height: 700px;
  }


  .hero-copy {
    width: 59%;
    min-height: 700px;

    padding:
      65px 28px 60px 48px;
  }


  .hero h1 {
    font-size:
      clamp(3.2rem, 5vw, 4.5rem);
  }


  .hero-role {
    max-width: 620px;

    font-size: 0.91rem;
  }


  .hero-intro {
    max-width: 600px;

    font-size: 0.84rem;
  }


  .hero-portrait {
    width: 44%;
    min-height: 700px;
  }


  .hero-portrait img {
    right: 0;

    width:
      clamp(530px, 46vw, 700px);

    max-height: 680px;
  }
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 980px) {

  .hero {
    min-height: auto;

    background:
      linear-gradient(180deg,
        rgba(15, 29, 40, 0.91) 0%,
        rgba(18, 34, 46, 0.84) 56%,
        rgba(17, 31, 42, 0.55) 100%),
      url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1400&q=86") center center / cover no-repeat;
  }


  .hero-inner {
    display: flex;
    flex-direction: column;

    min-height: 0;
  }


  .hero-copy {
    order: 1;

    width: 100%;
    max-width: 780px;
    min-height: 0;

    padding:
      62px 32px 32px;
  }


  .hero h1 {
    width: auto;

    font-size:
      clamp(3rem, 8vw, 4.7rem);

    white-space: normal;
  }


  .hero-portrait {
    position: relative;

    order: 2;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    width: 100%;
    height: 500px;
    min-height: 500px;

    overflow: hidden;
  }


  .hero-portrait::before {
    display: none;
  }


  .hero-portrait img {
    right: 0;
    bottom: 0;

    width:
      min(620px, 82vw);

    max-height: 500px;
  }
}


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

@media (max-width: 650px) {

  .hero-copy {
    padding:
      46px 19px 26px;
  }


  .eyebrow {
    margin-bottom: 15px;

    font-size: 0.59rem;

    letter-spacing: 0.15em;
  }


  .hero h1 {
    font-size:
      clamp(2.65rem, 12vw, 3.8rem);

    line-height: 1;
  }


  .hero-role {
    margin-top: 19px;

    font-size: 0.84rem;
  }


  .hero-rule {
    width: 80px;

    margin: 21px 0;
  }


  .hero-intro {
    font-size: 0.82rem;
    line-height: 1.65;
  }


  .hero-meta {
    gap: 6px;

    margin-top: 19px;
  }


  .hero-meta span {
    padding: 7px 9px;

    font-size: 0.61rem;
  }


  .hero-links {
    display: grid;

    grid-template-columns:
      1fr 1fr;

    gap: 9px;

    margin-top: 22px;
  }


  .hero-btn {
    width: 100%;
    min-width: 0;

    min-height: 45px;

    padding: 0 11px;

    font-size: 0.67rem;
  }


  .hero-linkedin {
    grid-column: 1 / -1;

    width: max-content;
  }


  .hero-portrait {
    height: 390px;
    min-height: 390px;
  }


  .hero-portrait img {
    right: 0;

    width:
      min(490px, 100vw);

    max-height: 390px;
  }
}


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

@media (max-width: 390px) {

  .hero h1 {
    font-size:
      clamp(2.4rem, 11.5vw, 3.1rem);
  }


  .hero-links {
    grid-template-columns: 1fr;
  }


  .hero-linkedin {
    grid-column: auto;
  }


  .hero-portrait {
    height: 350px;
    min-height: 350px;
  }


  .hero-portrait img {
    right: 0;

    width:
      min(440px, 106vw);

    max-height: 350px;
  }
}


/* ============================================================
   10. NAVIGATION
   ============================================================ */

.site-nav {
  position: sticky;
  z-index: 100;

  top: 0;

  width: 100%;

  border-bottom: 1px solid rgba(216, 203, 183, 0.78);

  background: rgba(255, 253, 248, 0.95);

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: clamp(18px, 3vw, 40px);

  width: min(var(--content-width), calc(100% - 40px));
  min-height: 70px;

  margin-inline: auto;
}

.site-nav a {
  position: relative;

  padding: 23px 0;

  color: #58616a;

  font-size: 0.73rem;
  font-weight: 700;

  letter-spacing: 0.04em;
  text-decoration: none;

  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";

  position: absolute;

  right: 0;
  bottom: 16px;
  left: 0;

  height: 2px;

  background: var(--gold);

  transform: scaleX(0);

  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #805c34;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}


/* ============================================================
   11. GENERAL SECTIONS
   ============================================================ */

main {
  background: var(--paper);
}

main>section {
  width: min(var(--content-width), calc(100% - 48px));

  margin-inline: auto;
  padding: 100px 0;

  scroll-margin-top: 84px;

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

main>section:last-child {
  border-bottom: 0;
}

section h2 {
  margin: 0 0 42px;

  color: var(--navy);

  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1;

  letter-spacing: -0.035em;
}

section h3 {
  color: var(--navy);

  font-family: var(--serif);
}


/* ============================================================
   12. ABOUT
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr) minmax(300px, 0.55fr);

  gap: clamp(45px, 7vw, 90px);

  align-items: start;
}

.about-lead {
  max-width: 760px;

  margin: 0 0 27px;

  color: var(--navy);

  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.45;
}

.about-copy {
  max-width: 790px;

  margin: 0 0 20px;

  color: #4d5863;
}

.about-focus {
  padding: 30px;

  border-top: 4px solid var(--gold);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);

  background: #fff;

  box-shadow:
    0 12px 35px rgba(42, 34, 26, 0.06);
}

.about-focus h3 {
  margin: 0 0 20px;

  font-size: 1.4rem;
  font-weight: 500;
}

.about-focus p {
  margin: 0;
  padding: 13px 0;

  border-bottom: 1px solid #eee5d8;

  color: #59616a;

  font-size: 0.87rem;
}

.about-focus p:last-child {
  border-bottom: 0;
}


/* ============================================================
   13. PUBLICATIONS
   ============================================================ */

.pub-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.pub-item {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;

  gap: 8px 30px;

  padding: 29px 0;

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

.pub-item:first-child {
  border-top: 1px solid var(--line);
}

.pub-title {
  color: var(--navy);

  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;

  text-decoration: none;

  transition: color 180ms ease;
}

.pub-title:hover {
  color: #946b3d;
}

.pub-outlet {
  color: #9a7448;

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pub-brief {
  grid-column: 1 / -1;

  max-width: 880px;

  margin: 4px 0 0;

  color: #66707a;

  font-size: 0.9rem;
  line-height: 1.68;
}


/* ============================================================
   14. RESEARCH
   ============================================================ */

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.research-card {
  min-height: 280px;

  padding: 28px;

  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);

  background: #fff;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.research-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 16px 38px rgba(42, 34, 26, 0.08);
}

.research-label {
  display: block;

  margin-bottom: 45px;

  color: #a1794b;

  font-size: 0.67rem;
  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-card h3 {
  margin: 0 0 14px;

  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.25;
}

.research-card p {
  margin: 0;

  color: #626b74;

  font-size: 0.88rem;
}


/* ============================================================
   15. EXPERIENCE
   ============================================================ */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.experience-card {
  padding: 28px;

  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);

  background: #fff;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.experience-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 16px 38px rgba(42, 34, 26, 0.08);
}

.experience-year {
  display: block;

  margin-bottom: 14px;

  color: #a1794b;

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.experience-card h3 {
  margin: 0 0 9px;

  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

.experience-type {
  margin: 0 0 14px;

  color: #8b673f;

  font-size: 0.76rem;
  font-weight: 700;
}

.experience-card>p:last-child {
  margin: 0;

  color: #626b74;

  font-size: 0.89rem;
}


/* ============================================================
   16. CONFERENCES
   ============================================================ */

.conf-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.conf-item {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) minmax(230px, 0.38fr);

  gap: 35px;

  padding: 27px 0;

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

.conf-item:first-child {
  border-top: 1px solid var(--line);
}

.conf-title {
  margin: 0;

  color: var(--navy);

  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
}

.conf-venue {
  margin: 0;

  color: #8b673f;

  font-size: 0.78rem;
  font-weight: 600;
}


/* ============================================================
   17. AWARDS & HONORS
   ============================================================ */

.awards-section {
  position: relative;
}


/* heading + long gold line */

.section-heading-row {
  display: flex;
  align-items: center;

  gap: 32px;

  width: 100%;

  margin-bottom: 54px;
}

.section-heading-row h2 {
  flex: 0 0 auto;

  margin: 0;
}

.section-heading-line {
  flex: 1;

  height: 1px;

  margin-top: 8px;

  background: #d8c4a5;
}


/* awards list */

.awards-list {
  width: 100%;
}


/* individual award */

.award-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  align-items: center;

  gap: 40px;

  width: 100%;

  min-height: 105px;

  padding: 26px 0;

  border-bottom:
    1px solid #dfcdb1;
}


/* Award title */

.award-row h3 {
  margin: 0;

  color: #28251f;

  font-family:
    "Source Serif 4",
    Georgia,
    serif;

  font-size:
    clamp(1.15rem, 1.7vw, 1.55rem);

  font-weight: 600;

  line-height: 1.35;

  letter-spacing: -0.015em;
}


/* Date */

.award-row time {
  min-width: 120px;

  color: #8a7458;

  font-family:
    "IBM Plex Sans",
    Arial,
    sans-serif;

  font-size:
    clamp(1rem, 1.4vw, 1.35rem);

  font-weight: 700;

  line-height: 1.2;

  text-align: right;

  white-space: nowrap;
}


/* subtle hover */

.award-row {
  transition:
    padding-left 180ms ease,
    background-color 180ms ease;
}

.award-row:hover {
  padding-left: 8px;

  background:
    linear-gradient(90deg,
      rgba(181, 139, 89, 0.045),
      transparent 65%);
}


/* ============================================================
   AWARDS — TABLET
   ============================================================ */

@media (max-width: 800px) {

  .section-heading-row {
    gap: 20px;

    margin-bottom: 35px;
  }

  .award-row {
    min-height: 90px;

    gap: 25px;

    padding: 22px 0;
  }

  .award-row h3 {
    font-size: 1.1rem;
  }

  .award-row time {
    min-width: 95px;

    font-size: 1rem;
  }
}


/* ============================================================
   AWARDS — MOBILE
   ============================================================ */

@media (max-width: 550px) {

  .section-heading-row {
    display: block;

    margin-bottom: 28px;
  }

  .section-heading-line {
    width: 100%;
    height: 1px;

    margin-top: 18px;
  }

  .award-row {
    grid-template-columns: 1fr;

    gap: 8px;

    min-height: 0;

    padding: 22px 0;
  }

  .award-row h3 {
    font-size: 1.08rem;

    line-height: 1.4;
  }

  .award-row time {
    min-width: 0;

    color: #9a794f;

    font-size: 0.86rem;

    text-align: left;
  }

  .award-row:hover {
    padding-left: 0;
  }
}

/* ============================================================
   18. LANGUAGES
   ============================================================ */

.lang-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 18px;

  margin: 0;

  color: var(--navy);

  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.lang-row span {
  color: var(--gold);
}


/* ============================================================
   19. CONTACT
   ============================================================ */

.contact-card {
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr) minmax(320px, 0.9fr);

  gap: 50px;

  padding: clamp(30px, 5vw, 55px);

  background:
    linear-gradient(135deg,
      #183f63,
      #102d48);

  color: #fff;
}

.contact-kicker {
  margin: 0 0 12px;

  color: #d8b784;

  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-card h3 {
  margin: 0 0 16px;

  color: #fff;

  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
}

.contact-card>div:first-child>p:last-child {
  max-width: 600px;

  margin: 0;

  color: rgba(255, 255, 255, 0.72);
}

.contact-links {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

.contact-links a {
  display: flex;
  flex-direction: column;

  padding: 17px 18px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  background: rgba(255, 255, 255, 0.05);

  text-decoration: none;

  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.contact-links a:hover {
  border-color: rgba(255, 255, 255, 0.48);

  background: rgba(255, 255, 255, 0.1);
}

.contact-links span {
  margin-bottom: 4px;

  color: #d8b784;

  font-size: 0.67rem;
  font-weight: 700;

  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-links strong {
  color: #fff;

  font-size: 0.9rem;

  word-break: break-word;
}

.contact-links small {
  margin-top: 4px;

  color: rgba(255, 255, 255, 0.55);
}


/* ============================================================
   20. FOOTER
   ============================================================ */

footer {
  padding: 25px 24px;

  background: #102d48;
  color: rgba(255, 255, 255, 0.62);

  text-align: center;
}

footer p {
  margin: 0;

  font-size: 0.73rem;
}

footer a {
  color: #d8b784;

  text-decoration: none;
}


/* ============================================================
   21. REVEAL
   ============================================================ */

.reveal-section {
  opacity: 0;

  transform: translateY(22px);

  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal-section.is-visible {
  opacity: 1;

  transform: translateY(0);
}


/* ============================================================
   22. LAPTOP
   ============================================================ */

@media (max-width: 1250px) and (min-width: 981px) {

  .hero,
  .hero-inner {
    min-height: 750px;
  }

  .hero-copy {
    width: 55%;
    min-height: 750px;

    padding:
      70px 25px 65px 50px;
  }

  .hero h1 {
    font-size: clamp(4rem, 6vw, 5.5rem);
  }

  .hero-intro {
    max-width: 610px;

    font-size: 0.87rem;
  }

  .hero-portrait {
    width: 48%;
    min-height: 750px;
  }

  .hero-portrait img {
    right: 0;

    width: clamp(580px, 49vw, 780px);

    max-height: 730px;
  }
}


/* ============================================================
   23. TABLET
   ============================================================ */

@media (max-width: 980px) {

  html {
    scroll-padding-top: 75px;
  }

  .hero {
    min-height: auto;

    background:
      linear-gradient(180deg,
        rgba(29, 24, 20, 0.96) 0%,
        rgba(39, 32, 26, 0.91) 53%,
        rgba(31, 27, 23, 0.68) 100%),
      url("https://images.unsplash.com/photo-1564981797816-1043664bf78d?auto=format&fit=crop&w=1400&q=86") center center / cover no-repeat;
  }

  .hero::after {
    width: 430px;
    height: 430px;

    top: -210px;
    left: -210px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;

    min-height: 0;
  }

  .hero-copy {
    order: 1;

    width: 100%;
    max-width: 780px;
    min-height: 0;

    padding: 70px 34px 35px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 10vw, 5.5rem);
  }

  .hero-portrait {
    position: relative;

    order: 2;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    width: 100%;
    height: 510px;
    min-height: 510px;

    overflow: hidden;
  }

  .hero-portrait img {
    right: 0;
    bottom: 0;

    width: min(650px, 88vw);

    max-height: 510px;
  }

  .site-nav-inner {
    justify-content: flex-start;

    width: 100%;

    padding: 0 20px;

    flex-wrap: nowrap;

    overflow-x: auto;

    scrollbar-width: none;
  }

  .site-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .research-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ============================================================
   24. MOBILE
   ============================================================ */

@media (max-width: 650px) {

  main>section {
    width: calc(100% - 36px);

    padding: 72px 0;
  }

  section h2 {
    margin-bottom: 32px;

    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }


  /* hero */

  .hero-copy {
    padding:
      50px 19px 28px;
  }

  .eyebrow {
    margin-bottom: 15px;

    font-size: 0.61rem;

    letter-spacing: 0.16em;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.25rem);
    line-height: 0.94;
  }

  .hero-role {
    margin-top: 20px;

    font-size: 0.87rem;
  }

  .hero-rule {
    width: 170px;

    margin: 22px 0;
  }

  .hero-intro {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .hero-meta {
    gap: 7px;

    margin-top: 20px;
  }

  .hero-meta span {
    padding: 7px 10px;

    font-size: 0.63rem;
  }

  .hero-links {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 9px;

    margin-top: 23px;
  }

  .hero-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;

    padding: 0 12px;

    font-size: 0.69rem;
  }

  .hero-linkedin {
    grid-column: 1 / -1;

    width: max-content;
  }

  .hero-portrait {
    height: 410px;
    min-height: 410px;
  }

  .hero-portrait img {
    right: 0;

    width: min(510px, 100vw);

    max-height: 410px;
  }


  /* sections */

  .research-grid,
  .experience-grid,
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    min-height: 0;
  }

  .research-label {
    margin-bottom: 28px;
  }

  .pub-item {
    grid-template-columns: 1fr;

    gap: 8px;

    padding: 23px 0;
  }

  .pub-brief {
    grid-column: auto;
  }

  .conf-item {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .contact-card {
    padding: 25px;

    gap: 30px;
  }
}


/* ============================================================
   25. SMALL MOBILE
   ============================================================ */

@media (max-width: 390px) {

  .hero-copy {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-links {
    grid-template-columns: 1fr;
  }

  .hero-linkedin {
    grid-column: auto;
  }

  .hero-portrait {
    height: 360px;
    min-height: 360px;
  }

  .hero-portrait img {
    right: 0;

    width: min(450px, 108vw);

    max-height: 360px;
  }

  main>section {
    width: calc(100% - 30px);
  }

  .about-focus,
  .research-card,
  .experience-card,
  .award-card {
    padding: 23px;
  }
}


/* ============================================================
   26. SHORT LANDSCAPE
   ============================================================ */

@media (max-height: 540px) and (orientation: landscape) and (max-width: 950px) {

  .hero-copy {
    padding-top: 45px;
  }

  .hero-portrait {
    height: 430px;
    min-height: 430px;
  }

  .hero-portrait img {
    max-height: 430px;
  }
}


/* ============================================================
   27. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

  .reveal-section {
    opacity: 1;

    transform: none;
  }
}

/* ============================================================
   FINAL NAVY BLUE THEME
   DR. MAHESH GANGULY PORTFOLIO
   ============================================================ */

:root {
  --navy-950: #071827;
  --navy-900: #0b2239;
  --navy-850: #0e2a45;
  --navy-800: #123653;
  --navy-700: #17486d;
  --navy-600: #24628f;
  --navy-500: #3679a8;

  --blue-soft: #8fb9d6;
  --blue-pale: #dceaf4;
  --blue-ice: #edf5fa;

  --white: #ffffff;
  --off-white: #f7fafc;

  --text-dark: #13283a;
  --text-mid: #526779;
  --text-light: #d7e2ea;

  --navy-line: #cbdbe6;
}


/* ============================================================
   BODY
   ============================================================ */

html {
  background: #ffffff;
}

body {
  background: #ffffff !important;
  color: var(--text-dark) !important;
}

.wrap {
  background: #ffffff !important;
}


/* ============================================================
   HERO
   Classroom background + professional navy overlay
   ============================================================ */

.hero {
  position: relative !important;
  isolation: isolate !important;

  width: 100% !important;
  min-height: 760px !important;

  overflow: hidden !important;

  color: #ffffff !important;

  background:
    linear-gradient(90deg,
      rgba(5, 21, 35, 0.97) 0%,
      rgba(7, 29, 48, 0.94) 25%,
      rgba(10, 39, 63, 0.84) 44%,
      rgba(12, 47, 75, 0.60) 62%,
      rgba(10, 40, 65, 0.28) 79%,
      rgba(7, 27, 44, 0.08) 100%),
    url("../images/images.jpeg") center center / cover no-repeat !important;
}


/* remove old decorative effects */

.hero::before {
  content: "" !important;

  position: absolute !important;
  inset: 0 !important;

  z-index: 0 !important;

  background:
    linear-gradient(180deg,
      rgba(5, 18, 30, 0.05),
      rgba(5, 18, 30, 0.16)) !important;

  pointer-events: none !important;
}

.hero::after {
  content: none !important;
  display: none !important;
}


/* ============================================================
   HERO CONTENT
   ============================================================ */

.hero-inner {
  position: relative !important;
  z-index: 2 !important;
}

.eyebrow {
  color: #a9c9df !important;
  text-shadow: none !important;
}

.hero h1 {
  color: #ffffff !important;
  text-shadow:
    0 3px 18px rgba(0, 0, 0, 0.16) !important;
}

.hero-role {
  color: #f1f6f9 !important;
  text-shadow: none !important;
}

.hero-intro {
  color: rgba(235, 243, 248, 0.84) !important;
  text-shadow: none !important;
}


/* blue divider */

.hero-rule {
  background: #7eaccb !important;
}


/* ============================================================
   HERO TAGS
   ============================================================ */

.hero-meta span {
  border:
    1px solid rgba(166, 201, 224, 0.42) !important;

  background:
    rgba(7, 31, 51, 0.40) !important;

  color: #e9f2f7 !important;

  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}


/* ============================================================
   HERO BUTTONS
   ============================================================ */

.hero-btn-primary {
  border-color: #2d6e9a !important;

  background: #1d5d89 !important;

  color: #ffffff !important;

  box-shadow:
    0 9px 24px rgba(0, 18, 35, 0.20) !important;
}

.hero-btn-primary:hover {
  border-color: #3c7eaa !important;

  background: #286f9d !important;
}

.hero-btn-secondary {
  border:
    1px solid rgba(221, 236, 246, 0.62) !important;

  background:
    rgba(5, 26, 43, 0.30) !important;

  color: #ffffff !important;
}

.hero-btn-secondary:hover {
  border-color: #ffffff !important;

  background:
    rgba(255, 255, 255, 0.10) !important;
}

.hero-linkedin {
  color: #acd0e7 !important;

  border-bottom-color:
    rgba(172, 208, 231, 0.55) !important;
}

.hero-linkedin:hover {
  color: #ffffff !important;

  border-bottom-color: #ffffff !important;
}


/* ============================================================
   PORTRAIT
   ============================================================ */

.hero-portrait img {
  right: 0 !important;

  filter:
    drop-shadow(-12px 12px 25px rgba(2, 15, 26, 0.14)) !important;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  border-bottom:
    1px solid rgba(103, 150, 182, 0.22) !important;

  background:
    rgba(7, 24, 39, 0.97) !important;

  box-shadow:
    0 4px 18px rgba(5, 22, 37, 0.10) !important;

  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.site-nav a {
  color:
    rgba(224, 236, 244, 0.76) !important;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff !important;
}

.site-nav a::after {
  background: #67a3cb !important;
}


/* ============================================================
   MAIN BACKGROUND
   ============================================================ */

main {
  background: #ffffff !important;
}


/* alternate sections */

main>section {
  border-bottom:
    1px solid var(--navy-line) !important;
}

main>section:nth-child(even) {
  position: relative;

  width: 100% !important;

  padding-left:
    max(24px,
      calc((100vw - 1180px) / 2)) !important;

  padding-right:
    max(24px,
      calc((100vw - 1180px) / 2)) !important;

  background: #f3f7fa !important;
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

section h2 {
  color: var(--navy-900) !important;
}

section h3 {
  color: var(--navy-850) !important;
}


/* subtle heading underline */

section h2::after {
  content: "";

  display: block;

  width: 72px;
  height: 3px;

  margin-top: 17px;

  background: var(--navy-600);
}


/* Awards heading already has long line */

.awards-section h2::after {
  display: none;
}


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

.about-lead {
  color: var(--navy-850) !important;
}

.about-copy {
  color: var(--text-mid) !important;
}

.about-focus {
  border:
    1px solid #d4e1e9 !important;

  border-top:
    4px solid var(--navy-600) !important;

  background: #f8fbfd !important;

  box-shadow:
    0 12px 35px rgba(9, 42, 66, 0.07) !important;
}

.about-focus h3 {
  color: var(--navy-850) !important;
}

.about-focus p {
  color: #526779 !important;

  border-bottom-color:
    #dbe6ed !important;
}

.about-focus strong {
  color: var(--navy-700) !important;
}


/* ============================================================
   PUBLICATIONS
   ============================================================ */

.pub-item {
  border-bottom-color:
    #cfdee8 !important;
}

.pub-item:first-child {
  border-top-color:
    #cfdee8 !important;
}

.pub-title {
  color: var(--navy-850) !important;
}

.pub-title:hover {
  color: var(--navy-600) !important;
}

.pub-outlet {
  color: var(--navy-600) !important;
}

.pub-brief {
  color: #5d7181 !important;
}


/* ============================================================
   RESEARCH CARDS
   ============================================================ */

.research-card {
  border:
    1px solid #cfdee8 !important;

  border-top:
    4px solid var(--navy-600) !important;

  background: #ffffff !important;

  box-shadow:
    0 8px 26px rgba(8, 40, 64, 0.045) !important;
}

.research-card:hover {
  border-color: #abc7d9 !important;

  box-shadow:
    0 18px 40px rgba(8, 40, 64, 0.10) !important;
}

.research-label {
  color: var(--navy-600) !important;
}

.research-card h3 {
  color: var(--navy-850) !important;
}

.research-card p {
  color: #5b6f7e !important;
}


/* ============================================================
   EXPERIENCE CARDS
   ============================================================ */

.experience-card {
  border:
    1px solid #cfdee8 !important;

  border-top:
    4px solid var(--navy-600) !important;

  background: #ffffff !important;

  box-shadow:
    0 8px 26px rgba(8, 40, 64, 0.045) !important;
}

.experience-card:hover {
  border-color: #abc7d9 !important;

  box-shadow:
    0 18px 40px rgba(8, 40, 64, 0.10) !important;
}

.experience-year {
  color: var(--navy-600) !important;
}

.experience-type {
  color: #3c6f91 !important;
}

.experience-card h3 {
  color: var(--navy-850) !important;
}

.experience-card>p:last-child {
  color: #5b6f7e !important;
}


/* ============================================================
   CONFERENCES
   ============================================================ */

.conf-item {
  border-bottom-color:
    #cfdee8 !important;
}

.conf-item:first-child {
  border-top-color:
    #cfdee8 !important;
}

.conf-title {
  color: var(--navy-850) !important;
}

.conf-venue {
  color: var(--navy-600) !important;
}


/* ============================================================
   AWARDS & HONORS
   ============================================================ */

.section-heading-line {
  background:
    #b8cedd !important;
}

.award-row {
  border-bottom:
    1px solid #cbdce7 !important;
}

.award-row h3 {
  color: var(--navy-900) !important;
}

.award-row time {
  color: var(--navy-600) !important;
}

.award-row:hover {
  background:
    linear-gradient(90deg,
      rgba(36, 98, 143, 0.06),
      rgba(36, 98, 143, 0)) !important;
}


/* ============================================================
   LANGUAGES
   ============================================================ */

.lang-row {
  color: var(--navy-850) !important;
}

.lang-row span {
  color: var(--navy-500) !important;
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact-card {
  border:
    1px solid rgba(113, 164, 197, 0.22) !important;

  background:
    linear-gradient(135deg,
      #071b2d 0%,
      #0b2b46 55%,
      #123d5d 100%) !important;

  box-shadow:
    0 20px 50px rgba(5, 29, 48, 0.14) !important;
}

.contact-kicker {
  color: #91bdd8 !important;
}

.contact-card h3 {
  color: #ffffff !important;
}

.contact-card>div:first-child>p:last-child {
  color:
    rgba(224, 237, 245, 0.75) !important;
}

.contact-links a {
  border:
    1px solid rgba(154, 194, 219, 0.25) !important;

  background:
    rgba(255, 255, 255, 0.045) !important;
}

.contact-links a:hover {
  border-color:
    rgba(176, 210, 231, 0.60) !important;

  background:
    rgba(255, 255, 255, 0.09) !important;
}

.contact-links span {
  color: #91bdd8 !important;
}

.contact-links strong {
  color: #ffffff !important;
}

.contact-links small {
  color:
    rgba(218, 233, 242, 0.60) !important;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top:
    1px solid rgba(113, 164, 197, 0.15) !important;

  background: #061725 !important;

  color:
    rgba(215, 230, 239, 0.65) !important;
}

footer a {
  color: #91bdd8 !important;
}

footer a:hover {
  color: #ffffff !important;
}


/* ============================================================
   SELECTION
   ============================================================ */

::selection {
  background: #245f91 !important;
  color: #ffffff !important;
}


/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #edf3f7;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #edf3f7;
  border-radius: 20px;

  background: #456f8c;
}

::-webkit-scrollbar-thumb:hover {
  background: #285a7d;
}


/* ============================================================
   MOBILE NAVY THEME
   ============================================================ */

@media (max-width: 980px) {

  .hero {
    background:
      linear-gradient(180deg,
        rgba(5, 22, 37, 0.94) 0%,
        rgba(7, 31, 51, 0.88) 53%,
        rgba(10, 40, 64, 0.58) 100%),
      url("../images/images.jpeg") center center / cover no-repeat !important;
  }

}


@media (max-width: 650px) {

  main>section:nth-child(even) {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .contact-card {
    border-radius: 0 !important;
  }

}
/* ============================================================
   EXPERIENCE & RESEARCH PROJECTS
   WHITE + NAVY BLUE THEME
   ============================================================ */

.experience-section {
  position: relative;
}

.experience-section .section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}

.experience-section .section-kicker {
  display: block;
  margin-bottom: 12px;

  color: #2d6f9f;

  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-section h2 {
  margin: 0;

  color: #153f63;

  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 1.05;

  letter-spacing: -0.04em;
}

.experience-section .section-heading-line {
  flex: 1;

  height: 1px;
  margin-bottom: 10px;

  background: #c9d9e6;
}


/* GRID */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 22px;
}


/* CARD */

.experience-card {
  position: relative;

  min-height: 285px;

  padding: 34px 34px 36px;

  border: 1px solid #d7e2eb;
  border-top: 4px solid #245f91;

  border-radius: 2px;

  background: #ffffff;

  box-shadow:
    0 10px 30px rgba(24, 63, 99, 0.06);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}


.experience-card:hover {
  transform: translateY(-4px);

  border-color: #b9cfdf;
  border-top-color: #183f63;

  box-shadow:
    0 18px 42px rgba(24, 63, 99, 0.11);
}


/* YEAR / LABEL */

.experience-year {
  display: block;

  margin-bottom: 20px;

  color: #2d6f9f;

  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* TITLE */

.experience-card h3 {
  max-width: 680px;

  margin: 0 0 12px;

  color: #183f63;

  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.32;

  letter-spacing: -0.015em;
}


/* INSTITUTION / TYPE */

.experience-card .experience-type {
  margin: 0 0 17px;

  color: #2d6f9f;

  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}


/* DESCRIPTION */

.experience-card > p:last-child {
  max-width: 680px;

  margin: 0;

  color: #647484;

  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.75;
}


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

@media (max-width: 900px) {

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-card {
    min-height: auto;
  }

  .experience-section .section-heading-line {
    display: none;
  }
}


@media (max-width: 600px) {

  .experience-section .section-heading-row {
    margin-bottom: 30px;
  }

  .experience-section h2 {
    font-size: clamp(2.4rem, 11vw, 3.3rem);
  }

  .experience-card {
    padding: 27px 22px 29px;
  }

  .experience-card h3 {
    font-size: 1.35rem;
  }
}
