/* ==========================================================================
   SMART POLITICIAN - MODERN CIVIC DESIGN SYSTEM
   Inspired by MMI Software Solutions (mmi.co.in) & Premium International Standards
   Fonts: Plus Jakarta Sans, Inter, Noto Sans Tamil
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Noto+Sans+Tamil:wght@400;500;600;700;800&display=swap');

:root {
  --color-white: #FFFFFF;
  --color-navy: #142B45;
  --color-navy-dark: #0B1726;
  --color-navy-light: #1E3A5F;
  --color-royal: #2563EB;
  --color-royal-hover: #1D4ED8;
  --color-teal: #0D9488;
  --color-teal-hover: #0F766E;
  --color-teal-light: #14B8A6;
  --color-gold: #D97706;
  --color-gold-light: #F59E0B;
  --color-gold-dark: #B45309;
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-400: #94A3B8;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-900: #0F172A;

  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-tamil: 'Noto Sans Tamil', 'Plus Jakarta Sans', sans-serif;
  
  --bg-primary: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #142B45;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --header-bg: rgba(255, 255, 255, 0.95);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 3px rgba(20, 43, 69, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 43, 69, 0.08);
  --shadow-lg: 0 12px 28px rgba(20, 43, 69, 0.12);
  --shadow-card: 0 8px 24px -4px rgba(20, 43, 69, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  --shadow-card-hover: 0 20px 35px -8px rgba(37, 99, 235, 0.16), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.dark, [data-theme="dark"] {
  --bg-primary: #0A0F1D;
  --bg-surface: #0F172A;
  --bg-card: #141F32;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border-color: #1E293B;
  --header-bg: rgba(11, 23, 38, 0.95);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-card-hover: 0 20px 35px -8px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(217, 119, 6, 0.4);
}

/* Base Body Typography */
body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[lang="ta"], .font-tamil {
  font-family: var(--font-tamil) !important;
  line-height: 1.75;
}

/* ==========================================================================
   TOP INFORMATION BAR & UNIFIED CONTAINER (Exact MMI Standard)
   ========================================================================== */
