*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --brand-primary:#3b82f6;
  --brand-primary-hover:#2563eb;
  --brand-dark:#0f172a;
  --brand-gray:#1e293b;
  --brand-light:#f8fafc;
  --white:#fff;
  --font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}

html{scroll-behavior:smooth}
body{
  font-family:var(--font-sans);
  color:var(--white);
  background:var(--brand-dark);
  line-height:1.6;
  overflow-x:hidden;
}

header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  background:rgba(15,23,42,.95);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  height:64px;
}
.header-logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--white);
}
.header-logo span{
  font-weight:700;
  font-size:13px;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.header-nav{
  display:flex;
  gap:4px;
}
.header-nav a{
  color:rgba(255,255,255,.7);
  text-decoration:none;
  font-size:13px;
  font-weight:500;
  padding:8px 16px;
  border-radius:6px;
  transition:all .2s;
}
.header-nav a:hover, .header-nav a.active{
  color:var(--white);
  background:rgba(255,255,255,.08);
}

.services-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 64px;
  overflow: hidden;
}
.services-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.services-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.services-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--brand-dark) 0%, rgba(15,23,42,0.45) 50%, var(--brand-dark) 100%);
}
.services-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: 800px;
}
.services-hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.services-hero-content h1 .accent {
  color: var(--brand-primary);
}
.services-hero-content .tagline {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.services-nav {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.services-nav-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.services-nav-inner::-webkit-scrollbar {
  display: none;
}
.services-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 14px 20px;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.services-nav a:hover, .services-nav a.active {
  color: var(--white);
  border-bottom-color: var(--brand-primary);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.service-section {
  padding: 80px 0 40px;
  scroll-margin-top: 120px;
  position: relative;
  overflow: hidden;
}
.service-section:not(:last-of-type) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
}
.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--brand-dark) 0%, rgba(15,23,42,0.1) 50%, var(--brand-dark) 100%);
}
.service-section .services-grid,
.service-section .section-header {
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 48px;
  max-width: 700px;
}
.badge-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-primary);
  background: rgba(59,130,246,.12);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header .section-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.3);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), #22c55e, #a855f7, var(--brand-primary));
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.6s ease;
}
.service-card:hover::before {
  transform: scaleX(1);
  animation: gradientShift 2s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.service-icon {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--brand-primary);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.service-card:hover .service-icon {
  transform: translateY(-4px) scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}
.service-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  flex-grow: 1;
  transition: color 0.3s ease;
}
.service-card:hover p {
  color: rgba(255, 255, 255, 0.7);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.services-cta {
  background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(15,23,42,0.95) 70%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  max-width: 1000px;
  margin: 80px auto;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.services-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
  z-index: 0;
}
.services-cta h2,
.services-cta p,
.services-cta .cta-buttons {
  position: relative;
  z-index: 1;
}
.services-cta h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}
.services-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

footer {
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand {
  text-align: center;
  margin-bottom: 24px;
}
.footer-brand strong {
  color: var(--white);
  font-size: 16px;
}
.footer-brand span {
  display: block;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  margin-top: 4px;
}
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.25);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}

@media(max-width:768px){
  .header-nav {
    display: none;
  }
  .services-hero {
    min-height: 35vh;
  }
  .service-section {
    padding: 60px 0 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .services-cta {
    padding: 40px 20px;
    margin: 40px 0 60px;
    border-radius: 16px;
  }
}
