/*
    Theme Name: MathsReformer
    Description: A custom WordPress theme for Learning Mathematics platform.
    Author: MathsReformer
    Author URI: https://mathsreformer.com
    Tags: custom-layout, responsive, blog, portfolio, Live Classes, Reading Corner, free maths study.
    Version: 1.0.0
    License: GNU General Public License v2 or later
*/

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ---------------------------------------------------------
   CSS VARIABLES (Light theme defaults)
   Use body.dark-mode to flip to dark variables (or JS toggle)
   --------------------------------------------------------- */
:root {
  /* base */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --font-serif: 'Tinos', Georgia, 'Times New Roman', serif;
  --radius: 12px;

  /* Layout */
  --container-max-width: 1200px;
  --page-padding-x: 20px;

  /* Light theme background / text */
  --bg: #ffffff;
  --surface: #f7f7f7;
  --card: #ffffff;
  --text: #1b1b1b;
  --muted: #6c757d;
  --border: rgba(47,128,237,0.15);

  /* Brand (Gold + Blue) */
  --brand-blue: #2f80ed;      /* primary blue */
  --brand-blue-soft: #7fb3ff; /* lighter blue */
  --brand-gold: #ffb84d;      /* gold */
  --brand-gold-deep: #e6a23c;

  /* Accent glows */
  --glow-blue: 0 0 18px rgba(47,128,237,0.18), 0 0 40px rgba(47,128,237,0.07);
  --glow-gold: 0 0 18px rgba(255,184,77,0.16), 0 0 40px rgba(255,184,77,0.06);

  /* Dropdowns, mobile menu */
  --dropdown-bg: #ffffff;
  --dropdown-hover: #f0f6ff;

  /* Buttons */
  --btn-text-on-accent: #081223;

  /* Shadows */
  --soft-shadow: 0 8px 30px rgba(16,24,40,0.06);

  /* Transition */
  --transition-fast: 180ms;
  --transition-medium: 300ms;
  /*Other */
  --blue: #2f80ed;
  --gold: #ffb84d;
  --dark-bg: #0f1220;
  --card-bg-light: #ffffff;
  --card-bg-dark: #1f2233;
  --text-light: #1b1b1b;
  --text-dark: #f5f5f7;
  --border-light: rgba(47,128,237,0.15);
  --border-dark: rgba(255,184,77,0.15);
}

/* Dark theme overrides — toggled with body.dark-mode (and via prefers-color-scheme too) */
body.dark-mode {
  --bg: #0f1220;
  --surface: #16182b;
  --card: #1f2233;
  --text: #f5f5f7;
  --muted: #9aa0b0;
  --border: rgba(255,184,77,0.15);

  --dropdown-bg: #232635;
  --dropdown-hover: #2b3040;

  /* Keep brand but adjust glow intensities */
  --glow-blue: 0 0 28px rgba(47,128,237,0.22), 0 0 60px rgba(47,128,237,0.08);
  --glow-gold: 0 0 28px rgba(255,184,77,0.20), 0 0 60px rgba(255,184,77,0.06);

  --soft-shadow: 0 12px 40px rgba(2,6,23,0.6);
}

/* Auto prefer dark if system requests it (but user toggle overrides via .dark-mode) */
@media (prefers-color-scheme: dark) {
  :root {
    /* no-op defaults; users can rely on body.dark-mode for explicit control */
  }
}

/* ---------------------------------------------------------
   Base & Reset
   --------------------------------------------------------- */
* { 
    box-sizing: border-box;
    margin: 0;
    padding: 0; 
    
}
html, body { height: 100%;overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition: background var(--transition-medium), color var(--transition-medium);
  line-height: 1.5;
}

/* Link defaults */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* Small utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-1 { margin-top: .5rem; }
.p-2 { padding: .75rem; }

.text-glow {
  color: gold;
  text-shadow: 0 0 10px gold;
}

/* ============================================================
   ⚡ FIXED HEADER — Neon Glow + Scroll + Power-up Animation (Dropdown Safe)
   ============================================================ */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* ✅ anchor both sides */
  width: 100%; /* ✅ perfect width, no scrollbar offset */
  z-index: 1000;
  /*background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));*/
  background: transparent;
  backdrop-filter: blur(10px) saturate(1.2);
  /*border-bottom: 2px solid rgba(47,128,237,0.15);*/
  /*box-shadow: 0 2px 20px rgba(47,128,237,0.1);*/
  transition: all 0.4s ease;
  opacity: 1;
  animation: headerPowerUp 1.2s ease-out forwards;
}

/* 🌑 Dark Mode */
body.dark-mode .main-header {
    background: transparent;
  /*background: linear-gradient(180deg, rgba(18,20,32,0.9), rgba(18,20,32,0.7));*/
  /*border-bottom: 2px solid rgba(255,184,77,0.2);*/
  /*box-shadow: 0 2px 25px rgba(47,128,237,0.15), 0 0 40px rgba(255,184,77,0.08);*/
}

/* 🌟 Scroll Compact Mode */
body.scrolled .main-header {
  padding: 2px 0;
  backdrop-filter: blur(14px) saturate(1.4);
  /*box-shadow: 0 4px 25px rgba(47,128,237,0.25),*/
              /*0 0 40px rgba(255,184,77,0.15);*/
  /*border-bottom-color: rgba(255,184,77,0.3);*/
}

/* ⚡ Neon Glow Strip */
.main-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  /*background: linear-gradient(90deg, rgba(47,128,237,0.4), rgba(255,184,77,0.6), rgba(47,128,237,0.4));*/
  /*box-shadow: 0 0 30px rgba(47,128,237,0.3), 0 0 50px rgba(255,184,77,0.25);*/
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

/* 🌈 Power-up pulse effect */
body.loaded .main-header::after {
  opacity: 1;
  transform: scaleX(1);
  animation: neonStripPulse 5s ease-in-out infinite alternate;
}

@keyframes neonStripPulse {
  0% {
    box-shadow: 0 0 20px rgba(47,128,237,0.3), 0 0 40px rgba(255,184,77,0.25);
  }
  50% {
    box-shadow: 0 0 50px rgba(47,128,237,0.45), 0 0 80px rgba(255,184,77,0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(47,128,237,0.3), 0 0 40px rgba(255,184,77,0.25);
  }
}

/* ✅ Header layout */
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--page-padding-x);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* ✅ Logo hover glow */
/*============ Back Arrow style for single.php page =============== */
.back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  color: #2f80ed;
  font-size: 22px;
  text-decoration: none;
  transition: 0.3s;
}

.back-arrow:hover {
  background: rgba(47,128,237,0.1);
  transform: translateX(-2px);
}

@media(max-width:768px) {
  .back-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}


