/* Duskcoder - 100% Light Theme Flagship Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Pure Light Theme Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-highlight: rgba(2, 132, 199, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Centered brand loader shown while shared page sections initialize */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #f8fafc 58%, #eaf3fb 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__panel {
  width: min(100%, 330px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 2.25rem 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(15, 42, 72, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-loader__logo {
  width: 68px;
  height: 68px;
  padding: 4px;
  margin-bottom: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.12);
  animation: site-loader-breathe 1.8s ease-in-out infinite;
}

.site-loader__brand {
  color: #0f172a;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.site-loader__message {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 500;
}

.site-loader__progress {
  width: 116px;
  height: 3px;
  overflow: hidden;
  margin-top: 1.35rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.site-loader__progress::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0284c7, #4f46e5);
  animation: site-loader-progress 1.25s ease-in-out infinite;
}

@keyframes site-loader-breathe {
  50% { transform: translateY(-3px); }
}

@keyframes site-loader-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader__logo,
  .site-loader__progress::after { animation: none; }
}

/* Client portfolio screenshot marquee */
.client-stories-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  overflow: hidden;
}

.client-marquee {
  overflow: hidden;
  padding: 0.5rem 0 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.client-marquee__track,
.client-marquee__group {
  display: flex;
  width: max-content;
}

.client-marquee__track {
  animation: client-marquee-scroll 72s linear infinite;
}

.client-marquee:hover .client-marquee__track,
.client-marquee:focus-within .client-marquee__track {
  animation-play-state: paused;
}

.client-marquee__group {
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.client-story-card {
  display: block;
  position: relative;
  width: clamp(260px, 31vw, 420px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  isolation: isolate;
}

.client-story-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
  pointer-events: none;
}

.client-story-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.client-story-card:hover img,
.client-story-card:focus-visible img {
  transform: scale(1.04);
}

.client-story-card__label {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 0.9rem;
  left: 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.client-story-card:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .client-marquee__track { animation-duration: 46s; }
  .client-story-card { width: min(78vw, 340px); }
}

@keyframes client-marquee-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .client-marquee__track { animation: none; }
  .client-marquee__group[aria-hidden="true"] { display: none; }
  .client-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Light Tech Grid Background */
.tech-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Light Tech Dot Pattern */
.tech-dots-bg {
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glassmorphism Light Card Style */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(2, 132, 199, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 0 15px -3px rgba(2, 132, 199, 0.15);
}

/* High-tech Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulse Rings */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.pulse-ring-active {
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Badge Styling */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

/* Shimmer Button Effect */
.shimmer-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4338ca 100%);
  transition: all 0.3s ease;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
  transition: all 0.8s ease;
}

.shimmer-btn:hover::after {
  left: 140%;
}

.shimmer-btn:hover {
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4);
  transform: translateY(-1px);
}

/* Gradient Border Card */
.gradient-border-card {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 0 1px 1px rgba(226, 232, 240, 0.8);
  z-index: 1;
}

.gradient-border-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1.05rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Range input styling */
input[type=range] {
  -webkit-appearance: none;
  background: #e2e8f0;
  border-radius: 8px;
  height: 6px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0284c7;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.5);
  transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}


/* ============================================================
   Mega-menu dropdowns (Hire Developers / Services)
   ============================================================ */
.nav-dd { position: static; height: 100%; display: flex; align-items: center; }
.nav-dd > a { height: 100%; display: flex; align-items: center; }
.nav-dd-caret { transition: transform 0.2s ease; }
.nav-dd:hover .nav-dd-caret,
.nav-dd:focus-within .nav-dd-caret { transform: rotate(180deg); }

.nav-dd-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1080px, calc(100vw - 2rem));
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.02);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  font-weight: 500;
  z-index: 60;
}
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav-dd-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding: 1.5rem 1.75rem 1.25rem;
}
.nav-dd-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.nav-dd-link {
  display: block;
  padding: 0.28rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dd-link:hover { background: #f0f9ff; color: #0369a1; }
.nav-dd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 1rem 1rem;
  font-size: 0.75rem;
}

/* Mobile drawer accordions */
.mobile-acc summary { list-style: none; }
.mobile-acc summary::-webkit-details-marker { display: none; }

.nav-dd-feature { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; border-radius: .9rem; padding: 1.1rem; color: #fff; background: linear-gradient(135deg, #0c4a6e 0%, #4338ca 100%); }
.nav-dd-feature a { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border-radius: .5rem; padding: .5rem .75rem; align-self: flex-start; }
.nav-dd-feature a:hover { background: rgba(255,255,255,.26); }

/* Gentle, staggered motion for homepage capability cards */
.hero-capability-card { animation: hero-card-float 5.5s ease-in-out infinite; }
.hero-float-two { animation-delay: -1.3s; }
.hero-float-three { animation-delay: -2.6s; }
.hero-float-four { animation-delay: -3.9s; }
.hero-float-five { animation-delay: -1.8s; }
.hero-float-six { animation-delay: -3.1s; }
.hero-float-seven { animation-delay: -4.4s; }
.hero-float-eight { animation-delay: -2.2s; }
@keyframes hero-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-capability-card { animation: none; }
}

.career-success-notice {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  width: min(28rem, calc(100vw - 2rem));
  align-items: flex-start;
  gap: .85rem;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .98);
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease;
}
.career-success-notice.is-visible { opacity: 1; transform: translateY(0); }
.career-success-icon { display: flex; height: 2.25rem; width: 2.25rem; flex: none; align-items: center; justify-content: center; border-radius: .75rem; background: #dcfce7; color: #15803d; }
@media (prefers-reduced-motion: reduce) {
  .career-success-notice { transition: none; }
}
