/* 
  Prisha Service & Solutions - Brand Stylesheet
  Focus: Deep Premium Dark Tech Theme with Harmonious Glow Accents
*/

/* THEME SYSTEM & VARIABLES */
:root {
  color-scheme: dark;
  /* Dark Theme Default - Premium Obsidian Pitch Black (Solid/Flat Google style) */
  --p: #000000; 
  --s: #040404; 
  --bg: #000000; 
  --surface: #0a0a0a; 
  --card: rgba(8, 8, 8, 0.85);
  --text: #ffffff; 
  --muted: #888888; 
  --bd: rgba(255, 255, 255, 0.05); 
  --border: rgba(255, 255, 255, 0.04);
  --input-bg: rgba(255, 255, 255, 0.02); 
  --input-focus: rgba(255, 255, 255, 0.08);
  --btn-ghost-hover: rgba(255, 255, 255, 0.04);
  
  /* Grayscale Accents */
  --a1: #ffffff; 
  --a2: #e5e5e5; 
  --a3: #a3a3a3; 
  --a4: #525252; 
  --a5: #f43f5e; /* Rose Red for critical actions remains red for standard usability */
  --a6: #d4d4d4; 
  --w: #ffffff;
  --a1-rgb: 255, 255, 255;
  
  /* Solid Gradients (redefined as matching solid values for clean layout) */
  --g1: linear-gradient(135deg, #ffffff, #ffffff);
  --g2: linear-gradient(135deg, #e5e5e5, #e5e5e5);
  --g3: linear-gradient(135deg, #a3a3a3, #a3a3a3);
  --g-dark: linear-gradient(180deg, #000000, #000000);
  --glass: rgba(4, 4, 4, 0.85);
  
  /* Shadows & Radius */
  --sh: 0 25px 60px rgba(0, 0, 0, 0.9);
  --sh-glow: 0 0 25px rgba(255, 255, 255, 0.08);
  --r: 16px; 
  --rl: 28px;
  --tr: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Theme Overrides - Grayscale Crisp White */
body.light-mode {
  color-scheme: light;
  --p: #ffffff; 
  --s: #f5f5f7; 
  --bg: #ffffff; 
  --surface: #ffffff; 
  --card: rgba(255, 255, 255, 0.9);
  --text: #000000; 
  --muted: #6e6e73; 
  --bd: rgba(0, 0, 0, 0.08); 
  --border: rgba(0, 0, 0, 0.06);
  --input-bg: rgba(0, 0, 0, 0.02); 
  --input-focus: rgba(0, 0, 0, 0.08);
  --btn-ghost-hover: rgba(0, 0, 0, 0.04);
  
  /* Grayscale Accents */
  --a1: #000000; 
  --a2: #1c1c1e; 
  --a3: #3a3a3c; 
  --a4: #737373; 
  --a5: #ff3b30; 
  --a6: #8e8e93; 
  --a1-rgb: 0, 0, 0;
  
  /* Solid Gradients */
  --g1: linear-gradient(135deg, #000000, #000000);
  --g2: linear-gradient(135deg, #1c1c1e, #1c1c1e);
  --g3: linear-gradient(135deg, #3a3a3c, #3a3a3c);
  --g-dark: linear-gradient(180deg, #ffffff, #ffffff);
  --glass: rgba(255, 255, 255, 0.9);
  --sh: 0 15px 35px rgba(0, 0, 0, 0.08);
  --sh-glow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* BASE RESETS */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--p);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  outline: none;
  background: none;
  border: none;
}

input, textarea, select {
  font-family: inherit;
  color: var(--text);
  outline: none;
  border: 1px solid var(--border);
  background: var(--input-bg);
}

/* BACKGROUND ORBS & GRIDS */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 20%, rgba(30, 27, 75, 0.4) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(13, 17, 23, 0.4) 0%, transparent 60%);
  transition: background 0.4s ease;
}

body.light-mode .bg-wrap {
  background: radial-gradient(ellipse at 20% 20%, rgba(var(--a1-rgb), 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.6;
}

.o1 { width: 550px; height: 550px; background: rgba(var(--a1-rgb), 0.15); top: -200px; left: -200px; }
.o2 { width: 450px; height: 450px; background: rgba(139, 92, 246, 0.12); top: 40%; right: -150px; animation-delay: -4s; }
.o3 { width: 380px; height: 380px; background: rgba(16, 185, 129, 0.08); bottom: -100px; left: 20%; animation-delay: -8s; }
.o4 { width: 300px; height: 300px; background: rgba(6, 182, 212, 0.08); top: 15%; left: 55%; animation-delay: -2s; }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.9); }
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: linear-gradient(var(--text) 1px, transparent 1px),
                    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 50px 50px;
  transition: opacity 0.4s ease;
}

body.light-mode .grid-bg {
  opacity: 0.03;
}

/* CUSTOM CURSOR */
.cur-dot {
  width: 8px;
  height: 8px;
  background-color: var(--a1);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cur-outline {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--a2);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, border-color 0.3s;
}

@media(max-width: 1024px) {
  .cur-dot, .cur-outline { display: none; }
}

/* PAGE PROGRESS INDICATOR & LOADER */


#sp {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--g1);
  z-index: 9999;
  box-shadow: 0 0 12px rgba(var(--a1-rgb), 0.8);
  transition: width 0.15s ease-out;
}

/* LAYOUT CONTAINER */
.con {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tc { text-align: center; }

/* DYNAMIC UTILITIES */
.tg1 { background: var(--g1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tg2 { background: var(--g2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tg3 { background: var(--g3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid currentColor;
  margin-bottom: 1.25rem;
}

.tp { color: var(--a2); border-color: rgba(139, 92, 246, 0.3); background: rgba(139, 92, 246, 0.06); }
.tg { color: var(--a3); border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.06); }
.tb { color: var(--a1); border-color: rgba(var(--a1-rgb), 0.3); background: rgba(var(--a1-rgb), 0.06); }
.tc2 { color: var(--a6); border-color: rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.06); }

.st {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.ss {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  transition: var(--tr);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: var(--tr);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-glow);
}

.bg1 { background: var(--g1); color: var(--p); }
.bg2 { background: var(--g2); color: var(--p); }
.bg3 { background: var(--g3); color: var(--p); }
.bgo {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--bd);
}
.bgo:hover {
  border-color: var(--a1);
  background: rgba(var(--a1-rgb), 0.08);
}
.bw { background: var(--text); color: var(--p); font-weight: 800; }
.bw:hover { opacity: 0.95; }

.sec { padding: 7rem 0; position: relative; }

/* ANIMATION CLASS SYSTEM */
.rv { opacity: 0; transform: translateY(35px); transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.rvl { opacity: 0; transform: translateX(-35px); transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.rvr { opacity: 0; transform: translateX(35px); transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.rv.on, .rvl.on, .rvr.on { opacity: 1; transform: translate(0, 0); }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* HEADER NAVIGATION */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.35s ease;
}

header.sc {
  background: rgba(14, 19, 34, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--bd);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-mode header.sc {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.05);
}

.nw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.nl {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nl img {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: var(--tr);
}
.nl:hover img {
  transform: rotate(5deg) scale(1.05);
}

.nlt {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

.nlt small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--a3);
}

.nls {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nls a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.25s ease;
  position: relative;
  padding-bottom: 5px;
}

.nls a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--g1);
  transition: 0.25s ease;
  border-radius: 2px;
}

.nls a:hover {
  color: var(--text);
}

.nls a:hover::after {
  width: 100%;
}

.theme-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--tr);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-btn:hover {
  color: var(--a2);
  transform: rotate(15deg);
}

.admin-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--a1);
  border: 1.5px solid rgba(var(--a1-rgb), 0.4);
  background: rgba(var(--a1-rgb), 0.08);
  cursor: pointer;
  transition: var(--tr);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.admin-nav-btn:hover {
  background: rgba(var(--a1-rgb), 0.22);
  border-color: var(--a1);
  color: var(--text);
}

.ncta {
  padding: 10px 22px;
  font-size: 0.8rem;
}

.hbg {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hbg span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
  border-radius: 2px;
}

/* MOBILE NAV MENU */
.mnav {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}
.mnav.op {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mnav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  transition: all 0.25s ease;
  width: 80%;
  max-width: 280px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
}
.mnav a:hover {
  background: var(--input-bg);
  border-color: var(--border);
  transform: translateX(6px);
}
.mcl {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--text);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.mcl:hover {
  background: var(--input-focus);
  transform: rotate(90deg);
}

@media(max-width: 900px) {
  .nls { display: none; }
  .hbg { display: flex; }
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--a1-rgb), 0.12);
  border: 1.5px solid rgba(var(--a1-rgb), 0.3);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--a1);
  margin-bottom: 2rem;
  animation: pulseShadow 2.5s infinite;
}

@keyframes pulseShadow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--a1-rgb), 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(var(--a1-rgb), 0); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 7.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.8rem;
  letter-spacing: -1.5px;
}

