/* ==========================================================================
   POLITICAL & SOCIAL WORK PORTFOLIO - DESIGN SYSTEM & STYLES
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Variables & Design Tokens (BJP-Inspired Theme) --- */
:root {
  /* Colors */
  --primary-navy: #0b132a;        /* Deep Slate / Dark Blue for text & contrast */
  --primary-navy-dark: #060a17;   /* Ultra Dark Slate for footers/modals */
  --primary-blue: #1e3a8a;        /* Royal Accent Blue */
  
  /* BJP Saffron Palette */
  --saffron-primary: #ff6f00;     /* Vivid Saffron Orange */
  --saffron-dark: #e65100;        /* Rich Deep Saffron */
  --saffron-light: #ff9933;       /* Bright Saffron Highlight */
  --saffron-gradient: linear-gradient(135deg, #ff9933 0%, #e65100 100%);
  --saffron-glow: rgba(255, 111, 0, 0.25);
  --saffron-bg: rgba(255, 111, 0, 0.08);

  /* Subtle Tricolor / Leaf Green Touch */
  --bjp-green: #10b981;
  --bjp-green-bg: rgba(16, 185, 129, 0.08);

  --accent-gold: var(--saffron-primary);
  --accent-gold-light: var(--saffron-light);
  --accent-gold-bg: var(--saffron-bg);

  /* Backgrounds */
  --bg-main: #ffffff;             /* Crisp Pure White */
  --bg-card: #ffffff;             /* Pure White Card Base */
  --bg-alt: #f8fafc;              /* Soft Light Gray for Alt Sections */
  --bg-soft-saffron: #fffdfa;     /* Warm Subtle Off-white */

  /* Typography Colors */
  --text-main: #1e293b;           /* Deep Slate Body Text */
  --text-muted: #64748b;          /* Muted Gray Secondary Text */
  --text-light: #94a3b8;          /* Soft Gray */
  --text-white: #ffffff;

  --border-color: #e2e8f0;
  --border-color-dark: #334155;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(11, 19, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 19, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(11, 19, 42, 0.12);
  --shadow-saffron: 0 10px 28px rgba(255, 111, 0, 0.3);
  --shadow-gold: var(--shadow-saffron);

  /* Layout & Radius */
  --container-width: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
}

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

ul {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

/* --- Utility Classes --- */
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.bg-alt { background-color: var(--bg-alt); }
.bg-navy { background-color: var(--primary-navy); color: var(--text-white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--text-white); }

.section-padding {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  background-color: var(--accent-gold-bg);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--saffron-gradient);
  color: var(--text-white);
  box-shadow: 0 8px 24px rgba(255, 111, 0, 0.32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(230, 81, 0, 0.45);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-navy);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--saffron-primary);
  color: var(--saffron-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary-navy);
}

.btn-white:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(11, 19, 42, 0.06);
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-link {
  color: var(--primary-navy);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--saffron-dark);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
}

.nav-logo-badge {
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-logo-img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
  border: 2px solid var(--saffron-primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 6px 16px rgba(255, 111, 0, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-navy);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.edit-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--primary-navy);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.navbar.scrolled .edit-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.edit-toggle-btn:hover,
.edit-toggle-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #ffffff;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

.navbar.scrolled .mobile-nav-toggle {
  color: #ffffff;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding-top: 9.5rem;
  padding-bottom: 5.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-section {
  position: relative;
  padding: 8rem 0 6rem 0;
  background: radial-gradient(circle at 75% 30%, rgba(255, 111, 0, 0.07) 0%, rgba(255, 255, 255, 0) 55%),
              radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.04) 0%, rgba(255, 255, 255, 0) 45%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 0, 0.12) 0%, rgba(255, 111, 0, 0) 70%);
  animation: subtleGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes subtleGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.15) translate(-20px, 20px); opacity: 1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--saffron-bg);
  border: 1px solid rgba(255, 111, 0, 0.22);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--saffron-dark);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--saffron-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 111, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 111, 0, 0); }
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  color: var(--primary-navy);
  line-height: 1.15;
}

