/* ========================================
   RETIREMENT TRIBUTE - G. BALI REDDY
   ======================================== */

:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --primary-dark: #0d1642;
  --accent: #c5a028;
  --accent-light: #f5d65a;
  --text: #1a1a2e;
  --text-light: #4a4a6a;
  --text-muted: #7a7a9a;
  --bg: #fafbff;
  --bg-section: #ffffff;
  --bg-alt: #f0f2fa;
  --card-bg: #ffffff;
  --border: #e8eaf6;
  --shadow: 0 4px 20px rgba(26, 35, 126, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 35, 126, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-telugu: 'Noto Sans Telugu', sans-serif;
}

/* Reset */
*, *::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);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   LOADER
   ======================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: #fff;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-light);
}

.loader-subtext {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 24px;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: loadProgress 1.5s ease forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 12px 24px;
}

.navbar.scrolled .nav-brand,
.navbar.scrolled .nav-links a {
  color: var(--text);
}

.nav-brand {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-badge {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--text);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: var(--bg-alt);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #283593 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect fill="url(%23p)" width="100" height="100"/></svg>');
  opacity: 0.5;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 40px 24px;
  max-width: 900px;
}

.hero-badge {
  margin-bottom: 24px;
}

.emblem {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  opacity: 0.9;
}

.hero-title {
  margin-bottom: 40px;
}

.hero-pre {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--accent-light);
  text-shadow: 0 2px 20px rgba(197, 160, 40, 0.3);
}

.hero-designation {
  display: block;
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.8;
  letter-spacing: 2px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 40, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0.6;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin: 0 auto;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section {
  padding: 100px 0;
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ========================================
   STORY SECTION
   ======================================== */
.story-section {
  background: linear-gradient(135deg, #fdfbf7 0%, #f8f4ed 100%);
}

.story-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.story-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 20px;
}

.story-content .story-highlight {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  margin: 32px 0;
  line-height: 1.6;
}

.story-content .story-closing {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--accent);
  display: inline-block;
}

.story-content strong {
  color: var(--text);
  font-weight: 600;
}

/* ========================================
   CHILDREN'S REFLECTION SECTION
   ======================================== */
.reflection-section {
  background: linear-gradient(180deg, #f8f4ed 0%, #fdfbf7 50%, #f0f2fa 100%);
  position: relative;
  overflow: hidden;
}

.reflection-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.reflection-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.reflection-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 22px;
}

.reflection-content .reflection-highlight {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  margin: 36px 0;
  line-height: 1.6;
}

.reflection-content .reflection-era {
  font-weight: 500;
  color: var(--text);
  background: rgba(26, 35, 126, 0.04);
  padding: 24px 32px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  text-align: left;
  margin: 32px 0;
  line-height: 2;
}

.reflection-content .reflection-closing {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: 40px;
  line-height: 2.2;
}

.reflection-content .reflection-gratitude {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--accent);
  display: inline-block;
  line-height: 2;
}

/* ========================================
   MOTHER TRIBUTE SECTION
   ======================================== */
.mother-tribute-section {
  background: linear-gradient(180deg, #fef9f0 0%, #fdf6ea 50%, #faf5f0 100%);
  position: relative;
  overflow: hidden;
}

.mother-tribute-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.mother-tribute-section .section-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.mother-tribute-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.mother-tribute-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 22px;
}

.mother-tribute-content .mother-highlight {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 700;
  margin: 36px 0;
  line-height: 1.7;
}

.mother-tribute-content .mother-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-style: italic;
  margin: 40px 0;
  padding: 28px 36px;
  background: rgba(26, 35, 126, 0.04);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  line-height: 1.6;
}

.mother-duties {
  background: rgba(197, 160, 40, 0.06);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 28px 0;
  text-align: left;
}

.mother-duties p {
  font-size: 1rem !important;
  margin-bottom: 10px !important;
  color: var(--text) !important;
  font-weight: 500;
  line-height: 1.8 !important;
}

.mother-duties p:last-child {
  margin-bottom: 0 !important;
}

.mother-era-block {
  background: rgba(26, 35, 126, 0.04);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 28px 0;
  text-align: left;
}

.mother-era-block p {
  font-size: 1.05rem !important;
  margin-bottom: 14px !important;
  line-height: 1.9 !important;
}

.mother-era-block p:last-child {
  margin-bottom: 0 !important;
}