.hsub {
  font-size: clamp(0.98rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hbtns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hstats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.stn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--g1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stl {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}



.hsc {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  animation: bounceIndicator 2s infinite;
  cursor: pointer;
}
@keyframes bounceIndicator {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* MARQUEE */
.mq {
  padding: 1.6rem 0;
  border-top: 1.5px solid var(--bd);
  border-bottom: 1.5px solid var(--bd);
  overflow: hidden;
  position: relative;
  background: var(--s);
  z-index: 10;
}
.mq::before, .mq::after {
  content: '';
  position: absolute;
  top: 0;
  width: 160px;
  height: 100%;
  z-index: 2;
}
.mq::before { left: 0; background: linear-gradient(to right, var(--p), transparent); }
.mq::after { right: 0; background: linear-gradient(to left, var(--p), transparent); }

.mqt {
  display: flex;
  width: max-content;
  animation: marqueeAnimate 22s linear infinite;
}
.mqi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  border-right: 1.5px solid var(--bd);
}
.mqi i { color: var(--a1); }
@keyframes marqueeAnimate {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SERVICES GRID & INTERACTIVE TABS */
.stabs {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.tbtn {
  padding: 10px 24px;
  border-radius: 50px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
}
.tbtn.ac {
  background: var(--g1);
  color: var(--p);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(var(--a1-rgb), 0.35);
}
.tbtn:hover:not(.ac) {
  background: var(--input-focus);
  color: var(--text);
  border-color: var(--a1);
}

.sgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.8rem;
}

.sc2 {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 2.2rem 2rem;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.sc2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--g1);
  opacity: 0;
  transition: 0.4s;
}
.sc2:hover {
  border-color: rgba(var(--a1-rgb), 0.4);
  transform: translateY(-8px);
  box-shadow: var(--sh);
}
.sc2:hover::before {
  opacity: 1;
}

.si {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.sip { background: rgba(139, 92, 246, 0.15); color: var(--a2); }
.sig { background: rgba(16, 185, 129, 0.15); color: var(--a3); }
.sib { background: rgba(var(--a1-rgb), 0.15); color: var(--a1); }
.sia { background: rgba(245, 158, 11, 0.15); color: var(--a4); }
.sir { background: rgba(239, 68, 68, 0.15); color: var(--a5); }
.sic { background: rgba(6, 182, 212, 0.15); color: var(--a6); }

.sc2 h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.sc2 p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.sits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--bd);
}
.sit:last-child {
  border-bottom: none;
}
.pr {
  font-weight: 800;
  font-size: 0.85rem;
  color: #10b981;
}
body.light-mode .pr {
  color: #059669;
}

/* PORTFOLIO SLIDER / CARD GALLERY */
.cout {
  position: relative;
  overflow: hidden;
  border-radius: var(--rl);
  margin-top: 1rem;
}

.ctr {
  display: flex;
  gap: 1.8rem;
  padding: 0.8rem 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.ctr::-webkit-scrollbar {
  display: none;
}

.cc {
  min-width: 320px;
  width: 340px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--tr);
  flex-shrink: 0;
  scroll-snap-align: start;
}
.cc:hover {
  border-color: rgba(var(--a1-rgb), 0.4);
  box-shadow: var(--sh);
}

.cc img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #0f172a;
}

