/* ==========================================================================
   DeployPro – Modern Web Solutions
   Main Stylesheet (CSS3, Responsive, SaaS Design System)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-navy: #0b1120;
  --bg-navy-elevated: #111a2e;
  --bg-navy-card: rgba(255, 255, 255, 0.04);

  /* Brand & Accents */
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --cyan-400: #22d3ee;
  --emerald-500: #10b981;
  --rose-500: #f43f5e;

  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-primary-hover: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(139, 92, 246, 0.16) 100%);
  --gradient-text: linear-gradient(135deg, #60a5fa 0%, #a78bfa 55%, #38bdf8 100%);
  --gradient-text-dark: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

  /* Typography Colors */
  --text-dark: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.1);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 12px 32px rgba(37, 99, 235, 0.28);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --container-max: 1200px;
  --nav-height: 76px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

/* ==========================================================================
   Layout & Shared Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-sm {
  padding: 72px 0;
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section-white {
  background-color: var(--bg-white);
  color: var(--text-dark);
}

.section-navy {
  background-color: var(--bg-navy);
  color: var(--text-light);
  overflow: hidden;
}

.section-navy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.14), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.14), transparent 42%);
  pointer-events: none;
}

.section-navy > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header.align-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gradient-glow);
  color: var(--blue-600);
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 16px;
}

.section-navy .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.24);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.section-navy .eyebrow-dot,
.hero .eyebrow-dot,
.page-hero .eyebrow-dot {
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.075rem;
  color: var(--text-body);
  line-height: 1.7;
}

.section-navy .section-subtitle {
  color: var(--text-light-muted);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-dark {
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn:hover svg.arrow-icon {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.36);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.btn-outline-dark:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.04);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--bg-navy);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 17, 32, 0.97);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.brand-text span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-link {
  color: #cbd5e1;
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  background: var(--bg-navy);
  color: var(--text-light);
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 82%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-glow-1 {
  width: 460px;
  height: 460px;
  top: -120px;
  left: -100px;
  background: rgba(37, 99, 235, 0.5);
}

.hero-glow-2 {
  width: 480px;
  height: 480px;
  bottom: -140px;
  right: -80px;
  background: rgba(124, 58, 237, 0.48);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.72;
  color: #cbd5e1;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
}

.hero-trust-item svg {
  width: 17px;
  height: 17px;
  color: #34d399;
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.55);
  animation: floatSlow 6s ease-in-out infinite;
}

.hero-frame-inner {
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  position: relative;
}

.hero-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.45);
  z-index: 3;
}

.hero-floating-top {
  top: -18px;
  right: -14px;
  animation: floatReverse 5.5s ease-in-out infinite;
}

.hero-floating-bottom {
  bottom: -20px;
  left: -18px;
  animation: floatSlow 6.5s ease-in-out infinite 0.6s;
}

.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.floating-icon.green {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.floating-icon.violet {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.floating-icon svg {
  width: 20px;
  height: 20px;
}

.floating-label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.floating-value {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   Page Hero (Inner Pages)
   ========================================================================== */

.page-hero {
  position: relative;
  background: var(--bg-navy);
  color: var(--text-light);
  padding: 76px 0 80px;
  text-align: center;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
}

/* ==========================================================================
   About Section & Stats
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-wrap:hover img {
  transform: scale(1.03);
}

.about-badge-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
}

.about-badge-icon svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.about-badge-card strong {
  display: block;
  font-size: 0.95rem;
}

.about-badge-card span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.about-copy {
  color: var(--text-body);
  font-size: 1.035rem;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.28);
}

.stat-value {
  display: block;
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
}

/* ==========================================================================
   Services Cards
   ========================================================================== */

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

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

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
}

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

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--gradient-glow);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.service-card:hover .icon-box {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: scale(1.06);
}

.icon-box svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-600);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card-link:hover {
  color: var(--violet-600);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Our Process Section (Dark Navy)
   ========================================================================== */

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.75), rgba(139, 92, 246, 0.75), rgba(139, 92, 246, 0.2));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.process-step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(96, 165, 250, 0.45);
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.93rem;
  color: var(--text-light-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Technology Section
   ========================================================================== */

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-dark);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tech-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.38);
}

.tech-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.tech-icon svg {
  width: 20px;
  height: 20px;
}

.tech-html { background: rgba(234, 88, 12, 0.12); color: #ea580c; }
.tech-css { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.tech-js { background: rgba(234, 179, 8, 0.16); color: #ca8a04; }
.tech-react { background: rgba(6, 182, 212, 0.14); color: #0891b2; }
.tech-python { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.tech-django { background: rgba(16, 185, 129, 0.14); color: #047857; }
.tech-docker { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.tech-github { background: rgba(15, 23, 42, 0.1); color: #0f172a; }
.tech-coolify { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }

/* ==========================================================================
   Why Choose Us
   ========================================================================== */

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.32);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.14));
  color: var(--violet-600);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  padding: 64px 0 96px;
}

.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  background: var(--bg-navy);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.4), transparent 46%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.42), transparent 46%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 30px;
}

/* ==========================================================================
   Services Detail Page (services.html)
   ========================================================================== */

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.service-detail-card.reverse .service-detail-media {
  order: 2;
}

.service-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-navy);
}

.service-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-detail-card:hover .service-detail-media img {
  transform: scale(1.03);
}

.service-detail-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.service-detail-body p {
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.7;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-bottom: 26px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
}

.check-list svg {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
  flex-shrink: 0;
}

/* ==========================================================================
   About Page Extras (about.html)
   ========================================================================== */

.value-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact Page (contact.html)
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

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

.contact-info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient-glow);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.94rem;
  color: var(--text-body);
}

.contact-info-card a:hover {
  color: var(--blue-600);
}

.demo-notice {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.demo-notice strong {
  display: block;
  color: var(--blue-700);
  margin-bottom: 4px;
}

.contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-form-card h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-form-card > p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 26px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  background: var(--bg-white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.form-control.is-invalid {
  border-color: var(--rose-500);
  background: #fff1f2;
}

.form-control.is-valid {
  border-color: var(--emerald-500);
}

textarea.form-control {
  min-height: 136px;
  resize: vertical;
}

.error-message {
  display: block;
  font-size: 0.8125rem;
  color: #e11d48;
  margin-top: 6px;
  min-height: 18px;
}

.form-success-banner {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 22px;
  animation: fadeInUp 0.35s ease;
}

.form-success-banner.visible {
  display: flex;
}

.form-success-banner svg {
  width: 24px;
  height: 24px;
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-success-banner h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-success-banner p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-navy);
  color: #cbd5e1;
  padding: 72px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.93rem;
  color: #94a3b8;
  max-width: 300px;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 0.92rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: #94a3b8;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-list svg {
  width: 17px;
  height: 17px;
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-bottom-note {
  color: #94a3b8;
}

/* ==========================================================================
   Animations & Scroll Reveal
   ========================================================================== */

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .service-detail-card,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail-card.reverse .service-detail-media {
    order: 0;
  }

  .cards-grid-4,
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline::before {
    display: none;
  }

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

  .hero-floating-top {
    right: 12px;
  }

  .hero-floating-bottom {
    left: 12px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 8px 0;
  }

  .nav-menu .btn {
    width: 100%;
  }

  .cards-grid-4,
  .cards-grid-3,
  .cards-grid-2,
  .process-timeline,
  .stats-grid,
  .form-row,
  .check-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 44px 24px;
  }

  .contact-form-card,
  .service-detail-card {
    padding: 24px;
  }

  .hero-floating-card {
    position: static;
    margin-top: 14px;
  }

  .hero-frame {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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