/*================================================================== */
.logo img.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: all 0.4s ease;
}
.logo img.logo-img:hover {
  transform: rotate(8deg) scale(1.05);
  filter: drop-shadow(0 0 10px rgba(47,128,237,0.4)) drop-shadow(0 0 18px rgba(255,184,77,0.3));
}

/* Desktop nav */
.desktop-nav { display:block; }
.nav-links { list-style:none; display:flex; gap:22px; align-items:center; }
.nav-links .nav-link { color:var(--text); font-weight:600; padding:6px 10px; border-radius:10px; transition: all var(--transition-medium); position:relative; }
/* ✅ Link hover */
.nav-links .nav-link:hover {
  color: var(--brand-gold);
  text-shadow: 0 0 8px rgba(255,184,77,0.4), 0 0 14px rgba(47,128,237,0.25);
  box-shadow: 0 0 18px rgba(47,128,237,0.25);
  transform: translateY(-2px);
}

/* 🌞 Light Mode */
body:not(.dark-mode) .nav-links .nav-link:hover {
  color: var(--brand-blue);
  text-shadow: 0 0 8px rgba(47,128,237,0.4);
}

/* 🌌 Compact Hover (when scrolled) */
body.scrolled .nav-links .nav-link:hover {
  color: var(--brand-gold);
  text-shadow: 0 0 10px rgba(255,184,77,0.5);
}

/* ✅ Dropdowns visible on top of header */
.dropdown-menu {
  z-index: 2000 !important; /* ensure popups are visible above header */
}

/* ✅ Global overflow fix — only horizontally */
html, body {
  overflow-x: hidden !important;
}

/* little down arrow using pseudo element for improved contrast */
.nav-link .arrow-down { margin-left:6px; display:inline-block; width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid currentColor; vertical-align:middle; opacity:.8; }

/* Dropdown menus */
.has-dropdown { position:relative; }
.dropdown-menu {
  position:absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  background: var(--dropdown-bg);
  /*background: rgba(0, 45, 98, 0.95);*/
  color: var(--text);
  padding: 14px;
  border-radius: 12px;
  /*box-shadow: var(--soft-shadow);*/
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  /*border: 1px solid var(--border);*/
  
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  display: flex;
    flex-direction: column;
    gap: 15px;
  
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Dropdown items */
.dropdown-item {
  min-width: 320px;display:flex; align-items:flex-start; gap:12px; padding:8px; border-radius:8px; transition: background var(--transition-fast), transform var(--transition-fast);
}
.dropdown-item > div {flex-shrink: 1;}
.dropdown-item:hover { background: var(--dropdown-hover); transform: translateX(4px); cursor:pointer;}
.dropdown-item .icon { font-size:20px; width:34px; height:34px; display:inline-grid; place-items:center; border-radius:8px; background:linear-gradient(180deg, rgba(0,0,0,0.03), rgba(255,255,255,0)); }
.dropdown-item h4 { margin:0; font-size:15px; font-weight:700; color:var(--text); }
.dropdown-item p { margin:4px 0 0; color:var(--muted); font-size:13px; line-height:1.4; white-space: normal;word-wrap: break-word; }

/* dropdown actions */
.dropdown-actions { display:flex; gap:10px; margin-top:10px; border-top:1px solid var(--border); padding-top:12px; }
.action-button {
  display:inline-flex; gap:8px; align-items:center; padding:8px 12px; border-radius:10px; border:1px solid var(--border);
  background:transparent; color:var(--muted); font-weight:600; transition: all var(--transition-fast);
}
.action-button:hover { background: linear-gradient(90deg, rgba(47,128,237,0.05), rgba(255,184,77,0.03)); color:var(--brand-blue); box-shadow: var(--glow-blue); border-color: rgba(47,128,237,0.12); }
body.dark-mode .action-button:hover {
    color: var(--brand-gold);
}

/* Header actions (theme toggle, login, menu) */
.header-actions { display:flex; gap:12px; align-items:center; }
#themeToggle { background:transparent; border:0; padding:6px; border-radius:8px; font-size:18px; cursor:pointer; color:var(--text); transition: transform var(--transition-fast); }
#themeToggle:active { transform: scale(.98); }
#themeToggle ion-icon { font-size:18px; vertical-align:middle; }
/* Only show correct theme icon */
#themeToggle #moonIcon { display: inline; }
#themeToggle #sunIcon { display: none; }

body.dark-mode #themeToggle #moonIcon { display: none; }
body.dark-mode #themeToggle #sunIcon { display: inline; }

/* Menu toggle (hamburger) */
.menu-toggle { display:none; background:none; border:0; cursor:pointer; width:15px; height:42px; align-items:center; justify-content:center; flex-direction:column; border-radius:10px; }

/*.menu-toggle .bar { width:18px; height:2px; background:var(--text); display:block; margin:3px 0; border-radius:2px; transition: all var(--transition-fast); }*/

/* menu toggle bars */
.menu-toggle .bar {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--text);
  margin: 1.6px 0;
  border-radius: 50%;
  transition: background 0.3s ease;
}
body.dark-mode .menu-toggle .bar {
  background: var(--brand-gold);
}

/* ---------------------------------------------------------
   MOBILE MENU + OVERLAY  (Dual Mode Premium Glow)
   --------------------------------------------------------- */

/* Base menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  z-index: 1005;
  padding: 10px 22px 22px;
  backdrop-filter: blur(14px) saturate(1.2);
  transition: right 0.35s cubic-bezier(0.25, 0.9, 0.25, 1), background 0.6s ease;
}

/* 🌤 Light mode style — luminous white + gold-blue mist */
body:not(.dark-mode) .mobile-menu {
  background:
    radial-gradient(circle at top left, rgba(255, 184, 77, 0.10), rgba(255, 255, 255, 0.8) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 255, 0.85));
  box-shadow:
    -10px 0 30px rgba(255, 184, 77, 0.18),
    -14px 0 60px rgba(47, 128, 237, 0.10),
    inset -4px 0 20px rgba(47, 128, 237, 0.08);
    
}

/* 🌑 Dark mode style — your existing deep gold-blue energy */
body.dark-mode .mobile-menu {
  background: radial-gradient(circle at top left, rgba(255, 184, 77, 0.08), transparent 60%),
              linear-gradient(180deg, rgba(10, 12, 25, 0.95), rgba(10, 10, 18, 0.98));
  box-shadow:
    -6px 0 30px rgba(255, 184, 77, 0.15),
    -10px 0 60px rgba(47, 128, 237, 0.1);
}

/* ============================================================
   ✨ INNER EDGE LIGHT LEAK (for Mobile Menu)
   ============================================================ */

/* Common pseudo-element for glow edge */
.mobile-menu::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 2;
}