.ccb {
  padding: 1.5rem;
}
.ccb h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.ccb p {
  font-size: 0.85rem;
  color: var(--muted);
}
.cnav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.cbtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  transition: var(--tr);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cbtn:hover {
  background: var(--g1);
  border-color: transparent;
  color: var(--p);
  box-shadow: 0 4px 12px rgba(var(--a1-rgb), 0.3);
}

/* PRESETS FOR GOOGLE 20 SYSTEMS */
.glist-wrap {
  margin-top: 4rem;
  background: rgba(14, 19, 34, 0.4);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 3rem 2.5rem;
}
body.light-mode .glist-wrap {
  background: var(--s);
}
.glist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.glist-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: 0.25s ease;
}
.glist-item:hover {
  border-color: rgba(var(--a1-rgb), 0.35);
  background: var(--input-focus);
  color: var(--text);
  transform: translateX(4px);
}
.glist-item i { color: var(--a1); font-size: 1rem; }
.glist-num { font-weight: 800; font-family: 'Space Grotesk', sans-serif; color: var(--a2); }

/* ABOUT US & TIME CAPSULE */
.abgrid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4.5rem;
  align-items: center;
}

@media(max-width: 900px) {
  .abgrid { grid-template-columns: 1fr; gap: 3rem; }
}

.abimg {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  z-index: 10;
}
.abimg img {
  width: 100%;
  border-radius: var(--rl);
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--sh);
}
.abglow {
  position: absolute;
  inset: -15px;
  border-radius: 40px;
  z-index: 1;
  background: radial-gradient(circle, rgba(var(--a1-rgb), 0.2), transparent 70%);
}
@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 1; }
}

.fbd {
  position: absolute;
  bottom: -15px;
  right: -15px;
  z-index: 3;
  background: var(--g3);
  color: var(--p);
  padding: 14px 22px;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

.abcon h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.abcon p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.msme {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
  margin-top: 1rem;
}
.msme img {
  height: 48px;
  border-radius: 8px;
  background: white;
  padding: 4px;
}
.msme p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0;
}
.msme strong {
  display: block;
  font-size: 0.95rem;
  color: var(--a3);
}

/* DIGITAL TIME CAPSULE TIMELINE */
.tc-title {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 5rem 0 3rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--g1);
  transform: translateX(-50%);
  opacity: 0.3;
}
@media(max-width: 768px) {
  .timeline::before { left: 30px; }
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 3rem;
}
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }

.tl-dot {
  position: absolute;
  top: 2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--a1);
  border: 4px solid var(--p);
  z-index: 5;
  box-shadow: 0 0 10px var(--a1);
}
.tl-item:nth-child(odd) .tl-dot { right: -9px; }
.tl-item:nth-child(even) .tl-dot { left: -9px; }

@media(max-width: 768px) {
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 60px; padding-right: 1.5rem; }
  .tl-dot { left: 21px !important; }
}

.tl-content {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  transition: var(--tr);
}
.tl-content:hover {
  border-color: rgba(var(--a1-rgb), 0.35);
  transform: translateY(-4px);
}
.tl-date {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: var(--a1);
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: block;
}
.tl-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.tl-content p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}



/* PREMIUM PRICING TABLE */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  align-items: start;
}

.pcard {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 3rem 2.2rem;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.pcard:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh);
  border-color: rgba(var(--a1-rgb), 0.35);
}

.pcard.pop {
  background: rgba(var(--a1-rgb), 0.04);
  border-color: rgba(var(--a1-rgb), 0.4);
  transform: scale(1.03);
}

body.light-mode .pcard.pop {
  background: rgba(var(--a1-rgb), 0.02);
}

.pcard.pop::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--g1);
}

@media(max-width: 1024px) {
  .pcard.pop { transform: scale(1); }
}