.hero-role {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--saffron-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.3px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(255, 111, 0, 0.22) 0%, rgba(255, 111, 0, 0) 75%);
  border-radius: 40px;
  z-index: 0;
  pointer-events: none;
}

.hero-image-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  padding: 0.75rem;
  box-shadow: 0 20px 45px rgba(11, 19, 42, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  background-color: #cbd5e1;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  z-index: 2;
  background: #ffffff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(11, 19, 42, 0.15);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(255, 111, 0, 0.2);
  animation: float 4s ease-in-out infinite;
}

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

.hero-floating-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-floating-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.hero-floating-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- About Me Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent-gold);
}

.about-experience-badge span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-gold);
}

.about-experience-badge p {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.value-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.value-icon {
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--primary-navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.value-content h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.value-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.vision-card {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--accent-gold);
}

.vision-card h4 {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vision-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* --- Social Work Section --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.work-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-color);
  border-top: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-8px);
  border-top-color: var(--saffron-primary);
  box-shadow: 0 18px 40px rgba(11, 19, 42, 0.12);
}

.work-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.work-card:hover .work-card-img {
  transform: scale(1.02);
}

.work-card-icon {
  width: 54px;
  height: 54px;
  background: var(--saffron-bg);
  color: var(--saffron-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 111, 0, 0.15);
}

.work-card:hover .work-card-icon {
  background: var(--saffron-gradient);
  color: #ffffff;
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 6px 16px rgba(255, 111, 0, 0.3);
}

.work-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--primary-navy);
}

.work-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Political Work Section --- */
.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, #ff9933 0%, #ff5500 50%, #10b981 100%);
  transform: translateX(-50%);
  border-radius: 99px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 1.25rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--saffron-primary);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.25);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--saffron-dark);
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(255, 111, 0, 0.4);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -11px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -11px;
}

.timeline-card {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  border-top: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--saffron-primary);
  box-shadow: 0 16px 36px rgba(11, 19, 42, 0.1);
}

.timeline-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--saffron-dark);
  background: var(--saffron-bg);
  border: 1px solid rgba(255, 111, 0, 0.2);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.timeline-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Achievements / Impact Section --- */
.stats-section {
  background: linear-gradient(135deg, #0b132a 0%, #060a17 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(255, 111, 0, 0.15) 0%, rgba(255, 111, 0, 0) 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--saffron-primary);
  box-shadow: 0 12px 30px rgba(255, 111, 0, 0.25);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff9933 0%, #ff5500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* --- Gallery Section --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--saffron-primary);
  color: var(--saffron-dark);
}

.filter-btn.active {
  background: var(--saffron-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 111, 0, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 270px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 19, 42, 0.14);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* --- Updates & News Section --- */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.update-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.update-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.update-img-container {
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #cbd5e1;
}

.update-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-date {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--primary-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.update-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.update-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.update-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.update-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-blue);
  cursor: pointer;
}

.update-link:hover {
  color: var(--primary-blue);
  gap: 0.6rem;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-info-text p, .contact-info-text a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-socials {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.contact-form-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  background: var(--primary-navy-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid var(--border-color-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #ffffff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2015;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2010;
}

.lightbox-nav:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.gallery-load-more-wrapper {
  text-align: center;
  margin-top: 2.5rem;
}

.gallery-count-info {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Floating Live Edit Bar --- */
.edit-control-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1500;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.edit-control-bar.active {
  display: flex;
  animation: slideUp 0.3s ease;
}

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

.edit-mode-active [contenteditable="true"] {
  outline: 2px dashed var(--accent-gold) !important;
  outline-offset: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.edit-mode-active [contenteditable="true"]:focus {
  outline: 2px solid var(--secondary-blue) !important;
  background-color: rgba(37, 99, 235, 0.05);
}

.edit-img-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: var(--accent-gold);
  color: #ffffff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: none;
}

.edit-mode-active .edit-img-trigger {
  display: inline-block;
}

/* --- Toast Notification --- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-navy);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--accent-gold);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-name {
    font-size: 2.75rem;
  }

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

  .timeline-item {
    width: 100%;
    padding-left: 3rem !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary-navy);
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu .nav-link {
    color: #ffffff;
    font-size: 1.1rem;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .hero-name {
    font-size: 2.25rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