.mother-no-rewards {
  margin: 20px 0;
}

.mother-no-rewards p {
  font-weight: 600 !important;
  color: var(--text) !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.2px;
}

.mother-tribute-content .mother-closing {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: 40px;
  line-height: 2;
}

.mother-tribute-content .mother-gratitude {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px solid var(--accent);
  display: inline-block;
  line-height: 2.2;
}

/* ========================================
   ROOTS SECTION
   ======================================== */
.roots-section {
  background: linear-gradient(180deg, #f4f7f0 0%, #f0f5ed 50%, #f0f2fa 100%);
  position: relative;
  overflow: hidden;
}

.roots-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.roots-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.roots-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 22px;
}

.roots-content .roots-highlight {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  margin: 36px 0;
  line-height: 1.7;
}

.roots-support-block {
  background: rgba(197, 160, 40, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 28px 0;
  text-align: left;
}

.roots-support-block p {
  font-size: 1.05rem !important;
  margin-bottom: 10px !important;
  color: var(--text) !important;
  font-weight: 500;
  line-height: 1.8 !important;
}

.roots-support-block p:last-child {
  margin-bottom: 0 !important;
}

.roots-voices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin: 28px 0;
  padding: 28px 24px;
  background: rgba(26, 35, 126, 0.04);
  border-radius: var(--radius-lg);
}

.roots-voices span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
  padding: 8px 18px;
  background: rgba(197, 160, 40, 0.1);
  border-radius: 24px;
  transition: var(--transition);
}

.roots-voices span:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.roots-thanks {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 36px 0;
  text-align: left;
}

.roots-thanks p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.05rem !important;
  margin-bottom: 12px !important;
  line-height: 1.8 !important;
}

.roots-thanks p:first-child {
  color: var(--accent-light) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem !important;
  margin-bottom: 18px !important;
}

.roots-thanks p:last-child {
  margin-bottom: 0 !important;
}

.roots-content .roots-closing {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--accent);
  display: inline-block;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .roots-voices {
    gap: 8px 12px;
    padding: 20px 16px;
  }

  .roots-voices span {
    font-size: 1rem;
    padding: 6px 14px;
  }

  .roots-thanks {
    padding: 24px 20px;
  }
}

/* ========================================
   GROWING FAMILY SECTION
   ======================================== */
.growing-family-section {
  background: linear-gradient(180deg, #f9f5ff 0%, #f5f0fa 50%, #f0f2fa 100%);
  position: relative;
  overflow: hidden;
}

.growing-family-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.growing-family-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.growing-family-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 22px;
}

.growing-family-content strong {
  color: var(--text);
  font-weight: 600;
}

.growing-family-content .growing-highlight {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 700;
  margin: 36px 0;
  line-height: 1.7;
}

.grandchildren-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 36px 0;
  padding: 32px 24px;
  background: rgba(197, 160, 40, 0.06);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(197, 160, 40, 0.2);
}

.grandchild-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 24px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(26, 35, 126, 0.08);
  transition: var(--transition);
}

.grandchild-name:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(197, 160, 40, 0.3);
}

.grandchildren-desc {
  margin: 28px 0;
}

.grandchildren-desc p {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  color: var(--primary-dark) !important;
  font-weight: 600;
  margin-bottom: 8px !important;
  line-height: 1.8 !important;
}

.growing-moments {
  background: rgba(26, 35, 126, 0.04);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 28px 0;
  text-align: left;
}

.growing-moments p {
  font-size: 1.05rem !important;
  margin-bottom: 10px !important;
  color: var(--text) !important;
  font-weight: 500;
  line-height: 1.8 !important;
}

.growing-moments p:last-child {
  margin-bottom: 0 !important;
}