.pbadge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--g1);
  color: var(--p);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pico {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
}

.pname {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.pprice {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  margin: 1.2rem 0 1.8rem;
}

.pprice sup {
  font-size: 1.3rem;
  vertical-align: top;
  margin-top: 0.8rem;
  display: inline-block;
  font-weight: 600;
}

.pfts {
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pft {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}
.pft i {
  color: var(--a3);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.pbtn {
  width: 100%;
  justify-content: center;
}

/* INTERACTIVE PRICING ESTIMATOR WIDGET */
.est-widget {
  margin-top: 5rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 3rem 2.5rem;
  box-shadow: var(--sh);
}
.est-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  margin-top: 2rem;
}
@media(max-width: 900px) {
  .est-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.est-options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.est-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--tr);
}
.est-option:hover {
  border-color: rgba(var(--a1-rgb), 0.3);
  background: var(--input-focus);
}
.est-option.ac {
  border-color: var(--a1);
  background: rgba(var(--a1-rgb), 0.08);
}
.est-opt-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.est-opt-info i {
  font-size: 1.2rem;
  color: var(--a2);
}
.est-opt-title {
  font-size: 0.92rem;
  font-weight: 700;
}
.est-opt-price {
  font-weight: 800;
  color: var(--a3);
  font-size: 0.95rem;
}

.est-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(var(--a1-rgb), 0.04);
  border: 1.5px solid rgba(var(--a1-rgb), 0.25);
  border-radius: 20px;
  padding: 2rem;
}
.est-display h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.est-tot-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--a1);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.est-tot-price span {
  font-size: 1.5rem;
  font-weight: 600;
}

/* ONE CONTENT AI ENGINE DEMO */
.ai-engine-widget {
  margin-top: 5rem;
  background: rgba(14, 19, 34, 0.6);
  border: 1.5px solid var(--a1);
  border-radius: var(--rl);
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 40px rgba(var(--a1-rgb), 0.15);
}
body.light-mode .ai-engine-widget {
  background: var(--s);
  box-shadow: var(--sh);
}
.ai-inputs {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media(max-width: 768px) {
  .ai-inputs { flex-direction: column; }
}
.ai-txt {
  flex: 1;
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  outline: none;
  transition: 0.3s;
}
.ai-txt:focus {
  border-color: var(--a1);
  background: var(--input-focus);
}
.ai-tabs {
  display: flex;
  gap: 8px;
  margin-top: 2rem;
  overflow-x: auto;
  padding-bottom: 8px;
}
.ai-tab {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  color: var(--muted);
  white-space: nowrap;
}
.ai-tab.ac {
  background: var(--a1);
  color: white;
  border-color: transparent;
}
.ai-result-box {
  background: #030712;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-top: 1.2rem;
  min-height: 180px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: #10b981;
  position: relative;
  overflow: hidden;
}
.ai-result-box::before {
  content: '⚡ PRISHA AI WORK ENGINE';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: 0.5;
}
.ai-result-txt {
  white-space: pre-line;
  line-height: 1.6;
}

/* BUILD IN PUBLIC TRANSPARENT DASHBOARD */
.public-dash-sec {
  background: var(--p);
  padding: 6rem 0;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.dash-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.8rem;
  text-align: center;
  transition: var(--tr);
  position: relative;
}
.dash-card:hover {
  border-color: rgba(var(--a1-rgb), 0.3);
  transform: translateY(-5px);
}
.dash-ico {
  font-size: 2rem;
  color: var(--a2);
  margin-bottom: 1rem;
}
.dash-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.dash-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 6px;
}
.dash-pulse-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--a3);
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 8px;
  border-radius: 50px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.dash-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a3);
  animation: dotFlash 1.5s infinite;
}
@keyframes dotFlash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* TESTIMONIALS SECTION */
.tgr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.8rem;
  margin-top: 1rem;
}

.tcard {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 2.2rem;
  transition: var(--tr);
}
.tcard:hover {
  border-color: rgba(var(--a1-rgb), 0.35);
  transform: translateY(-6px);
  box-shadow: var(--sh);
}

.tstars {
  color: #fbbf24;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.ttxt {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.8rem;
  font-style: italic;
}

.tau {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.tnm { font-weight: 700; font-size: 0.92rem; }
.tbz { font-size: 0.78rem; color: var(--muted); }

/* HIGH CONVERTING CALL TO ACTION */
.ctacard {
  background: var(--g1);
  border-radius: var(--rl);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--p);
  box-shadow: var(--sh);
}
.ctacard::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.ctacard h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.ctacard p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2.8rem;
  max-width: 540px;
  margin-inline: auto;
}
.ctabtns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* CONTACT SECTION & LEAD FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4.5rem;
  align-items: start;
}
@media(max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.c-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.c-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--a1);
  flex-shrink: 0;
}
.c-det h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.c-det p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0;
}

.contact-card-form {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 3rem;
  box-shadow: var(--sh);
}

@media(max-width: 600px) {
  .contact-card-form { padding: 1.8rem; }
}

.form-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.8rem;
}
.form-grp {
  margin-bottom: 1.4rem;
}
.form-lbl {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-inp {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  transition: 0.3s;
}
.form-inp:focus {
  border-color: var(--a1);
  background: var(--input-focus);
}

/* FOOTER SECTION */
footer {
  padding: 6rem 0 2.5rem;
  border-top: 1.5px solid var(--bd);
  background: var(--s);
  position: relative;
  z-index: 10;
}
.fgrid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}
@media(max-width: 900px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media(max-width: 500px) {
  .fgrid { grid-template-columns: 1fr; }
}

.fb p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 1.5rem 0;
}

