:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #b0b0b0;
  --accent: #00a8ff;
  --accent-dark: #0088cc;
  --cyan: #00a8ff;
  --metallic: #c0c0c0;
  --metallic-light: #e0e0e0;
  --radius: 20px;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll */
html {
  overflow-x: hidden;
  width: 100%;
}

/* Prevent specific elements from causing overflow */
video,
iframe,
canvas {
  max-width: 100%;
  height: auto;
}

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

/* Ensure all images are responsive */
img[src],
img[data-src] {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Broken image fallback */
img[src=""],
img:not([src]) {
  opacity: 0;
}

img[data-fallback-applied] {
  background: var(--bg-alt);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  text-decoration: none;
  color: inherit;
}

#orbital-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffffff, var(--accent));
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--accent);
  animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.8), 0 0 30px rgba(0, 168, 255, 0.5);
  }
}

.site-header {
  position: sticky;
  top: 0;
  width: min(1200px, 94vw);
  margin: 1.5rem auto;
  padding: 1.2rem 2rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 10;
  border: 1px solid rgba(0, 168, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  min-height: 80px;
}

.site-header:hover {
  border-color: rgba(0, 168, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 168, 255, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-img {
  width: 85px;
  height: 85px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
  background: transparent;
}

.logo:hover .logo-img {
  transform: scale(1.05) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(0, 168, 255, 0.8));
}

.logo-text {
  font-size: 1.5rem;
  white-space: nowrap;
}

.logo-accent {
  color: var(--cyan);
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.site-nav a {
  font-size: 1.05rem;
  color: var(--muted);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  position: relative;
}

.site-nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(0, 168, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  opacity: 1;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  transform: translateY(-2px);
}

.site-nav .pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(0, 168, 255, 0.1);
  padding: 0.7rem 1.5rem;
  font-size: 1.05rem;
}

.site-nav .pill:hover {
  background: rgba(0, 168, 255, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.7rem;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text);
  transition: all 0.3s ease;
}

main {
  width: min(1200px, 94vw);
  margin: 0 auto 6rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 2rem;
  padding: 6rem 0 4rem;
  position: relative;
  min-height: 90vh;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-video-bg .bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  opacity: 0.15;
  transition: opacity 1s ease;
  background: var(--bg);
}

.hero-video-bg .bg-video.loaded {
  opacity: 0.15;
}

/* Fallback if video fails to load */
.hero-video-bg:has(.bg-video[style*="display: none"]) {
  background: radial-gradient(circle at center, rgba(0, 168, 255, 0.1), transparent 70%);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9));
  z-index: 2;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title {
  min-height: 200px;
}

.lede {
  color: var(--muted);
  margin: 1rem 0 2rem;
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #000000;
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.3);
}

.btn.primary:hover {
  box-shadow: 0 6px 30px rgba(0, 168, 255, 0.5);
  transform: translateY(-2px) scale(1.02);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.hero-stats .stat {
  font-size: 1.8rem;
  font-weight: 600;
}

.hero-stats .label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}

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

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 168, 255, 0.6));
  animation: logo-float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
  background: transparent;
}

.logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: logo-ring-pulse 3s ease-in-out infinite;
}

.logo-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: 0.2;
  animation: logo-ring-rotate 20s linear infinite;
}

@keyframes logo-float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-15px);
  }
}

@keyframes logo-ring-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes logo-ring-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.orbit {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  margin: 0 auto;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.1), transparent 60%);
  border: 1px dashed var(--accent);
  animation: spin 20s linear infinite;
  box-shadow: 0 0 40px rgba(0, 168, 255, 0.3);
  position: relative;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.pulse-card {
  position: absolute;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--accent);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.2);
  z-index: 3;
}

.pulse-card strong {
  font-size: 1.4rem;
  display: block;
  color: var(--accent);
}

.pulse-card:nth-of-type(1) {
  top: 12%;
  right: 8%;
}

.pulse-card.alt {
  bottom: 10%;
  left: 6%;
  animation-delay: 1.2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.marquee {
  margin: 2rem 0 4rem;
  overflow: hidden;
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.5);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  animation: slide 18s linear infinite;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  will-change: transform;
}

.marquee-track span {
  flex-shrink: 0;
  padding: 0 1rem;
  transition: transform 0.3s;
}

.marquee-track span:hover {
  transform: scale(1.1);
  color: #ffffff;
  text-shadow: 0 0 10px var(--accent);
}

.marquee-track-2 {
  animation: slide 18s linear infinite reverse;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-head.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.services,
.portfolio,
.process,
.insight,
.testimonials,
.contact {
  padding: 4rem 0;
}

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

.service-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 168, 255, 0.15);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateY(0);
  isolation: isolate;
  opacity: 0;
  transform: translateY(50px);
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: slideUpFade 0.8s ease forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}

.service-card:hover {
  border-color: rgba(0, 168, 255, 0.5);
  box-shadow: 0 25px 80px rgba(0, 168, 255, 0.4), 0 0 60px rgba(0, 168, 255, 0.2);
  transform: translateY(-12px) scale(1.02);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  z-index: 2;
}

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(0, 168, 255, 0.08);
  line-height: 1;
  font-family: 'Space Grotesk', sans-serif;
  z-index: 1;
  transition: all 0.5s;
}

.service-card:hover .service-number {
  color: rgba(0, 168, 255, 0.15);
  transform: scale(1.1);
}

.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.2), rgba(0, 0, 0, 0.8));
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s;
  filter: brightness(0.3) contrast(1.2) saturate(1.1);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.service-card:hover .service-image {
  transform: scale(1.15) translateY(-5px);
  filter: brightness(0.5) contrast(1.3) saturate(1.2);
}

.service-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.service-card .icon-wrapper {
  margin-bottom: 1.25rem;
  position: relative;
}

.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s;
}

.service-card:hover h3 {
  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.service-card ul {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.service-card ul li {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.service-card ul li span {
  position: relative;
  padding-left: 1.5rem;
}

.service-card ul li span::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  transition: transform 0.3s;
}

.service-card:hover ul li span::before {
  transform: translateX(5px);
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 168, 255, 0.1);
}

.service-badge {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--accent), rgba(0, 168, 255, 0.7));
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.4);
  transition: all 0.3s;
}

.service-card:hover .service-badge {
  background: linear-gradient(135deg, #ffffff, var(--accent));
  box-shadow: 0 6px 30px rgba(0, 168, 255, 0.6);
  transform: scale(1.05);
}

.service-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  transition: all 0.3s;
  opacity: 0.5;
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: -1;
}

.service-card:hover .icon-glow {
  opacity: 0.6;
  transform: translate(-50%, -50%) scale(1.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.2);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

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

.portfolio-card-large {
  grid-column: span 2;
}

.portfolio-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 168, 255, 0.15);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateY(0);
  isolation: isolate;
  opacity: 0;
  transform: translateY(50px);
  transform-style: preserve-3d;
}

.portfolio-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: slideUpFade 0.8s ease forwards;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}

.portfolio-card:hover {
  border-color: rgba(0, 168, 255, 0.5);
  box-shadow: 0 25px 80px rgba(0, 168, 255, 0.4), 0 0 60px rgba(0, 168, 255, 0.2);
  transform: translateY(-12px) scale(1.02);
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  z-index: 2;
}

.portfolio-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.2), rgba(0, 0, 0, 0.8));
}

.portfolio-card-large .portfolio-image-wrapper {
  height: 320px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s;
  filter: brightness(0.3) contrast(1.2) saturate(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.15) translateY(-5px);
  filter: brightness(0.5) contrast(1.3) saturate(1.2);
}

.portfolio-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.portfolio-year {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  opacity: 0.7;
}

.portfolio-content .tag {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(0, 168, 255, 0.15);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 10px rgba(0, 168, 255, 0.2);
  transition: all 0.3s;
}

.portfolio-card:hover .portfolio-content .tag {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.6);
  transform: scale(1.05);
}

.portfolio-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s;
}

.portfolio-card:hover .portfolio-content h3 {
  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.portfolio-content ul {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.portfolio-content ul li {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.portfolio-content ul li span {
  position: relative;
  padding-left: 1.5rem;
}

.portfolio-content ul li span::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  transition: transform 0.3s;
}

.portfolio-card:hover .portfolio-content ul li span::before {
  transform: translateX(5px);
}

.portfolio-btn {
  margin-top: auto;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--accent), rgba(0, 168, 255, 0.8));
  color: #000;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.portfolio-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.portfolio-btn:hover::before {
  width: 300px;
  height: 300px;
}

.portfolio-btn > * {
  position: relative;
  z-index: 1;
}

.portfolio-btn .btn-arrow {
  transition: transform 0.3s;
  font-size: 1.2rem;
}

.portfolio-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 168, 255, 0.6);
  background: linear-gradient(135deg, #ffffff, var(--accent));
}

.portfolio-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.portfolio-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.portfolio-card:hover .portfolio-glow {
  opacity: 0.4;
  animation: pulse-glow 3s ease-in-out infinite;
}

.service-card::after,
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 168, 255, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}

.service-card:hover::after,
.portfolio-card:hover::after {
  opacity: 1;
}

.process {
  position: relative;
}

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

.timeline article {
  border-left: 2px solid var(--accent);
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.timeline article.animate-in {
  opacity: 1;
  transform: translateX(0);
  animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline article:hover {
  background: rgba(0, 0, 0, 0.5);
  border-left-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
  transform: translateX(5px);
}

.timeline span {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  font-size: 0.9rem;
  text-shadow: 0 0 8px rgba(0, 168, 255, 0.6);
}

.insight-card {
  border-radius: var(--radius);
  padding: 2.5rem;
  background: linear-gradient(120deg, rgba(0, 168, 255, 0.2), rgba(0, 136, 204, 0.15));
  border: 1px solid var(--accent);
  box-shadow: 0 40px 120px rgba(0, 168, 255, 0.3), inset 0 0 60px rgba(0, 168, 255, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.insight-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.chips {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.chips span:hover {
  background: rgba(0, 168, 255, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-grid article {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-style: italic;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.testimonial-grid article.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-grid article:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 168, 255, 0.3);
  transform: translateY(-5px);
}

/* Old contact styles removed - using enhanced version below */

.contact-form .full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.5rem;
  padding: 0.5rem;
  background: rgba(0, 168, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 168, 255, 0.2);
}

/* Branches Section */
.branches {
  padding: 6rem 0;
}

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

.branch-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 168, 255, 0.2);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.branch-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 50px rgba(0, 168, 255, 0.25);
}

.branch-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: grayscale(0.2);
  transition: all 0.3s ease;
}

.branch-card:hover .branch-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.branch-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.branch-location {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.branch-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.branch-contact {
  text-align: left;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 168, 255, 0.1);
}

.branch-contact p {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.branch-contact a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.branch-contact a:hover {
  color: var(--text);
}

.site-footer {
  width: min(1200px, 94vw);
  margin: 0 auto 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
  color: var(--muted);
}

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

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-section strong {
  color: var(--text);
  font-size: 1.1rem;
}

.footer-section h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-section p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.footer-section a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.9rem;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  display: none;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot,
  .cursor-outline {
    display: block;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.fade-in-delay-3 {
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

.animate-text {
  background: linear-gradient(90deg, var(--accent), #ffffff, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--accent);
  white-space: nowrap;
  width: 0;
  animation: typing 1.5s steps(10, end) forwards, blink-caret 0.75s step-end infinite;
}

.typing-text-delay {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--accent);
  white-space: nowrap;
  width: 0;
  animation: typing 1.5s steps(12, end) 0.5s forwards, blink-caret 0.75s step-end infinite 0.5s;
}

.typing-text-delay-2 {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--accent);
  white-space: nowrap;
  width: 0;
  animation: typing 1.5s steps(6, end) 1s forwards, blink-caret 0.75s step-end infinite 1s;
}

.typing-text,
.typing-text-delay,
.typing-text-delay-2 {
  max-width: fit-content;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

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

.pulse-btn {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 168, 255, 0.3);
  }
  50% {
    box-shadow: 0 4px 40px rgba(0, 168, 255, 0.6);
  }
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 2rem;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: radial-gradient(circle at top, rgba(0, 168, 255, 0.1), rgba(0, 0, 0, 0.98));
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: var(--radius);
  max-width: 1000px;
}

/* Override for purchase modal */
#purchaseModal .modal-content {
  max-width: 680px !important;
}
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 168, 255, 0.3);
}

.project-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 168, 255, 0.3);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--accent);
  color: #000;
  transform: rotate(90deg);
}

.modal-header {
  padding: 2.5rem 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

.modal-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(0, 168, 255, 0.15);
  font-size: 0.75rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-header h2 {
  font-size: 2rem;
  margin: 0;
  color: #ffffff;
}

.modal-body {
  padding: 2rem 2.5rem;
}

.modal-image-wrapper {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 168, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(0, 0, 0, 0.5));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
}

.modal-image[src=""],
.modal-image:not([src]) {
  opacity: 0;
}

.modal-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(0, 0, 0, 0.3));
  z-index: 1;
  pointer-events: none;
}

.modal-details {
  display: grid;
  gap: 2rem;
}

.modal-description,
.modal-features,
.modal-tech,
.modal-results {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 168, 255, 0.1);
}

.modal-description h3,
.modal-features h3,
.modal-tech h3,
.modal-results h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.modal-description p,
.modal-results p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.modal-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.modal-features li {
  padding: 0.75rem 1rem;
  background: rgba(0, 168, 255, 0.1);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 8px;
  color: var(--text);
  position: relative;
  padding-left: 2rem;
}

.modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  color: var(--accent);
  font-weight: bold;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: rgba(0, 168, 255, 0.15);
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}

.tech-tag:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.modal-footer {
  padding: 1.5rem 2.5rem 2.5rem;
  border-top: 1px solid rgba(0, 168, 255, 0.2);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.service-card,
.portfolio-card {
  animation: fadeInScale 0.6s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }
.service-card:nth-child(10) { animation-delay: 1s; }

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 1200px) {
  .portfolio-card-large {
    grid-column: span 2;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet and below (max-width: 992px) */
@media (max-width: 992px) {
  main {
    width: min(100%, 96vw);
    padding: 0 1rem;
  }

  .site-header {
    width: min(100%, 96vw);
    margin: 1rem auto;
    padding: 1rem 1.5rem;
  }

  .site-footer {
    width: min(100%, 96vw);
    margin: 0 auto 1.5rem;
    padding: 2rem 1rem;
  }

  section {
    padding: 4rem 0;
    margin: 0 1rem;
  }

  .section-head {
    padding: 0 0.5rem;
  }

  .section-head h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 3rem;
    grid-template-columns: 1fr;
    margin: 0 1rem;
  }

  .hero-title {
    min-height: auto;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .hero-visual {
    display: none;
  }

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

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

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

/* Tablet (max-width: 800px) */
@media (max-width: 800px) {
  .site-header {
    position: sticky;
    top: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    margin: 0.5rem auto;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-img {
    width: 60px;
    height: 60px;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .logo-ring {
    width: 130px;
    height: 130px;
  }

  .logo-ring::before {
    width: 160px;
    height: 160px;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    display: none;
    padding-top: 1rem;
    gap: 0.5rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 0 2rem;
    margin: 0 0.5rem;
  }

  .hero-visual {
    display: none;
  }

  .site-footer {
    width: calc(100% - 1rem);
    margin: 0 auto 1rem;
    padding: 1.5rem 0.5rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero-stats .stat {
    font-size: 1.5rem;
  }

  .hero-stats .label {
    font-size: 0.8rem;
  }

  section {
    padding: 3rem 0;
  }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  main {
    width: 100%;
    padding: 0;
    margin: 0 auto 4rem;
  }

  .site-header {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    min-height: 70px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .hero {
    padding: 2rem 0 1.5rem;
    min-height: auto;
    margin: 0 1rem;
    border-radius: 16px;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-title {
    min-height: auto;
  }

  .lede {
    font-size: 0.95rem;
    margin: 0.75rem 0 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .hero-stats .stat {
    font-size: 1.3rem;
  }

  .hero-stats .label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }

  section {
    padding: 2.5rem 0;
    margin: 0 1rem;
  }

  .section-head {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .section-head h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.3;
  }

  .section-head .eyebrow {
    font-size: 0.85rem;
  }

  .section-head .lede {
    font-size: 0.9rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-card-large {
    grid-column: span 1;
  }

  .service-card-inner {
    min-height: auto;
  }

  .service-image-wrapper {
    height: 160px;
  }

  .service-content {
    padding: 1.25rem;
  }

  .service-number {
    font-size: 3.5rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .portfolio-card-inner {
    min-height: auto;
  }

  .portfolio-image-wrapper {
    height: 180px;
  }

  .portfolio-card-large .portfolio-image-wrapper {
    height: 200px;
  }

  .portfolio-content {
    padding: 1.25rem;
  }

  .portfolio-content h3 {
    font-size: 1.3rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    margin: 0;
  }

  .contact {
    padding: 2.5rem 0.5rem;
  }

  .contact .section-head h2 {
    font-size: 1.75rem;
  }
  
  .contact-form {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }

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

  .form-group {
    margin-bottom: 1rem;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
  
  /* Packages Mobile */
  .packages {
    padding: 3rem 0.5rem;
  }
  
  .packages-grid {
    gap: 1.25rem;
  }
  
  .package-card {
    padding: 1.75rem 1.5rem;
  }
  
  .package-header h3 {
    font-size: 1.5rem;
  }
  
  .package-features li {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
  }
  
  /* Tech Stack Mobile */
  .tech-stack {
    padding: 3rem 0.5rem;
  }
  
  .tech-categories {
    gap: 1.25rem;
  }
  
  .tech-category {
    padding: 1.5rem;
  }
  
  /* Methodology Mobile */
  .methodology {
    padding: 3rem 0.5rem;
  }
  
  .methodology-grid {
    gap: 1.25rem;
  }
  
  /* Engagement Models Mobile */
  .engagement-models {
    padding: 3rem 0.5rem;
  }
  
  .engagement-grid {
    gap: 1.25rem;
  }
  
  .engagement-card {
    padding: 1.75rem;
  }
  
  /* Quality Assurance Mobile */
  .quality-assurance {
    padding: 3rem 0.5rem;
  }
  
  .qa-grid {
    gap: 1.25rem;
  }
  
  /* Success Metrics Mobile */
  .success-metrics {
    padding: 3rem 0.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .metric-card {
    padding: 2rem 1.5rem;
  }
  
  .metric-value {
    font-size: 2.5rem;
  }
  
  .metric-label {
    font-size: 1.1rem;
  }

  .modal-content {
    max-width: calc(100% - 1rem);
    margin: 0.5rem;
    max-height: 95vh;
    border-radius: 12px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1.25rem;
  }

  .modal-image-wrapper {
    height: 200px;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .tech-categories,
  .methodology-grid,
  .qa-grid,
  .engagement-grid,
  .metrics-grid,
  .branches-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tech-category {
    padding: 1.5rem;
  }

  .metric-value {
    font-size: 2rem;
  }

  .methodology-card,
  .engagement-card,
  .branch-card {
    padding: 1.5rem;
  }

  .site-footer {
    width: calc(100% - 2rem);
    margin: 0 auto 1rem;
    padding: 1.5rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .footer-section {
    padding: 0;
  }

  .footer-section strong {
    font-size: 1rem;
  }

  .copyright {
    font-size: 0.85rem;
    padding: 1rem;
  }

  /* Fix text overflow */
  .logo-text {
    white-space: normal;
    word-break: break-word;
  }

  /* Fix stats on mobile */
  .stat-item {
    padding: 0.5rem;
  }

  /* Fix pulse cards */
  .pulse-card {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  .pulse-card strong {
    font-size: 1rem;
  }

  /* Ensure no horizontal scroll */
  .service-card,
  .portfolio-card,
  .tech-category,
  .methodology-card,
  .engagement-card,
  .branch-card {
    max-width: 100%;
    overflow: hidden;
  }

  /* Fix table overflow */
  table {
    width: 100%;
    table-layout: fixed;
  }

  /* Fix long words */
  p, span, div, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Extra small mobile (max-width: 400px) */
@media (max-width: 400px) {
  .site-header {
    padding: 0.7rem 0.8rem;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .logo-img {
    width: 45px;
    height: 45px;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }

  .section-head h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-stats .stat {
    font-size: 1.1rem;
  }

  .hero-stats .label {
    font-size: 0.7rem;
  }
}

/* Technology Stack Section */
.tech-stack {
  padding: 6rem 0;
}

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

.tech-category {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 168, 255, 0.2);
  transition: all 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 168, 255, 0.2);
}

.tech-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.tech-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tags-grid .tech-tag {
  background: rgba(0, 168, 255, 0.1);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 168, 255, 0.3);
  transition: all 0.3s ease;
}

.tech-tags-grid .tech-tag:hover {
  background: rgba(0, 168, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

/* Methodology Section */
.methodology {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.methodology-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 168, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.methodology-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 50px rgba(0, 168, 255, 0.25);
}

.methodology-number {
  position: absolute;
  top: -20px;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.4);
}

.methodology-card h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--text);
}

.methodology-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.methodology-card ul {
  list-style: none;
  padding: 0;
}

.methodology-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.methodology-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Quality Assurance Section */
.quality-assurance {
  padding: 6rem 0;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.qa-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 168, 255, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.qa-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 168, 255, 0.2);
}

.qa-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.qa-item:hover .qa-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.qa-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.qa-item p {
  color: var(--muted);
  line-height: 1.7;
}

/* Engagement Models Section */
.engagement-models {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.engagement-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 168, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.engagement-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 50px rgba(0, 168, 255, 0.25);
}

.engagement-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
}

.engagement-badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.engagement-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.engagement-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.engagement-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.engagement-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.engagement-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.engagement-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Success Metrics Section */
.success-metrics {
  padding: 6rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.metric-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 168, 255, 0.2);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.metric-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 50px rgba(0, 168, 255, 0.25);
}

.metric-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.metric-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.metric-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Enhanced User-Friendly Contact Section */
.contact {
  padding: 5rem 2rem;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 168, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 168, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact .section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact .section-head h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.contact .section-head .lede {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.contact-form {
  background: rgba(20, 30, 50, 0.95);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 168, 255, 0.2);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.contact-form:hover {
  border-color: rgba(0, 168, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 168, 255, 0.1);
}

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

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

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-form {
    padding: 2rem 1.5rem;
  }
  .contact {
    padding: 3.5rem 1rem;
  }
  .contact .section-head h2 {
    font-size: 1.75rem;
  }
  .contact .section-head {
    margin-bottom: 2rem;
  }
  .form-group {
    margin-bottom: 1rem;
  }
  
  /* Packages Section Mobile */
  .packages {
    padding: 4rem 1rem;
  }
  
  .packages-grid {
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .package-card {
    padding: 2.5rem 2rem;
  }

  .package-card.package-featured {
    transform: scale(1.02);
  }

  .package-header h3 {
    font-size: 2.25rem;
  }
  
  /* Tech Stack Mobile */
  .tech-categories {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Methodology Mobile */
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Engagement Models Mobile */
  .engagement-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Quality Assurance Mobile */
  .qa-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Success Metrics Mobile */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.contact-form label {
  display: block;
  width: 100%;
}

.contact-form label span {
  display: block;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-family: inherit;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00a8ff;
  box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1), 0 0 15px rgba(0, 168, 255, 0.15);
  background: rgba(0, 0, 0, 0.7);
}

.contact-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300a8ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  appearance: none;
}

.required {
  color: #f87171;
  margin-left: 4px;
  font-weight: 600;
}


.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  font-family: inherit;
}

/* Packages Section */
.packages {
  padding: 6rem 0;
  position: relative;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.package-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 2px solid rgba(0, 168, 255, 0.15);
  padding: 3rem 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.package-card:hover::before {
  opacity: 1;
}

.package-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(0, 168, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 168, 255, 0.3), 0 0 40px rgba(0, 168, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.package-card.package-featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 0 40px rgba(0, 168, 255, 0.3), 0 20px 60px rgba(0, 168, 255, 0.2);
  background: linear-gradient(145deg, rgba(0, 168, 255, 0.12) 0%, rgba(0, 168, 255, 0.04) 100%);
  transform: scale(1.05);
}

.package-card.package-featured::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--accent), #00d4ff, var(--accent));
}

.package-card.package-featured:hover {
  transform: translateY(-12px) scale(1.08);
  box-shadow: 0 25px 70px rgba(0, 168, 255, 0.4), 0 0 50px rgba(0, 168, 255, 0.2);
}

.package-badge-featured {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #00d4ff 100%);
  color: #000;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(0, 168, 255, 0.6);
  }
}

.package-header {
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.package-header h3 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.package-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 168, 255, 0.15);
  color: var(--accent);
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 168, 255, 0.3);
  backdrop-filter: blur(10px);
}

.package-features {
  flex: 1;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.package-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.package-features li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  padding-left: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.package-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 168, 255, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(0, 168, 255, 0.3);
}

.package-card:hover .package-features li {
  color: var(--text);
  transform: translateX(5px);
}

.package-card:hover .package-features li::before {
  background: rgba(0, 168, 255, 0.2);
  border-color: var(--accent);
  transform: scale(1.1);
}

.package-footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.buy-now-btn {
  width: 100%;
  padding: 1.15rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #00d4ff 100%);
  color: #000;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.buy-now-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00d4ff 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.buy-now-btn:hover::before {
  opacity: 1;
}

.buy-now-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 168, 255, 0.5);
}

.buy-now-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.buy-now-btn span {
  position: relative;
  z-index: 1;
}

/* Purchase Modal - Premium Design */
#purchaseModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: flex-start !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  padding: 1rem !important;
  animation: fadeIn 0.3s ease !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  width: 100% !important;
  height: 100% !important;
  -webkit-overflow-scrolling: touch !important;
}

#purchaseModal[style*="flex"] {
  display: flex !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#purchaseModal .modal-content {
  background: linear-gradient(145deg, rgba(8, 12, 24, 0.99) 0%, rgba(4, 8, 16, 0.99) 100%) !important;
  border-radius: 28px !important;
  border: 2px solid rgba(0, 168, 255, 0.25) !important;
  max-width: 680px !important;
  width: 100% !important;
  max-height: calc(100vh - 2rem) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 168, 255, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    0 0 60px rgba(0, 168, 255, 0.1) !important;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  margin: 1rem auto !important;
  display: flex !important;
  flex-direction: column !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Custom scrollbar for modal */
#purchaseModal .modal-content::-webkit-scrollbar {
  width: 8px;
}

#purchaseModal .modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

#purchaseModal .modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 168, 255, 0.5);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.3);
}

#purchaseModal .modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 168, 255, 0.7);
}

#purchaseModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #00d4ff, var(--accent));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

#purchaseModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 3rem 2rem !important;
  border-bottom: 1px solid rgba(0, 168, 255, 0.2) !important;
  background: linear-gradient(180deg, rgba(0, 168, 255, 0.08) 0%, transparent 100%) !important;
  position: relative !important;
  backdrop-filter: blur(10px) !important;
}

#purchaseModal .modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
}

#purchaseModal .modal-header h2 {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.03em !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  line-height: 1.2 !important;
}

#purchaseModal #selectedPackage {
  color: var(--accent);
  text-transform: capitalize;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

#purchaseModal .modal-close {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 2px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 1.75rem !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  font-weight: 300 !important;
}

#purchaseModal .modal-close::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.2), rgba(0, 212, 255, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

#purchaseModal .modal-close:hover::before {
  opacity: 1;
}

#purchaseModal .modal-close:hover {
  background: rgba(0, 168, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

#purchaseModal .modal-body {
  padding: 3rem !important;
  background: transparent !important;
  flex: 1 1 auto !important;
  overflow: visible !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important;
}

#purchaseModal .form-group {
  margin-bottom: 2rem !important;
  position: relative !important;
}

#purchaseModal .form-group label {
  display: block !important;
  margin-bottom: 0.85rem !important;
}

#purchaseModal .form-group label span {
  display: block !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  margin-bottom: 0.65rem !important;
  letter-spacing: 0.4px !important;
  text-transform: none !important;
}

#purchaseModal .form-group .required {
  color: #ff6b6b !important;
  margin-left: 5px !important;
  font-weight: 800 !important;
  font-size: 1.1em !important;
}

#purchaseModal .form-group input,
#purchaseModal .form-group textarea {
  width: 100% !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 16px !important;
  border: 2px solid rgba(148, 163, 184, 0.3) !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-sizing: border-box !important;
  outline: none !important;
  line-height: 1.6 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 48px !important; /* Touch-friendly input size */
  -webkit-tap-highlight-color: rgba(0, 168, 255, 0.2) !important;
  touch-action: manipulation !important;
}

#purchaseModal .form-group input::placeholder,
#purchaseModal .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

#purchaseModal .form-group input:focus,
#purchaseModal .form-group textarea:focus {
  border-color: var(--accent) !important;
  background: rgba(0, 0, 0, 0.7) !important;
  box-shadow: 
    0 0 0 4px rgba(0, 168, 255, 0.15),
    0 0 25px rgba(0, 168, 255, 0.3),
    inset 0 0 20px rgba(0, 168, 255, 0.08) !important;
  transform: translateY(-2px) !important;
  outline: none !important;
}

#purchaseModal .form-group textarea {
  resize: vertical !important;
  min-height: 140px !important;
  line-height: 1.7 !important;
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
}

#purchaseModal .modal-footer {
  display: flex !important;
  gap: 1.25rem !important;
  padding: 2rem 3rem 2.5rem !important;
  border-top: 1px solid rgba(0, 168, 255, 0.2) !important;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 168, 255, 0.05) 100%) !important;
  margin-top: 0.5rem !important;
}

#purchaseModal .modal-footer .btn {
  flex: 1 !important;
  padding: 1.15rem 2.5rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  min-height: 48px !important; /* Touch-friendly size */
  -webkit-tap-highlight-color: rgba(0, 168, 255, 0.3) !important;
  touch-action: manipulation !important;
}

#purchaseModal .modal-footer .btn.secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

#purchaseModal .modal-footer .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}

#purchaseModal .modal-footer .btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #00d4ff 100%) !important;
  border: none !important;
  color: #000 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4) !important;
  position: relative !important;
  z-index: 1 !important;
}

#purchaseModal .modal-footer .btn.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00d4ff 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#purchaseModal .modal-footer .btn.primary:hover::before {
  opacity: 1;
}

#purchaseModal .modal-footer .btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 168, 255, 0.6);
}

#purchaseModal .modal-footer .btn.primary:active {
  transform: translateY(-1px) scale(0.98);
}

#purchaseMessage {
  margin-bottom: 2rem !important;
  padding: 1.5rem 2rem !important;
  border-radius: 16px !important;
  text-align: center !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid !important;
  backdrop-filter: blur(10px) !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#purchaseMessage.success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.05) 100%);
  color: #4ade80;
  border-color: rgba(40, 167, 69, 0.4);
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.2);
}

#purchaseMessage.error {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.05) 100%);
  color: #f87171;
  border-color: rgba(220, 53, 69, 0.4);
  box-shadow: 0 0 20px rgba(220, 53, 69, 0.2);
}

/* Mobile Responsive - Purchase Modal */
@media (max-width: 768px) {
  #purchaseModal {
    padding: 0.5rem !important;
    align-items: flex-start !important;
    padding-top: 1rem !important;
  }

  #purchaseModal .modal-content {
    margin: 0 auto !important;
    max-height: calc(100vh - 2rem) !important;
    max-width: 100% !important;
    width: calc(100% - 1rem) !important;
    border-radius: 20px !important;
  }

  #purchaseModal .modal-header {
    padding: 1.5rem 1.25rem 1rem !important;
  }

  #purchaseModal .modal-header h2 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  #purchaseModal .modal-body {
    padding: 1.5rem 1.25rem !important;
  }

  #purchaseModal .form-group {
    margin-bottom: 1.5rem !important;
  }

  #purchaseModal .form-group label span {
    font-size: 0.9rem !important;
  }

  #purchaseModal .form-group input,
  #purchaseModal .form-group textarea {
    padding: 1rem 1.1rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
  }

  #purchaseModal .form-group textarea {
    min-height: 120px !important;
  }

  #purchaseModal .modal-footer {
    flex-direction: column !important;
    padding: 1.25rem !important;
    gap: 0.75rem !important;
  }

  #purchaseModal .modal-footer .btn {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
  }

  #purchaseModal .modal-close {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.4rem !important;
  }

  #purchaseMessage {
    padding: 1.25rem 1.5rem !important;
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 600px) {
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }

  .package-card {
    padding: 2rem 1.75rem;
    border-radius: 20px;
  }

  .package-card.package-featured {
    transform: scale(1);
  }

  .package-card.package-featured:hover {
    transform: translateY(-8px) scale(1.02);
  }

  .package-header h3 {
    font-size: 2rem;
  }

  .package-features li {
    font-size: 0.95rem;
    padding-left: 1.75rem;
  }

  .package-badge-featured {
    top: 15px;
    right: 15px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  .buy-now-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  #purchaseModal {
    padding: 0.25rem !important;
    padding-top: 0.5rem !important;
  }

  #purchaseModal .modal-content {
    margin: 0 auto !important;
    max-height: calc(100vh - 1rem) !important;
    width: calc(100% - 0.5rem) !important;
    border-radius: 18px !important;
  }

  #purchaseModal .modal-header {
    padding: 1.25rem 1rem 0.75rem !important;
  }

  #purchaseModal .modal-header h2 {
    font-size: 1.25rem !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
  }

  #purchaseModal #selectedPackage {
    font-size: 1.1rem !important;
  }

  #purchaseModal .modal-body {
    padding: 1.25rem 1rem !important;
  }

  #purchaseModal .form-group {
    margin-bottom: 1.25rem !important;
  }

  #purchaseModal .form-group label span {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }

  #purchaseModal .form-group input,
  #purchaseModal .form-group textarea {
    padding: 0.9rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
  }

  #purchaseModal .form-group textarea {
    min-height: 100px !important;
    rows: 4 !important;
  }

  #purchaseModal .modal-footer {
    padding: 1rem !important;
    gap: 0.65rem !important;
  }

  #purchaseModal .modal-footer .btn {
    padding: 0.9rem 1.25rem !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
  }

  #purchaseModal .modal-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.25rem !important;
    border-radius: 10px !important;
  }

  #purchaseMessage {
    padding: 1rem 1.25rem !important;
    font-size: 0.9rem !important;
    margin-bottom: 1.25rem !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 400px) {
  .package-card {
    padding: 1.75rem 1.5rem;
    border-radius: 18px;
  }

  .package-header h3 {
    font-size: 1.75rem;
  }

  .package-features li {
    font-size: 0.9rem;
    padding-left: 1.5rem;
    gap: 1rem;
  }

  .buy-now-btn {
    padding: 0.95rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .contact-form {
    padding: 1.25rem 1rem;
  }
  
  .contact {
    padding: 2.5rem 0.5rem;
  }
  
  .contact .section-head h2 {
    font-size: 1.5rem;
  }

  #purchaseModal .modal-content {
    border-radius: 16px !important;
    width: calc(100% - 0.5rem) !important;
  }

  #purchaseModal .modal-header {
    padding: 1rem 0.75rem 0.5rem !important;
  }

  #purchaseModal .modal-header h2 {
    font-size: 1.1rem !important;
  }

  #purchaseModal .modal-body {
    padding: 1rem 0.75rem !important;
  }

  #purchaseModal .form-group input,
  #purchaseModal .form-group textarea {
    padding: 0.85rem 0.9rem !important;
    font-size: 0.9rem !important;
  }

  #purchaseModal .modal-footer {
    padding: 0.75rem !important;
  }

  #purchaseModal .modal-footer .btn {
    padding: 0.85rem 1rem !important;
    font-size: 0.9rem !important;
    min-height: 44px !important; /* Touch target size */
  }
  
  /* Ensure touch-friendly buttons */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Smaller sections on very small screens */
  section {
    padding: 2rem 0.5rem;
  }
  
  .section-head h2 {
    font-size: 1.5rem;
  }
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #00a8ff 0%, #0090e0 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #0090e0 0%, #0078c0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 255, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  text-align: center;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.5;
}

#formMessage {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
  border: 1px solid;
  margin-bottom: 1.25rem;
  text-align: center;
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#formMessage.success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

#formMessage.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