.growing-finale {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.growing-finale span {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.4;
}

.growing-finale span:nth-child(1) {
  font-size: 1.5rem;
}

.growing-finale span:nth-child(2) {
  font-size: 2rem;
}

.growing-finale span:nth-child(3) {
  font-size: 2.8rem;
  color: var(--accent);
}

.growing-finale .growing-still {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .grandchildren-names {
    gap: 10px;
    padding: 24px 16px;
  }

  .grandchild-name {
    font-size: 1.1rem;
    padding: 8px 18px;
  }

  .growing-finale span:nth-child(1) {
    font-size: 1.3rem;
  }

  .growing-finale span:nth-child(2) {
    font-size: 1.7rem;
  }

  .growing-finale span:nth-child(3) {
    font-size: 2.2rem;
  }
}

/* ========================================
   FRIENDS SECTION
   ======================================== */
.friends-section {
  background: linear-gradient(180deg, #f0f7fa 0%, #edf5f8 50%, #f0f2fa 100%);
  position: relative;
  overflow: hidden;
}

.friends-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.friends-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.friends-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 22px;
}

.friends-content .friends-highlight {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  margin: 36px 0;
  line-height: 1.7;
}

.friends-roles {
  background: rgba(197, 160, 40, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 28px 0;
  text-align: left;
}

.friends-roles p {
  font-size: 1.05rem !important;
  margin-bottom: 10px !important;
  color: var(--text) !important;
  font-weight: 500;
  line-height: 1.8 !important;
}

.friends-roles p:last-child {
  margin-bottom: 0 !important;
}

.friends-banter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin: 28px 0;
  padding: 24px;
  background: rgba(26, 35, 126, 0.04);
  border-radius: var(--radius-lg);
}

.friends-banter span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(26, 35, 126, 0.06);
  transition: var(--transition);
}

.friends-banter span:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.friends-memories {
  background: rgba(197, 160, 40, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 28px 0;
  text-align: left;
  border: 1px solid rgba(197, 160, 40, 0.15);
}

.friends-memories p {
  font-size: 1.05rem !important;
  margin-bottom: 14px !important;
  color: var(--text) !important;
  line-height: 1.9 !important;
  padding-left: 20px;
  position: relative;
}

.friends-memories p::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 4px;
}

.friends-memories p:last-child {
  margin-bottom: 0 !important;
}

.friends-shared {
  background: rgba(26, 35, 126, 0.04);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 28px 0;
  text-align: left;
}

.friends-shared p {
  font-size: 1.05rem !important;
  margin-bottom: 10px !important;
  color: var(--text) !important;
  font-weight: 500;
  line-height: 1.8 !important;
}

.friends-shared p:last-child {
  margin-bottom: 0 !important;
}

.friends-thanks {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 36px 0;
  text-align: left;
}

.friends-thanks p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.05rem !important;
  margin-bottom: 12px !important;
  line-height: 1.8 !important;
}

.friends-thanks p:first-child {
  color: var(--accent-light) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem !important;
  margin-bottom: 18px !important;
}

.friends-thanks p:last-child {
  margin-bottom: 0 !important;
}

.friends-content .friends-closing {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--accent);
  display: inline-block;
  line-height: 2.2;
}

@media (max-width: 768px) {
  .friends-banter {
    gap: 8px 10px;
    padding: 20px 16px;
  }

  .friends-banter span {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .friends-thanks {
    padding: 24px 20px;
  }

  .friends-memories {
    padding: 20px;
  }
}

/* ========================================
   THANK YOU SECTION
   ======================================== */
.thankyou-section {
  background: linear-gradient(180deg, #fdf9f3 0%, #faf6ef 50%, #f5f3ee 100%);
  position: relative;
  overflow: hidden;
}

.thankyou-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.thankyou-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.thankyou-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 22px;
}

.thankyou-content .thankyou-highlight {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  margin: 36px 0;
  line-height: 1.7;
}

.thankyou-list {
  background: rgba(197, 160, 40, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
  text-align: left;
}

.thankyou-list p {
  font-size: 1.05rem !important;
  margin-bottom: 14px !important;
  color: var(--text) !important;
  line-height: 1.9 !important;
}

.thankyou-list p:last-child {
  margin-bottom: 0 !important;
}

.thankyou-list strong {
  color: var(--primary);
  font-weight: 700;
}

.thankyou-thanks {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 36px 0;
  text-align: center;
}

.thankyou-thanks p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1rem !important;
  margin-bottom: 12px !important;
  line-height: 1.8 !important;
}

.thankyou-thanks .thankyou-most {
  color: var(--accent-light) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.thankyou-content .thankyou-closing {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 36px;
  line-height: 1.8;
}

.thankyou-signature {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--accent);
  text-align: center;
}

.thankyou-signature p {
  font-size: 1rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-bottom: 8px !important;
}

.thankyou-signature .signature-name {
  font-family: var(--font-display);
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--primary) !important;
  font-style: normal;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .thankyou-list {
    padding: 20px;
  }

  .thankyou-thanks {
    padding: 24px 20px;
  }
}

