/**
 * File: style/main.css
 * Deskripsi: Redesign UI Clean & Proporsional — Profil Guru Besar
 * Tema: Modern Academic, Minimal, Professional
 */

/* ============================================
   1. CSS VARIABLES (ROOT)
   ============================================ */
:root {
  --primary-color: #1e3a5f;
  --primary-light: #2d5a87;
  --primary-accent: #c9a227;
  --primary-accent-light: rgba(201, 162, 39, 0.12);

  --text-dark: #0f1729;
  --text-medium: #4a5568;
  --text-light: #718096;

  --bg-body: #f5f7fa;
  --bg-surface: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 8px; /* Dikurangi dari 999px agar tidak rounded full */

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.13);

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;

  --max-width: 1100px;
}

/* ============================================
   2. RESET & GLOBAL STYLES
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  color: var(--text-medium);
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-accent);
  margin-bottom: var(--spacing-xs);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  margin-bottom: var(--spacing-xs);
}

.section-title p {
  max-width: 560px;
  margin: var(--spacing-xs) auto 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-normal);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Mobile-first: nav hidden by default */
.nav-links {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  flex-direction: column;
  padding: var(--spacing-md);
  gap: var(--spacing-xs);
  border-top: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-medium);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================
   5. MAIN SECTIONS
   ============================================ */
main {
  padding-top: 68px;
}

section {
  padding: var(--spacing-3xl) 0;
}

/* ============================================
   6. HERO SECTION
   ============================================ */
#hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  background: linear-gradient(
    160deg,
    var(--bg-surface) 0%,
    var(--bg-body) 100%
  );
  padding: var(--spacing-3xl) 0;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  order: -1;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 260px;
  background: white;
  padding: 8px;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle accent line at bottom */
.hero-image-card::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-accent),
    transparent
  );
  border-radius: var(--radius-pill);
  opacity: 0.6;
  transition: all var(--transition-normal);
}

.hero-image-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
}

.hero-image-card:hover::after {
  width: 70%;
  opacity: 1;
}

.hero-image-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--radius-xl) - 4px);
  display: block;
  transition: filter var(--transition-slow);
}

.hero-image-card:hover img {
  filter: brightness(1.03);
}

/* Hero Text */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary-accent-light);
  color: var(--primary-accent);
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-title {
  margin: 4px 0;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--primary-light);
  font-weight: 600;
}

.hero-position {
  font-size: 0.9rem;
  color: var(--text-light);
}

.hero-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-medium);
  border-left: 3px solid var(--primary-accent);
  padding-left: var(--spacing-sm);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-xs);
  align-items: stretch;
}

.hero-cta .btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 0.85rem;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   8. ABOUT SECTION
   ============================================ */
#about {
  background: var(--bg-surface);
}

.about-wrapper {
  width: 100%;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-medium);
  margin-bottom: 0;
  text-align: justify;
}

.about-quote-card {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
}

.about-quote-mark {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-accent);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.about-quote-source {
  margin-top: var(--spacing-md);
  text-align: center;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.about-link-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
  margin-top: var(--spacing-md);
}

.story-link-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(30, 58, 95, 0.14);
  background: rgba(30, 58, 95, 0.06);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.story-link-inline:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Stats Grid — 2 col by default, 4 col on desktop */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.stat-card {
  background: var(--bg-body);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

.about-section-title {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-accent);
}

.about-section-title h3 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-dark);
}

/* Timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding-left: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-left: 2px solid var(--border-color);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--primary-accent);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

.timeline-item h4 {
  margin-bottom: 4px;
  color: var(--text-dark);
  font-size: 1rem;
}

.timeline-item .institution,
.timeline-item .edu-university {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 4px;
}

.timeline-item .year {
  font-size: 0.82rem;
  color: var(--primary-accent);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ============================================
   STORY PAGE
   ============================================ */
