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

:root {
  /* Unique Color Palette: Deep Slate & Violet */
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --primary: #8b5cf6;
  /* Violet */
  --primary-hover: #7c3aed;
  --secondary: #06b6d4;
  /* Cyan */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);

  --font-main: 'Outfit', sans-serif;
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;

  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-main);
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 2.5rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

.text-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.8rem;
  border-radius: 5rem;
  /* Modern pill shape */
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff !important;
  /* Guaranteed white text */
  box-shadow: 0 8px 25px -5px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.6);
}

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

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: #ffffff !important;
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  /* Darker glass */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  gap: 0.75rem;
}

.logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 9rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 2rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 0.75rem;
  box-shadow: 0 0 8px var(--primary);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Hero Visualization */
.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  perspective: 1000px;
}

.visual-card.main-card {
  width: 90%;
  height: 350px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.visual-card.main-card:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.neural-network {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.visual-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(6, 182, 212, 0.2);
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: var(--primary);
  top: -40px;
  left: -40px;
  opacity: 0.3;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--secondary);
  bottom: -60px;
  right: -40px;
  opacity: 0.2;
  animation-delay: -4s;
}

.stat-bubble {
  position: absolute;
  padding: 1rem 1.75rem;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  z-index: 5;
  transition: transform 0.3s ease;
}

.stat-bubble:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.bubble-1 {
  top: 15%;
  left: -10%;
  animation: float 6s ease-in-out infinite 1s;
}

.bubble-2 {
  bottom: 15%;
  right: -10%;
  animation: float 7s ease-in-out infinite 2s;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0px;
}

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

  to {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-25px);
  }
}

/* Services / Features */
.section {
  padding: 8rem 0;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: var(--transition);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  font-size: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: rotate(5deg);
}

.card h3,
.card h4 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.card p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.review-card {
  background: rgba(30, 41, 59, 0.4);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: relative;
}



.stars {
  color: #fbbf24;
  margin-bottom: 1.25rem;
  letter-spacing: 2px;
}

.review-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* CTA Card */
.cta-card {
  background: linear-gradient(145deg, var(--bg-card), rgba(30, 41, 59, 0.8));
  padding: 4rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-card p {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.2rem;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

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

  .cta-card {
    padding: 3rem 1.5rem;
  }
}

/* Contact Form */
.contact-section {
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  background: linear-gradient(145deg, var(--bg-card), rgba(15, 23, 42, 0.95));
  padding: 4rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.contact-info h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-main);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
  transform: translateX(5px);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  transition: var(--transition);
  font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.checkbox-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.checkbox-wrapper input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.checkbox-wrapper a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
}

.status-message {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: none;
  font-weight: 500;
}

.status-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
  background: #0b1120;
  padding: 6rem 0 3rem;
  margin-top: 8rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

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

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 1.75rem;
  font-size: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 1.5rem;
  max-width: 650px;
  width: 100%;
  position: relative;
  border: 1px solid var(--border);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 1500;
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-popup.show {
  transform: translateY(0);
}

/* Legal Pages Styling */
.legal-page {
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 4rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.legal-content h1 {
  margin-bottom: 3rem;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.legal-content h3 {
  color: var(--primary);
  margin-top: 2.5rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
    height: 400px;
  }

  .hero p {
    margin: 0 auto 2.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.5rem;
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .burger {
    display: flex;
  }

  .burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .contact-container {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-content div[style*="margin-top"] {
    display: flex;
    flex-direction: column;
  }

  .hero-content .btn-outline {
    margin-left: 0 !important;
  }

  .visual-card.main-card {
    height: 250px;
  }

  .stat-bubble {
    padding: 0.75rem 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }
}