/* ============================================
   VIJAY KUMAR DUBEY - DESIGN SYSTEM
   Premium Dark Theme with Glassmorphism
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ---- CSS Variables / Design Tokens ---- */
:root {
  /* Colors - "Classic Heritage Beige" (Authoritative & Warm) */
  --bg-primary: #FAF9F6;
  /* Soft, prestigious beige/off-white */
  --bg-secondary: #F5F3ED;
  /* Slightly deeper warm beige */
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-hover: rgba(255, 255, 255, 1);
  --border-glass: rgba(0, 0, 0, 0.08);
  /* Subtle definition */
  --border-glass-hover: rgba(0, 0, 0, 0.15);

  --text-primary: #1A1A1A;
  /* High-contrast obsidian */
  --text-secondary: #4A4A4A;
  /* Refined dark gray */
  --text-muted: #71717A;
  --text-accent: #1E3A8A;
  /* Prestige Navy as primary accent */

  /* Unique "Word" Colors updated for Beige Background */
  --accent-gold: #1E40AF;
  /* Deep Burnt Amber (Family) replaced with 20% Darker Royal Blue */
  --accent-gold-dim: rgba(30, 64, 175, 0.08);
  --accent-blue: #1E3A8A;
  /* Prestige Navy (Law) */
  --accent-blue-dim: rgba(30, 58, 138, 0.08);
  --accent-indigo: #3730A3;
  /* Deep Indigo */
  --accent-indigo-dim: rgba(55, 48, 163, 0.08);
  --accent-emerald: #065F46;
  /* Deep Emerald (RTI) */
  --accent-emerald-dim: rgba(6, 95, 70, 0.08);
  --accent-rose: #9D174D;
  /* Deep Rose Red (Village) */
  --accent-rose-dim: rgba(157, 23, 77, 0.08);
  --accent-purple: #6B21A8;
  --accent-purple-dim: rgba(107, 33, 168, 0.08);
  --accent-cyan: #164E63;
  --accent-cyan-dim: rgba(22, 78, 99, 0.08);
  --accent-orange: #9A3412;
  --accent-orange-dim: rgba(154, 52, 18, 0.08);

  --gradient-hero: linear-gradient(135deg, #FAF9F6 0%, #F5F3ED 100%);
  --gradient-gold: linear-gradient(135deg, #1D4ED8, #172554);
  --gradient-blue: linear-gradient(135deg, #2563EB, #1E3A8A);
  --gradient-card: linear-gradient(135deg, #FFFFFF, #F9FAFB);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 7.5rem;

  /* Border Radius */
  --radius-sm: 0.4rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2.5rem;
  --radius-full: 9999px;

  /* Shadows (Softer and more detailed for light background) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow-gold: 0 0 20px rgba(30, 64, 175, 0.15);
  --shadow-glow-blue: 0 0 20px rgba(30, 58, 138, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 500;
  /* Sophisticated professional weight */
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
}

.hindi {
  font-family: var(--font-hindi);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F5F3ED;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* ---- Background Decoration ---- */
.bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  animation: float3D 20s ease-in-out infinite;
}

.bg-glow--gold {
  top: -10vw;
  right: -10vw;
  background: var(--accent-gold);
}

.bg-glow--blue {
  bottom: -10vw;
  left: -10vw;
  background: var(--accent-blue);
  animation-delay: -10s;
}

/* 3D Shapes */
.shape-3d {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-gold-dim), transparent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: rotate3DColor 20s linear infinite, float3D 15s ease-in-out infinite;
  z-index: -1;
  opacity: 0.3;
}

.bg-glow--purple {
  background: var(--accent-purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(250, 249, 246, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--bg-primary);
  font-family: var(--font-heading);
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-brand-text span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  gap: var(--space-sm);
  transition: var(--transition-base);
}

.nav-search:focus-within {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 150px;
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-search i {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

/* ---- Responsive Nav ---- */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-2xl);
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: var(--transition-base);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-search {
    display: none;
  }
}

/* ============================================
   COMMON COMPONENTS
   ============================================ */

/* ---- Section Header ---- */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1.2rem;
  background: var(--accent-gold-dim);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-base);
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-primary);
}



.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold-dim);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ---- Tags / Badges ---- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-gold {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
}

.tag-blue {
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
}

.tag-emerald {
  background: var(--accent-emerald-dim);
  color: var(--accent-emerald);
}

.tag-rose {
  background: var(--accent-rose-dim);
  color: var(--accent-rose);
}

.tag-purple {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
}

/* ---- Status Indicators ---- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status--success .status-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status--pending .status-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.status--rejected .status-dot {
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

.status--success {
  color: var(--accent-emerald);
}

.status--pending {
  color: var(--accent-gold);
}

.status--rejected {
  color: var(--accent-rose);
}

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-select {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  min-width: 160px;
}

.filter-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.filter-select:focus {
  border-color: var(--accent-gold);
}

/* ---- Search Input ---- */
.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-base);
}

.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

/* ---- Grid Layouts ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---- Stat Card ---- */
.stat-card {
  text-align: center;
  padding: var(--space-xl);
}

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto var(--space-md);
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.modal-close:hover {
  background: var(--accent-rose-dim);
  color: var(--accent-rose);
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-base);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-dim);
}

/* ---- Table ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-glass);
}

.data-table td {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tr:hover td {
  background: var(--bg-glass);
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-glass);
  overflow-x: auto;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ---- Accordion ---- */
.accordion-item {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  transition: var(--transition-base);
}

.accordion-header:hover {
  background: var(--bg-glass);
}