.fsc {
  display: flex;
  gap: 12px;
}
.fsi {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--muted);
  transition: var(--tr);
}
.fsi:hover {
  transform: scale(1.1) rotate(5deg);
  color: var(--w);
}
.fsi.wa:hover { background: #25d366; border-color: #25d366; }
.fsi.ig:hover { background: var(--text); color: var(--p); border-color: transparent; }
.fsi.git:hover { background: #24292e; border-color: #24292e; }
.fsi.in:hover { background: #0077b5; border-color: #0077b5; }

.fcol h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.fcol ul li {
  margin-bottom: 0.8rem;
}
.fcol ul li a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fcol ul li a:hover {
  color: var(--text);
  padding-left: 6px;
}

.fct li {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}
.fct li i {
  color: var(--a1);
  margin-top: 3px;
  flex-shrink: 0;
}

.fbot {
  border-top: 1.5px solid var(--bd);
  padding-top: 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.fbot a {
  color: var(--muted);
  transition: 0.25s ease;
}
.fbot a:hover {
  color: var(--a1);
}




/* OVERLAYS & MODALS */
.ovl {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
body.light-mode .ovl {
  background: rgba(255, 255, 255, 0.75);
}
.ovl.op {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 2.8rem 2.2rem;
  max-width: 480px;
  width: 100%;
  transform: scale(0.9) translateY(30px);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--sh);
}
.ovl.op .modal {
  transform: scale(1) translateY(0);
}
.mcl2 {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--muted);
  transition: 0.25s;
}
.mcl2:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--a5);
  border-color: transparent;
}
.mtop {
  margin-bottom: 2rem;
}
.mtop h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.mtop p {
  font-size: 0.85rem;
  color: var(--muted);
}
.finp {
  width: 100%;
  padding: 13px 16px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: 0.3s;
  margin-bottom: 1.2rem;
}
.finp:focus {
  border-color: var(--a1);
  background: var(--input-focus);
}

.sbtn {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 0.95rem;
}

/* SYNC DIALOG WITH PROGRESS */
.sync-wrap {
  text-align: center;
  padding: 1rem 0;
}
.sync-progress {
  width: 100%;
  height: 6px;
  background: var(--bd);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.sync-bar {
  width: 0%;
  height: 100%;
  background: var(--g1);
  transition: width 0.1s linear;
}
.sync-ico {
  font-size: 3rem;
  color: var(--a1);
  margin-bottom: 1rem;
}

/* CUSTOM POPUP TOAST */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--g2);
  color: var(--p);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 6000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}
#toast.sh {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.err {
  background: var(--g3);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

/* TERMS & CONDITIONS CARD */
.trmcard {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--sh);
}
.trmcard h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  margin: 2.2rem 0 0.6rem;
  color: var(--a1);
}
.trmcard p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* PAGE SYSTEMS NAVIGATION */
.page { display: none; }
.page.ac { display: block; }

/* ═══ ADMIN LOGIN ROUTING & VIEW ═══ */
#pg-admin-login.ac {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1rem;
}
.login-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 3.5rem 3rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--sh);
  position: relative;
}
.login-hdr {
  text-align: center;
  margin-bottom: 2.5rem;
}
.login-hdr h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.login-hdr p {
  font-size: 0.85rem;
  color: var(--muted);
}
.pass-grp {
  position: relative;
}
.pass-toggle {
  position: absolute;
  right: 16px;
  top: 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}
.pass-toggle:hover { color: var(--text); }
.forgot-trig {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--a1);
  cursor: pointer;
  margin: -0.5rem 0 1.5rem;
}
.forgot-trig:hover {
  text-decoration: underline;
}

/* ═══ ADMIN INTEGRATED CRM OPERATIONS PANEL ═══ */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
@media(max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
}

.adm-sidebar {
  background: var(--s);
  border-right: 1.5px solid var(--bd);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
@media(max-width: 1024px) {
  .adm-sidebar {
    border-right: none;
    border-bottom: 1.5px solid var(--bd);
    padding: 1rem 1.25rem 0.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
}

.adm-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media(max-width: 1024px) {
  .adm-brand {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}
.adm-brand img {
  height: 36px;
  border-radius: 8px;
}

.adm-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
@media(max-width: 1024px) {
  .adm-nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    gap: 0.5rem;
    width: 100%;
    padding: 0.25rem 0 0.75rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .adm-nav::-webkit-scrollbar {
    display: none;
  }
}
.adm-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  transition: 0.25s ease;
  width: 100%;
  text-align: left;
}
@media(max-width: 1024px) {
  .adm-nav-btn {
    width: auto !important;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.8rem;
    gap: 6px;
    white-space: nowrap;
  }
}
.adm-nav-btn.ac {
  background: rgba(var(--a1-rgb), 0.1);
  color: var(--a1);
  border: 1px solid rgba(var(--a1-rgb), 0.2);
}
.adm-nav-btn:hover:not(.ac) {
  background: var(--input-bg);
  color: var(--text);
}
.adm-logout {
  color: var(--a5);
  margin-top: auto;
}
@media(max-width: 1024px) {
  .adm-logout {
    margin-top: 0 !important;
  }
}
.adm-logout:hover {
  background: rgba(239, 68, 68, 0.08);
}

.adm-main {
  background: var(--p);
  padding: 2.5rem;
  overflow-y: auto;
  max-height: 100vh;
  -webkit-overflow-scrolling: touch;
}
@media(max-width: 1024px) {
  .adm-main {
    max-height: none !important;
    overflow-y: visible !important;
  }
}
@media(max-width: 768px) {
  .adm-main { padding: 1.5rem; }
}

.adm-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 1.5px solid var(--bd);
  padding-bottom: 1.5rem;
}
.adm-hdr-title h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}
.adm-hdr-title p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* CRM Subpanels */
.adm-panel {
  display: none;
}
.adm-panel.ac {
  display: block;
}