/* 🌤 Light Mode – soft gold-blue edge glow */
body:not(.dark-mode) .mobile-menu::before {
  background: linear-gradient(
    180deg,
    rgba(255, 184, 77, 0.35) 0%,
    rgba(47, 128, 237, 0.25) 100%
  );
  box-shadow:
    0 0 18px rgba(255, 184, 77, 0.25),
    0 0 36px rgba(47, 128, 237, 0.18);
  opacity: 0.8;
  animation: edgeGlowLight 6s ease-in-out infinite alternate;
}

/* 🌑 Dark Mode – deeper gold-blue glow */
body.dark-mode .mobile-menu::before {
  background: linear-gradient(
    180deg,
    rgba(255, 184, 77, 0.4) 0%,
    rgba(47, 128, 237, 0.3) 100%
  );
  box-shadow:
    0 0 20px rgba(255, 184, 77, 0.25),
    0 0 40px rgba(47, 128, 237, 0.2);
  opacity: 0.9;
  animation: edgeGlowDark 6s ease-in-out infinite alternate;
}

/* ✨ Light Mode Animation (gentle shimmer) */
@keyframes edgeGlowLight {
  0% {
    box-shadow:
      0 0 20px rgba(255, 184, 77, 0.25),
      0 0 40px rgba(47, 128, 237, 0.15);
    opacity: 0.8;
  }
  50% {
    box-shadow:
      0 0 30px rgba(255, 184, 77, 0.35),
      0 0 70px rgba(47, 128, 237, 0.25);
    opacity: 1;
  }
  100% {
    box-shadow:
      0 0 20px rgba(255, 184, 77, 0.25),
      0 0 40px rgba(47, 128, 237, 0.15);
    opacity: 0.8;
  }
}

/* ✨ Dark Mode Animation (stronger pulse) */
@keyframes edgeGlowDark {
  0% {
    box-shadow:
      0 0 25px rgba(255, 184, 77, 0.25),
      0 0 60px rgba(47, 128, 237, 0.18);
    opacity: 0.85;
  }
  50% {
    box-shadow:
      0 0 45px rgba(255, 184, 77, 0.4),
      0 0 90px rgba(47, 128, 237, 0.25);
    opacity: 1;
  }
  100% {
    box-shadow:
      0 0 25px rgba(255, 184, 77, 0.25),
      0 0 60px rgba(47, 128, 237, 0.18);
    opacity: 0.85;
  }
}


.mobile-menu.active { right: 0; }

/* Header & close button */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  /*margin-bottom: 16px;*/
  border-bottom: 1px solid rgba(255, 184, 77, 0.25);
}

.close-menu {
  background: none;
  border: none;
  color: var(--brand-gold);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease;
}
.close-menu:hover { transform: rotate(90deg); color: var(--brand-blue); }

/* Navigation links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
/*=========================== dinamic desktop nav link setting ============ */
.mobile-nav-links .nav-links {
    display: block;
}
/* Section titles */
.mobile-nav-links .nav-link {
  font-size: 13px;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 14px 0 8px;
  text-shadow: 0 0 8px rgba(47, 128, 237, 0.4);
}

/* Dropdown items */
.mobile-nav-links .dropdown-menu { display: flex; flex-direction: column; gap: 6px; }

.mobile-nav-links .dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.25s ease, transform 0.2s ease;
}
.mobile-nav-links .dropdown-item:hover {
  background: linear-gradient(90deg, rgba(47, 128, 237, 0.1), rgba(255, 184, 77, 0.08));
  transform: translateX(6px);
  box-shadow: 0 0 12px rgba(47, 128, 237, 0.15);
}
.mobile-nav-links .dropdown-item h4 { font-size: 15px; font-weight: 600; color: var(--brand-gold); }
.mobile-nav-links .dropdown-item p { font-size: 13px; color: var(--muted); }

/* Divider and Actions */

.mobile-nav-links .dropdown-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.mobile-nav-links .dropdown-actions .action-button {
  color: var(--brand-blue);
  border: 1px solid rgba(47, 128, 237, 0.25);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(47, 128, 237, 0.1), rgba(255, 184, 77, 0.06));
  text-align: center;
  font-weight: 600;
  padding: 10px;
  transition: all 0.3s ease;
}
.mobile-nav-links .dropdown-actions .action-button:hover {
  background: rgba(255, 184, 77, 0.12);
  color: var(--brand-gold);
  box-shadow: 0 0 20px rgba(255, 184, 77, 0.25);
}

/* ============================================================
   🌈 Mobile Menu Overlay — Enhanced Glow (Light + Dark Mode)
   ============================================================ */

.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 250, 245, 0.8), rgba(255, 240, 210, 0.55), rgba(255, 255, 255, 0.85)),
    radial-gradient(circle at 80% 80%, rgba(47, 128, 237, 0.18), rgba(255, 184, 77, 0.12));
  backdrop-filter: blur(5px) saturate(1.3);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition-medium);
  z-index: 1001;
}
.mobile-menu.active ~ .mobile-menu-overlay {
  opacity: 1; visibility: visible;
  animation: neonPulseLight 5s ease-in-out infinite;
}

/* Light pulse */
@keyframes neonPulseLight {
  0% { box-shadow: inset -8px 0 40px rgba(255, 184, 77, 0.12), 0 0 40px rgba(47, 128, 237, 0.08); }
  50% { box-shadow: inset -8px 0 60px rgba(255, 184, 77, 0.22), 0 0 90px rgba(47, 128, 237, 0.16); }
  100% { box-shadow: inset -8px 0 40px rgba(255, 184, 77, 0.12), 0 0 40px rgba(47, 128, 237, 0.08); }
}

/* Dark overlay */
body.dark-mode .mobile-menu-overlay {
  background: radial-gradient(circle at 70% 40%, rgba(10, 20, 40, 0.9), rgba(20, 25, 50, 0.85), rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(4px);
}
body.dark-mode .mobile-menu.active ~ .mobile-menu-overlay {
  animation: neonPulseDark 4.5s ease-in-out infinite;
}
@keyframes neonPulseDark {
  0% { box-shadow: inset -8px 0 40px rgba(255, 184, 77, 0.10), 0 0 60px rgba(47, 128, 237, 0.08); }
  50% { box-shadow: inset -8px 0 60px rgba(255, 184, 77, 0.20), 0 0 140px rgba(47, 128, 237, 0.18); }
  100% { box-shadow: inset -8px 0 40px rgba(255, 184, 77, 0.10), 0 0 60px rgba(47, 128, 237, 0.08); }
}


/* ============================================================
   ✨ LUXURIOUS USER INFO CARD — Neon Blue + Gold Glass Effect
   ============================================================ */
.user-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,184,77,0.25);
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(240,245,255,0.35));
  backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 0 20px rgba(47,128,237,0.15), 0 0 40px rgba(255,184,77,0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  animation: cardPulse 6s ease-in-out infinite alternate;
}

body.dark-mode .user-info-card {
  background: linear-gradient(135deg, rgba(18,20,32,0.85), rgba(18,20,32,0.65));
  border-color: rgba(255,184,77,0.25);
  box-shadow: 0 0 25px rgba(47,128,237,0.25), 0 0 45px rgba(255,184,77,0.15);
}