.story-page {
  padding-top: calc(68px + var(--spacing-xl));
  padding-bottom: var(--spacing-3xl);
  background:
    radial-gradient(
      circle at top left,
      rgba(201, 162, 39, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.story-page-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.story-article-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  isolation: isolate;
}

.story-page-intro {
  padding: 0;
  position: relative;
  background: transparent;
}

.story-page-intro::after {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin-top: var(--spacing-lg);
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--primary-accent),
    rgba(30, 58, 95, 0.5)
  );
}

.story-page-intro h1 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary-color);
  max-width: 14ch;
}

.story-page-intro p + p {
  margin-top: var(--spacing-sm);
}

.story-page-dek {
  font-size: 1.1rem;
  line-height: 1.82;
  color: var(--text-medium);
  max-width: 66ch;
}

.story-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: var(--spacing-md);
  font-size: 0.76rem;
  color: var(--primary-color);
  letter-spacing: 0.08em;
}

.story-page-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(30, 58, 95, 0.06);
  border: 1px solid rgba(30, 58, 95, 0.08);
  text-transform: uppercase;
}

.story-page-illustration {
  padding: 18px;
  margin: 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 24px;
}

.story-page-illustration img {
  width: 100%;
  display: block;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(15, 23, 41, 0.12);
}

.story-page-illustration figcaption {
  padding: 14px 6px 0;
  font-size: 0.82rem;
  text-align: left;
  color: var(--text-light);
  max-width: 56ch;
}

.story-article {
  padding: 0;
  max-width: none;
  width: 100%;
}

.story-article p {
  font-size: 1.04rem;
  line-height: 1.95;
  color: var(--text-medium);
  text-align: justify;
}

.story-article p + p {
  margin-top: 1.1rem;
}

.story-article .story-lead {
  font-size: 1.18rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.story-article .story-lead::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.2rem;
  line-height: 0.82;
  padding-right: 10px;
  padding-top: 8px;
  color: var(--primary-accent);
}

@media (max-width: 767px) {
  .story-page {
    padding-top: calc(68px + var(--spacing-md));
  }

  .story-page-shell {
    max-width: 100%;
  }

  .story-article-card {
    gap: 22px;
    padding: 0;
  }

  .story-page-intro h1 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    max-width: none;
  }

  .story-page-dek {
    font-size: 1rem;
    line-height: 1.8;
  }

  .story-page-illustration {
    padding: 12px;
  }

  .story-page-illustration img {
    max-height: 280px;
  }

  .story-page-meta {
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
  }

  .story-page-meta span {
    width: fit-content;
    max-width: 100%;
  }

  .story-article p {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .story-article .story-lead {
    font-size: 1.05rem;
  }

  .story-article .story-lead::first-letter {
    font-size: 3rem;
    padding-right: 8px;
    padding-top: 6px;
  }

  .publication-card {
    padding: 18px;
    border-radius: 18px;
  }

  .publication-card h4 {
    font-size: 1rem;
  }

  .publication-meta-chip {
    min-height: 30px;
    font-size: 0.74rem;
  }

  .publication-link {
    width: 100%;
    justify-content: center;
  }

  .research-card {
    border-radius: 18px;
  }
}

/* ============================================
   9. RESEARCH & PUBLICATIONS SECTION
   ============================================ */
#research {
  background: var(--bg-body);
}

.publications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.publication-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    #ffffff 100%
  );
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(30, 58, 95, 0.08);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  height: 100%;
}

.publication-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(15, 23, 41, 0.12);
  border-color: var(--primary-color);
}

.publication-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.publication-type {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(15, 23, 41, 0.04);
  color: var(--text-medium);
  font-size: 0.69rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
  border: 1px solid rgba(15, 23, 41, 0.06);
  text-align: center;
}

.publication-card h4 {
  line-height: 1.38;
  color: var(--text-dark);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publication-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 41, 0.035);
  border: 1px solid rgba(15, 23, 41, 0.06);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-medium);
}

.publication-journal {
  font-size: 0.88rem;
  color: var(--primary-light);
  font-weight: 700;
  line-height: 1.55;
}

.publication-abstract {
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.72;
}

.publication-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: auto;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 41, 0.035);
  border: 1px solid rgba(15, 23, 41, 0.06);
  transition:
    gap var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.publication-link:hover {
  gap: 12px;
  background: var(--primary-color);
  color: #fff;
}

