/* ============================================
   ProgrammingCA - AI Gradient Design Theme
   Software Development in Canada
   ============================================ */

/* CSS Variables */
:root {
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --secondary-gradient: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-card: #334155;
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --purple-500: #8b5cf6;
  --blue-500: #3b82f6;
  --pink-500: #ec4899;
  --orange-500: #f97316;
  --cyan-500: #06b6d4;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --container-max: 1200px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--purple-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blue-500);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility Classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-white { color: var(--text-light); }
.text-muted { color: var(--text-muted); }

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

.section-dark {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

.section-dark p {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-light);
  box-shadow: var(--shadow-md), 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(139, 92, 246, 0.4);
  color: var(--text-light);
}

.btn-secondary {
  background: transparent;
  color: var(--purple-500);
  border: 2px solid var(--purple-500);
}

.btn-secondary:hover {
  background: var(--primary-gradient);
  color: var(--text-light);
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-light);
  color: var(--text-light);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-lg);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
}

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

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-normal);
  pointer-events: none;
}

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

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

.nav-cta {
  margin-left: 1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  animation: gradientPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Neural Network Animation Background */
.neural-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.neural-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(139, 92, 246, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  animation: nodeFloat 6s ease-in-out infinite;
}

.neural-node:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.neural-node:nth-child(2) { top: 40%; left: 20%; animation-delay: 1s; }
.neural-node:nth-child(3) { top: 60%; left: 15%; animation-delay: 2s; }
.neural-node:nth-child(4) { top: 30%; left: 85%; animation-delay: 0.5s; }
.neural-node:nth-child(5) { top: 70%; left: 80%; animation-delay: 1.5s; }
.neural-node:nth-child(6) { top: 50%; left: 90%; animation-delay: 2.5s; }
.neural-node:nth-child(7) { top: 15%; left: 50%; animation-delay: 3s; }
.neural-node:nth-child(8) { top: 85%; left: 45%; animation-delay: 3.5s; }

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--purple-500);
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-glow);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: left;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   Services Section
   ============================================ */
.services {
  background: var(--light-bg);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header .section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple-500);
  margin-bottom: 1rem;
}

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

.service-card {
  position: relative;
  background: var(--light-surface);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--purple-500);
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 0.75rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
  background: var(--dark-bg);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  background: var(--secondary-gradient);
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.about-text .section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple-500);
  margin-bottom: 1rem;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: var(--border-radius);
  flex-shrink: 0;
  font-size: 1.25rem;
}

.about-feature h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.about-feature p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ============================================
   AI Capabilities Section
   ============================================ */
.capabilities {
  background: var(--light-bg);
  position: relative;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.capability-card {
  position: relative;
  background: var(--light-surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.capability-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 92, 246, 0.3);
}

.capability-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-gradient);
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.capability-card h4 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

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

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
  background: var(--primary-gradient);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stats-item {
  text-align: center;
  color: var(--text-light);
}

.stats-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ============================================
   Use Cases / Process Section
   ============================================ */
.use-cases {
  background: var(--dark-bg);
  color: var(--text-light);
}

.use-cases-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.use-cases-list {
  list-style: none;
}

.use-case-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--purple-500);
  transition: all var(--transition-normal);
}

.use-case-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.use-case-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.use-case-content h4 {
  margin-bottom: 0.5rem;
}

.use-case-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ============================================
   Team Section
   ============================================ */
.team {
  background: var(--light-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  position: relative;
  background: var(--light-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-social {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.team-card:hover .team-social {
  transform: translateY(0);
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: 50%;
  color: var(--text-light);
  transition: transform var(--transition-fast);
}

.team-social a:hover {
  transform: scale(1.1);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-info h4 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.team-info p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--purple-500);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
  background: var(--dark-bg);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 2rem;
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.8;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--purple-500);
  display: block;
  height: 2rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple-500);
}

.testimonial-author-info h5 {
  margin-bottom: 0.25rem;
  color: var(--text-light);
}

.testimonial-author-info p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-btn:hover {
  background: var(--primary-gradient);
  border-color: transparent;
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--purple-500);
  transform: scale(1.2);
}

