/* 
 * Project: SmartScale Web Portal
 * Theme: Premium Midnight / Dark Royal Blue
 */

:root {
  /* Color Palette */
  --bg-navy: #050a15;
  /* Deep Midnight Navy */
  --primary-blue: #1e40af;
  /* Dark Royal Blue */
  --primary-glow: rgba(30, 64, 175, 0.6);
  --text-white: #ffffff;
  --text-gray: #9ca3af;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);

  /* Transitions */
  --transition-cubic: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-navy);
  background-image: linear-gradient(rgba(5, 10, 21, 0.8), rgba(5, 10, 21, 0.9)), url('assets/img/background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-navy);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  position: relative;
  width: 60px;
  height: 60px;
}

.fallback-loader {
  display: none;
}

.loader-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-circle:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-top-color: #60a5fa;
  animation: spin 1.5s linear infinite reverse;
}

.intro-bg-glow {
  position: absolute;
  width: 56vw;
  height: 56vw;
  max-width: 460px;
  max-height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(30, 64, 175, 0.08) 45%, transparent 75%);
  filter: blur(10px);
  opacity: 0.95;
  transform: scale(0.92);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}

.intro-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 122px;
  height: 122px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  perspective: 700px;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease, filter 0.55s ease;
  will-change: transform, opacity, filter;
}

.intro-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.35));
}

#preloader.intro-started .intro-logo {
  animation: intro-logo-spin 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#preloader.intro-started .intro-bg-glow {
  transform: scale(1.06);
}

.intro-logo-wrap.moving {
  transform:
    translate(calc(-50% + var(--move-x, 0px)), calc(-50% + var(--move-y, 0px)))
    scale(var(--move-scale, 0.5));
  opacity: 0.16;
  filter: blur(0.12px);
}

#preloader.preloader-dim .intro-bg-glow {
  opacity: 0.25;
}

@keyframes intro-logo-spin {
  0% {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
    opacity: 0.95;
  }
  45% {
    transform: rotateY(165deg) rotateX(13deg) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: rotateY(360deg) rotateX(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Abstract Background Elements */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.section-compact {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(5, 10, 21, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

header.is-scrolled {
  background: rgba(5, 10, 21, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}
.hamburger:hover { border-color: rgba(96, 165, 250, 0.4); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(5, 10, 21, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}
.mobile-nav-overlay.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-white);
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.07); border-color: rgba(96,165,250,0.5); }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  width: 100%;
  padding: 2rem;
}
.mobile-nav-links a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
  opacity: 0.85;
}
.mobile-nav-links a:hover { opacity: 1; color: #60a5fa; }
.mobile-nav-cta {
  font-size: 1rem !important;
  opacity: 1 !important;
  margin-top: 0.5rem;
  padding: 0.9rem 2.5rem !important;
  letter-spacing: 0.3px !important;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 60px;
  width: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 1px;
  background: rgba(96, 165, 250, 0.7);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-content {
  max-width: 920px;
  animation: hero-float 8s ease-in-out infinite;
  will-change: transform;
}

/* Hero Stats Strip */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding: 1.25rem 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-unit {
  font-size: 1rem;
  font-weight: 700;
  color: #60a5fa;
  margin-left: 1px;
}
.stat-label {
  font-size: 0.68rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 2.2rem;
  background: var(--glass-border);
  flex-shrink: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-gray);
  opacity: 0.6;
}
.scroll-line {
  width: 1.5px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.scroll-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 12px;
  background: linear-gradient(to bottom, #60a5fa, transparent);
  border-radius: 2px;
  animation: scroll-drop 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scroll-drop {
  0%   { top: 0; opacity: 1; }
  70%  { top: 100%; opacity: 0.3; }
  71%  { top: -40%; opacity: 0; }
  100% { top: 0; opacity: 1; }
}

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

  50% {
    transform: translateY(-8px);
  }
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 1.35rem;
  background: linear-gradient(108deg, #ffffff 8%, #d9e4ff 54%, #4f7eff 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 10px 32px rgba(5, 10, 21, 0.45);
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

h1::after {
  content: '';
  display: block;
  width: 88px;
  height: 2px;
  margin: 0.82rem auto 0;
  background: linear-gradient(to right, rgba(79, 126, 255, 0.15), rgba(79, 126, 255, 0.85), rgba(79, 126, 255, 0.15));
  border-radius: 999px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-note {
  margin-top: 0.15rem;
  margin-bottom: 2rem;
  font-size: 1.02rem;
  color: #bdc9df;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition-cubic);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
  animation: pulse-subtle 3.5s ease-in-out infinite;
}
@keyframes pulse-subtle {
  0%, 100% { box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(30, 64, 175, 0.55), 0 0 0 5px rgba(30, 64, 175, 0.07); }
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 64, 175, 0.5);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-outline {
  background: transparent;
  border-color: var(--glass-border);
  color: var(--text-white);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--text-white);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.8);
  outline-offset: 2px;
}

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

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

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition-cubic);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 64, 175, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(30, 64, 175, 0.1);
}

.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.12), rgba(96, 165, 250, 0));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.card:hover .card-icon {
  transform: translateY(-5px) scale(1.1);
}

.card-icon-person svg {
  width: 2.4rem;
  height: 2.4rem;
  fill: #60a5fa;
  filter: drop-shadow(0 4px 10px rgba(30, 64, 175, 0.35));
}

.card-icon-crowd {
  width: 2.9rem;
  height: 2.9rem;
  color: #60a5fa;
  background: none;
}

.card-icon-crowd svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 4px 10px rgba(30, 64, 175, 0.35));
}

.crowd-glow {
  fill: rgba(96, 165, 250, 0.09);
  stroke: rgba(96, 165, 250, 0.24);
  stroke-width: 1.2;
}

.crowd-person {
  fill: none;
  stroke: url(#crowdIconGradient);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crowd-person-main {
  stroke-width: 4.4;
}

.crowd-person-side {
  opacity: 0.72;
  stroke-width: 3.4;
}

.crowd-growth {
  fill: none;
  stroke: #93c5fd;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.card p {
  color: var(--text-gray);
  font-size: 1rem;
}

.problem-text {
  max-width: 780px !important;
  font-size: 1.08rem;
}

.outcomes-grid .card h3 {
  font-size: 1.35rem;
}

/* Featured Case Study */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 3rem;
}

.case-study-content {
  padding: 3rem;
}

.case-study-image {
  height: 100%;
  min-height: 400px;
  position: relative;
}

.case-study-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-study:hover .case-study-image img {
  transform: scale(1.05);
}

.case-tag {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #60a5fa;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.case-study h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.prob-sol {
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--primary-blue);
  padding-left: 1rem;
  font-size: 1.05rem;
  color: #e2e8f0;
}

.btn-text {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  border-bottom: 1px solid var(--primary-blue);
  padding-bottom: 3px;
  transition: all 0.3s ease;
}

.btn-text:hover {
  color: #60a5fa;
  border-color: #60a5fa;
}

/* Pricing Cards */
.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.pricing-header .subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 1rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary-blue);
  margin-right: 0.75rem;
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
  margin: 0;
  text-align: center;
}

.offer-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.2rem;
}

.offer-features li {
  opacity: 1;
  transform: none;
}

.offer-meta {
  margin: 1rem 0 2rem;
}

.offer-time {
  color: #dbeafe;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.offer-price {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Featured Price Card */
.pricing-card.featured {
  border-color: var(--primary-blue);
  background: linear-gradient(to bottom, rgba(30, 64, 175, 0.15), rgba(5, 10, 21, 0.4));
  transform: scale(1.05);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--glass-border);
  transition: var(--transition-cubic);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(5, 10, 21, 0.9), transparent);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:hover .overlay {
  transform: translateY(0);
}

.portfolio-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Contact Form */
.glass-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-page {
  min-height: 100vh;
}

.thank-you-main {
  min-height: 100vh;
}

.thank-you-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  text-align: center;
}

.thank-you-card {
  max-width: 760px;
  padding: 4rem 3rem;
}

.thank-you-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 16px 34px rgba(30, 64, 175, 0.34));
}

.thank-you-kicker {
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.thank-you-card h1 {
  max-width: 680px;
}

.thank-you-card .hero-note {
  margin-bottom: 2.2rem;
}

.contact-form {
  max-width: 500px;
  margin: 3rem auto 0;
}

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

input,
textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: rgba(30, 64, 175, 0.1);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

/* Section specific */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-content p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--text-gray);
  margin: 0 1rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-blue);
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.45s; }

/* Active nav link */
.nav-links a.active {
  color: var(--text-white);
}
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: ripple-expand 0.55s linear;
  pointer-events: none;
  z-index: 0;
}
@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

/* Second ambient orb */
body::after {
  content: '';
  position: fixed;
  bottom: -8%;
  right: -5%;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.07) 0%, transparent 70%);
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 5%) scale(1.08); }
}

/* Pricing feature reveal */
.pricing-features li {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pricing-card.active .pricing-features li { opacity: 1; transform: translateX(0); }
.pricing-card.active .pricing-features li:nth-child(1) { transition-delay: 0.05s; }
.pricing-card.active .pricing-features li:nth-child(2) { transition-delay: 0.12s; }
.pricing-card.active .pricing-features li:nth-child(3) { transition-delay: 0.19s; }
.pricing-card.active .pricing-features li:nth-child(4) { transition-delay: 0.26s; }
.offer-card .pricing-features li { opacity: 1; transform: none; }

/* Section label accent */
.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-blue), #60a5fa);
  border-radius: 2px;
  margin: 0.75rem auto 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-header.active h2::after { width: 80px; }


/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --glass-blur: blur(8px);
  }

  body::before,
  body::after {
    display: none;
  }

  body {
    background-attachment: scroll;
    background-image: linear-gradient(rgba(5, 10, 21, 0.72), rgba(5, 10, 21, 0.8)), url('assets/img/background.webp');
    background-size: cover;
    background-position: center center;
  }

  .container {
    padding: 0 1.1rem;
  }

  .section {
    padding: 3.8rem 0;
    contain-intrinsic-size: 620px;
  }

  .section-compact {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }

  /* Show hamburger, hide desktop nav items */
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .header-cta { display: none; }

  header .container {
    gap: 0.5rem;
  }

  .logo img {
    height: 42px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .case-study-image {
    min-height: 250px;
  }

  .hero-content {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0.25rem;
    animation-duration: 10s;
  }

  .hero {
    min-height: 94svh;
    padding-top: var(--header-height);
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
    line-height: 1.12;
    margin-bottom: 0.8rem;
    max-width: 350px;
    letter-spacing: -0.025em;
  }

  h1::after {
    width: 62px;
    margin-top: 0.62rem;
  }

  .hero-note {
    margin-bottom: 1.15rem;
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 320px;
  }

  /* Keep intro complete, but compact enough for quick next-section reveal */
  .hero .hero-note {
    display: block;
  }

  .hero .reveal.stagger-3 {
    display: block;
  }

  .btn {
    width: 100%;
    max-width: 380px;
    display: block;
    margin-bottom: 0.8rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.95rem 1.1rem;
    font-size: 0.96rem;
    min-height: 48px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }

  .glass-container {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }

  .section-header {
    margin-bottom: 1.9rem;
  }

  .section-header h2 {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
  }

  .section-header p {
    font-size: 0.95rem;
  }

  input,
  textarea {
    font-size: 16px;
    padding: 0.9rem 0.95rem;
    border-radius: 10px;
  }

  .social-links a {
    margin: 0 0.6rem;
  }

  .offer-card {
    padding: 1.5rem;
  }

  .preview-card h2 {
    font-size: 1.55rem;
  }

  /* Hero stats on mobile */
  .hero-stats {
    display: none;
  }

  /* Hide scroll indicator on mobile */
  .scroll-indicator { display: none; }

  .mobile-nav-links {
    gap: 1.4rem;
    padding: 1.5rem;
  }

  .mobile-nav-links a {
    font-size: 1.34rem;
  }

  .card,
  .project-card,
  .offer-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* Stronger mobile glass effect so background remains visible through cards */
  .card,
  .project-card,
  .offer-card,
  .glass-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px) saturate(115%);
    -webkit-backdrop-filter: blur(6px) saturate(115%);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .card:active,
  .project-card:active,
  .offer-card:active {
    transform: scale(0.99);
  }
}

@media (min-width: 769px) {
  .intro-logo-wrap,
  .intro-bg-glow {
    display: none;
  }

  .fallback-loader {
    display: block;
  }
}

/* Project Cards */
.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(30, 64, 175, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(30, 64, 175, 0.1);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
  filter: saturate(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 21, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
  transition: var(--transition-fast);
}

.project-card:hover .tag {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.32);
}

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

.project-card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: var(--transition-fast);
}

.project-link::after {
  content: '↗';
  font-size: 0.82rem;
  transition: transform 0.25s ease;
}

.project-link:hover {
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(96, 165, 250, 0.2);
  transform: translateY(-1px);
}

.project-link:hover::after {
  transform: translate(2px, -2px);
}

.process-grid .card h3 {
  font-size: 1.2rem;
}

.preview-card {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.preview-card h2 {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.preview-card p {
  margin: 0 auto 1.6rem;
  max-width: 660px;
}

@media (max-width: 430px) {
  .hero {
    min-height: 92svh;
    padding-top: var(--header-height);
  }

  .card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .pricing-header .subtitle {
    font-size: 1.7rem;
  }

  .badge {
    top: 1rem;
    right: 1rem;
    font-size: 0.68rem;
  }

  .project-image {
    height: 196px;
  }

  .project-content {
    padding: 1.35rem;
  }

  .project-card h3 {
    font-size: 1.28rem;
  }

  .project-link {
    font-size: 0.78rem;
    padding: 0.45rem 0.8rem;
  }

  .hero-note {
    font-size: 0.82rem;
  }
}

@media (hover: none) {
  .card:hover,
  .project-card:hover,
  .btn-primary:hover {
    transform: none;
  }

  .project-overlay {
    opacity: 1;
    align-items: flex-end;
    padding-bottom: 1rem;
    background: linear-gradient(to top, rgba(5, 10, 21, 0.88), rgba(5, 10, 21, 0.1));
    backdrop-filter: none;
  }

  .project-card .project-image img {
    filter: saturate(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