/* Subtle glow pulse */
@keyframes cardPulse {
  0% { box-shadow: 0 0 20px rgba(47,128,237,0.15), 0 0 40px rgba(255,184,77,0.1); }
  50% { box-shadow: 0 0 40px rgba(47,128,237,0.25), 0 0 70px rgba(255,184,77,0.25); }
  100% { box-shadow: 0 0 20px rgba(47,128,237,0.15), 0 0 40px rgba(255,184,77,0.1); }
}

/* Avatar */
.user-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(47,128,237,0.3);
  box-shadow: 0 0 12px rgba(47,128,237,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.user-info-card:hover .user-avatar img {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(47,128,237,0.35), 0 0 50px rgba(255,184,77,0.2);
}

/* Text content */
.user-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}
.user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.user-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-shadow: 0 0 8px rgba(47,128,237,0.4);
}
.user-status.premium {
  color: var(--brand-gold);
  text-shadow: 0 0 10px rgba(255,184,77,0.5);
}

/* Buttons */
.login-btn, .logout-btn {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(47,128,237,0.25);
  color: var(--brand-blue);
  transition: all 0.3s ease;
}
.login-btn:hover, .logout-btn:hover {
  color: var(--brand-gold);
  box-shadow: 0 0 20px rgba(47,128,237,0.3), 0 0 40px rgba(255,184,77,0.25);
  transform: translateY(-2px);
}
body.dark-mode .logout-btn, body.dark-mode .login-btn {
  color: var(--brand-gold);
  border-color: rgba(255,184,77,0.25);
}

/* Responsive placement */
@media (max-width: 992px) {
  .user-info-card {
    margin: 10px 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .user-meta { align-items: center; }
  .login-btn, .logout-btn { width: 100%; text-align: center; }
}


/* ============================================================
   ✨ LUXURY HEADER — Unified Neon Glass Bar
   ============================================================ */

.luxury-header-glass {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /*background: linear-gradient(120deg, rgba(255,255,255,0.75), rgba(245,250,255,0.4));*/
  background: transparent;
  backdrop-filter: blur(12px) saturate(1.4);
  /*border-bottom: 1px solid rgba(47,128,237,0.25);*/
  /*box-shadow: 0 2px 18px rgba(47,128,237,0.15), 0 2px 28px rgba(255,184,77,0.1);*/
  z-index: 1200;
  transform: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Dark mode refinement */
body.dark-mode .luxury-header-glass {
    background: transparent;
  /*background: linear-gradient(120deg, rgba(18,20,32,0.9), rgba(18,20,32,0.65));*/
  /*border-bottom: 1px solid rgba(255,184,77,0.2);*/
  /*box-shadow: 0 0 25px rgba(47,128,237,0.2), 0 0 45px rgba(255,184,77,0.15);*/
}

/* Add luxury glow overlay */
.luxury-header-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background: radial-gradient(circle at 60% 40%, rgba(47,128,237,0.12), rgba(255,184,77,0.08));*/
  opacity: 1;
  pointer-events: none;
}

/* Content inside header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  position: relative;
  z-index: 2;
}

/* Logo glow */
.logo-img {
  filter: drop-shadow(0 0 8px rgba(47,128,237,0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(255,184,77,0.4));
}

/* Nav links */
.nav-link {
  position: relative;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}
/*.nav-link::after {*/
/*  content: "";*/
/*  position: absolute;*/
/*  left: 0;*/
/*  bottom: -4px;*/
/*  width: 0;*/
/*  height: 2px;*/
/*  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));*/
/*  transition: width 0.3s ease;*/
/*}*/
/*.nav-link:hover::after {*/
/*  width: 100%;*/
/*}*/
.nav-link:hover {
  color: var(--brand-gold);
}

/* Theme toggle button */
.theme-toggle-btn {
  background: linear-gradient(135deg, rgba(47,128,237,0.2), rgba(255,184,77,0.15));
  /*box-shadow: 0 0 10px rgba(47,128,237,0.2);*/
  border: 1px solid rgba(47,128,237,0.25);
  /*padding: 8px;*/
  transition: all 0.3s ease;
}
.theme-toggle-btn:hover {
  box-shadow: 0 0 20px rgba(47,128,237,0.35), 0 0 40px rgba(255,184,77,0.25);
  transform: rotate(12deg);
}

/* merge transition glow with user card */
.user-info-card {
  margin-left: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(245,245,255,0.35));
  border: 1px solid rgba(47,128,237,0.25);
}
body.dark-mode .user-info-card {
  background: linear-gradient(135deg, rgba(18,20,32,0.9), rgba(18,20,32,0.7));
  border-color: rgba(255,184,77,0.25);
}

/* responsive */
@media (max-width: 992px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .user-info-card {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

/* ==========================================================
   Auto-cloned mobile dropdown styling ( Mobile menu - drawer css )
   ========================================================== */
/*.mobile-nav-links {*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  gap: 8px;*/
/*}*/

/*.mobile-nav-links .nav-links {*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  gap: 12px;*/
/*}*/

/*.mobile-nav-links .nav-link {*/
/*  display: flex;*/
/*  justify-content: space-between;*/
/*  align-items: center;*/
/*  padding: 10px;*/
/*  border-radius: 10px;*/
/*  color: var(--text);*/
/*  background: rgba(255,255,255,0.05);*/
/*  transition: all 0.3s ease;*/
/*}*/

/*.mobile-nav-links .nav-link:hover {*/
/*  background: rgba(47,128,237,0.1);*/
/*  color: var(--brand-blue);*/
/*}*/

/*.mobile-nav-links .dropdown-menu.mobile-dropdown {*/
/*  background: rgba(255,255,255,0.05);*/
/*  margin: 5px 0 0 10px;*/
/*  border-radius: 10px;*/
/*  padding: 8px 12px;*/
/*}*/

/*body.dark-mode .mobile-nav-links .dropdown-menu.mobile-dropdown {*/
/*  background: rgba(255,255,255,0.06);*/
/*}*/

/* simple indicator for opened mobile dropdown */
/*.mobile-nav-links .nav-link.open {*/
/*  color: var(--brand-gold);*/
/*}*/

/* === Profile Popup Floating Box ====================================== */
              /*Profile Popup Floating Box*/
/*========================================================================= */
/* Root vars (inherit from your dark/light system) */
:root {
  --pp-bg: #ffffff;
  --pp-elev: rgba(0,0,0,.08);
  --pp-text: #111827;
  --pp-subtext: #6b7280;
  --pp-border: rgba(0,0,0,.08);
}
body.dark-mode, [data-theme="dark"] {
  --pp-bg: #1f1f22;
  --pp-elev: rgba(255,255,255,.08);
  --pp-text: #e5e7eb;
  --pp-subtext: #a3a8b3;
  --pp-border: rgba(255,255,255,.12);
}

/* Trigger button */
.profile-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: .1rem;
  width: 25px; height: 25px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--pp-border) inset;
  cursor: pointer;
}
.profile-trigger img { width: 100%; height: 100%; object-fit: cover; display:block; }
.profile-trigger:hover {
  transform: scale(1.2);
  border: 1px solid var(--brand-gold);
  box-shadow: 0 0 25px rgba(47,128,237,1), 0 0 50px rgba(255,184,77,1);
  transition: 0.5s;
}

/* Popup shell */
.profile-popup {
  position: fixed; /* we position via JS near the trigger */
  width: 320px;
  background: var(--pp-bg);
  color: var(--pp-text);
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0,0,0,.18), 0 1px 0 var(--pp-elev) inset;
  border: 1px solid var(--pp-border);
  padding: 12px;
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 9999;
}
.profile-popup.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.pp-arrow {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--pp-bg);
  border-left: 1px solid var(--pp-border);
  border-top: 1px solid var(--pp-border);
  transform: rotate(45deg);
  top: -6px; right: 10px;
}