/* CRM DASHBOARD TILES */
.db-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.db-tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 18px;
}
.db-tile-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--a1);
}
.db-tile-info h4 {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.db-tile-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
}

/* CRM KANBAN BOARD */
.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}
.kanban-col {
  background: var(--s);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem;
  min-height: 420px;
}
.kanban-col-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bd);
}
.kanban-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--a1);
}
.kanban-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--bd);
  padding: 2px 8px;
  border-radius: 50px;
}
.kanban-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 350px;
}
.kanban-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  cursor: grab;
  transition: var(--tr);
}
.kanban-card:hover {
  border-color: rgba(var(--a1-rgb), 0.35);
  box-shadow: var(--sh);
}
.k-card-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.k-card-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.k-card-ft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--muted);
}
.k-card-price {
  font-weight: 800;
  color: var(--a3);
}

/* TABLES SYSTEM FOR CUSTOMERS & LEADS */
.adm-tbl-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow-x: auto;
  margin-top: 1.5rem;
}
.adm-tbl {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.adm-tbl th {
  background: var(--s);
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  border-bottom: 1.5px solid var(--bd);
}
.adm-tbl td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--bd);
  color: var(--muted);
}
.adm-tbl tr:last-child td {
  border-bottom: none;
}
.adm-tbl tr:hover td {
  background: var(--input-bg);
  color: var(--text);
}
.tbl-bold {
  font-weight: 700;
  color: var(--text);
}
.badge-status {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.badge-paid { color: var(--a3); background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-unpaid { color: var(--a5); background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); }

.act-btns {
  display: flex;
  gap: 8px;
}
.act-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}
.act-btn:hover {
  background: var(--input-focus);
}
.act-edit:hover { color: var(--a1); border-color: rgba(var(--a1-rgb), 0.3); }
.act-del:hover { color: var(--a5); border-color: rgba(239, 68, 68, 0.3); }

/* INVOICE BILLING SHEET CREATOR */
.inv-creator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}
@media(max-width: 1024px) {
  .inv-creator-grid { grid-template-columns: 1fr; }
}

.inv-preview-pane {
  background: white;
  color: #1f2937;
  border-radius: var(--r);
  padding: 3rem;
  box-shadow: var(--sh);
  font-family: 'Space Grotesk', sans-serif;
}
.inv-p-hdr {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1.5rem;
}
.inv-p-hdr-l h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
}
.inv-p-hdr-l p {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
}
.inv-p-hdr-r {
  text-align: right;
}
.inv-p-hdr-r h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--a1);
}
.inv-p-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  font-size: 0.85rem;
}
.inv-p-meta-box h5 {
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.inv-p-meta-box p {
  font-weight: 700;
  color: #374151;
}

.inv-p-tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.inv-p-tbl th {
  background: #f9fafb;
  padding: 10px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #4b5563;
  border-bottom: 2px solid #e5e7eb;
  text-align: left;
}
.inv-p-tbl td {
  padding: 12px 14px;
  font-size: 0.85rem;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}
.inv-p-tbl tr:last-child td {
  border-bottom: none;
}

.inv-p-calcs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 260px;
  margin-left: auto;
  font-size: 0.85rem;
  border-top: 2px solid #e5e7eb;
  padding-top: 1rem;
}
.inv-p-calc {
  display: flex;
  justify-content: space-between;
}
.inv-p-calc.tot {
  font-weight: 800;
  font-size: 1.15rem;
  color: #111827;
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
}

.inv-p-ft {
  margin-top: 3rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.75rem;
  color: #6b7280;
}
.inv-p-qr {
  text-align: center;
}
.inv-p-qr img {
  height: 80px;
  width: 80px;
  margin-bottom: 6px;
  border: 1px solid #e5e7eb;
  padding: 4px;
}

/* STYLES FOR PRINTING INVOICES DIRECTLY */
@page {
  size: A4 portrait;
  margin: 0; /* Strips browser titles, dates, URLs, and dividing lines automatically */
}

