@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --bg-card: rgba(255, 255, 255, 0.04);
  --fg: #f4f4f5;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.12);
  
  --blue: #3b82f6;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --orange: #f97316;
  --pink: #ec4899;
  --green: #22c55e;
  
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--muted); }

.section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
}

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 48rem;
  margin: 0 auto;
}

/* Glass Effects */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.glass-button {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Header */
.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2rem);
  max-width: 900px;
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0 1.25rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
  gap: 1rem;
}

.logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo span {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu > li > a,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.nav-menu > li > a:hover,
.dropdown-toggle:hover {
  color: var(--fg);
  background: var(--glass);
}

.nav-menu > li > a.active {
  color: var(--fg);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.has-dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 280px;
  background: rgba(15, 15, 17, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.has-dropdown.open .dropdown,
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.2s ease;
}

.dropdown a:hover {
  background: var(--glass-strong);
  color: var(--fg);
}

.dropdown a .icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.dropdown a .icon.blue { background: rgba(59, 130, 246, 0.2); color: var(--blue); }
.dropdown a .icon.purple { background: rgba(168, 85, 247, 0.2); color: var(--purple); }
.dropdown a .icon.cyan { background: rgba(34, 211, 238, 0.2); color: var(--cyan); }
.dropdown a .icon.orange { background: rgba(249, 115, 22, 0.2); color: var(--orange); }
.dropdown a .icon.pink { background: rgba(236, 72, 153, 0.2); color: var(--pink); }

/* CTA Button in Nav */
.btn-cta {
  background: linear-gradient(135deg, var(--fg), rgba(255, 255, 255, 0.9));
  color: var(--bg);
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .site-header {
    top: 0.75rem;
    width: calc(100% - 1.5rem);
    border-radius: 1.5rem;
    padding: 0 1rem;
  }

  .header-inner {
    height: 3.5rem;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-toggle { 
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .nav-menu {
    position: fixed;
    top: 5rem;
    left: 0.75rem;
    right: 0.75rem;
    flex-direction: column;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu > li { width: 100%; }
  
  .nav-menu > li > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
  
  .dropdown {
    position: static;
    min-width: 100%;
    background: var(--glass);
    box-shadow: none;
    margin-top: 0.25rem;
    display: none;
  }
  
  .has-dropdown.open .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* Mobile Bottom App Menu */
.mobile-app-menu {
  display: none;
}

@media (max-width: 900px) {
  .mobile-app-menu {
    display: flex;
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.75rem;
    padding: 0.625rem 1.25rem;
    gap: 0.375rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .mobile-app-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.125rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }
  
  .mobile-app-menu-item:hover,
  .mobile-app-menu-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--blue);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
  }
  
  .mobile-app-menu-item svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fg), rgba(255, 255, 255, 0.9));
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: var(--glass);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
  perspective: 1000px;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.4) 2px, transparent 2px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(60deg) translateZ(-100px);
  transform-origin: center center;
  animation: gridRipple 4s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 70% 40% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 40% at 50% 50%, black 20%, transparent 70%);
  filter: blur(0.5px) drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, transparent 30%, var(--bg) 80%);
  pointer-events: none;
}

@keyframes gridRipple {
  0%, 100% {
    transform: perspective(600px) rotateX(60deg) translateZ(-100px) translateY(0);
  }
  50% {
    transform: perspective(600px) rotateX(60deg) translateZ(-100px) translateY(30px) scale(1.05);
  }
}

.hero-blob {
  display: none;
}

.hero-content {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.hero-title {
  font-size: clamp(2.25rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 48rem;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.stat-value.blue { color: var(--blue); }
.stat-value.purple { color: var(--purple); }
.stat-value.cyan { color: var(--cyan); }
.stat-value.orange { color: var(--orange); }

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.service-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.service-icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  z-index: 1;
  font-size: 1.25rem;
}

.service-icon.blue { background: rgba(59, 130, 246, 0.3); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.service-icon.purple { background: rgba(168, 85, 247, 0.3); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.service-icon.cyan { background: rgba(34, 211, 238, 0.3); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.3); }
.service-icon.orange { background: rgba(249, 115, 22, 0.3); color: var(--orange); border: 1px solid rgba(249, 115, 22, 0.3); }
.service-icon.pink { background: rgba(236, 72, 153, 0.3); color: var(--pink); border: 1px solid rgba(236, 72, 153, 0.3); }
.service-icon.green { background: rgba(34, 197, 94, 0.3); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.service-link.blue { color: var(--blue); }
.service-link.purple { color: var(--purple); }
.service-link.cyan { color: var(--cyan); }
.service-link.orange { color: var(--orange); }
.service-link.pink { color: var(--pink); }
.service-link.green { color: var(--green); }

.service-card:hover .service-link { gap: 0.75rem; }

.service-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  transition: width 0.5s ease;
}

.service-accent.blue { background: linear-gradient(to right, transparent, var(--blue), transparent); }
.service-accent.purple { background: linear-gradient(to right, transparent, var(--purple), transparent); }
.service-accent.cyan { background: linear-gradient(to right, transparent, var(--cyan), transparent); }
.service-accent.orange { background: linear-gradient(to right, transparent, var(--orange), transparent); }
.service-accent.pink { background: linear-gradient(to right, transparent, var(--pink), transparent); }
.service-accent.green { background: linear-gradient(to right, transparent, var(--green), transparent); }

.service-card:hover .service-accent { width: 100%; }

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

.benefit-card {
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.benefit-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1);
}

.benefit-icon.cyan { background: rgba(34, 211, 238, 0.2); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.2); }
.benefit-icon.purple { background: rgba(168, 85, 247, 0.2); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.2); }
.benefit-icon.pink { background: rgba(236, 72, 153, 0.2); color: var(--pink); border: 1px solid rgba(236, 72, 153, 0.2); }
.benefit-icon.orange { background: rgba(249, 115, 22, 0.2); color: var(--orange); border: 1px solid rgba(249, 115, 22, 0.2); }

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.benefit-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Process Timeline */
.process-timeline {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.process-line {
  display: none;
}

@media (min-width: 1024px) {
  .process-line {
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--blue), var(--purple), var(--pink), var(--green));
    opacity: 0.3;
  }
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .process-step:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
  }
  
  .process-step:nth-child(even) .process-card {
    margin-left: auto;
  }
  
  .process-step:nth-child(odd) .process-card {
    margin-right: auto;
  }
}