/* Header row */
.pp-header {
  display: flex; gap: 12px; align-items: center;
  padding: 6px 6px 10px;
}
.pp-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--pp-border) inset;
}
.pp-id .pp-name { font-weight: 600; line-height: 1.2; }
.pp-id .pp-email { font-size: 13px; color: var(--pp-subtext); }

.pp-actions { display: grid; gap: 8px; margin: 8px 0 10px; }
.pp-btn {
  width: 100%;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--pp-border);
  background: transparent; cursor: pointer; text-decoration: none;
  color: var(--pp-text);
}
.pp-btn:hover { background: var(--pp-elev); }

.pp-divider { height: 1px; background: var(--pp-border); margin: 6px 0 10px; }

.pp-links { display: grid; gap: 6px; }
.pp-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; color: var(--pp-text);
  text-decoration: none;
}
.pp-link:hover { background: var(--pp-elev); }

/* Small screens: keep it anchored nicely */
@media (max-width: 480px) {
  .profile-popup { width: 96vw; }
  
}

@media (max-width: 400px) {
  .pp-arrow { right: 40px; }
}


/* ------------------------------------------------------------------------------------------------------------------------
                           FRONT PAGE
   --------------------------------------------------------- */

/* =============== Root & Base =============== */
.frontpage {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Section defaults */

.home-section {
  padding: 80px 0;
  position: relative;
  transition: all 0.6s ease;
}
.home-section h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-section p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: 1rem;
  line-height: 1.6;
}

/* =============== HERO =============== */
.hero-section {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 120%;
  background: radial-gradient(circle at 30% 30%, rgba(47,128,237,0.15), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(255,184,77,0.15), transparent 60%);
  background-attachment: fixed;
  animation: parallaxMove 12s ease-in-out infinite alternate;
}
@keyframes parallaxMove {
  from { transform: translateY(-20px); }
  to   { transform: translateY(20px); }
}
.hero-content {
  position: relative;
  justify-items:center;
  z-index: 2;
  max-width: 800px;
}
.hero-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(255,184,77,0.3));
}
.hero-section h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline {
  color: var(--brand-gold);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.6s ease;
}
.btn-primary-cta {
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-deep));
  color: var(--btn-text-on-accent);
  box-shadow: 0 0 25px rgba(255,184,77,0.3);
}
.btn-primary-cta:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 40px rgba(255,184,77,0.5);
}
.btn-secondary-cta {
  background: transparent;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
}
.btn-secondary-cta:hover {
  box-shadow: 0 0 25px rgba(47,128,237,0.4);
  transform: translateY(-4px);
}

/* =============== FEATURES =============== */
.features-section .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.6s ease;
  box-shadow: var(--soft-shadow);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(47,128,237,0.25);
  border-color: rgba(47,128,237,0.25);
}
.feature-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

/* =============== BENTO GRID =============== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.bento-item {
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  transition: all 0.6s ease;
}
.bento-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(255,184,77,0.3);
}
.bento-item.special {
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-soft));
  color: var(--text) !important;
  box-shadow: 0 0 30px rgba(47,128,237,0.3);
}
.bento-item.special:hover {
  box-shadow: 0 0 40px rgba(47,128,237,0.5);
}

/* =============== COMMUNITY =============== */
.community-section {
  background: linear-gradient(180deg, rgba(47,128,237,0.06), rgba(255,184,77,0.06));
  text-align: center;
}
.community-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* =============== FINAL CTA =============== */
.final-cta-section {
  text-align: center;
  border-top: 2px solid var(--brand-gold);
}
.final-cta-section blockquote {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.quote-author {
  color: var(--muted);
  margin-bottom: 30px;
}
.btn-xl-cta {
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-deep));
  color: var(--btn-text-on-accent);
  padding: 16px 26px;
  border-radius: 14px;
  box-shadow: 0 0 35px rgba(255,184,77,0.4);
  transition: all 0.6s ease;
}
.btn-xl-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 50px rgba(255,184,77,0.6);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
  .hero-section { height: auto; padding: 120px 0 80px; }
  .hero-logo { width: 70px; height: 70px; }
  .hero-section h1 { font-size: 2rem; }
  .feature-card, .bento-item { text-align: center; }
}


/* ======================================================
   SCROLL ANIMATION EFFECTS (Final Optimized Version)
   ====================================================== */
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.25, .9, .25, 1),
              transform 0.7s cubic-bezier(.25, .9, .25, 1);
  will-change: opacity, transform;
}

/* when visible */
.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* slide directions */
.scroll-left {
  transform: translateX(-30px);
}
.scroll-right {
  transform: translateX(30px);
}
.scroll-left.visible,
.scroll-right.visible {
  transform: translateX(0);
}

/* glowing pop highlight */
.scroll-anim.glow.visible {
  box-shadow: 0 0 24px rgba(255, 184, 77, 0.25),
              0 0 40px rgba(47, 128, 237, 0.15);
}

