/* 
  PracWiz Solutions - Design System & Custom Styles
  Aesthetic: Light, Airy, Relaxing, and Highly Professional (Operational Relief Theme)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;700;800&display=swap');

/* Color Variables & Styling Tokens */
:root {
  /* Soothing Palette */
  --bg-main: #f8fafc;
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #f1f5f9;
  --bg-card: #ffffff;
  
  /* Primary & Accent Tones */
  --primary-deep: #003366; /* Logo deep tech-blue */
  --primary-muted: #1e40af;
  --accent-calm-green: #e6f7f0;
  --accent-calm-green-dark: #0f766e;
  --accent-sky: #e0f2fe;
  --accent-sky-dark: #0369a1;
  --accent-glow: rgba(14, 165, 233, 0.15);
  
  /* Text Colors */
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;
  
  /* Shadows & Layout Details */
  --shadow-soft: 0 10px 30px -5px rgba(0, 51, 102, 0.04), 0 20px 40px -10px rgba(0, 51, 102, 0.03);
  --shadow-hover: 0 20px 40px -5px rgba(0, 51, 102, 0.08), 0 25px 50px -12px rgba(0, 51, 102, 0.05);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 9999px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.25s ease;
}

/* CSS Reset & General Rules */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-deep);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.15;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

/* Helper & Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

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

/* Interactive Canvas Layer */
#canvas-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 850px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(248, 250, 252, 0.8);
  border-bottom: 1px solid rgba(0, 51, 102, 0.05);
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  width: 180px;
}

.nav-logo svg {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-deep);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary-deep);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-deep);
  color: var(--text-white);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.15);
  transition: var(--transition-smooth);
  border: 1.5px solid transparent;
}

.nav-cta:hover {
  background-color: transparent;
  color: var(--primary-deep);
  border-color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.1);
}

/* Mobile Menu Toggle button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-deep);
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  overflow: hidden;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-sky);
  color: var(--accent-sky-dark);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(3, 105, 161, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-deep);
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2.25rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 10px 25px -5px rgba(0, 51, 102, 0.2);
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-deep);
  border-color: var(--primary-deep);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0, 51, 102, 0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--primary-deep);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2.25rem;
  border-radius: var(--border-radius-pill);
  border: 2px solid rgba(0, 51, 102, 0.15);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: rgba(0, 51, 102, 0.03);
  border-color: var(--primary-deep);
  transform: translateY(-3px);
}

/* Floating Card Visual for Hero */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(0, 51, 102, 0.05);
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 5;
  transition: var(--transition-smooth);
}

.visual-card:hover {
  transform: translateY(-8px);
}

.card-peace-badge {
  background-color: var(--accent-calm-green);
  color: var(--accent-calm-green-dark);
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card-stat {
  font-size: 3.5rem;
  font-family: 'Outfit', sans-serif;
  color: var(--primary-deep);
  font-weight: 800;
  line-height: 1;
  margin: 1.5rem 0 0.5rem 0;
  display: flex;
  align-items: baseline;
}

.card-stat span {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 0.25rem;
}

.card-glow-bg {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-sky) 0%, transparent 70%);
  z-index: 1;
  top: -10%;
  left: -10%;
  opacity: 0.7;
  pointer-events: none;
}

/* Services / Capabilities Section */
.services {
  position: relative;
  z-index: 5;
  background-color: rgba(248, 250, 252, 0.5);
}

.section-header {
  max-width: 650px;
  margin: 0 auto 5rem auto;
}

.section-header h2 {
  margin-bottom: 1.25rem;
}

.section-header p {
  font-size: 1.2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 51, 102, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 51, 102, 0.08);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-sky);
  color: var(--accent-sky-dark);
  font-size: 1.5rem;
}

.service-card:nth-child(even) .service-icon {
  background-color: var(--accent-calm-green);
  color: var(--accent-calm-green-dark);
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--primary-deep);
}

.service-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Calculator Section */
.calculator-section {
  position: relative;
  z-index: 5;
}

