/* =========================================================
   PRACTICEGRID SOLUTIONS — ENTERPRISE SAAS CSS SYSTEM
   Version: Production Optimized ($25K Architecture)
========================================================= */

/* ===============================
   1. DESIGN TOKENS
================================= */
:root {

  /* Layout */
  --container-width: 1200px;
  --section-padding: 120px;
  --section-padding-sm: 80px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* Brand Colors (Logo Theme) */
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #3b82f6;

  --gradient-primary: linear-gradient(135deg, var(--accent), var(--accent-2));
  --gradient-hero: linear-gradient(-45deg,#5a3eb1,#8c3fc6,#3b82f6,#9333ea);

  /* Dark Mode (Default) */
  --bg-primary: #0b1120;
  --bg-secondary: #0f172a;
  --bg-tertiary: #111827;
  --bg-elevated: rgba(255,255,255,0.04);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;

  /* Effects */
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.25);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.35);
  --border-glow: linear-gradient(45deg,var(--accent),var(--accent-2),var(--accent-3));

  /* Typography */
  --font-main: 'Inter', sans-serif;
}

/* ===============================
   2. LIGHT MODE
================================= */
body.light-mode {

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #e2e8f0;
  --bg-elevated: #ffffff;

  --text-primary: #111827;
  --text-secondary: #475569;

  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.12);
}

/* ===============================
   3. GLOBAL RESET
================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
}

body::before {
  content:"";
  position:fixed;
  inset:0;
  background:url('https://www.transparenttextures.com/patterns/noise.png');
  opacity:0.02;
  pointer-events:none;
  z-index:0;
}

/* ===============================
   4. LAYOUT SYSTEM
================================= */
.container {
  max-width: var(--container-width);
  margin: auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--section-padding) 0;
}

@media(max-width:992px){
  .section {
    padding: var(--section-padding-sm) 0;
  }
}

/* ===============================
   5. TYPOGRAPHY
================================= */
h1,h2,h3 {
  letter-spacing: -1px;
}

h1 { font-size: 60px; font-weight: 800; }
h2 { font-size: 42px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===============================
   FLOATING CTA
================================= */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  z-index: 2000;
  transition: 0.3s ease;
}

.floating-cta:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* ===============================
   6. NAVIGATION
================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(15px);
  background: rgba(15, 23, 42, 0.7);
  transition: 0.3s ease;
}

.navbar-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 0;
}

.logo img { height:55px; }

.nav-menu ul {
  display:flex;
  list-style:none;
  gap:30px;
}

.nav-menu a {
  text-decoration:none;
  color: var(--text-primary);
  font-weight:500;
}

header.scrolled {
  box-shadow: var(--shadow-soft);
}
.navbar .btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}
/* MOBILE MENU FIX */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: 0.3s;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hides the menu off-screen to the right */
    width: 80%;
    height: 100vh;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav-menu.active {
    right: 0; /* Slides the menu into view */
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .nav-menu ul li a {
    font-size: 20px;
  }
}

/* Hide toggle on desktop */
@media (min-width: 993px) {
  .nav-toggle {
    display: none;
  }
}
/* ===============================
   7. BUTTONS
================================= */
.btn-primary {
  background: #fff;
  color: var(--accent);
  padding:14px 28px;
  border-radius: var(--radius-pill);
  text-decoration:none;
  font-weight:600;
  transition:0.3s ease;
}

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

.btn-outline {
  border:2px solid #fff;
  padding:14px 28px;
  border-radius: var(--radius-pill);
  text-decoration:none;
  color:#fff;
}

/* ===============================
   8. HERO SECTION
================================= */
.hero {
  position:relative;
  height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background: var(--gradient-hero);
  background-size:400% 400%;
  animation:gradient 12s ease infinite;
  padding-top: 95px;
}

@keyframes gradient {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

.hero-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  position: relative;
  z-index: 2;
}

.hero-left { max-width:600px; }
.hero h1 { line-height:1.1; }
.hero p { margin:20px 0; }

