/* ===========================
   ASL META — Main Stylesheet
   aslmeta.com
   =========================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #0f0f1a;
  --bg-card:       #111827;
  --bg-card-hover: #161f2e;
  --blue:          #4F8EF7;
  --blue-dark:     #2563EB;
  --text-primary:  #ffffff;
  --text-secondary:#94a3b8;
  --border:        rgba(79,142,247,0.15);
  --border-blue:   rgba(79,142,247,0.2);
  --glow-color:    rgba(79,142,247,0.15);
  --glow-blue:     0 0 30px rgba(79,142,247,0.15);
  --radius:        12px;
  --radius-lg:     16px;
  --transition:    all 0.3s ease;
}

html { scroll-behavior: smooth; }

/* ---------- Page Loader ---------- */
#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#pageLoader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo img {
  height: 56px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.7; }
}

.loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--blue), #FFFFFF);
  border-radius: 2px;
  animation: loaderBar 1.1s ease-in-out infinite;
}

@keyframes loaderBar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(79,142,247,0.08);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-title span { color: var(--blue); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 56px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

/* ---------- Ripple effect ---------- */
.btn, .nav-cta {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.45);
  pointer-events: none;
  animation: rippleAnim 0.6s ease-out;
}

@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--bg-primary);
  box-shadow: var(--glow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(79,142,247,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(79,142,247,0.05);
}

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition), transform 0.35s ease;
  transform: translateY(0);
}

#navbar.scrolled {
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

#navbar.nav-hidden {
  transform: translateY(-110%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--bg-primary) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Floating glowing orbs — slow drift loop, blurred into soft glows */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.hero-orb-1 {
  top: -140px; right: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(79,142,247,0.35) 0%, transparent 70%);
  animation: orbDrift1 20s ease-in-out infinite;
}

.hero-orb-2 {
  bottom: -160px; left: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
  animation: orbDrift2 24s ease-in-out infinite;
}

.hero-orb-3 {
  top: 42%; left: 55%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: orbDrift3 18s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 50px) scale(1.1); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -30px) scale(1.08); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -40px) scale(0.95); }
}

/* Subtle dot-grid overlay, faded toward the edges */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,142,247,0.1);
  border: 1px solid var(--border-blue);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--blue);
  margin: 0 auto 28px;
}

.hero-badge span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

/* Staggered word-by-word fade-up reveal */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: wordUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordUp {
  to { opacity: 1; transform: none; }
}

.word-accent {
  background: linear-gradient(135deg, var(--blue) 0%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 auto 40px;
  max-width: 560px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--blue), #FFFFFF);
  color: var(--bg-primary);
  box-shadow: var(--glow-blue);
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(79,142,247,0.5);
}

/* Pulsing glow — draws the eye to the primary CTA */
.btn-pulse {
  animation: ctaPulse 2.4s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(79,142,247,0.35); }
  50%      { box-shadow: 0 0 40px rgba(79,142,247,0.65); }
}

.hero-btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(79,142,247,0.06);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Hero staggered reveal ---------- */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero-anim {
  opacity: 0;
  animation: heroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim { opacity: 1; animation: none; }
  .word { opacity: 1; transform: none; animation: none; }
  .hero-orb { animation: none; }
  .btn-pulse { animation: none; }
  .fade-in { transition: none; opacity: 1; transform: none; }
  #navbar { transition: none; }
  #pageLoader { transition: none; }
  .loader-logo img, .loader-bar span { animation: none; }
  .ripple { display: none; }
  .portfolio-thumb, .service-num { transition: none; }
  .trusted-track { animation: none; }
  .trusted-logo[aria-hidden="true"] { display: none; }
  .trusted-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .process-steps::before { transform: none !important; }
}

/* ---------- Sections ---------- */
section { padding: 100px 0; }

/* ---------- Trusted By ---------- */
.trusted-by {
  background: var(--bg-primary);
  padding: 56px 0;
}

.trusted-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Same seamless-loop technique as the portfolio marquee: duplicate set +
   per-item margin-right so translateX(-50%) lands exactly on a repeat. */
.trusted-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.trusted-track {
  display: flex;
  width: max-content;
  animation: trustedMarquee 36s linear infinite;
}

.trusted-marquee:hover .trusted-track {
  animation-play-state: paused;
}