.calculator-wrapper {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(0, 51, 102, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.calculator-form-side {
  padding: 4rem;
  border-right: 1px solid rgba(0, 51, 102, 0.05);
}

.calculator-results-side {
  padding: 4rem;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.4) 0%, rgba(209, 250, 229, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.pain-point-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pain-item {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-main);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0, 51, 102, 0.03);
  cursor: pointer;
  transition: var(--transition-normal);
}

.pain-item:hover {
  background-color: var(--accent-sky);
  border-color: rgba(3, 105, 161, 0.15);
}

.pain-item.active {
  background-color: var(--accent-calm-green);
  border-color: rgba(15, 118, 110, 0.25);
}

.pain-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(0, 51, 102, 0.2);
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  transition: var(--transition-normal);
}

.pain-item.active .pain-checkbox {
  background-color: var(--accent-calm-green-dark);
  border-color: var(--accent-calm-green-dark);
}

.pain-item.active .pain-checkbox::after {
  content: '✓';
  color: var(--text-white);
  font-size: 0.8rem;
  font-weight: bold;
}

.pain-content h4 {
  font-size: 1.1rem;
  color: var(--primary-deep);
  margin-bottom: 0.15rem;
}

.pain-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.slider-group {
  margin-top: 2.5rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 0.75rem;
}

.slider-label span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: var(--primary-deep);
}

.input-slider {
  width: 100%;
  height: 6px;
  border-radius: var(--border-radius-pill);
  background: rgba(0, 51, 102, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-deep);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
  transition: var(--transition-normal);
}

.input-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.result-number {
  font-size: 6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1;
  margin-top: 1.5rem;
  transition: var(--transition-smooth);
}

.result-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-deep);
  margin-top: 0.5rem;
}

.result-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-top: 1rem;
}

.result-gauge {
  width: 100%;
  max-width: 220px;
  height: 8px;
  background-color: rgba(0, 51, 102, 0.08);
  border-radius: var(--border-radius-pill);
  margin: 2.5rem 0 1rem 0;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-sky-dark) 0%, var(--accent-calm-green-dark) 100%);
  border-radius: var(--border-radius-pill);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Contact Section */
.contact {
  position: relative;
  z-index: 5;
  background-color: rgba(248, 250, 252, 0.5);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-sky);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky-dark);
  font-size: 1.25rem;
}

.contact-card-text h4 {
  font-size: 1.15rem;
  color: var(--primary-deep);
  margin-bottom: 0.25rem;
}

.contact-card-text p {
  font-size: 1rem;
}

.contact-form {
  background: var(--bg-card);
  padding: 3.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 51, 102, 0.03);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid rgba(0, 51, 102, 0.1);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: transparent;
  transition: var(--transition-normal);
}

.form-input:focus {
  border-color: var(--primary-deep);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: var(--text-light);
  font-weight: 500;
  pointer-events: none;
  transition: var(--transition-normal);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -0.75rem;
  left: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0.5rem;
  background: var(--bg-card);
  color: var(--primary-deep);
}

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

.btn-submit {
  width: 100%;
  cursor: pointer;
}

/* Footer Section */
footer {
  background-color: var(--primary-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 3rem 0;
  position: relative;
  z-index: 5;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.footer-logo {
  width: 200px;
}

.footer-logo svg {
  width: 100%;
  height: auto;
}

/* Overriding SVG color specifically inside the footer to render logo in white color */
.footer-logo svg .text-pracwiz,
.footer-logo svg .text-solutions {
  fill: #ffffff !important;
}

.footer-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.footer-links a {
  font-size: 1rem;
  transition: var(--transition-normal);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  padding-top: 2rem;
  text-align: center;
}

/* Mobile & Tablet Responsive Layouts */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-subtitle {
    margin: 0 auto;
  }
  
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }
  
  .calculator-form-side {
    border-right: none;
    border-bottom: 1px solid rgba(0, 51, 102, 0.05);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }
  
  .navbar {
    height: 80px;
  }
  
  .nav-links {
    display: none; /* simple toggle can be enabled via class */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0, 51, 102, 0.05);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-cta {
    display: none; /* hide in simple layout or put in mobile list */
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .calculator-form-side, .calculator-results-side {
    padding: 2.5rem 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}