/* Research Active */
.research-section {
  margin-top: var(--spacing-3xl);
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.research-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(30, 58, 95, 0.08);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  height: 100%;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(15, 23, 41, 0.1);
  border-color: var(--primary-color);
}

.research-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 41, 0.04);
  color: var(--text-medium);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(15, 23, 41, 0.06);
}

.research-card h4 {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.research-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: rgba(245, 247, 250, 0.85);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 58, 95, 0.06);
}

.research-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(30, 58, 95, 0.12);
}

.research-stat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.research-stat .stat-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.research-stat .stat-label i {
  font-size: 1rem;
  color: var(--primary-color);
}

.research-stat .stat-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

.research-description {
  font-size: 0.86rem;
  color: var(--text-medium);
  line-height: 1.65;
}

/* ============================================
   10. AWARDS SECTION
   ============================================ */
#awards {
  background: var(--bg-surface);
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.award-item {
  background: var(--bg-body);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  height: 100%;
}

.award-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.award-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-xs);
}

.award-item-icon i {
  font-size: 1.5rem;
  color: var(--primary-accent);
}

.award-item h4 {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.4;
}

.award-giver {
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.award-desc {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.65;
  flex: 1;
}

/* ============================================
   11. GALLERY SECTION
   ============================================ */
#gallery {
  background: var(--bg-body);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--border-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 41, 0.92) 0%,
    rgba(15, 23, 41, 0.3) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  text-align: left;
  margin-bottom: 2px;
}

.gallery-meta {
  font-size: 0.72rem !important;
  color: var(--primary-accent) !important;
  font-weight: 600;
}

/* ============================================
   12. CONTACT / FOOTER SECTION
   ============================================ */
footer {
  background: var(--text-dark);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-contact h3,
.footer-portal h3 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary-accent);
}

.contact-text strong {
  display: block;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.contact-text a,
.contact-text span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.contact-text a:hover {
  color: white;
}

/* Portal Links */
.website-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xs);
}

.website-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 12px var(--spacing-md);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.website-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.website-link-icon {
  font-size: 1.1rem;
  color: var(--primary-accent);
  flex-shrink: 0;
}

.website-link span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
}

/* ============================================
   13. LOADING SPINNER
   ============================================ */
.loading-spinner {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================
   14. RESPONSIVE — MOBILE FIRST
   ============================================ */
/* ≥ 480px */
@media (min-width: 480px) {
  .hero-image img {
    width: 240px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≥ 768px */
@media (min-width: 768px) {
  /* Nav */
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: var(--spacing-md);
  }
  .mobile-menu-btn {
    display: none;
  }

  /* Hero */
  .hero-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
  }
  .hero-image {
    order: 1; /* image goes right on desktop */
  }
  .hero-text {
    order: 0;
  }
  .hero-image-card {
    max-width: 420px;
  }
  .hero-image-card img {
    width: 100%;
  }
  .hero-cta {
    flex-direction: row;
  }
  .hero-cta .btn {
    flex: none;
    padding: 13px 28px;
    font-size: 0.9rem;
  }

  /* About */
  .about-link-row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
  }

  /* Research */
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .research-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  /* Awards */
  .awards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-wrapper {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--spacing-3xl);
  }
  .website-links {
    grid-template-columns: 1fr;
  }
}

/* ≥ 1024px */
@media (min-width: 1024px) {
  .hero-image img {
    max-width: 380px;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* ============================================
   15. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   16. UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-sm {
  margin-top: var(--spacing-sm);
}
.mt-md {
  margin-top: var(--spacing-md);
}
.mt-lg {
  margin-top: var(--spacing-lg);
}
.mt-xl {
  margin-top: var(--spacing-xl);
}
.mb-sm {
  margin-bottom: var(--spacing-sm);
}
.mb-md {
  margin-bottom: var(--spacing-md);
}
.mb-lg {
  margin-bottom: var(--spacing-lg);
}
.mb-xl {
  margin-bottom: var(--spacing-xl);
}
