/* ============================================
   MS SERVICES - COMPLETE STYLESHEET
   ============================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #4a4a4a;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---------- CSS VARIABLES ---------- */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #4a4a4a;
  --color-light-gray: #f5f5f5;
  --color-white: #ffffff;
  --color-accent: #0066cc;
  --color-accent-dark: #0052a3;
  --color-accent-light: #e6f0ff;
  --color-success: #22c55e;
  --color-error: #ef4444;

  --font-heading: 'Poppins', 'Montserrat', sans-serif;
  --font-body: 'Open Sans', 'Roboto', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.10);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.16);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* ---------- UTILITY ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 90px 0;
}

.bg-light {
  background: var(--color-light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
}

.section-tag.light {
  color: #7ab3e2;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-title.light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-subtitle.light {
  color: rgba(255, 255, 255, 0.72);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-lg {
  padding: 15px 36px;
  font-size: 16px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-light-gray);
  transform: translateY(-2px);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  height: 70px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-svg {
  height: 42px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}

.nav-logo:hover .nav-logo-svg {
  transform: scale(1.02);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer-logo-svg {
  height: 42px;
  width: auto;
  display: block;
}

.hero-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 6px rgba(0, 102, 204, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--color-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #f5f5f5 100%);
  padding-top: 70px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 82, 163, 0.05) 0%, transparent 40%),
    linear-gradient(60deg, transparent 40%, rgba(0, 102, 204, 0.03) 40%);
  background-size: 100% 100%, 100% 100%, 60px 60px;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.hero-content {
  animation: fadeSlideUp 0.9s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title-accent {
  color: var(--color-accent);
  position: relative;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--color-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(74, 74, 74, 0.2);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  animation: fadeSlideUp 0.9s 0.2s ease both;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 102, 204, 0.15);
}

.hero-ring-1 {
  width: 280px;
  height: 280px;
  animation: rotateSlow 20s linear infinite;
  border-style: dashed;
}

.hero-ring-2 {
  width: 200px;
  height: 200px;
  animation: rotateSlow 15s linear infinite reverse;
  background: rgba(0, 102, 204, 0.02);
}

.hero-ring-3 {
  width: 370px;
  height: 370px;
  border-color: rgba(74, 74, 74, 0.08);
  animation: rotateSlow 30s linear infinite;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-center-badge {
  position: absolute;
  z-index: 2;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  border: 1px solid rgba(0, 102, 204, 0.08);
}

.hero-card:first-of-type {
  top: 12%;
  right: 0;
}

.hero-card-2 {
  bottom: 12%;
  left: 0;
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-card-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
}

.hero-card-label {
  font-size: 12px;
  color: var(--color-secondary);
}

.floating {
  animation: float 4s ease-in-out infinite;
}

.floating-slow {
  animation: float 5.5s ease-in-out infinite 1s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1.5s 1s ease both;
}

.scroll-mouse {
  width: 28px;
  height: 46px;
  border: 2px solid rgba(26, 26, 26, 0.3);
  border-radius: 99px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 99px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  80% {
    transform: translateY(14px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.scroll-text {
  font-size: 11px;
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(74, 74, 74, 0.6);
}

/* ---------- SERVICES SECTION ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(74, 74, 74, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 102, 204, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Service card image banner */
.service-img-wrap {
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: -36px -28px 24px -28px;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--color-accent);
}

.service-card:hover .service-icon-wrap svg {
  stroke: white;
}

.service-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14.5px;
  color: var(--color-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-accent);
  transition: all var(--transition);
}

.service-link svg {
  transition: transform var(--transition);
}

.service-link:hover {
  color: var(--color-accent-dark);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ---------- PORTFOLIO SECTION ---------- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: 99px;
  border: 2px solid rgba(74, 74, 74, 0.2);
  color: var(--color-secondary);
  background: transparent;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.portfolio-img-1 {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  position: relative;
}

.portfolio-img-2 {
  background: linear-gradient(135deg, #0052a3 0%, #0066cc 100%);
}

.portfolio-img-3 {
  background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
}

.portfolio-img-4 {
  background: linear-gradient(135deg, #003d7a 0%, #0066cc 100%);
}

.portfolio-img-5 {
  background: linear-gradient(135deg, #1a1a1a 0%, #0066cc 100%);
}

.portfolio-img-6 {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

/* Portfolio image overlays with design patterns */
.portfolio-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-info {
  padding: 22px 24px;
}

.portfolio-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.portfolio-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.portfolio-desc {
  font-size: 13.5px;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* ---------- PROCESS / HOW IT WORKS ---------- */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
}

.process-step:hover {
  background: var(--color-light-gray);
  transform: translateY(-4px);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  color: rgba(0, 102, 204, 0.08);
  line-height: 1;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.process-step:hover .process-number {
  color: rgba(0, 102, 204, 0.15);
}

.process-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.process-step:hover .process-icon-wrap {
  background: var(--color-accent);
}

.process-step:hover .process-icon-wrap svg {
  stroke: white;
}

.process-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.process-desc {
  font-size: 14.5px;
  color: var(--color-secondary);
  line-height: 1.65;
}

.process-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.3), rgba(0, 102, 204, 0.1));
  flex-shrink: 0;
  margin-top: 100px;
  position: relative;
}

.process-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(0, 102, 204, 0.3);
  border-right: 2px solid rgba(0, 102, 204, 0.3);
  transform: rotate(45deg);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(74, 74, 74, 0.08);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 17px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 14.5px;
  color: var(--color-secondary);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(74, 74, 74, 0.1);
}

.client-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.client-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary);
}

.client-role {
  font-size: 12.5px;
  color: var(--color-secondary);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(74, 74, 74, 0.2);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(74, 74, 74, 0.25);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

/* ---------- STATISTICS SECTION ---------- */
.stats-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.stat-item:hover {
  background: rgba(0, 102, 204, 0.12);
  border-color: rgba(0, 102, 204, 0.3);
  transform: translateY(-4px);
}

.stat-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

/* ---------- NEWSLETTER SECTION ---------- */
.newsletter-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 102, 204, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  margin-top: 36px;
}

.form-group {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 20px;
  align-items: center;
  transition: border-color var(--transition);
}

.form-group:focus-within {
  border-color: var(--color-accent);
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-white);
  padding: 10px 0;
  min-width: 0;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-messages {
  margin-top: 12px;
  min-height: 24px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-success);
  font-size: 14px;
  font-weight: 500;
  justify-content: center;
}

.form-error {
  color: var(--color-error);
  font-size: 14px;
  text-align: center;
}

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 14px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-white);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition);
}

.footer-link:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition);
}

.footer-bottom-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.4);
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ---------- TABLET (<=1200px) ---------- */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 44px;
  }

  .process-connector {
    width: 30px;
  }
}

/* ---------- TABLET (<=992px) ---------- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-ctas,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    height: 300px;
    width: 300px;
    margin: 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .process-connector {
    width: 2px;
    height: 40px;
    margin: 0;
    background: linear-gradient(180deg, rgba(0, 102, 204, 0.3), rgba(0, 102, 204, 0.1));
    transform: none;
  }

  .process-connector::after {
    right: -4px;
    top: auto;
    bottom: -6px;
    transform: rotate(135deg);
    border-top: 2px solid rgba(0, 102, 204, 0.3);
    border-right: 2px solid rgba(0, 102, 204, 0.3);
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }
}

/* ---------- MOBILE (<=768px) ---------- */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  /* Navbar */
  .nav-container {
    padding: 0 20px;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(74, 74, 74, 0.1);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  /* Hero */
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .btn-lg {
    padding: 14px 28px;
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-visual {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    gap: 8px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* Process */
  .process-step {
    padding: 24px 20px;
  }

  /* Testimonials */
  .testimonial-card {
    flex: 0 0 100%;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 38px;
  }

  /* Newsletter */
  .form-group {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    border-radius: var(--radius-md);
  }

  .form-input {
    text-align: center;
  }

  .form-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* ---------- SMALL MOBILE (<=480px) ---------- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-item {
    padding: 24px 16px;
  }
}