.hero-right img {
  width:500px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-15px); }
}

/* DROPLETS in HERO */

.hero-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent);
  filter: blur(120px);
  z-index: 0;
}

.blob-1 {
  top: -100px;
  left: -100px;
}

.blob-2 {
  bottom: -100px;
  right: -100px;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
/* --- ADD THIS BELOW HERO BLOB STYLES --- */

.stats {
  display: flex;          /* This puts the numbers in a row */
  gap: 40px;              /* Spacing between the three stats */
  margin-top: 40px;       /* Space between the buttons and the numbers */
}

.stat h2 {
  font-size: 48px;        /* Makes the 35%, 99%, etc. big and bold */
  color: #ffffff;         /* Ensures numbers are bright white */
  margin-bottom: 5px;
  font-weight: 800;
}

.stat p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8); /* Slightly faded white for the labels */
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Ensure the container sits on top of the particles */
.hero-container {
  position: relative;
  z-index: 10;
}
/* ===============================
   9. SERVICES
================================= */
.services-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:30px;
  margin-top:60px;
}

.service-card {
  background: var(--bg-elevated);
  padding:35px;
  border-radius: var(--radius-lg);
  transition:0.4s ease;
  backdrop-filter: blur(20px);
  position:relative;
  overflow:hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.service-card::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius: var(--radius-lg);
  padding:2px;
  background: var(--border-glow);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity:0;
  transition:0.4s;
}

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