/* subtle hover glow */
.scroll-anim.glow.visible:hover {
  box-shadow: 0 0 36px rgba(255, 184, 77, 0.35),
              0 0 60px rgba(47, 128, 237, 0.25);
  transition: box-shadow 0.4s ease;
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-anim {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ensure no unwanted overflow */
html, body {
  overflow-x: hidden !important;
}




/* ============================================================
   🌟 FOOTER – Premium Neon Blue + Gold Glow Edition
   ============================================================ */

.site-footer-page {
  position: relative;
  padding: 60px 0 25px;
  background: linear-gradient(180deg, rgba(10,12,20,0.95), rgba(15,15,25,0.98));
  border-top: 3px solid var(--brand-blue);
  box-shadow: inset 0 4px 40px rgba(47,128,237,0.15), inset 0 2px 30px rgba(255,184,77,0.08);
  overflow: hidden;
  transition: background 0.6s ease, color 0.6s ease, box-shadow 0.6s ease;
}

/* 🌤 Light Mode */
body:not(.dark-mode) .site-footer-page {
  background: linear-gradient(180deg, rgba(250,250,255,0.96), rgba(240,245,255,0.95));
  border-top-color: var(--brand-gold);
  box-shadow: inset 0 4px 40px rgba(255,184,77,0.15), inset 0 2px 30px rgba(47,128,237,0.10);
}

/* Grid Layout */
.footer-grid-container {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 20px;
}

/* Headings */
.footer-heading {
  color: var(--brand-blue);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  text-shadow: 0 0 8px rgba(47,128,237,0.4);
}

/* Text + Links */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-link {
  color: var(--muted);
  display: block;
  padding: 4px 0;
  transition: all 0.3s ease;
}
.footer-link:hover {
  color: var(--brand-gold);
  text-shadow: 0 0 8px rgba(255,184,77,0.3);
}

/* About section subtle glow */
.footer-brand-glow {
  width: 100%;
  height: 2px;
  margin-top: 16px;
  background: linear-gradient(90deg, rgba(47,128,237,0.4), rgba(255,184,77,0.4), rgba(47,128,237,0.4));
  box-shadow: 0 0 20px rgba(255,184,77,0.2);
  border-radius: 4px;
  animation: footerPulse 6s ease-in-out infinite;
}
@keyframes footerPulse {
  0%, 100% { opacity: 0.6; filter: blur(0.5px); }
  50% { opacity: 1; filter: blur(1px); }
}

/* Contact & Social */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.footer-contact-item ion-icon {
  font-size: 16px;
  color: var(--brand-gold);
}
/* ============================================================
   🌌 Social Icons — Synced Neon Pulse with Divider Glow
   ============================================================ */

.social-links-wrap {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  position: relative;
}

.social-icon {
  font-size: 22px;
  color: var(--brand-blue);
  transition: transform 0.3s ease, color 0.3s ease, filter 0.4s ease;
  text-shadow: 0 0 8px rgba(47, 128, 237, 0.3);
  animation: socialPulse 5s ease-in-out infinite;
}

/* 🔹 Hover effect — boost the glow intensity */
.social-icon:hover {
  color: var(--brand-gold);
  transform: translateY(-3px) scale(1.1);
  text-shadow:
    0 0 10px rgba(255, 184, 77, 0.6),
    0 0 20px rgba(47, 128, 237, 0.5);
}

/* ✨ Pulse animation (matches footer shimmer timing) */
@keyframes socialPulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255, 184, 77, 0.3))
            drop-shadow(0 0 10px rgba(47, 128, 237, 0.2));
    opacity: 0.85;
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 184, 77, 0.5))
            drop-shadow(0 0 20px rgba(47, 128, 237, 0.35));
    opacity: 1;
  }
}

/* 🌤 Light Mode version */
body:not(.dark-mode) .social-icon {
  color: var(--brand-blue);
  text-shadow: 0 0 8px rgba(255, 184, 77, 0.25);
}
body:not(.dark-mode) .social-icon:hover {
  color: var(--brand-gold);
  text-shadow:
    0 0 10px rgba(255, 184, 77, 0.45),
    0 0 20px rgba(47, 128, 237, 0.3);
}
body:not(.dark-mode) .social-icon {
  animation: socialPulseLight 5s ease-in-out infinite;
}

/* 💫 Light mode pulse */
@keyframes socialPulseLight {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255, 184, 77, 0.25))
            drop-shadow(0 0 12px rgba(47, 128, 237, 0.15));
    opacity: 0.9;
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 184, 77, 0.45))
            drop-shadow(0 0 25px rgba(47, 128, 237, 0.25));
    opacity: 1;
  }
}


/* Divider Glow */
/* ============================================================
   ⚡ Animated Shimmer Light — Premium Footer Glow
   ============================================================ */

.footer-divider-glow {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  margin: 35px 0 25px;
  background: linear-gradient(90deg,
    rgba(47, 128, 237, 0.3),
    rgba(255, 184, 77, 0.5),
    rgba(47, 128, 237, 0.3)
  );
  box-shadow:
    0 0 25px rgba(255, 184, 77, 0.25),
    0 0 60px rgba(47, 128, 237, 0.2);
}

/* ✨ The moving shimmer beam */
.footer-divider-glow::before {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shimmerFlow 5s linear infinite;
  opacity: 0.7;
}

/* 💡 Moving light animation */
@keyframes shimmerFlow {
  0% { left: -50%; opacity: 0.4; }
  50% { opacity: 1; }
  100% { left: 110%; opacity: 0.4; }
}

/* 🌤 Light mode adjustments */
body:not(.dark-mode) .footer-divider-glow {
  background: linear-gradient(90deg,
    rgba(47, 128, 237, 0.35),
    rgba(255, 184, 77, 0.55),
    rgba(47, 128, 237, 0.35)
  );
  box-shadow:
    0 0 20px rgba(255, 184, 77, 0.2),
    0 0 50px rgba(47, 128, 237, 0.15);
}
body:not(.dark-mode) .footer-divider-glow::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 250, 230, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}


/* Copyright */
.copyright-area { text-align: center; }
.copyright-text {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

/* 🔹 Light mode text adjustments */
body:not(.dark-mode) .footer-link,
body:not(.dark-mode) .footer-contact-item,
body:not(.dark-mode) .copyright-text {
  color: #333;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid-container { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}
@media (max-width: 576px) {
  .footer-grid-container { grid-template-columns: 1fr; gap: 30px; }
  .copyright-area { text-align: center; }
  .footer-heading { text-align: center; }
  .footer-heading-content { text-align: justify; }
  .footer-links { text-align: center; }
  .footer-contact-item { justify-content:center; }
  .social-links-wrap {justify-content:center; }
}

/* ---------------------------------------------------------
   Utility buttons & responsive helpers
   --------------------------------------------------------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.small { font-size:14px; }

/* ---------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   --------------------------------------------------------- */

/* Large screens : >=1200px - nothing extra needed */

/* Desktop -> Tablet */
@media (max-width: 992px) {
  .hero-section .container { grid-template-columns: 1fr; gap:22px; }
  .desktop-nav { display:none; }
  .menu-toggle { display:flex; }
  .login-button { display:none; }
  .features-section .container { grid-template-columns: repeat(2,1fr); }
  .bento-grid { grid-template-columns: repeat(2,1fr); }
  .site-footer-page .container { grid-template-columns: repeat(2,1fr); }
}

/* Tablet -> Mobile */
@media (max-width: 576px) {
  html, body { font-size:15px; }
  .container { padding:0 14px; }
  .main-header .container { gap:12px; }
  .logo img.logo-img { width:40px; height:40px; }
  .nav-links { gap:12px; }
  .features-section .container { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .trust-bar .container { flex-direction: column; gap:12px; }
  .site-footer-page .container { grid-template-columns: 1fr; gap:12px; }
  .hero-image-placeholder { height:260px; }
  .hero-section h1 { font-size: clamp(28px, 7vw, 42px); }
}

/* ---------------------------------------------------------
   SMALL UX TWEAKS
   --------------------------------------------------------- */
[role="button"], button { cursor: pointer; }
input, button, select, textarea { font-family: inherit; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; transform: none !important; }
}

/*====================== Body Scroll bar hide and scrolling smooth code ======================= */

html, body {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE */
  overflow-y: scroll; /* maintain scroll ability */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera */
}



/*=================================== Login Popup and Signup  Window css code ================== */


/* ============================================================
   ✨ AUTH POPUPS (Login / Signup) — Flip & Glow Version
   ============================================================ */

/* Background overlay fade */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 2500;
}
body.dark-mode .auth-overlay {
  background: rgba(10, 12, 25, 0.65);
}
.auth-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Common popup wrapper */
.auth-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  perspective: 1000px;
}
.auth-popup.show {
  display: flex;
}