@keyframes trustedMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trusted-logo {
  flex: 0 0 auto;
  margin-right: 48px;
  height: 64px;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.trusted-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.trusted-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- Services ---------- */
#services { background: var(--bg-secondary); }

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 32px 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/*
  Gradient border on hover: an inset pseudo-element clipped to a 1px ring
  via mask-composite, so only the border ring is visible (not a full
  overlay), fading in on hover.
*/
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--blue), rgba(79,142,247,0) 45%, rgba(79,142,247,0) 55%, var(--blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-blue);
}

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

.service-num {
  position: absolute;
  top: 4px;
  left: 28px;
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: rgba(79,142,247,0.07);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease;
}

.service-card:hover .service-num {
  color: rgba(79,142,247,0.22);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card p {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

.service-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
}

.service-card:hover .service-tag {
  border-color: rgba(79,142,247,0.35);
  color: var(--text-primary);
  background: rgba(79,142,247,0.06);
}

/* ---------- About ---------- */
#about {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-tagline {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.about-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 32px;
}

/* Right column: animated stat counters */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.stat-block:hover {
  border-color: rgba(79,142,247,0.3);
  box-shadow: var(--glow-blue);
}

.about-stats .stat-number { font-size: 3rem; }
.about-stats .stat-label  { font-size: 0.95rem; margin-top: 8px; }

.badge {
  background: rgba(79,142,247,0.1);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.about-content .section-subtitle {
  text-align: left;
  margin: 0 0 32px;
}

.vm-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.vm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vm-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--blue); }
.vm-card p  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Why Choose Us ---------- */
#why {
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.why-card:hover {
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-4px);
  box-shadow: var(--glow-blue);
}

.why-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(79,142,247,0.35);
  margin-bottom: 14px;
  transition: color 0.4s ease;
}

.why-card:hover .why-num {
  color: var(--blue);
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Portfolio ---------- */
#portfolio {
  background: var(--bg-primary);
}

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

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--glow-blue);
  border-color: rgba(79,142,247,0.3);
}

.portfolio-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-card-hover), #16202f);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-logo {
  transform: scale(1.08);
}

/* Hover reveal: blue-tinted overlay over the thumbnail with a project link */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79,142,247,0.85), rgba(37,99,235,0.9));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
  transform: none;
}

.portfolio-view-link {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  transition: background 0.3s ease;
}

.portfolio-view-link:hover {
  background: rgba(255,255,255,0.15);
}

.portfolio-body {
  padding: 22px 24px 24px;
}

.portfolio-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.portfolio-card h3 {
  font-size: 1.05rem;
}

/* ---------- Process ---------- */
#process {
  background: var(--bg-secondary);
}

/*
  Timeline line: a single full-width pseudo-element on the flex container,
  pinned to the exact vertical center of the 80px circles (top: 39px + 2px
  height = centered on the 40px midpoint). Because the line spans the full
  width of the container rather than a percentage tied to column count, it
  is guaranteed to pass through every circle's center regardless of how
  many steps there are or how the flex items are sized.
*/
.process-steps {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 39px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 6%, var(--blue) 50%, var(--border) 94%, transparent);
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s ease;
}

.process-steps.in-view::before {
  transform: scaleX(1);
}

.process-step {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,142,247,0.15), rgba(79,142,247,0.08)), var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--blue);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.process-step:nth-child(1) { transition-delay: 0s; }
.process-step:nth-child(2) { transition-delay: 0.15s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.45s; }
.process-step:nth-child(5) { transition-delay: 0.6s; }

/* ---------- Contact ---------- */
#contact {
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(79,142,247,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-item-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item-text strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(79,142,247,0.03);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.08);
}

.form-group select option { background: var(--bg-card); }

/* ---------- Footer ---------- */
#footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img { height: 44px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(79,142,247,0.1);
  border-color: var(--blue);
  color: var(--blue);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 24px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--blue);
  padding-left: 4px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--blue);
  transition: var(--transition);
}

.footer-bottom a:hover { opacity: 0.8; }

/* ---------- Scroll to top ---------- */
#scrollTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--bg-primary);
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--glow-blue);
  z-index: 999;
  overflow: hidden;
}

#scrollTop.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--bg-primary);
    padding: 80px 32px 32px;
    border-bottom: 1px solid var(--border);
    gap: 24px;
  }

  .nav-links.open a { font-size: 1.1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
  .process-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .process-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