.site-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 640px) {
  .site-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.top-bar {
  background: #0B1726;
  color: #E2E8F0;
  font-size: 0.8125rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}

.top-bar a {
  color: #E2E8F0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: #38BDF8;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.nav-container {
  max-width: 1440px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

@media (max-width: 640px) {
  .nav-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Brand arrangement: Centered SMART POLITICIAN / SMART MLA / SMART MP */
.brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  line-height: 1.1;
  text-transform: uppercase;
}

.dark .brand-title {
  color: #F8FAFC;
}

.brand-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* Nav Links - MMI Standard Clean Spacing & Slightly Enlarged Typography */
.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem; /* 14px - crisp, modern, bold English standard */
  color: #64748B !important;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex-shrink: 0;
}

.nav-link span {
  white-space: nowrap !important;
  display: inline-block;
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .nav-menu {
    gap: 0.18rem;
  }
  .nav-link {
    font-size: 0.845rem; /* 13.5px on laptop screens - perfectly sized without clipping */
    padding: 0.38rem 0.46rem;
    gap: 0.16rem;
  }
}

@media (min-width: 1400px) {
  .nav-menu {
    gap: 0.38rem;
  }
  .nav-link {
    font-size: 0.9rem; /* 14.4px on full HD & wide monitors */
    padding: 0.48rem 0.65rem;
    gap: 0.24rem;
  }
}

/* Tamil Mode Navigation Spacing & Layout - Strict Independence: DO NOT TOUCH ENGLISH MENU */
html[lang="ta"] .nav-container,
.font-tamil .nav-container {
  max-width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

html[lang="ta"] .site-header .gap-3\.5,
.font-tamil .site-header .gap-3\.5,
html[lang="ta"] .site-header .xl\:gap-5,
.font-tamil .site-header .xl\:gap-5 {
  gap: 1.15rem !important; /* Moves Tamil menu slightly right from brand logo */
}

html[lang="ta"] .site-header .pl-3,
.font-tamil .site-header .pl-3 {
  padding-left: 0.5rem !important;
}

html[lang="ta"] .site-header .brand-title,
.font-tamil .site-header .brand-title {
  font-size: 0.84rem !important;
}

html[lang="ta"] .site-header .brand-subtitle,
.font-tamil .site-header .brand-subtitle {
  font-size: 0.63rem !important;
}

html[lang="ta"] .nav-menu,
.font-tamil .nav-menu {
  gap: 0.12rem !important;
  flex-wrap: nowrap !important;
}

html[lang="ta"] .nav-menu > li + li,
.font-tamil .nav-menu > li + li {
  margin-left: 0 !important;
}

html[lang="ta"] .nav-link,
.font-tamil .nav-link {
  font-size: 0.815rem !important; /* Slightly bigger, clear and comfortable */
  padding: 0.25rem 0.35rem !important;
  gap: 0.1rem !important;
  letter-spacing: -0.01em !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

html[lang="ta"] .nav-link .chevron-icon,
.font-tamil .nav-link .chevron-icon {
  width: 9px !important;
  height: 9px !important;
  margin-left: 2px !important;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  html[lang="ta"] .nav-link,
  .font-tamil .nav-link {
    font-size: 0.765rem !important; /* 12.25px on 1024-1280px laptops */
    padding: 0.22rem 0.28rem !important;
    gap: 0.08rem !important;
    letter-spacing: -0.015em !important;
  }
  html[lang="ta"] .nav-link .chevron-icon,
  .font-tamil .nav-link .chevron-icon {
    width: 8.5px !important;
    height: 8.5px !important;
    margin-left: 1.5px !important;
  }
  html[lang="ta"] .site-header .btn-mmi-gold,
  .font-tamil .site-header .btn-mmi-gold {
    padding: 0.28rem 0.65rem !important;
    font-size: 0.74rem !important;
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  html[lang="ta"] .nav-link,
  .font-tamil .nav-link {
    font-size: 0.825rem !important; /* 13.2px on standard 1366px laptops - slightly bigger & fully visible */
    padding: 0.26rem 0.38rem !important;
    gap: 0.1rem !important;
  }
  html[lang="ta"] .site-header .btn-mmi-gold,
  .font-tamil .site-header .btn-mmi-gold {
    padding: 0.32rem 0.75rem !important;
    font-size: 0.78rem !important;
  }
}

@media (min-width: 1440px) {
  html[lang="ta"] .nav-link,
  .font-tamil .nav-link {
    font-size: 0.885rem !important; /* 14.15px on large monitors */
    padding: 0.32rem 0.5rem !important;
    gap: 0.14rem !important;
  }
  html[lang="ta"] .site-header .btn-mmi-gold,
  .font-tamil .site-header .btn-mmi-gold {
    padding: 0.38rem 0.9rem !important;
    font-size: 0.82rem !important;
  }
}

/* Right-align dropdowns for items near the right edge so Public Welfare and Governance never get hidden offscreen */
.nav-menu > li:last-child .dropdown-menu,
.nav-menu > li:nth-last-child(2) .dropdown-menu {
  right: 0 !important;
  left: auto !important;
}

.dark .nav-link {
  color: #94A3B8 !important;
}

/* Hover, Focus & Active: Changes to Rich Vibrant Orange */
.nav-link:hover, 
.nav-link:focus, 
.nav-link.active,
.has-dropdown:hover > .nav-link,
.has-mega:hover > .nav-link {
  color: #EA580C !important;
  background-color: rgba(234, 88, 12, 0.09) !important;
}

.dark .nav-link:hover,
.dark .nav-link:focus,
.dark .nav-link.active,
.dark .has-dropdown:hover > .nav-link,
.dark .has-mega:hover > .nav-link {
  color: #FB923C !important;
  background-color: rgba(251, 146, 60, 0.14) !important;
}

/* Chevron Icon: Smooth CSS transition on hover, zero page-load flicker */
.chevron-icon {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.has-dropdown:hover > a .chevron-icon,
.has-dropdown.menu-open > a .chevron-icon,
.has-mega:hover > a .chevron-icon,
.has-mega.menu-open > a .chevron-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   MEGA MENU CONTAINER (MODERN FROSTED GLASS & POLISHED BORDERS)
   ========================================================================== */
.mega-menu-container {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 95vw;
  max-width: 1140px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.95) inset;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 2rem;
  z-index: 1000;
  animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible Hover Bridge connecting parent to mega menu so it never disappears on diagonal mouse move */
.mega-menu-container::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 28px;
  background: transparent;
  pointer-events: auto;
}

.dark .mega-menu-container {
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(51, 65, 85, 0.85);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.has-mega:hover .mega-menu-container,
.has-mega.menu-open .mega-menu-container,
.has-mega:focus-within .mega-menu-container {
  display: block;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.mega-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--bg-primary);
  text-decoration: none;
  display: flex;
  gap: 1rem;
  transition: all 0.2s ease;
}

.mega-card:hover {
  background: var(--color-slate-50);
  border-color: rgba(234, 88, 12, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.1);
}

.dark .mega-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   MODERN FROSTED GLASSPHORPHISM DROPDOWN MENUS (STUNNING & PREMIUM)
   ========================================================================== */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 275px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.65rem 0.5rem;
  z-index: 950;
  animation: dropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible Hover Bridge connecting parent nav item to dropdown menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.dark .dropdown-menu {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.menu-open .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.65rem 0.9rem;
  margin: 0.15rem 0.25rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item:hover {
  background-color: rgba(234, 88, 12, 0.08);
  color: #EA580C;
  transform: translateX(4px);
}

.dark .dropdown-item:hover {
  background-color: rgba(251, 146, 60, 0.12);
  color: #FB923C;
  transform: translateX(4px);
}

/* Creative Floating / Drifting Animation for Premium Motion */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.6deg);
  }
}

.animate-float-card {
  animation: subtleFloat 6s ease-in-out infinite;
}

/* Sliding Cards Track & Smooth Horizontal Scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   HERO BANNER & SLIDER WITH REALISTIC ARTWORK (PODIUM & PRESS CONFERENCE)
   ========================================================================== */
.hero-slider-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 600px;
  background: #0B1726;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s ease;
  transform: scale(1.03);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 10;
}

/* Mobile Hero Banner Adaptation - 100% visible, zero clipping on mobile devices */
@media (max-width: 1023px) {
  .hero-slider-wrap {
    min-height: auto !important;
    overflow: visible !important;
    height: auto !important;
  }
  .hero-slider {
    min-height: auto !important;
    height: auto !important;
    display: block !important;
  }
  .hero-slide {
    position: relative !important;
    inset: auto !important;
    min-height: auto !important;
    height: auto !important;
    display: none !important;
    padding: 1.25rem 0 3.5rem 0 !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .hero-slide.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    transform: none !important;
  }
  .hero-slide img {
    max-height: 240px !important;
    width: auto !important;
    margin: 0 auto !important;
  }
  #slider-prev,
  #slider-next {
    display: none !important;
  }
  .slider-dots {
    bottom: 12px !important;
  }
}