@media print {
  /* 1. Force white backgrounds and reset font sizes on core elements */
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* 2. Hide all headers, footers, menus, sidebars, other subpanels, and controls completely */
  header,
  footer,
  .adm-sidebar,
  .est-widget, /* Hide controls form next to invoice */
  .adm-hdr,    /* Hide Admin Panel CRM headers */
  .fzone,
  #loader,
  #sp,         /* Hide scroll progress indicator bar */
  .ovl,
  .page:not(#pg-admin),
  .adm-panel:not(#adm-invoices) { /* HIDE ALL OTHER panels besides the invoice panel */
    display: none !important;
  }
  
  /* 3. Strip padding, margins, borders, and flex heights on parent layout wrappers */
  body,
  main,
  #pg-admin,
  .adm-container,
  .adm-main,
  .adm-panel#adm-invoices, /* Target ONLY the invoice panel in block mode */
  .inv-creator-grid {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    height: auto !important;
    position: static !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* 4. Force only the printable invoice sheet itself to render at the absolute top-left */
  .inv-preview-pane {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1.5cm !important; /* Adds padding inside the page so text doesn't touch the borders */
    margin: 0 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* 5. Ensure all elements inside the invoice sheet are fully visible */
  .inv-preview-pane * {
    visibility: visible !important;
  }

  /* 6. Enforce watermark visibility and exact printing adjustments */
  .inv-watermark, .inv-watermark img {
    visibility: visible !important;
    display: flex !important;
    opacity: 0.04 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* POPIN SPRING BOUNCE ANIMATION */
@keyframes popIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.15); opacity: 0.8; }
  80% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

/* CLIENT PRICE UNLOCK SYSTEM */
.price-val.locked {
  filter: blur(5px);
  user-select: none;
  cursor: pointer;
  position: relative;
  transition: filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.price-val.locked::after {
  content: " 🔒 Unlock";
  font-size: 0.62rem;
  background: var(--g1);
  color: var(--p) !important;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  filter: none !important;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(var(--a1-rgb), 0.5);
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: lockBounce 2s infinite ease-in-out;
}
.price-val.unlocked {
  filter: none !important;
}
.price-val.unlocked::after {
  display: none !important;
}
@keyframes lockBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.price-val.locked:hover {
  filter: blur(3px);
}

/* Tabbed Service Catalog Grid */
.catalog-tab-content {
  display: none;
}
.catalog-tab-content.active-grid {
  display: block;
  animation: tabFadeIn 0.5s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.8rem;
  margin-top: 1rem;
}
.cat-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 2.5rem 2rem;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.cat-card:hover {
  transform: translateY(-8px);
  border-color: var(--a1);
  box-shadow: var(--sh);
}
.cat-badge {
  display: inline-block;
  background: rgba(var(--a1-rgb), 0.1);
  color: var(--a1);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cat-price {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 1rem 0;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}
.cat-fts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.88rem;
  border-top: 1.5px dashed var(--border);
  padding-top: 1.2rem;
}
.cat-fts li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  line-height: 1.4;
}
.cat-fts li i {
  color: var(--a3);
  font-size: 0.95rem;
}
.cat-fts li i.fa-circle-dot {
  color: var(--a1);
  font-size: 0.6rem;
}
.cat-tbtn {
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--tr);
}
.cat-tbtn:hover {
  border-color: var(--a1);
  color: var(--a1);
  transform: translateY(-2px);
}
.cat-tbtn.ac {
  background: var(--g1);
  border-color: transparent;
  color: var(--p);
  box-shadow: 0 4px 15px rgba(var(--a1-rgb), 0.4);
}



/* Client Auth Modal styling overrides (SaaS Screen design integration) */
#modal-client-auth-overlay .modal {
  max-width: 440px !important;
  padding: 2.5rem !important;
  background: #0b0f19 !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}

body.light-mode #modal-client-auth-overlay .modal {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06) !important;
}

#modal-client-auth-overlay .form-inp {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

body.light-mode #modal-client-auth-overlay .form-inp {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  color: #111827 !important;
}

#modal-client-auth-overlay .form-inp:focus {
  border-color: var(--a1) !important;
  box-shadow: 0 0 10px rgba(var(--a1-rgb), 0.15) !important;
}

#modal-client-auth-overlay .auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

#modal-client-auth-overlay .auth-submit-btn:hover {
  transform: scale(1.02);
  opacity: 0.95;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

#modal-client-auth-overlay .auth-submit-btn:active {
  transform: scale(0.98);
}

body.light-mode #modal-client-auth-overlay .auth-submit-btn {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-mode #modal-client-auth-overlay .auth-submit-btn:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

/* ================== VISITING CARD PORTFOLIO SCROLLER ================== */
.card-portfolio-sec {
  padding: 5rem 0;
  background: var(--s);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  overflow: hidden;
}

body.light-mode .card-portfolio-sec {
  background: var(--surface);
}

.card-scroller-wrap {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
}

/* Gradient shadow overlays for premium seamless loop edges */
.card-scroller-wrap::before,
.card-scroller-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.card-scroller-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--s) 0%, transparent 100%);
}

.card-scroller-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--s) 0%, transparent 100%);
}

body.light-mode .card-scroller-wrap::before {
  background: linear-gradient(to right, var(--surface) 0%, transparent 100%);
}

body.light-mode .card-scroller-wrap::after {
  background: linear-gradient(to left, var(--surface) 0%, transparent 100%);
}

.card-scroller-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollGallery 35s linear infinite;
  padding: 10px 0;
}

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

.card-portfolio-item {
  width: 320px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--sh);
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
}

.card-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-portfolio-item:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--a1);
  box-shadow: 0 15px 30px rgba(var(--a1-rgb), 0.3);
}

.card-portfolio-item:hover img {
  transform: scale(1.05);
}

@keyframes scrollGallery {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate exactly half of the total width of the track: 7 items * 344px = 2408px */
    transform: translateX(-2408px);
  }
}

