/* Site-specific styles for ShrijaSrs */

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.18);
  will-change: transform;
  border-radius: 16px;
  overflow: hidden;
  /* Softer, thinner feathered edge; shift center slightly up to reduce top border */
  -webkit-mask-image: radial-gradient(120% 120% at 50% 50%, #fff 72%, rgba(255,255,255,0.4) 87%, rgba(255,255,255,0) 99%);
          mask-image: radial-gradient(120% 120% at 50% 50%, #fff 72%, rgba(255,255,255,0.4) 87%, rgba(255,255,255,0) 99%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Strong blend with a thinner border; lighten top fade to reduce top border */
  background:
    /* center-out vignette (center slightly higher) */
    radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,0) 52%, rgba(24,24,24,.58) 72%, rgba(0,0,0,.95) 100%),
    /* top and bottom fades (lighter at the very top) */
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.22) 26%, rgba(0,0,0,.40) 64%, rgba(0,0,0,.92) 100%),
    /* side fades */
    linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,.88) 100%);
  /* Softer, lighter inset shadow */
  box-shadow: inset 0 0 200px 60px rgba(0,0,0,.65);
}

.hero__content { position: relative; text-align: center; z-index: 1; }
.hero__title { font-size: clamp(2.25rem, 6vw, 4rem); margin: 0 0 .25rem; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; letter-spacing: .2px; color: #C8A951; }
.hero__byline { color: var(--muted); margin: 0 0 .5rem; font-size: clamp(1rem, 2.5vw, 1.25rem); }
.hero__subtitle { color: var(--muted); margin: 0 0 1.25rem; }

.hero__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: min(92vw, 1100px);
  padding: .5rem 0;
}
.hero__nav a {
  padding: clamp(.4rem, 1.2vw, .6rem) clamp(.7rem, 1.6vw, 1rem);
  border: 1px solid rgba(200,169,81,.55);
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  font-size: clamp(.85rem, 1.6vw, 1rem);
  font-weight: 700;
  color: var(--brand);
  box-shadow: 0 0 0 1px rgba(200,169,81,.2) inset;
}
.hero__nav a:hover { color: #E2C36A; background: rgba(0,0,0,.6); }

.hero__scroll { display: inline-block; margin-top: 1.25rem; color: var(--muted); }

/* Mobile: make hero background contain and avoid cropping */
@media (max-width: 600px) {
  .hero { height: 80vh; }
  .hero__media {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1.22);
    /* Lighter feather for mobile so image stays bright */
    -webkit-mask-image: radial-gradient(130% 130% at 50% 46%, #fff 82%, rgba(255,255,255,0.3) 92%, rgba(255,255,255,0) 99%);
            mask-image: radial-gradient(130% 130% at 50% 46%, #fff 82%, rgba(255,255,255,0.3) 92%, rgba(255,255,255,0) 99%);
  }
  .hero__overlay {
    /* Softer mobile vignette and much lighter shadow */
    background:
      radial-gradient(130% 130% at 50% 48%, rgba(0,0,0,0) 62%, rgba(24,24,24,.35) 82%, rgba(0,0,0,.8) 100%),
      linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,.12) 28%, rgba(0,0,0,.22) 62%, rgba(0,0,0,.6) 100%),
      linear-gradient(to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,.5) 100%);
    box-shadow: inset 0 0 80px 20px rgba(0,0,0,.38);
  }
}

/* STICKY SECTION NAV */
.section-nav { display:none; }

