/*
================================================
TABLE OF CONTENTS
================================================
1.  :root VARIABLES
2.  GENERAL & RESET STYLES
3.  REUSABLE COMPONENTS & UTILITIES
    - Container
    - Section Styling
    - Buttons
    - Background Shapes
4.  PRELOADER
5.  HEADER & NAVIGATION
6.  HERO SECTION
7.  TRUSTED BY SECTION
8.  SERVICES SECTION
9.  ABOUT US SECTION
10. STATS SECTION
11. PROCESS SECTION
12. LIVE STATS DASHBOARD
13. TESTIMONIALS SECTION
14. CALL TO ACTION (CTA)
15. FOOTER
16. INTERACTIVE WIDGETS
    - Back to Top Button
    - Live Chat Widget
17. PAGE-SPECIFIC STYLES
    - Legal Pages (Privacy, Terms, etc.)
    - Contact Page
    - Success Popup
18. ANIMATIONS & KEYFRAMES
19. RESPONSIVE DESIGN (MEDIA QUERIES)
================================================
*/

/* 1. :root VARIABLES */
:root {
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-secondary: #7c3aed;
  --color-background: #0f172a;
  --color-surface: #1e293b;
  --color-surface-light: #334155;
  --color-border: #334155;
  --color-text-primary: #e2e8f0;
  --color-text-secondary: #94a3b8;
  --color-white: #ffffff;
  --color-success: #22c55e;
  --color-danger: #ef4444;

  --font-primary: "Poppins", sans-serif;

  --header-height: 80px;
  --border-radius: 12px;
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. GENERAL & RESET STYLES */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text-primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. REUSABLE COMPONENTS & UTILITIES */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-padding {
  padding-block: 100px;
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 60px;
}

.section-header .subtitle {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
}

.section-header .subtitle::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}

.section-header p {
  max-width: 600px;
  margin-inline: auto;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(79, 70, 229, 0.6);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-surface-light);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

.background-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(79, 70, 229, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  filter: blur(100px);
}

.shape1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  animation: float 20s infinite alternate;
}
.shape2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -150px;
  animation: float 25s infinite alternate;
  animation-delay: -5s;
}
.shape3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 18s infinite alternate;
}

/* 4. PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-background);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 60px;
  height: 60px;
  position: relative;
}

.loader-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--color-surface);
  border-top-color: var(--color-primary);
  animation: spin 1s linear infinite;
}

/* 5. HEADER & NAVIGATION */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-fast);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.nav-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-fast);
}
.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: var(--color-text-primary);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* 6. HERO SECTION */
.hero {
  padding-top: 60px;
  padding-bottom: 100px;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.hero > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  perspective: 1000px;
}

.hero-image-inner {
  background: linear-gradient(
    145deg,
    var(--color-surface),
    var(--color-background)
  );
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-image-inner:hover {
  transform: rotateY(0) rotateX(0);
}

.hero-image img {
  border-radius: 8px;
}

/* 7. TRUSTED BY SECTION */
.trusted-by {
  padding-block: 60px;
  background-color: rgba(30, 41, 59, 0.5);
}

.trusted-by-title {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

.trusted-by-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.trusted-by-logos img {
  height: 30px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--transition-fast);
}

.trusted-by-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* 8. SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-surface);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.15) 0%,
    rgba(79, 70, 229, 0) 70%
  );
  transition: opacity var(--transition-smooth);
  opacity: 0;
  transform: translateZ(-10px);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--color-primary);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  color: var(--color-white);
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.service-link i {
  margin-left: 5px;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

/* 9. ABOUT US SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}
.about-image img {
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.about-content .section-header {
  margin-bottom: 2rem;
}

.about-list {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-list i {
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* 10. STATS SECTION */
.stats {
  background:
    linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
    url("https://i.imgur.com/uG9QSv8.png") no-repeat center center/cover;
  background-attachment: fixed;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* 11. PROCESS SECTION */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-grid::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-border),
    var(--color-border) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 1;
}

.process-card {
  background-color: var(--color-surface);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all var(--transition-smooth);
  transform-style: preserve-3d;
}

