/* ============================================================
   IYF South Bangalore — Main Design System
   Theme: Dark Orange | Jet Black | Off-White
   Mobile-First | Dark/Light Mode | Glassmorphism
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Dark Mode (Default) */
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-surface: #1e1e1e;
  --bg-surface-2: #252525;
  --bg-glass: rgba(30, 30, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);

  --accent: #e65c00;
  --accent-light: #ff8c00;
  --accent-glow: rgba(230, 92, 0, 0.25);
  --accent-gradient: linear-gradient(135deg, #e65c00 0%, #ff8c00 100%);

  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --text-inverse: #0a0a0a;

  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 8px 32px rgba(230, 92, 0, 0.3);

  --nav-bg: rgba(10, 10, 10, 0.85);
  --nav-scrolled: rgba(10, 10, 10, 0.98);

  /* Typography */
  --font-heading: 'Roboto Slab', serif;
  --font-body: 'Roboto Slab', serif;
  --font-quote: 'Roboto Slab', serif;

  /* Spacing */
  --section-py: 80px;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Light Mode ---- */
[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f0f0f0;
  --bg-surface: #ffffff;
  --bg-surface-2: #f8f8f8;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);

  --accent: #ff6f00;
  --accent-light: #ff8f00;
  --accent-glow: rgba(255, 111, 0, 0.15);
  --accent-gradient: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);

  --text-primary: #202020;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-inverse: #ffffff;

  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 8px 32px rgba(255, 111, 0, 0.2);

  --nav-bg: rgba(250, 250, 250, 0.85);
  --nav-scrolled: rgba(250, 250, 250, 0.98);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  /* Prevent content hiding behind fixed navbar on non-hero pages */
  padding-top: 70px;
}

@media (max-width: 767px) {
  body {
    padding-top: 60px;
  }
}

/* Hero/home page: remove body padding-top so hero is full-screen behind the transparent navbar */
body.page-home {
  padding-top: 0;
}

/* ---- Typography ---- */
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(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent-light);
}

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

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
}

/* ---- Section ---- */
.section {
  padding: var(--section-py) 0;
}

@media (max-width: 767px) {
  .section {
    padding: 50px 0;
  }
}

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

@media (max-width: 767px) {
  .section-header {
    margin-bottom: 40px;
  }
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(230, 92, 0, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  transition-duration: 0.08s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 0 1px var(--accent);
}

@media (max-width: 767px) {
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230, 92, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 8px 28px rgba(230, 92, 0, 0.5);
  color: #fff;
  filter: brightness(1.05);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: var(--transition);
  padding: 0;
}

.navbar.scrolled {
  background: var(--nav-scrolled);
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (max-width: 767px) {
  .navbar-inner {
    height: 60px;
    padding: 0 16px;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-accent);
  flex-shrink: 0;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand-text .brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.navbar-brand-text .brand-sub {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .navbar-brand-text .brand-name {
    font-size: 0.95rem;
  }

  .navbar-brand-text .brand-sub {
    font-size: 0.62rem;
  }
}

.navbar-nav {
  display: none;
  list-style: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
  }
}

.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(25deg) scale(1.08);
  box-shadow: 0 0 16px var(--accent-glow);
}

.theme-toggle:active {
  transform: rotate(25deg) scale(0.95);
  transition-duration: 0.1s;
}

/* Mobile Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  /* Hide mobile FAB on desktop — desktop uses navbar theme-toggle */
  .theme-fab {
    display: none !important;
  }
}

/* Hamburger hover with orange accent */
.hamburger:hover span {
  background: var(--accent);
}

/* On mobile: theme toggle is hidden via d-none d-md-flex Bootstrap class */
/* Additional fallback for non-Bootstrap pages */
@media (max-width: 767px) {
  .theme-toggle {
    display: none !important;
  }

  /* Hamburger icon improved styling on mobile */
  .hamburger {
    width: 34px;
    padding: 5px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
  }

  .hamburger span {
    height: 2.5px;
    border-radius: 3px;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-slow);
  z-index: 999;
}