/* ========================================
   STORY SLIDER
   ======================================== */
.story-slider-section {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #fdfbf7 0%, #f8f4ed 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.story-slider-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.story-slider-header {
  text-align: center;
  margin-bottom: 32px;
}

.story-slider-header .section-title {
  margin-bottom: 20px;
}

.story-slider-nav-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.slider-label {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.slider-label:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.slider-label.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.story-slider-viewport {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.story-slider-track {
  overflow: hidden;
  border-radius: var(--radius-lg);
  flex: 1;
  position: relative;
}

.story-slide {
  display: none;
  animation: slideIn 0.4s ease;
}

.story-slide.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.story-slide-inner {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 48px 60px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.story-slide-inner::-webkit-scrollbar {
  width: 6px;
}

.story-slide-inner::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.story-slide-inner::-webkit-scrollbar-track {
  background: transparent;
}

.story-slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card-bg);
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  box-shadow: var(--shadow);
}

.story-slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.story-slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.story-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.story-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.story-dot:hover {
  background: var(--primary-light);
}

.story-slider-progress {
  margin-top: 16px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.story-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 14.28%;
}

@media (max-width: 768px) {
  .story-slider-section {
    padding: 60px 0 40px;
    min-height: auto;
  }

  .story-slide-inner {
    padding: 32px 20px;
    max-height: 65vh;
  }

  .story-slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .story-slider-nav-labels {
    gap: 6px;
  }

  .slider-label {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .story-slider-viewport {
    gap: 8px;
  }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-photo {
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.photo-label {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.photo-frame {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--accent);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame.placeholder::after {
  content: '📷';
  font-size: 4rem;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.detail-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.detail-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.detail-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-card .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.about-quote {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  color: #fff;
}

.about-quote blockquote p {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 12px;
  color: var(--accent-light);
}

.about-quote cite {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========================================
   TIMELINE SECTION
   ======================================== */
.timeline-section {
  background: var(--bg-alt);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 40px;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 40px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 3px var(--accent);
  z-index: 1;
}

.timeline-content {
  width: calc(50% - 40px);
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========================================
   LOCATIONS SECTION
   ======================================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.location-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  opacity: 0.1;
  border-radius: 0 0 0 80px;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.location-place {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.location-unit {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.location-period {
  display: inline-block;
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.location-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========================================
   EDUCATION SECTION
   ======================================== */
.education-path {
  max-width: 700px;
  margin: 0 auto;
}

.education-item {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  align-items: center;
}

.education-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.education-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.education-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.education-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.education-info .year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* ========================================
   AWARDS SECTION
   ======================================== */
.awards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.award-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.award-card::before {
  content: '★';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.2;
}

.award-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.award-year {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 12px;
}

.award-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 12px;
}

.award-by {
  font-size: 0.8rem;
  opacity: 0.6;
  font-style: italic;
}

.service-highlights {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.service-highlights h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 24px;
  text-align: center;
}

.highlights-list {
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.highlight-item::before {
  content: '✦';
  color: var(--accent);
  font-size: 1.2rem;
  min-width: 24px;
}

/* ========================================
   GALLERY / CAROUSEL SECTION
   ======================================== */
.gallery-section {
  background: var(--primary-dark);
  color: #fff;
}

.gallery-section .section-title {
  color: #fff;
}

.gallery-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.gallery-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.carousel-slide .placeholder-text {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.carousel-info {
  text-align: center;
  margin-bottom: 16px;
}

.carousel-caption {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.carousel-year {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Gallery Grid (thumbnails) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-thumb:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.gallery-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(197, 160, 40, 0.3);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1;
  opacity: 0.7;
  transition: var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
  color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .gallery-carousel {
    gap: 8px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ========================================
   FAMILY SECTION
   ======================================== */
.family-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.family-message {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.family-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.family-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--accent);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.family-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.family-relation {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   GUEST BOOK SECTION
   ======================================== */
.guestbook-section {
  background: var(--bg);
}

.guestbook-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.guestbook-form {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Image Upload Area */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  position: relative;
}

.image-upload-area:hover,
.image-upload-area.dragover {
  border-color: var(--primary-light);
  background: rgba(57, 73, 171, 0.03);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.upload-icon {
  font-size: 2rem;
  line-height: 1;
}

.upload-text {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.upload-preview {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.upload-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}

.remove-image-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  border: 2px solid #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.remove-image-btn:hover {
  background: #c62828;
  transform: scale(1.1);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 8px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: block;
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.form-status.info {
  display: block;
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

/* Messages Display */
.messages-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.messages-list {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

.messages-list::-webkit-scrollbar {
  width: 4px;
}

.messages-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.messages-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 0.9rem;
}

.message-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
  animation: slideInMessage 0.4s ease;
}

@keyframes slideInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-card:hover {
  box-shadow: var(--shadow);
}

.message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.message-meta {
  flex: 1;
}

.message-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.message-relation {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.message-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  padding-left: 52px;
}

.message-image {
  margin-top: 12px;
  padding-left: 52px;
}

.message-image img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.message-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.no-messages {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
}

.no-messages p {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .guestbook-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .guestbook-form {
    padding: 24px;
  }

  .messages-list {
    max-height: 400px;
  }

  .message-text {
    padding-left: 0;
    margin-top: 8px;
  }

  .message-image {
    padding-left: 0;
  }
}

/* ========================================
   TRIBUTE SECTION
   ======================================== */
.tribute-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
}

.tribute-section .section-title,
.tribute-section .section-subtitle {
  color: #fff;
}

.tribute-section .section-subtitle {
  opacity: 0.7;
}

.tribute-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.tribute-message p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  opacity: 0.9;
}

.telugu-text {
  font-family: var(--font-telugu);
  font-size: 1.3rem;
  color: var(--accent-light);
  margin-top: 32px;
}

.tribute-salute {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.salute-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  text-align: center;
}

.footer-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}

.footer-sub {
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* ========================================
   FLOATING GUEST BOOK CTA
   ======================================== */
.floating-guestbook-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(197, 160, 40, 0.4);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.floating-guestbook-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-guestbook-btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(197, 160, 40, 0.5);
}

.floating-btn-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.floating-guestbook-btn.at-section {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

@media (max-width: 768px) {
  .floating-guestbook-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    font-size: 0.85rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 80px 24px 24px;
    transition: var(--transition);
    gap: 4px;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: rgba(255,255,255,0.8);
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photos {
    flex-direction: column;
  }
  .photo-frame {
    max-width: 250px;
    margin: 0 auto;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    text-align: left;
    padding-left: 50px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    width: 100%;
    margin: 0;
  }

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

  .family-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .education-item {
    flex-direction: column;
    text-align: center;
  }
}


/* ========================================
   FAMILY TREE
   ======================================== */
.family-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.family-tree-parents {
  margin-bottom: 0;
}

.family-tree-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.family-tree-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.family-tree-card.parents-card {
  border-color: var(--accent);
  min-width: 280px;
}

.family-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent);
}

.family-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-photo-placeholder .photo-fallback {
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.family-tree-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.family-tree-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Connector arrows */
.family-tree-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 60px;
}

.connector-line {
  width: 2px;
  height: 30px;
  background: var(--accent);
}

.connector-branches {
  display: flex;
  align-items: flex-start;
  position: relative;
  width: 300px;
  height: 30px;
}

.connector-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  right: 50px;
  height: 2px;
  background: var(--accent);
}

.connector-branch {
  position: absolute;
  top: 0;
  width: 2px;
  height: 30px;
  background: var(--accent);
}

.connector-branch.left {
  left: 50px;
}

.connector-branch.right {
  right: 50px;
}

.connector-branch::after {
  content: '▼';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 0.7rem;
}

/* Children */
.family-tree-children {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.family-tree-card.child-card {
  min-width: 220px;
  max-width: 260px;
}

@media (max-width: 768px) {
  .connector-branches {
    width: 200px;
  }
  .connector-branch.left {
    left: 30px;
  }
  .connector-branch.right {
    right: 30px;
  }
  .family-tree-children {
    flex-direction: column;
    align-items: center;
  }
  .family-photo-placeholder {
    width: 120px;
    height: 120px;
  }
}


/* Family tree member names */
.family-tree-members {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.family-tree-members span {
  font-size: 0.85rem;
  color: var(--text-light);
}


/* Photo transition (crossfade) */
.photo-frame.photo-transition {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
}

.photo-frame.photo-transition .transition-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.photo-frame.photo-transition .transition-img.active {
  opacity: 1;
}