.service-card:hover {
  transform:translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.icon svg {
  width:50px;
  height:50px;
  stroke: var(--accent-2);
  stroke-width:2;
  fill:none;
  animation: rotate 6s linear infinite;
}

@keyframes rotate {
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

/* ===============================
   10. HIPAA SECTION
================================= */
.hipaa-badge {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid var(--accent-2);
  animation: glowRing 3s infinite ease-in-out;
}

.badge-core {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 40px rgba(139,92,246,0.6);
}

@keyframes glowRing {
  0% { box-shadow: 0 0 10px rgba(139,92,246,0.4); }
  50% { box-shadow: 0 0 40px rgba(139,92,246,0.9); }
  100% { box-shadow: 0 0 10px rgba(139,92,246,0.4); }
}

.hipaa-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.badge-core img {
  width: 110px;
  filter: drop-shadow(0 0 25px rgba(139,92,246,0.8));
}
/* ===============================
   11. EHR SLIDER
================================= */
.ehr-section {
  padding: 100px 0;
  overflow: hidden;
  background: var(--bg-secondary);
  text-align: center;
}

.slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.slide-track {
  display: flex;
  gap: 60px;
  animation: scroll 35s linear infinite;
}

.slide-track img {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: 0.3s ease;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* ===============================
   12. CTA
================================= */
.cta {
  padding:60px 0;
  background: var(--gradient-primary);
  text-align:center;
}
.cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
/* ===============================
   13. CONTACT STRIP
================================= */
.contact-strip {
  padding:60px 0;
  background: linear-gradient(135deg,var(--bg-secondary),#1e1b4b);
  position: relative;
  overflow: hidden;
}

.contact-item {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.contact-circle svg {
  stroke: var(--accent-2);
   stroke-width: 2;
   fill: none;
}
.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
}
@media (max-width: 992px) {
  .contact-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .divider-line {
    display: none;
  }
}

.contact-item h4 {
  font-size: 18px;
  font-weight: 600;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.contact-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact-circle svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  animation: pulse 2s infinite;
}

.divider-line {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.1);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

.wave-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    120deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.04) 2px,
    transparent 2px,
    transparent 20px
  );
  animation: waveMove 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes waveMove {
  from { background-position: 0 0; }
  to { background-position: 1000px 0; }
}

/* ===============================
   14. FOOTER
================================= */
footer {
  padding: 100px 0 40px;
  text-align:center;
  background: var(--bg-tertiary);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-contact {
  display: flex;
  gap: 20px;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-hipaa img {
  height: 50px;
  filter: drop-shadow(0 0 10px rgba(139,92,246,0.8));
}
.footer {
  background: var(--bg-tertiary);
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 60px;
}

.footer-brand img {
  height: 55px;
  margin-bottom: 20px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
}

/* ===============================
   16. SCROLLBAR
================================= */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius:10px;
}

/* ===============================
   17. RESPONSIVE
================================= */
@media(max-width:992px){

   .hero {
    height: auto !important; /* Forces the box to grow with the content */
    min-height: 100vh;
    padding-top: 120px; /* Prevents the fixed navbar from covering the title */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .hero-right img {
    width: 80% !important; 
    max-width: 280px; 
    height: auto;
    margin-top: 40px;
    position: relative;
    z-index: 5;
     will-change: transform;
     transform: translateZ(0); 
     backface-visibility: hidden;
  }
   .hero-left {
    max-width: 100%;
    transform: none !important; /* Disables parallax which causes 'pop out' on mobile */
  }

  .hero-right {
    width: 100%;
    display: flex;
    justify-content: center;
    transform: none !important; /* Keeps the image exactly where it belongs */
  }
  .stats {
    justify-content:center;
    flex-wrap:wrap;
     margin-top: 30px;
     gap: 15px; /* Tightens gap for small screens */
  }

  .hipaa-container {
    flex-direction:column;
    text-align:center;
  }
}


.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Fix for overlapping hero buttons on mobile */
@media (max-width: 992px) {
  .hero-buttons {
    display: flex;
    flex-direction: column; /* Stacks buttons vertically */
    align-items: center;    /* Centers them horizontally */
    gap: 15px;              /* Adds space between the two buttons */
  }

  .hero-buttons .btn-primary, 
  .hero-buttons .btn-outline {
    width: 100%;            /* Optional: makes buttons uniform width on mobile */
    max-width: 280px;       /* Keeps them from becoming too wide */
  }
}

/* =========================================================
   SERVICES PAGE – LEFT ICON LAYOUT
   Safe – Does NOT affect homepage
========================================================= */

.services-vertical {
  max-width: 1000px;
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-vertical-card {
  display: flex;
  align-items: center; /* Vertical centering */
  gap: 40px;
  background: var(--bg-elevated);
  padding: 45px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: 0.4s ease;
}

.service-vertical-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--border-glow);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.4s;
}

.service-vertical-card:hover::before {
  opacity: 1;
}

.service-vertical-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-vertical-icon {
  min-width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: 0.4s ease;
   box-shadow:
    0 0 25px rgba(139, 92, 246, 0.6),
    0 0 60px rgba(6, 182, 212, 0.4);
}
.service-vertical-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--border-glow);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.8;
}
.service-vertical-icon svg {
  width: 90px;
  height: 90px;
  stroke: var(--accent-2);
  stroke-width: 2;
  fill: none;
  transition: 0.4s ease;
}

.service-vertical-card:hover .service-vertical-icon svg {
  stroke: var(--accent);
  transform: scale(1.1);
}

.service-vertical-content h3 {
  margin-bottom: 15px;
}

.service-vertical-content p {
  margin: 0;
  color: var(--text-secondary);
}
/* =========================================================
   SERVICES HERO IMAGE LAYOUT
========================================================= */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: 0.4s ease;
}

.hero-image img:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

/* Mobile */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    margin-top: 40px;
  }
}

/* =========================================================
   Icons for contact strip in footer
========================================================= */
.footer-contact a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: 0.3s ease;
}

.footer-contact a:hover {
  color: var(--accent-2);
}
.footer-hipaa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* space between image and text */
}

.footer-hipaa img {
  height: 50px;
  filter: drop-shadow(0 0 10px rgba(139,92,246,0.8));
}

.footer-hipaa .hipaa-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-align: center;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;           /* horizontal row */
  align-items: center;     /* vertically center icon & text */
  gap: 10px;               /* space between icon and text */
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-2);
  flex-shrink: 0;          /* prevent shrinking */
}