.accordion-header h4 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.accordion-arrow {
  transition: var(--transition-base);
  color: var(--text-muted);
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body-inner {
  padding: 0 var(--space-lg) var(--space-lg);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.page-btn:hover,
.page-btn.active {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: var(--space-4xl);
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0A0A0A;
  /* Deep solid black */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3.6rem 0 1.6rem;
  color: #94A3B8;
  /* Slate gray for base text in dark footer */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: 2.4rem;
}

.footer-brand .nav-brand-text {
  color: var(--accent-gold);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: #94A3B8;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  /* High contrast white for headers on black */
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-link {
  display: block;
  padding: 0.24rem 0;
  font-size: 0.85rem;
  color: #94A3B8;
}

.footer-link:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748B;
}

.footer-social {
  display: flex;
  gap: var(--space-xl);
}

.footer-social a {
  font-size: 1.8rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  transform: translateY(-8px) scale(1.2);
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.footer-social a.facebook { color: #1877F2; }
.footer-social a.twitter { color: #1DA1F2; }
.footer-social a.youtube { color: #FF0000; }
.footer-social a.instagram { color: #E4405F; }
.footer-social a.linkedin { color: #0077B5; }
.footer-social a.whatsapp { color: #25D366; }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealMask {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 3D Color Animations */
@keyframes meshFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float3D {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  33% {
    transform: translate3d(20px, -20px, 40px) rotate(5deg);
  }

  66% {
    transform: translate3d(-15px, 15px, -30px) rotate(-5deg);
  }
}

@keyframes rotate3DColor {
  from {
    filter: hue-rotate(0deg);
  }

  to {
    filter: hue-rotate(360deg);
  }
}

/* 3D Perspective Utils */
.perspective-container {
  perspective: 1200px;
}

/* Removed 3D tilt classes */

/* Dynamic 3D Color Backgrounds */
.bg-mesh {
  background: linear-gradient(-45deg, #FAF9F6, #F5F3ED, #FAF9F6, #F5F3ED);
  background-size: 400% 400%;
}

.text-gradient-3d {
  background: linear-gradient(135deg, var(--text-primary), var(--text-accent), var(--text-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reveal Classes (Used with JS) */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-left {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal-left.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-right {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal-right.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-scale {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal-scale.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Animation Utils */
/* Animation Utils Removed */

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

/* Interactive States Removed */

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
  border-color: var(--accent-gold);
}

/* Shimmer Button Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 45%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.1) 55%,
      transparent 100%);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.btn-shimmer:hover::after {
  animation: shimmer 1.5s infinite;
  opacity: 1;
}

/* ---- Page Transition ---- */
.page-content {
  padding-top: var(--nav-height);
  animation: fadeIn 0.4s ease;
}

/* ---- Toast Notification ---- */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  min-width: 280px;
}

.toast--success {
  border-left: 3px solid var(--accent-emerald);
}

.toast--error {
  border-left: 3px solid var(--accent-rose);
}

.toast--info {
  border-left: 3px solid var(--accent-blue);
}

/* ---- Utility ---- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-gold {
  color: var(--accent-gold);
}

.text-blue {
  color: var(--accent-blue);
}

.text-muted {
  color: var(--text-muted);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--space-md);
}

.mb-2 {
  margin-bottom: var(--space-xl);
}

.mb-3 {
  margin-bottom: var(--space-2xl);
}

.mt-2 {
  margin-top: var(--space-xl);
}

.gap-1 {
  gap: var(--space-md);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.relative {
  position: relative;
}

/* ---- Visitor Form ---- */
.visitor-form-section {
    background: var(--bg-secondary);
}

.visitor-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-glass);
}

.visitor-card h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visitor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.visitor-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visitor-group.full-width {
    grid-column: 1 / -1;
}

.visitor-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.visitor-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.visitor-input:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-gold-dim);
}

.visitor-textarea {
    min-height: 80px;
    resize: vertical;
}

.visitor-actions {
    margin-top: var(--space-xl);
    text-align: center;
}

.btn-save-entry {
    background: #059669; /* Green from image */
    color: #FFFFFF;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-save-entry:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* ---- Visitor Records Table ---- */
.visitor-records-section {
    padding-top: 0; /* Tight with form section */
}

.visitor-search-box {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto var(--space-xl);
    border: 1px solid var(--border-glass);
    text-align: center;
}

.visitor-search-box h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.visitor-search-form {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    align-items: flex-end;
    flex-wrap: wrap;
}

.btn-search-visitor {
    background: #059669;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-search-visitor:hover {
    background: #047857;
}

.visitor-records-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

.visitor-table-wrap {
    overflow-x: auto;
}

.visitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.visitor-table th {
    background: #059669; /* Dark green matching image */
    color: #FFFFFF;
    padding: 12px 10px;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    white-space: nowrap;
}

.visitor-table td {
    padding: 12px 10px;
    border: 1px solid #e5e7eb;
    color: var(--text-secondary);
}

.visitor-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.visitor-table tr:hover {
    background-color: #f3f4f6;
}

.no-data-cell {
    text-align: center;
    padding: var(--space-xl) !important;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .visitor-records-card {
        padding: 0;
        border: none;
        background: transparent;
    }
    
    .visitor-grid {
        grid-template-columns: 1fr;
    }
    
    .visitor-card {
        padding: var(--space-lg);
    }
    
    /* Global Mobile Fixes */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }
    
    .glass-card {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .nav-brand-text {
        font-size: 1.1rem;
    }
    
    .nav-brand-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}