.process-card {
  flex: 1;
  max-width: 28rem;
  padding: 2rem;
  position: relative;
}

.process-number {
  font-size: 4rem;
  font-weight: 900;
  opacity: 0.15;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.process-number.blue { color: var(--blue); }
.process-number.purple { color: var(--purple); }
.process-number.pink { color: var(--pink); }
.process-number.green { color: var(--green); }

.process-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.process-desc {
  font-size: 1rem;
  color: var(--muted);
}

/* Showcase Section */
.showcase-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
}

.showcase-hero img {
  width: 100%;
  height: auto;
}

.showcase-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 1;
}

.showcase-overlay .glass-card {
  max-width: 32rem;
  padding: 1.5rem;
}

.showcase-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.showcase-overlay p {
  font-size: 0.9rem;
  color: var(--muted);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

.showcase-card {
  position: relative;
  overflow: hidden;
  padding: 0.75rem;
}

.showcase-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.showcase-card h4 {
  text-align: center;
  font-weight: 700;
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.1));
  z-index: -1;
}

.cta-content {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 20rem;
}

.footer-column h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Grid Pattern */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Page Header */
.page-header {
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
  perspective: 1000px;
}

.page-header-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.4) 2px, transparent 2px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(60deg) translateZ(-100px);
  transform-origin: center center;
  animation: gridRipple 4s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 70% 40% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 40% at 50% 50%, black 20%, transparent 70%);
  filter: blur(0.5px) drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, transparent 30%, var(--bg) 80%);
  pointer-events: none;
}

/* Portfolio Grid */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--fg);
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  padding: 1.25rem;
}

.portfolio-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.portfolio-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-desc {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateX(8px);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-icon.blue { background: rgba(59, 130, 246, 0.2); color: var(--blue); }
.contact-icon.purple { background: rgba(168, 85, 247, 0.2); color: var(--purple); }
.contact-icon.cyan { background: rgba(34, 211, 238, 0.2); color: var(--cyan); }

.contact-details h4 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 3rem;
}

.form-select option {
  background: var(--bg);
  color: var(--fg);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .expertise-grid { grid-template-columns: 1fr; }
}

.expertise-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.expertise-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.expertise-card:hover .expertise-icon {
  transform: scale(1.1);
}

.expertise-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.expertise-desc {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  position: relative;
  overflow: hidden;
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-title {
  color: var(--blue);
}

.blog-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--purple);
  transition: gap 0.3s ease;
}

.blog-card:hover .blog-link {
  gap: 0.75rem;
}

/* Service Page */
.service-page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .service-page-hero { grid-template-columns: 1fr; }
}

.service-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.service-page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.service-page-desc {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.service-page-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.service-page-image img {
  width: 100%;
  height: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tech-tag {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-check {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.benefit-text {
  font-size: 1rem;
  color: var(--muted);
}

/* SEO-friendly utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Spotlight Effect for Glass Cards */
.card-spotlight {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.1);
}

.card-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.card-spotlight:hover::before {
  opacity: 1;
}

.card-spotlight > * {
  position: relative;
  z-index: 1;
}

/* Services Bubble Modal */
.services-bubble-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-bubble-overlay.active {
  opacity: 1;
  visibility: visible;
}

.services-bubble {
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 25, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.75rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(0.94) translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-bubble-overlay.active .services-bubble {
  transform: scale(1) translateY(0);
}

.services-bubble-header {
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.services-bubble-header h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.services-close {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.125rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.services-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.services-bubble-content {
  padding: 1rem 1rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.services-bubble-content::-webkit-scrollbar {
  width: 6px;
}

.services-bubble-content::-webkit-scrollbar-track {
  background: transparent;
}

.services-bubble-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.service-bubble-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.125rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-bubble-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px) scale(1.01);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-bubble-item:active {
  transform: translateX(5px) scale(0.98);
}

.service-bubble-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 1.625rem;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-bubble-icon.blue {
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.service-bubble-icon.purple {
  background: rgba(168, 85, 247, 0.18);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.service-bubble-icon.cyan {
  background: rgba(34, 211, 238, 0.18);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.15);
}

.service-bubble-icon.orange {
  background: rgba(249, 115, 22, 0.18);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.service-bubble-icon.pink {
  background: rgba(236, 72, 153, 0.18);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.service-bubble-info {
  flex: 1;
}

.service-bubble-info h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.375rem 0;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.service-bubble-info p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.4;
}

.service-bubble-item svg {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.service-bubble-item:hover svg {
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .services-bubble {
    max-width: calc(100vw - 2rem);
    border-radius: 1.5rem;
  }
  
  .services-bubble-header {
    padding: 1.5rem 1.25rem 1rem;
  }
  
  .services-bubble-header h3 {
    font-size: 1.25rem;
  }
  
  .service-bubble-item {
    padding: 1rem 0.875rem;
  }
  
  .service-bubble-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.375rem;
    border-radius: 0.875rem;
  }
  
  .service-bubble-info h4 {
    font-size: 1rem;
  }
  
  .service-bubble-info p {
    font-size: 0.8125rem;
  }
}