@media (max-width: 767px) {
  .mobile-menu {
    top: 60px;
    padding: 16px;
  }
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu ul a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.mobile-menu ul a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.mobile-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.mobile-dropdown-btn:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.mobile-dropdown-btn .dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.mobile-dropdown-btn.active .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.mobile-submenu {
  list-style: none;
  padding-left: 12px !important;
  margin: 4px 0 8px 12px !important;
  border-left: 2px solid rgba(245, 158, 11, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px !important;
}

.mobile-submenu a {
  font-size: 0.9rem !important;
  padding: 8px 12px !important;
  color: var(--text-secondary) !important;
}

.mobile-submenu a:hover {
  color: var(--accent) !important;
}

.nav-dashboard-link {
  color: var(--accent, #f59e0b) !important;
  font-weight: 600 !important;
}


/* ---- Cards ---- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 92, 0, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 4px 12px var(--accent-glow);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (max-width: 767px) {
  .card-img {
    height: 180px;
  }
}

.card-body {
  padding: 24px;
}

@media (max-width: 767px) {
  .card-body {
    padding: 20px;
  }
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- Grid Layouts ---- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Prabhupada Quote Block ---- */
.quote-block {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  position: relative;
  padding: 20px 28px;
  border-left: 3px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-block::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  position: absolute;
  top: -8px;
  left: 12px;
  font-family: var(--font-quote);
}

.quote-attribution {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .form-group {
    margin-bottom: 20px;
  }
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .form-label {
    font-size: 0.85rem;
  }
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: var(--transition);
  -webkit-appearance: none;
}

@media (max-width: 767px) {
  .form-control {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

@media (max-width: 767px) {
  textarea.form-control {
    min-height: 100px;
  }
}

select.form-control {
  cursor: pointer;
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.badge-accent {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(230, 92, 0, 0.3);
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px;
}

[data-theme="light"] .footer {
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-brand-sub {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-contact-icon {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-map {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.footer-map iframe {
  width: 100%;
  height: 160px;
  border: none;
  filter: grayscale(0.3) contrast(1.1);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--accent);
}

/* ---- Footer Prabhupada Quote Strip ---- */
.quote-strip {
  background: linear-gradient(135deg, rgba(230, 92, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
  border-top: 1px solid rgba(230, 92, 0, 0.2);
  border-bottom: 1px solid rgba(230, 92, 0, 0.2);
  padding: 28px 0;
  margin-bottom: 50px;
  text-align: center;
}

.quote-strip .quote-text {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto 8px;
}

.quote-strip .quote-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.animate-fade-up.delay-1 {
  animation-delay: 0.1s;
}

.animate-fade-up.delay-2 {
  animation-delay: 0.2s;
}

.animate-fade-up.delay-3 {
  animation-delay: 0.3s;
}

.animate-fade-up.delay-4 {
  animation-delay: 0.4s;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Utility ---- */
.text-accent {
  color: var(--accent);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.w-full {
  width: 100%;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-primary);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
}

.page-hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(230, 92, 0, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

/* ---- Messages/Alerts ---- */
.messages-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  animation: fadeUp 0.4s ease;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.alert-info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* ---- Selection ---- */
::selection {
  background: var(--accent-glow);
  color: var(--accent);
}

/* ============================================================
   MOBILE THEME FAB — floating dark/light toggle bottom-right
   Visible only on mobile (<768px)
   ============================================================ */
.theme-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--shadow-md), 0 0 20px rgba(230, 92, 0, 0.2);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  /* Pull from main gradient for ring effect */
  outline: none;
}

.theme-fab:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent), var(--shadow-md);
  transform: scale(1.1) rotate(15deg);
}

.theme-fab:active {
  transform: scale(0.95);
}

/* ============================================================
   NAVBAR — ensure scrolled state is fully opaque & no overlap
   ============================================================ */
.navbar.scrolled {
  background: var(--nav-scrolled);
  border-bottom-color: var(--border-color);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Fix: navbar text colour in light mode on scroll */
[data-theme="light"] .navbar.scrolled {
  background: rgba(250, 250, 250, 0.98);
}


/* ===== NAVBAR DROPDOWN STYLES ===== */
@media (min-width: 768px) {
  .nav-item-dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 8px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
  }

  /* Dropdown Menu Arrow */
  .dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--bg-surface) transparent;
    pointer-events: none;
  }

  /* Border color match for the arrow shadow */
  .dropdown-menu::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent var(--border-color) transparent;
    z-index: -1;
    pointer-events: none;
  }

  .nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
  }

  .dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
    white-space: nowrap;
    border-radius: 0;
  }

  .dropdown-item:hover {
    color: var(--accent) !important;
    background: var(--accent-glow) !important;
  }

  .dropdown-item.active {
    color: var(--accent) !important;
    background: var(--accent-glow) !important;
    font-weight: 600;
  }
}

/* ============================================================
   HOMEPAGE HEADER CUSTOMIZATIONS (White text when unscrolled)
   ============================================================ */
.page-home .navbar:not(.scrolled) .brand-name {
  color: #ffffff !important;
}

.page-home .navbar:not(.scrolled) .brand-sub {
  color: rgba(255, 255, 255, 0.75) !important;
}

.page-home .navbar:not(.scrolled) .navbar-nav>li>a {
  color: rgba(255, 255, 255, 0.85) !important;
}

.page-home .navbar:not(.scrolled) .navbar-nav>li>a:hover,
.page-home .navbar:not(.scrolled) .navbar-nav>li>a.active {
  color: #ffffff !important;
  background: var(--accent-glow) !important;
}

.page-home .navbar:not(.scrolled) .theme-toggle {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.page-home .navbar:not(.scrolled) .theme-toggle:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.page-home .navbar:not(.scrolled) .hamburger span {
  background: #ffffff !important;
}