/* Inner card (flip animation target) */
.auth-inner {
  background: linear-gradient(180deg, var(--card), var(--surface));
  border-radius: 20px;
  padding: 36px 38px;
  width: 380px;
  max-width: 90%;
  color: var(--text);
  border: 1px solid rgba(255,184,77,0.25);
  box-shadow: 0 0 35px rgba(47,128,237,0.25), 0 0 60px rgba(255,184,77,0.15);
  transform: translateY(40px) rotateY(0deg);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.9, 0.25, 1);
  animation: popupGlow 5s ease-in-out infinite alternate;
}
.auth-popup.show .auth-inner {
  transform: translateY(0) rotateY(0);
  opacity: 1;
}

/* Flip animation effect (between login/signup) */
.auth-popup.flipIn .auth-inner {
  animation: flipIn 0.6s ease both;
}
.auth-popup.flipOut .auth-inner {
  animation: flipOut 0.6s ease both;
}

@keyframes flipIn {
  0% { transform: rotateY(90deg) scale(0.9); opacity: 0; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}
@keyframes flipOut {
  0% { transform: rotateY(0deg) scale(1); opacity: 1; }
  100% { transform: rotateY(-90deg) scale(0.9); opacity: 0; }
}

/* Glow animation (subtle pulse) */
@keyframes popupGlow {
  0% { box-shadow: 0 0 25px rgba(47,128,237,0.2), 0 0 50px rgba(255,184,77,0.1); }
  100% { box-shadow: 0 0 35px rgba(47,128,237,0.35), 0 0 70px rgba(255,184,77,0.25); }
}

/* Elements */
.auth-logo {
  display: block;
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 12px rgba(255,184,77,0.3));
}
.auth-content {
  text-align: center;
}
.auth-content h3 {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.auth-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Form styling */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"]{
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 8px rgba(47,128,237,0.3);
  outline: none;
}

/* Password toggle */
.password-wrapper { position: relative; }
.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
}

/* Buttons */
.btn-auth {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  border: none;
  border-radius: 10px;
  color: var(--btn-text-on-accent);
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(47,128,237,0.25);
}
.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(47,128,237,0.35), 0 0 40px rgba(255,184,77,0.25);
}

/* Close */
.close-auth {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.2rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease;
}
.close-auth:hover {
  color: var(--brand-gold);
  transform: rotate(90deg);
}