.process-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.process-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-white);
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.process-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 12. LIVE STATS DASHBOARD */
.dashboard-container {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.dashboard-card {
  background-color: var(--color-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.kpi-card h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.kpi-change {
  font-weight: 600;
}
.kpi-change.positive {
  color: var(--color-success);
}
.kpi-change.negative {
  color: var(--color-danger);
}

.chart-card {
  grid-column: span 2;
}

.chart-card h4 {
  margin-bottom: 1rem;
}

.chart-image {
  width: 100%;
  object-fit: contain;
}

/* 13. TESTIMONIALS SECTION */
.testimonial-slider-wrapper {
  position: relative;
  max-width: 800px;
  margin: auto;
}

.testimonial-slider {
  position: relative;
  width: 100%;
  height: 350px; /* Adjust height as needed */
  overflow: hidden;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-quote {
  background-color: var(--color-surface);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-quote i {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2rem;
  color: var(--color-primary);
  opacity: 0.2;
}

.testimonial-quote p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-left: 20px;
}

.author-info h4 {
  font-size: 1.1rem;
}
.author-info span {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* 14. CALL TO ACTION (CTA) */
.cta {
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
}
.cta-content h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.cta .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: none;
}
.cta .btn-primary:hover {
  background: var(--color-text-primary);
  color: var(--color-primary-hover);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 15. FOOTER */
.footer {
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border);
  padding-top: 80px;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding-bottom: 40px;
}

.footer-about .footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-surface);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links ul a,
.footer-contact ul a {
  color: var(--color-text-secondary);
}

.footer-links ul a:hover,
.footer-contact ul a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  margin-top: 5px;
  color: var(--color-primary);
}

.footer-bottom {
  padding-block: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-legal a {
  color: var(--color-text-secondary);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

.footer-legal span {
  color: var(--color-border);
}

/* 16. INTERACTIVE WIDGETS */
/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.5);
  color: var(--color-white);
}

/* Live Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 998;
}

.chat-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.chat-button:hover {
  transform: scale(1.1);
}

.chat-button .fa-times {
  display: none;
}
.chat-widget.active .fa-comments {
  display: none;
}
.chat-widget.active .fa-times {
  display: block;
}

.chat-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transform-origin: bottom right;
  transition: all var(--transition-smooth);
}

.chat-widget.active .chat-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  padding: 1.5rem;
  color: var(--color-white);
}
.chat-header h3 {
  color: var(--color-white);
}
.chat-header p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

.chat-body {
  padding: 1.5rem;
  height: 300px;
  overflow-y: auto;
}
.chat-message {
  margin-bottom: 1rem;
}
.chat-message p {
  background-color: var(--color-surface-light);
  padding: 10px 15px;
  border-radius: 20px;
  display: inline-block;
  max-width: 80%;
}
.chat-message.received p {
  border-bottom-left-radius: 5px;
}

.chat-footer {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--color-border);
}

.chat-footer input {
  flex-grow: 1;
  border: none;
  background: var(--color-background);
  padding: 10px;
  border-radius: 20px;
  color: var(--color-text-primary);
}

.chat-footer button {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 10px;
}

/* 17. PAGE-SPECIFIC STYLES */
.page-header {
  text-align: center;
  padding-block: 80px;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7));
}

.page-header h1 {
  font-size: 3.5rem;
}

/* Legal Pages */
.legal-content .content-wrapper {
  max-width: 800px;
  margin: auto;
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.legal-content p,
.legal-content li {
  margin-bottom: 1rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 20px;
}

/* Contact Page */
.contact-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 60px;
}

.contact-info-block,
.contact-form-block {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

.info-text h4 {
  font-size: 1.1rem;
}
.info-text p,
.info-text a {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.contact-form .form-row {
  display: flex;
  gap: 1.5rem;
}
.contact-form .form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 15px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}
.contact-form textarea {
  resize: vertical;
}

/* Success Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}
.popup.active {
  opacity: 1;
  visibility: visible;
}
.popup-content {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
  transform: scale(0.8);
  transition: all var(--transition-smooth);
}
.popup.active .popup-content {
  transform: scale(1);
}
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-secondary);
}
.popup-icon {
  font-size: 4rem;
  color: var(--color-success);
  margin-bottom: 1rem;
}
.popup h3 {
  margin-bottom: 0.5rem;
}
.popup .btn {
  margin-top: 1.5rem;
}

/* 18. ANIMATIONS & KEYFRAMES */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(30px) rotate(20deg);
  }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s var(--transition-smooth),
    transform 0.8s var(--transition-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 19. RESPONSIVE DESIGN (MEDIA QUERIES) */

/* Tablets and larger devices */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-surface);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    gap: 2rem;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    font-size: 1.5rem;
  }
  .hamburger {
    display: block;
    z-index: 1001;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero > .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    margin-inline: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image {
    grid-row: 1;
    margin-bottom: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image {
    grid-row: 1;
    margin-bottom: 2rem;
  }
  .about-content .section-header {
    text-align: center;
  }
  .about-list {
    margin-inline: auto;
    display: inline-flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid::after {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-card {
    grid-column: span 2;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .section-padding {
    padding-block: 80px;
  }
  .header.scrolled {
    padding-block: 0.2rem;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .trusted-by-logos {
    gap: 2rem;
  }
  .trusted-by-logos img {
    height: 25px;
  }

  .stats-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card.chart-card {
    grid-column: span 1;
  }
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-page-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}