/* Scroll-in nav (hidden at top, visible on scroll) */
.scroll-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(-100%);
  transition: transform .25s ease;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #121212;
}
.scroll-nav .container { display: flex; gap: .75rem; padding: .6rem 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.scroll-nav a { color: var(--text); padding: .35rem .75rem; border-radius: 999px; border: 1px solid #151515; font-size: .9rem; }
.scroll-nav a:hover { color: var(--accent); }
.scroll-nav.is-visible { transform: translateY(0); }

/* Mobile: ensure nav doesn't get cut off; enable horizontal scroll */
@media (max-width: 480px) {
  .scroll-nav { overflow-x: visible; }
  .scroll-nav .container { flex-wrap: wrap; justify-content: center; gap: .5rem; padding: .5rem .6rem; }
  .scroll-nav a { white-space: normal; font-size: .85rem; padding: .35rem .65rem; }
}

/* SECTIONS */
.section { padding: 4rem 0; }
.section h2 { margin-top: 0; font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.muted { color: var(--muted); }

/* Main page section titles: color + hero font */
#about h2,
#services h2,
#articles h2,
#research h2 {
  color: #CC5500;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .2px;
}

/* CARDS GRID */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid #121212;
  border-radius: 12px;
  padding: 1rem;
}
.card__thumb { border-radius: 10px; overflow: hidden; border: 1px solid #121212; background:#0b0b0b; margin-bottom: .75rem; aspect-ratio: 4/5; }
.card__thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card h3 { margin-top: 0; }
.cards .card h3 { margin: 0 0 .35rem; }
.cards .card h3 a {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--brand);
  text-decoration: none;
}
.cards .card h3 a:hover { color: #E2C36A; }

/* POSTS */
.posts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.posts li { background: var(--card); border: 1px solid #121212; border-radius: 12px; padding: 1rem; }

/* SMALL ENHANCEMENTS */
html { scroll-behavior: smooth; }

/* Research lists */
#research ul { margin: 0 0 1rem 1.1rem; }
#research li { margin-bottom: .5rem; }
#research h3, #research h4 { margin-bottom: .5rem; }

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.gallery figure { margin: 0; background: var(--card); border: 1px solid #121212; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: auto; display: block; }
.gallery figcaption { padding: .5rem .75rem; color: var(--muted); }

/* Forms & Buttons */
.form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form input:not([type="checkbox"]):not([type="radio"]), .form textarea, .form select {
  width: 100%;
  background: #0b0b0b;
  border: 1px solid #121212;
  border-radius: 8px;
  color: var(--text);
  padding: .6rem .7rem;
}
.form__row { margin-bottom: .9rem; }

.form input[type="checkbox"] { width: auto; margin-right: .5rem; vertical-align: middle; }

.btn { display: inline-block; padding: .6rem 1rem; border-radius: 10px; border: 1px solid #121212; background: #161616; color: var(--text); }
.btn:hover { background: #1d1d1d; color: var(--accent); }
.btn-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn--primary { }
.btn--secondary { background: #0e0e0e; }

/* Portfolio muted background */
.page-portfolio {
  --bg-overlay: rgba(0,0,0,.6);
  position: relative;
}
.page-portfolio::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('../images/main.jpg') center/cover no-repeat;
  filter: blur(4px) saturate(0.8);
  opacity: 0.7;
  z-index: -1;
}
.page-portfolio #content { position: relative; }
@media (max-width: 600px) {
  .page-portfolio::before {
    background: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('../images/main.jpg') center top / contain no-repeat;
  }
}
.page-portfolio h1,
.page-portfolio h2,
.page-inner h1,
.page-inner h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .2px;
  color: #C8A951;
  font-size: clamp(1.125rem, 3vw, 2rem);
}

/* Research page body font (not headings) */
.page-research p,
.page-research li,
.page-research ul { font-family: Corbel, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }

/* Portfolio body text scales with viewport and stays smaller than headings */
.page-portfolio p,
.page-portfolio li { font-size: clamp(.95rem, 2vw, 1.1rem); line-height: 1.65; }
.page-portfolio ul { margin: .75rem 0 1.25rem 1.1rem; }

/* Split layout (image + content) for About */
#about .split { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
#about .split__media { width: 100%; max-width: 320px; aspect-ratio: 4/5; }
#about .split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid #121212; }
#about .split__content { display: grid; align-content: start; }

@media (min-width: 900px) {
  #about .split { grid-template-columns: auto 1fr; gap: 1.25rem; }
}

/* Alternating split blocks for inner About page */
.about-split { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; margin-top: 1.5rem; }
.about-split__media { width: 100%; max-width: 320px; aspect-ratio: 4/5; }
.about-split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid #121212; }
.about-split__content { display: grid; align-content: start; }

@media (min-width: 900px) {
  .about-split { grid-template-columns: auto 1fr; gap: 1.25rem; }
  .about-split--reverse { grid-template-columns: 1fr auto; }
}


/* Global paragraph font: Calibri (headers/titles remain as defined above) */
p { font-family: Calibri, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }

/* Ensure Research page paragraphs also use Calibri (lists keep their existing font) */
.page-research p { font-family: Calibri, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }

