/* ============================================
   DR. RAMANKUTTY P.V. - PERSONAL HOMEPAGE
   Design System & Styles
   Theme: Forest Green with Traditional Sanskrit Motifs
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Forest Green Theme */
  --forest-darkest: #0f2920;
  --forest-dark: #1a3a2f;
  --forest-primary: #2d5a4a;
  --forest-light: #4a7c6b;
  --forest-pale: #6b9a8a;

  /* Earth & Gold Accents */
  --earth-gold: #d4a84b;
  --earth-gold-light: #e8c878;
  --earth-cream: #f5f1e6;
  --earth-warm: #faf8f3;
  --earth-brown: #8b6b4a;

  /* Text Colors */
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6a6a6a;
  --text-on-dark: #f5f1e6;

  /* Gradients */
  --gradient-forest: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-primary) 100%);
  --gradient-gold: linear-gradient(135deg, var(--earth-gold) 0%, var(--earth-gold-light) 100%);
  --gradient-hero: linear-gradient(180deg, rgba(15, 41, 32, 0.95) 0%, rgba(45, 90, 74, 0.85) 100%);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.18);
  --shadow-gold: 0 4px 20px rgba(212, 168, 75, 0.3);

  /* Typography */
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', 'Merriweather', Georgia, serif;
  --font-sanskrit: 'Siddhanta', 'Noto Sans Devanagari', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-xxl: 8rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--earth-warm);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--earth-gold);
  color: var(--forest-darkest);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--forest-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  color: var(--forest-dark);
}

a {
  color: var(--forest-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--earth-gold);
}

/* Sanskrit Text */
.sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 1.2em;
  color: var(--earth-gold);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--earth-cream);
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--earth-gold);
}

.text-forest {
  color: var(--forest-primary);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-header h2 {
  display: inline-block;
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  font-style: italic;
  margin-top: var(--space-sm);
  font-size: 1.1rem;
}

/* ============================================
   DECORATIVE ELEMENTS - TRADITIONAL MOTIFS
   ============================================ */

/* Om Symbol Divider */
.om-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.om-divider::before,
.om-divider::after {
  content: '';
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--earth-gold), transparent);
}

.om-symbol {
  font-size: 2rem;
  color: var(--earth-gold);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(212, 168, 75, 0.3);
  }

  50% {
    text-shadow: 0 0 20px rgba(212, 168, 75, 0.6);
  }
}

/* Lotus Border Pattern */
.lotus-border {
  position: relative;
  padding: var(--space-lg);
}

.lotus-border::before {
  content: '❀';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-size: 1.5rem;
  color: var(--earth-gold);
  background: var(--earth-warm);
  padding: 0 var(--space-sm);
}

/* Diya/Lamp Icon */
.diya-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-gold);
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: var(--shadow-gold);
}

/* Ornamental Corners */
.ornate-frame {
  position: relative;
  border: 2px solid var(--earth-gold);
  border-radius: var(--radius-md);
}

.ornate-frame::before,
.ornate-frame::after {
  content: '✦';
  position: absolute;
  color: var(--earth-gold);
  font-size: 1rem;
}

.ornate-frame::before {
  top: -8px;
  left: -8px;
}

.ornate-frame::after {
  bottom: -8px;
  right: -8px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 58, 47, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: var(--space-xs) 0;
  box-shadow: var(--shadow-medium);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--earth-gold);
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo span {
  color: var(--text-on-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  display: inline-block;
  color: var(--text-on-dark);
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--earth-gold);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--earth-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--earth-gold);
  transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-forest);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../HeroPortrait/HeroPortrait.png?v=2');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(2px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

/* Decorative Pattern Overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 50%, var(--earth-gold) 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, var(--earth-gold) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 900px;
}

/* Hero Portrait with elegant multi-ring frame */
.hero-portrait {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 2%;
  padding: 10px;
  background-color: var(--forest-darkest);
  border: 6px solid var(--earth-gold);
  box-shadow:
    0 0 0 4px rgba(15, 41, 32, 0.9),
    0 0 0 10px rgba(212, 168, 75, 0.35),
    0 0 0 14px rgba(15, 41, 32, 0.5),
    0 0 0 18px rgba(212, 168, 75, 0.15),
    0 0 50px rgba(212, 168, 75, 0.4),
    0 0 100px rgba(212, 168, 75, 0.2);
  margin-bottom: var(--space-lg);
  animation: float 6s ease-in-out infinite, glow-pulse 4s ease-in-out infinite;
  filter: contrast(1.08) brightness(1.03) saturate(1.05);
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
}

.hero-portrait:hover {
  transform: scale(1.08) translateY(-8px);
  box-shadow:
    0 0 0 4px rgba(15, 41, 32, 1),
    0 0 0 12px rgba(212, 168, 75, 0.5),
    0 0 0 16px rgba(15, 41, 32, 0.6),
    0 0 0 20px rgba(212, 168, 75, 0.2),
    0 0 70px rgba(212, 168, 75, 0.6),
    0 0 120px rgba(212, 168, 75, 0.3);
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow:
      0 0 0 8px rgba(212, 168, 75, 0.2),
      0 0 40px rgba(212, 168, 75, 0.4),
      0 0 80px rgba(212, 168, 75, 0.2);
  }

  50% {
    box-shadow:
      0 0 0 12px rgba(212, 168, 75, 0.3),
      0 0 60px rgba(212, 168, 75, 0.5),
      0 0 100px rgba(212, 168, 75, 0.3);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--earth-gold);
  margin-bottom: var(--space-sm);
  opacity: 0.9;
  letter-spacing: 2px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text-on-dark);
  margin-bottom: var(--space-xs);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--earth-gold-light);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-on-dark);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  font-style: italic;
}

.hero-verse {
  background: rgba(212, 168, 75, 0.1);
  border: 1px solid rgba(212, 168, 75, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-verse .sanskrit {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.hero-verse .translation {
  font-size: 0.95rem;
  color: rgba(245, 241, 230, 0.8);
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--forest-darkest);
  border-color: var(--earth-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  background: var(--earth-gold-light);
  color: var(--forest-darkest);
}

.btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

.btn-secondary:hover {
  background: var(--text-on-dark);
  color: var(--forest-dark);
  transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-on-dark);
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ============================================
   BIOGRAPHY SECTION
   ============================================ */
.bio-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.bio-image-wrapper {
  position: relative;
}

.bio-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  transition: transform var(--transition-normal);
}

.bio-image:hover {
  transform: scale(1.02);
}

.bio-image-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--earth-gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.bio-content h3 {
  color: var(--forest-dark);
  margin-bottom: var(--space-md);
}

.bio-summary {
  font-size: 1.1rem;
  line-height: 1.9;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.bio-details {
  display: none;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(212, 168, 75, 0.3);
}

.bio-details.expanded {
  display: block;
  animation: fadeIn 0.5s ease;
}

.bio-details h4 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--earth-gold);
  font-size: 1.25rem;
  border-left: 3px solid var(--earth-gold);
  padding-left: var(--space-sm);
}

.bio-details h4:first-child {
  margin-top: 0;
}

.bio-detail-section {
  margin-bottom: var(--space-lg);
}

.bio-detail-section p {
  margin-bottom: var(--space-sm);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: 2.5rem;
  background: var(--forest-dark);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(212, 168, 75, 0.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--earth-gold);
  display: block;
  text-shadow: 0 0 15px rgba(212, 168, 75, 0.4);
}

.stat-item:hover .stat-number {
  text-shadow: 0 0 25px rgba(212, 168, 75, 0.6);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(245, 241, 230, 0.9);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.education-card {
  display: flex;
  gap: 1.5rem;
  background: var(--forest-dark);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(212,168,75,0.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.education-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,168,75,0.1) 0%, transparent 100%);
  pointer-events: none;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212,168,75,0.2);
  border-color: rgba(212,168,75,0.5);
}

.education-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid rgba(212,168,75,0.3);
}

.education-content {
  flex: 1;
  color: white;
  min-width: 0;
}

.education-year {
  display: inline-block;
  background: rgba(212,168,75,0.1);
  color: var(--earth-gold);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.education-degree {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--earth-cream);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

.education-institution {
  color: #a9b5af;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.education-thesis,
.education-distinction {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.education-distinction {
  color: var(--earth-gold);
  font-style: normal;
  font-weight: 500;
}

/* Positions Container */
.positions-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--forest-primary);
}

.positions-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--forest-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--earth-gold);
  display: inline-block;
}

.positions-list {
  list-style: none;
  columns: 1;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .positions-list {
    columns: 2;
  }
}

.positions-list li {
  padding: var(--space-sm) 0;
  color: var(--forest-dark);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
  break-inside: avoid;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.position-bullet {
  color: var(--earth-gold);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--earth-gold) 0%, var(--forest-light) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: calc(var(--space-xl) + 20px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: calc(var(--space-xl) + 20px);
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--earth-gold);
  border: 4px solid var(--earth-warm);
  border-radius: 50%;
  top: var(--space-md);
  box-shadow: var(--shadow-gold);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: var(--forest-dark);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(212,168,75,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: left;
  min-width: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
}

.timeline-content::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--earth-gold);
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: 0;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: 0;
}

.timeline-content:hover {
  transform: translateY(-5px);
  background: var(--forest-darkest);
  border-color: var(--earth-gold);
  box-shadow: 0 10px 30px rgba(212,168,75,0.2);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  color: var(--earth-gold);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212,168,75,0.2);
  padding-bottom: 0.5rem;
  background: transparent;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

.timeline-desc {
  font-size: 0.95rem;
  color: #a9b5af;
  margin: 0;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */
.publications-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: var(--space-xs) var(--space-md);
  background: transparent;
  border: 2px solid var(--forest-light);
  border-radius: var(--radius-xl);
  color: var(--forest-primary);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--forest-primary);
  color: white;
  border-color: var(--forest-primary);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.book-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.book-cover {
  position: relative;
  aspect-ratio: 2/3;
  background: var(--gradient-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.book-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-on-dark);
  position: relative;
  background: linear-gradient(145deg, #1a3a2f 0%, #0f2920 40%, #1a3a2f 100%);
  overflow: hidden;
}

/* Elegant book spine effect */
.book-cover-placeholder::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.4) 0%, 
    rgba(212,168,75,0.3) 30%,
    rgba(0,0,0,0.2) 100%);
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}

/* Decorative border frame */
.book-cover-placeholder::after {
  content: '';
  position: absolute;
  inset: 12px 12px 12px 28px;
  border: 2px solid rgba(212,168,75,0.4);
  border-radius: 4px;
  pointer-events: none;
}

/* Corner ornaments */
.book-cover-placeholder .ornament {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--earth-gold);
  opacity: 0.5;
}

.book-cover-placeholder .ornament-tl { top: 20px; left: 36px; border-right: none; border-bottom: none; }
.book-cover-placeholder .ornament-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.book-cover-placeholder .ornament-bl { bottom: 20px; left: 36px; border-right: none; border-top: none; }
.book-cover-placeholder .ornament-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.book-cover-placeholder .icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  position: relative;
  z-index: 1;
}

.book-cover-placeholder .title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--earth-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  padding: 0 1rem;
}

.book-cover-placeholder .author {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(245,241,230,0.7);
  margin-top: var(--space-sm);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.book-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--earth-gold);
  color: var(--forest-darkest);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Published Date Badge */
.book-date-badge {
  padding: 0.85rem var(--space-sm);
  text-align: center;
  background: linear-gradient(135deg, var(--forest-darkest), var(--forest-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.book-date-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--earth-gold), transparent);
}

.book-pub-date {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--earth-gold);
  letter-spacing: 1.5px;
  font-weight: 500;
}

.book-role {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(245, 241, 230, 0.65);
  font-style: italic;
  letter-spacing: 0.5px;
}

.book-info {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1.1rem;
  color: var(--forest-dark);
  margin-bottom: var(--space-xs);
}

.book-category {
  font-size: 0.85rem;
  color: var(--earth-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.book-description {
  font-size: 0.9rem;
  color: var(--forest-dark);
  opacity: 0.85;
  margin-top: var(--space-xs);
  font-style: italic;
}

/* ============================================
   AWARDS SECTION
   ============================================ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.award-card {
  display: flex;
  gap: var(--space-md);
  background: var(--forest-dark);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(212,168,75,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.award-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,168,75,0.1) 0%, transparent 100%);
  pointer-events: none;
}

.award-card:hover {
  transform: translateY(-5px);
  border-color: var(--earth-gold);
  box-shadow: 0 10px 30px rgba(212,168,75,0.2);
}

.award-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid rgba(212,168,75,0.3);
  box-shadow: none;
  z-index: 1;
}

.award-content {
  flex: 1;
  z-index: 1;
  min-width: 0;
}

.award-year {
  display: inline-block;
  color: var(--earth-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  background: transparent;
  padding: 0;
}

.award-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--earth-cream);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

.award-org {
  font-size: 0.9rem;
  color: #a9b5af;
  font-style: italic;
  overflow-wrap: break-word;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 41, 32, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.lightbox-close:hover {
  background: var(--earth-gold);
  color: var(--forest-darkest);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.lightbox-nav:hover {
  background: var(--earth-gold);
  color: var(--forest-darkest);
}

.lightbox-prev {
  left: var(--space-lg);
}

.lightbox-next {
  right: var(--space-lg);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.contact-info {
  padding: var(--space-xl);
  background: var(--gradient-forest);
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
}

.contact-info h3 {
  color: var(--earth-gold);
  margin-bottom: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 168, 75, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-text {
  flex: 1;
}

.contact-label {
  font-size: 0.85rem;
  color: rgba(245, 241, 230, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  color: var(--text-on-dark);
  font-size: 1.1rem;
}

.contact-quote {
  padding: var(--space-xl);
}

.quote-text {
  font-family: var(--font-sanskrit);
  font-size: 1.8rem;
  color: var(--earth-gold);
  text-align: center;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.quote-translation {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--forest-darkest);
  color: var(--text-on-dark);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-md);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--earth-gold);
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-nav a {
  color: rgba(245, 241, 230, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--earth-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.copyright {
  font-size: 0.9rem;
  color: rgba(245, 241, 230, 0.6);
}

.footer-credits {
  font-size: 0.85rem;
  color: rgba(245, 241, 230, 0.5);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 {
  transition-delay: 0.1s;
}

.animate-delay-2 {
  transition-delay: 0.2s;
}

.animate-delay-3 {
  transition-delay: 0.3s;
}

.animate-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: var(--space-lg);
  background: var(--gradient-forest);
  color: white;
}

.modal-header h3 {
  color: var(--earth-gold);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.modal-close:hover {
  background: var(--earth-gold);
  color: var(--forest-darkest);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  .bio-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .bio-image-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }

  .bio-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--forest-dark);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-xs);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: var(--space-md) !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .publications-grid {
    grid-template-columns: 1fr;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .bio-stats {
    grid-template-columns: 1fr;
  }

  .footer-content,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-portrait {
    width: 140px;
    height: 140px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .award-card {
    flex-direction: column;
    text-align: center;
  }

  .award-icon {
    margin: 0 auto;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  /* Force all animated elements to be visible */
  body,
  .animate-on-scroll,
  .timeline-item,
  .bio-details {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    animation: none !important;
  }

  /* Hide interactive/non-print elements */
  .navbar,
  .scroll-indicator,
  .scroll-progress,
  .hero-buttons,
  .lightbox,
  .modal,
  .back-to-top,
  .filter-btn,
  .publications-filter,
  #bioToggle {
    display: none !important;
  }

  /* Show expanded biography */
  .bio-details {
    display: block !important;
    max-height: none !important;
  }

  /* Hero section adjustments */
  .hero {
    min-height: auto !important;
    padding: 2rem !important;
    page-break-after: always;
  }

  .hero-bg,
  .hero-overlay,
  .hero-pattern {
    position: relative !important;
  }

  /* Section adjustments */
  .section {
    padding: 2rem 0 !important;
    page-break-inside: avoid;
  }

  .section-header {
    page-break-after: avoid;
  }

  /* Publications grid for print */
  .publications-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
  }

  .book-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Gallery grid for print */
  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
  }

  .gallery-item {
    page-break-inside: avoid;
  }

  /* Timeline adjustments */
  .timeline-item {
    page-break-inside: avoid;
  }

  /* Awards grid for print */
  .awards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .award-card {
    page-break-inside: avoid;
  }

  /* Contact section */
  .contact-wrapper {
    page-break-inside: avoid;
  }

  /* Education grid for print */
  .education-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .education-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .positions-container {
    page-break-inside: avoid;
  }

  .positions-list {
    columns: 1 !important;
  }

  /* Ensure images print */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Remove hover effects */
  * {
    transition: none !important;
  }
}

/* ============================================
   PREMIUM IMAGE ENHANCEMENTS
   ============================================ */

/* Global Image Enhancement */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Enhanced Gallery Images */
.gallery-item img {
  filter: contrast(1.02) saturate(1.05) brightness(1.02);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  filter: contrast(1.08) saturate(1.1) brightness(1.05);
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(212, 168, 75, 0.1) 0%,
      transparent 50%,
      rgba(45, 90, 74, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Enhanced Bio Image */
.bio-image {
  filter: contrast(1.03) brightness(1.02) saturate(1.05);
}

.bio-image:hover {
  filter: contrast(1.05) brightness(1.03) saturate(1.08);
}

/* Book Cover Image Enhancement */
.book-cover img {
  filter: contrast(1.05) saturate(1.08) brightness(1.02);
  transition: all 0.5s ease;
}

.book-card:hover .book-cover img {
  filter: contrast(1.08) saturate(1.12) brightness(1.05);
  transform: scale(1.05);
}

/* ============================================
   PAGE LOAD ANIMATIONS
   ============================================ */
body {
  opacity: 0;
  animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Hero Elements Staggered Animation */
.hero-portrait {
  animation: heroPortraitEnter 1s ease forwards, float 6s ease-in-out 1s infinite, glow-pulse 4s ease-in-out 1s infinite;
}

@keyframes heroPortraitEnter {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-sanskrit {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.3s forwards;
}

.hero-title {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.5s forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.7s forwards;
}

.hero-tagline {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.9s forwards;
}

.hero-verse {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 1.1s forwards;
}

.hero-buttons {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 1.3s forwards;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SHIMMER LOADING EFFECT
   ============================================ */
.shimmer {
  background: linear-gradient(90deg,
      var(--earth-cream) 0%,
      var(--earth-warm) 50%,
      var(--earth-cream) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(26, 58, 47, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 168, 75, 0.2);
}

/* Enhanced Hero Verse Glass Effect */
.hero-verse {
  background: rgba(212, 168, 75, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 168, 75, 0.25);
}

/* ============================================
   ADDITIONAL MICRO-INTERACTIONS
   ============================================ */

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Card Shine Effect */
.book-card::before,
.award-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.book-card {
  position: relative;
}

.award-card {
  position: relative;
  overflow: hidden;
}

.book-card:hover::before,
.award-card:hover::before {
  left: 100%;
}

/* Timeline Dot Pulse */
.timeline-dot {
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(212, 168, 75, 0);
  }
}

/* Stat Number Glow */
.stat-number {
  text-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
  transition: text-shadow 0.3s ease;
}

.stat-item:hover .stat-number {
  text-shadow: 0 0 30px rgba(212, 168, 75, 0.5);
}

/* Award Icon Bounce */
.award-icon {
  transition: transform 0.3s ease;
}

.award-card:hover .award-icon {
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* ============================================
   DECORATIVE ORNAMENTS
   ============================================ */

/* Section Corner Ornaments */
.section::before,
.section::after {
  content: '✦';
  position: absolute;
  font-size: 1.5rem;
  color: rgba(212, 168, 75, 0.2);
  pointer-events: none;
}

.section::before {
  top: 2rem;
  left: 2rem;
}

.section::after {
  bottom: 2rem;
  right: 2rem;
}

/* Floating Particles Animation (Subtle) */
.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(212, 168, 75, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 90% 80%, rgba(212, 168, 75, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(212, 168, 75, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 80px 80px;
  animation: floatParticles 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatParticles {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50px);
  }
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-gold);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* ============================================
   TYPOGRAPHY ENHANCEMENTS
   ============================================ */

/* Malayalam/Sanskrit Text Styling */
.sanskrit,
[lang="ml"],
[lang="sa"] {
  font-family: var(--font-sanskrit);
  letter-spacing: 0.5px;
}

/* Enhanced Quote Styling */
.quote-text {
  position: relative;
}

.quote-text::before,
.quote-text::after {
  content: '"';
  font-size: 3rem;
  color: rgba(212, 168, 75, 0.3);
  position: absolute;
  font-family: Georgia, serif;
}

.quote-text::before {
  top: -20px;
  left: -20px;
}

.quote-text::after {
  content: '"';
  bottom: -40px;
  right: -20px;
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-portrait {
    animation: none;
  }
}

/* Focus Styles for Keyboard Navigation */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--earth-gold);
  outline-offset: 3px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-gold);
  color: var(--forest-darkest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--earth-gold-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

/* ============================================
   RESPONSIVE — PUBLICATIONS GRID
   ============================================ */
@media (max-width: 992px) {
  .publications-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 600px) {
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .book-pub-date {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .book-role {
    font-size: 0.7rem;
  }

  .book-date-badge {
    padding: 0.6rem var(--space-xs);
  }
}