/* Global Mobile Adaptation & Word Protection for Both English and Tamil */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 767px) {
  h1, h2, h3, h4, p, span, a, div {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .font-tamil h1,
  html[lang="ta"] h1 {
    font-size: 1.65rem !important;
    line-height: 1.35 !important;
  }
  .font-tamil h2,
  html[lang="ta"] h2 {
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
  }
  .font-tamil h3,
  html[lang="ta"] h3 {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
  }
  .font-tamil p,
  html[lang="ta"] p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
}

/* Creative Ken-Burns Smooth Image Zoom on Active Slide */
.hero-slide img {
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1);
}
.hero-slide.active img {
  transform: scale(1.05);
}

/* Kinetic Text & Typography Reveal Effects */
@keyframes kineticSlideUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide.active h1,
.hero-slide.active h2,
.hero-slide.active .hero-title-lead {
  animation: kineticSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-slide.active p,
.hero-slide.active .hero-desc-lead {
  animation: kineticSlideUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-slide.active .hero-badge {
  animation: kineticSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-slide.active .magnetic-btn {
  animation: kineticSlideUp 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

#hero-progress-bar {
  transition: width 0.05s linear;
}

.hero-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FBBF24;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title-lead {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-subtitle-lead {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #FBBF24;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.hero-desc-lead {
  font-size: clamp(0.875rem, 1.2vw, 1.05rem);
  color: #CBD5E1;
  max-width: 38rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ==========================================================================
   ADVANCED MODERN ANIMATIONS & EFFECTS SUITE
   ========================================================================== */

/* 1. Aurora / Mesh Gradient */
.aurora-bg {
  background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.1) 0%, transparent 60%);
  animation: auroraShift 12s ease infinite alternate;
}

@keyframes auroraShift {
  0% { filter: hue-rotate(0deg) scale(1); }
  100% { filter: hue-rotate(25deg) scale(1.05); }
}

/* 2. Infinite Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: #0D1E31;
  color: #E2E8F0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 3. Kinetic Typography & Blur-to-Sharp Text */
.blur-reveal {
  animation: blurIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-teal {
  background: linear-gradient(135deg, #2DD4BF 0%, #0D9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 4. 3D Card Tilt & Bento Grid */
.tilt-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Fullscreen Lightbox Modal - 100% Viewport Coverage Zero Gaps */
#gallery-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 9999999 !important;
  background-color: #030712 !important;
  background-color: rgba(3, 7, 18, 0.98) !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#gallery-lightbox.hidden {
  display: none !important;
}

.civic-bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.civic-bento-card h4 {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 0.35rem;
  font-weight: 700;
}

.civic-bento-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #64748B;
}

.dark .civic-bento-card p {
  color: #CBD5E1;
}

.civic-bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(217, 119, 6, 0.4);
}

/* 5. Glassmorphism Shine */
.shine-hover {
  position: relative;
  overflow: hidden;
}

.shine-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.75s ease;
  pointer-events: none;
}

.shine-hover:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* 6. Spotlight Glow */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* 7. Magnetic Button */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-mmi-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.btn-mmi-gold:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5);
}

.btn-mmi-blue {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-mmi-blue:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-mmi-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-mmi-outline:hover {
  border-color: var(--color-royal);
  color: var(--color-royal);
  background: rgba(37, 99, 235, 0.05);
}

/* 8. Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnimation 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 9. Custom Cursor Follower */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.3);
  border: 1.5px solid #F59E0B;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  z-index: 99999;
  display: none;
}

@media (pointer: fine) {
  #custom-cursor {
    display: block;
  }
}

/* 10. Skeleton Shimmer */
.skeleton-shimmer {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.dark .skeleton-shimmer {
  background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
    