/* ============================================
   Partners Section
   ============================================ */
.partners {
  background: var(--light-bg);
  padding: 4rem 0;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.partner-logo {
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition-normal);
  max-height: 50px;
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
  background: var(--primary-gradient);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  outline: none;
}

.newsletter-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--dark-bg);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--dark-surface);
  transform: translateY(-2px);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
  background: var(--light-bg);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--light-surface);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--purple-500);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  background: var(--dark-bg);
  color: var(--text-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: var(--border-radius);
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-details a {
  color: var(--text-light);
}

.contact-details a:hover {
  color: var(--purple-500);
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.contact-social a:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ============================================
   Blog Section
   ============================================ */
.blog {
  background: var(--light-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--light-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary-gradient);
  color: var(--text-light);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.blog-content h3 a {
  color: inherit;
}

.blog-content h3 a:hover {
  color: var(--purple-500);
}

.blog-content p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--purple-500);
}

/* ============================================
   Article Page Styles
   ============================================ */
.article-hero {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.article-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.article-category {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-gradient);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: var(--text-muted);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-main {
  padding: 4rem 0;
  background: var(--light-bg);
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.article-featured-image {
  margin-bottom: 3rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.article-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-body {
  background: var(--light-surface);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: rgba(139, 92, 246, 0.1);
  border-left: 4px solid var(--purple-500);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  font-size: 1.1rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-tag {
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple-500);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

.article-author-box {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--dark-bg);
  border-radius: var(--border-radius-lg);
  color: var(--text-light);
}

.article-author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple-500);
}

.article-author-info h4 {
  margin-bottom: 0.25rem;
}

.article-author-info p {
  font-size: 0.9rem;
}

/* Related Articles */
.related-articles {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.related-articles h3 {
  text-align: center;
  margin-bottom: 2rem;
}

/* ============================================
   Legal Pages (Privacy, Terms, Refund)
   ============================================ */
.legal-page {
  padding-top: 100px;
  background: var(--light-bg);
}

.legal-hero {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0.1;
  pointer-events: none;
}

.legal-hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

.legal-hero p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.legal-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
  margin-bottom: 1.5rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
}

.footer-column h4 {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

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

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

.footer-links a:hover {
  color: var(--purple-500);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

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

.footer-contact a:hover {
  color: var(--purple-500);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom-links a:hover {
  color: var(--purple-500);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

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

  .hero-text {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content,
  .use-cases-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stats-number {
    font-size: 2.5rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-author-box {
    flex-direction: column;
    text-align: center;
  }

  .article-author-box img {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .testimonial-content {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .article-body {
    padding: 1.5rem;
  }
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-surface);
  color: var(--text-light);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

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

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.cookie-content p {
  margin: 0;
  color: var(--text-muted);
}

.cookie-content a {
  color: var(--purple-500);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

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

/* ============================================
   Map Section
   ============================================ */
.map-section {
  height: 400px;
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) contrast(1.1);
  transition: filter var(--transition-normal);
}

.map-section:hover iframe {
  filter: grayscale(0%) contrast(1);
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */
.page-header {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

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

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--purple-500);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* ============================================
   About Page Specific
   ============================================ */
.about-hero-section {
  background: var(--dark-bg);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.about-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: var(--light-surface);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: var(--primary-gradient);
  border-radius: 50%;
  font-size: 1.75rem;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-gradient);
  pointer-events: none;
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 50%;
  border: 4px solid var(--light-bg);
  pointer-events: none;
}

.timeline-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-gradient);
  color: var(--text-light);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-item h4 {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Blog Page Styles
   ============================================ */
.blog-header {
  background: var(--dark-bg);
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.blog-header-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
}

.blog-main {
  background: var(--light-bg);
  padding: 4rem 0;
}