/* Adjust animation scroll for mobile viewports */
@media (max-width: 768px) {
  .card-portfolio-sec {
    padding: 3.5rem 0;
  }
  .card-scroller-wrap::before,
  .card-scroller-wrap::after {
    width: 60px;
  }
  .card-portfolio-item {
    width: 260px;
    height: 162px;
  }
  @keyframes scrollGallery {
    0% {
      transform: translateX(0);
    }
    100% {
      /* Translate exactly half of the total width of the mobile track: 7 items * 284px = 1988px */
      transform: translateX(-1988px);
    }
  }
}

/* ================== MOBILE WEBSITE PORTFOLIO SCROLLER ================== */
.web-portfolio-sec {
  padding: 5rem 0;
  background: var(--s);
  border-bottom: 1px solid var(--bd);
  overflow: hidden;
  margin-top: -2px;
}

body.light-mode .web-portfolio-sec {
  background: var(--surface);
}

.web-scroller-wrap {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
}

.web-scroller-wrap::before,
.web-scroller-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.web-scroller-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--s) 0%, transparent 100%);
}

.web-scroller-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--s) 0%, transparent 100%);
}

body.light-mode .web-scroller-wrap::before {
  background: linear-gradient(to right, var(--surface) 0%, transparent 100%);
}

body.light-mode .web-scroller-wrap::after {
  background: linear-gradient(to left, var(--surface) 0%, transparent 100%);
}

/* Loop in the opposite direction: right-to-left start but offset translation */
.web-scroller-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollGalleryRight 30s linear infinite;
  padding: 10px 0;
}

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

.web-portfolio-item {
  width: 320px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--sh);
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
}

.browser-bar {
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: relative;
  gap: 5px;
  flex-shrink: 0;
}

body.light-mode .browser-bar {
  background: rgba(0, 0, 0, 0.03);
}

.browser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-address {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: monospace;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  padding: 1px 12px;
  border-radius: 4px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

body.light-mode .browser-address {
  background: rgba(255, 255, 255, 0.8);
}

.browser-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.web-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.web-portfolio-item:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--a2);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.web-portfolio-item:hover img {
  transform: scale(1.05);
}

@keyframes scrollGalleryRight {
  0% {
    /* start at offset: 5 items * (320px width + 24px gap) = 1720px */
    transform: translateX(-1720px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Adjust animation scroll for mobile viewports */
@media (max-width: 768px) {
  .web-portfolio-sec {
    padding: 3.5rem 0;
  }
  .web-scroller-wrap::before,
  .web-scroller-wrap::after {
    width: 60px;
  }
  .web-scroller-track {
    gap: 16px;
  }
  .web-portfolio-item {
    width: 260px;
    height: 130px;
    border-width: 1.5px;
  }
  .browser-bar {
    height: 20px;
    padding: 0 8px;
    gap: 4px;
  }
  .browser-dot {
    width: 5px;
    height: 5px;
  }
  .browser-address {
    font-size: 0.6rem;
    padding: 1px 8px;
    max-width: 110px;
  }
  @keyframes scrollGalleryRight {
    0% {
      /* 260px + 16px gap = 276px. 5 items = 1380px */
      transform: translateX(-1380px);
    }
    100% {
      transform: translateX(0);
    }
  }
}






/* Flat Google Style: Hide Glowing Background Orbs & Profile Shadows */
.bg-wrap, .orb, .abglow {
  display: none !important;
}

/* FAQ Accordion Styling */
.faq-list {
  max-width: 760px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--tr);
}
.faq-q {
  width: 100%;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}
.faq-q i {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
  color: var(--muted);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.faq-item.active {
  border-color: var(--a1);
}
.faq-item.active .faq-q i {
  transform: rotate(180deg);
  color: var(--a1);
}
.faq-item.active .faq-a {
  max-height: 250px;
  padding-bottom: 1.5rem;
  transition: max-height 0.35s cubic-bezier(1, 0, 1, 0);
}

/* Mobile Theme Switcher Toggle styling */
.theme-btn.mobile-toggle {
  display: none;
}
@media (max-width: 900px) {
  .theme-btn.mobile-toggle {
    display: flex;
    font-size: 1.2rem;
    color: var(--text);
    padding: 8px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 1px solid var(--border);
  }
}

/* Responsive CRM Controls & Layout Fixes for Mobile Browsers */
@media (max-width: 768px) {
  .adm-main {
    padding: 1.25rem !important;
  }
  .adm-hdr {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
  }
  .adm-hdr div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .adm-hdr div .btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 0.78rem !important;
  }
  
  /* Estimate Calculations Grid and Modals */
  .inv-creator-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .inv-preview-pane {
    padding: 1.5rem 1rem !important;
    font-size: 0.8rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .inv-p-hdr {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  .inv-p-biz {
    text-align: left !important;
  }
  .inv-p-meta {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin: 1.5rem 0 !important;
  }
  .inv-p-calcs {
    width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }
  .inv-p-ft {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
  }
  
  /* Directory and Leads Table styling */
  .adm-tbl-wrap {
    margin-top: 1rem !important;
  }
  .adm-tbl th, .adm-tbl td {
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
  }
  
  /* Pipeline Grid stage columns scrolling */
  .kanban {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }
  .kanban-col {
    min-height: auto !important;
    padding: 1rem !important;
  }
}