/* Switch text */
.auth-switch-text {
  font-size: 0.85rem;
  margin-top: 16px;
  color: var(--muted);
}
.auth-switch-text a {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch-text a:hover {
  color: var(--brand-gold);
}

/* Disable scroll */
body.popup-open {
  overflow: hidden;
}

/* Fix flicker during flip transition */
.auth-popup .auth-inner {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/*================================================
CSS For google Buttom ( For Google account login )
=================================================*/

.btn-google {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(47,128,237,0.15), 0 0 20px rgba(255,184,77,0.10);
  transition: all 0.3s ease;
  margin-bottom: 14px;
}
.btn-google:hover {
  background: #f7f7f7;
  box-shadow: 0 0 18px rgba(47,128,237,0.25), 0 0 30px rgba(255,184,77,0.18);
}
.google-icon {
  width: 20px;
  height: 20px;
}
.or-divider {
  text-align: center;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.or-divider span {
  /*background: var(--surface);*/
  padding: 0 10px;
  position: relative;
  top: -10px;
}
.or-divider:before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border-light);
  position: relative;
  top: 50%;
  z-index: 0;
}
.or-divider span {
  position: relative;
  z-index: 1;
}


/* ============================================================
   ✨ DUAL-DIRECTION SMOOTH FLIP (Login ↔ Signup)
   ============================================================ */

/* Forward Flip (Login → Signup) */
@keyframes flipIn {
  0% {
    transform: perspective(1000px) rotateY(90deg) scale(0.95);
    opacity: 0;
  }
  60% {
    transform: perspective(1000px) rotateY(-10deg) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
  }
}
@keyframes flipOut {
  0% {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
  }
  40% {
    transform: perspective(1000px) rotateY(-10deg) scale(0.98);
    opacity: 0.9;
  }
  100% {
    transform: perspective(1000px) rotateY(-90deg) scale(0.9);
    opacity: 0;
  }
}

/* Reverse Flip (Signup → Login) */
@keyframes flipInReverse {
  0% {
    transform: perspective(1000px) rotateY(-90deg) scale(0.95);
    opacity: 0;
  }
  60% {
    transform: perspective(1000px) rotateY(10deg) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
  }
}
@keyframes flipOutReverse {
  0% {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
  }
  40% {
    transform: perspective(1000px) rotateY(10deg) scale(0.98);
    opacity: 0.9;
  }
  100% {
    transform: perspective(1000px) rotateY(90deg) scale(0.9);
    opacity: 0;
  }
}

/* Attach animation classes */
.auth-popup.flipIn .auth-inner {
  animation: flipIn 0.8s cubic-bezier(0.25, 0.9, 0.25, 1) both;
}
.auth-popup.flipOut .auth-inner {
  animation: flipOut 0.8s cubic-bezier(0.25, 0.9, 0.25, 1) both;
}
.auth-popup.flipInReverse .auth-inner {
  animation: flipInReverse 0.8s cubic-bezier(0.25, 0.9, 0.25, 1) both;
}
.auth-popup.flipOutReverse .auth-inner {
  animation: flipOutReverse 0.8s cubic-bezier(0.25, 0.9, 0.25, 1) both;
}

/* ============================================================
   ✨ LUMINOUS DEPTH GLOW TRAIL (Premium Flip Accent)
   ============================================================ */

/* Add a glowing trail behind the flipping card */
.auth-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(47,128,237,0.15), rgba(255,184,77,0.08) 60%, transparent 100%);
  opacity: 0;
  transform: scale(0.92) translateZ(-1px);
  filter: blur(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

/* Active glowing phase during flip */
.auth-popup.flipIn .auth-inner::before,
.auth-popup.flipOut .auth-inner::before,
.auth-popup.flipInReverse .auth-inner::before,
.auth-popup.flipOutReverse .auth-inner::before {
  opacity: 1;
  transform: scale(1) translateZ(-1px);
  animation: glowTrail 1s ease-in-out forwards;
}

/* Floating 3D illusion on hover */
.auth-inner:hover {
  transform: translateY(-4px) rotateY(0deg) scale(1.02);
  box-shadow: 0 0 30px rgba(47,128,237,0.35),
              0 0 60px rgba(255,184,77,0.25),
              inset 0 0 20px rgba(255,255,255,0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Glow wave animation */
@keyframes glowTrail {
  0% {
    filter: blur(18px);
    opacity: 0.6;
    background: radial-gradient(circle at 40% 60%, rgba(47,128,237,0.3), rgba(255,184,77,0.15) 60%, transparent 100%);
  }
  50% {
    filter: blur(25px);
    opacity: 1;
    background: radial-gradient(circle at 60% 40%, rgba(255,184,77,0.3), rgba(47,128,237,0.15) 60%, transparent 100%);
  }
  100% {
    filter: blur(35px);
    opacity: 0.7;
    background: radial-gradient(circle at 50% 50%, rgba(47,128,237,0.2), rgba(255,184,77,0.1) 70%, transparent 100%);
  }
}

/* Keep depth shadow below glow */
.auth-inner {
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}


/* ============================================================
   🌗 DYNAMIC LIGHT + DARK MODE GLOW REFINEMENT
   ============================================================ */

/* Default (Light Mode) — Subtle gold-blue mist */
body:not(.dark-mode) .auth-inner::before {
  background: radial-gradient(circle at 40% 40%,
    rgba(47,128,237,0.15),
    rgba(255,184,77,0.08) 60%,
    transparent 100%);
  filter: blur(18px);
  opacity: 0.6;
}

body:not(.dark-mode) .auth-popup.flipIn .auth-inner::before,
body:not(.dark-mode) .auth-popup.flipOut .auth-inner::before,
body:not(.dark-mode) .auth-popup.flipInReverse .auth-inner::before,
body:not(.dark-mode) .auth-popup.flipOutReverse .auth-inner::before {
  animation: glowTrailLight 1s ease-in-out forwards;
}

/* Light Mode Motion Glow Animation */
@keyframes glowTrailLight {
  0% {
    filter: blur(14px);
    opacity: 0.4;
    background: radial-gradient(circle at 35% 65%,
      rgba(47,128,237,0.2),
      rgba(255,184,77,0.12) 60%,
      transparent 100%);
  }
  50% {
    filter: blur(22px);
    opacity: 0.9;
    background: radial-gradient(circle at 60% 40%,
      rgba(255,184,77,0.22),
      rgba(47,128,237,0.18) 60%,
      transparent 100%);
  }
  100% {
    filter: blur(30px);
    opacity: 0.6;
    background: radial-gradient(circle at 50% 50%,
      rgba(47,128,237,0.18),
      rgba(255,184,77,0.1) 70%,
      transparent 100%);
  }
}

/* 🌑 Dark Mode — Deep radiant gold-blue aura */
body.dark-mode .auth-inner::before {
  background: radial-gradient(circle at 30% 70%,
    rgba(47,128,237,0.25),
    rgba(255,184,77,0.15) 65%,
    transparent 100%);
  filter: blur(25px);
  opacity: 0.8;
}

body.dark-mode .auth-popup.flipIn .auth-inner::before,
body.dark-mode .auth-popup.flipOut .auth-inner::before,
body.dark-mode .auth-popup.flipInReverse .auth-inner::before,
body.dark-mode .auth-popup.flipOutReverse .auth-inner::before {
  animation: glowTrailDark 1.1s ease-in-out forwards;
}

/* Dark Mode Motion Glow Animation */
@keyframes glowTrailDark {
  0% {
    filter: blur(20px);
    opacity: 0.7;
    background: radial-gradient(circle at 65% 40%,
      rgba(47,128,237,0.35),
      rgba(255,184,77,0.18) 60%,
      transparent 100%);
  }
  50% {
    filter: blur(30px);
    opacity: 1;
    background: radial-gradient(circle at 45% 60%,
      rgba(255,184,77,0.3),
      rgba(47,128,237,0.25) 60%,
      transparent 100%);
  }
  100% {
    filter: blur(40px);
    opacity: 0.8;
    background: radial-gradient(circle at 50% 50%,
      rgba(47,128,237,0.25),
      rgba(255,184,77,0.18) 70%,
      transparent 100%);
  }
}
/*-------------------- End Login / SignUp Css Code ------------------------------ */
/* ============================================================
   🌈 UNIVERSAL NOTICE POPUP (Error, Warning, Info, Success)
   ============================================================ */

/* Base style */
.notice-popup .auth-inner {
  width: 380px;
  text-align: center;
  padding: 32px 36px;
  border: 1px solid rgba(255,184,77,0.25);
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(47,128,237,0.25), 0 0 60px rgba(255,184,77,0.15);
  animation: flipIn 0.6s ease both, breathingGlowLight 6s ease-in-out infinite;
}
body.dark-mode .notice-popup .auth-inner {
  animation: flipIn 0.6s ease both, breathingGlowDark 6s ease-in-out infinite;
}

/* Common message box */
.notice-message {
  font-size: 0.95rem;
  margin: 14px 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  line-height: 1.5;
  transition: all 0.4s ease;
}

/* Dynamic types — glowing feedback */
.notice-message .success {
  color: #28c76f;
  text-shadow: 0 0 8px rgba(40,199,111,0.4);
  
}
.notice-message .error {
  color: #ff4d4d;
  text-shadow: 0 0 8px rgba(255,77,77,0.4);
  
}
.notice-message .warning {
  color: #ffb84d;
  text-shadow: 0 0 8px rgba(255,184,77,0.4);
  
}
.notice-message .info {
  color: #2f80ed;
  text-shadow: 0 0 8px rgba(47,128,237,0.4);
  
}

/* Notice overlay */
#authOverlayNotice {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.55);
  z-index: 2500;
  transition: opacity 0.5s ease;
}
body.dark-mode #authOverlayNotice {
  background: rgba(10, 12, 25, 0.7);
}



/* End of style.css
   Notes:
   - Keep your theme's header.php/footer.php JS for menu toggle and theme toggle.
   - The theme toggler should toggle a "dark-mode" class on <body> (your current script already references body.dark-mode).
*/


