:root {
  --bg: #080b12;
  --bg-2: #0d1117;
  --card: rgba(15, 20, 30, 0.8);
  --primary: #4e9eff;
  --primary-dark: #1a6fd4;
  --accent: #00e5ff;
  --text: #e8edf5;
  --muted: #7a8899;
  --border: rgba(255, 255, 255, 0.07);
  --border-active: rgba(78, 158, 255, 0.4);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.4s var(--ease);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 20px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: var(--transition);
}

header .container {
  padding: 0 2rem;
}

header.scrolled {
  background: rgba(10, 14, 24, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(78, 158, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(78, 158, 255, 0.1),
    0 8px 40px rgba(0, 0, 0, 0.5);
}

header.scrolled .logo span { color: var(--primary); }

header.scrolled nav a { color: rgba(232, 237, 245, 0.65); }
header.scrolled nav a:hover { color: #fff; }
header.scrolled nav a::after { background: var(--primary); }

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

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo span { color: var(--primary); }
.footer-logo { font-size: 1.3rem; }

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  position: relative;
  padding: 0.4rem 0;
}

nav a:hover { color: #fff; }

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: 0;
  left: 0;
  background: var(--primary);
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}

nav a:hover::after { width: 100%; }

nav a.active { color: #fff; }
nav a.active::after { width: 100%; }


.nav-cta {
  background: var(--primary-dark) !important;
  color: #fff !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--primary) !important;
  box-shadow: 0 0 20px rgba(78, 158, 255, 0.3) !important;
  transform: translateY(-2px) !important;
}

.nav-cta::after { display: none !important; }

/* =========================================
   LABELS & SECTION TITLES
   ========================================= */
.label-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
}

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

.section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 4rem;
  color: #fff;
  line-height: 1.15;
}

.section-title.left { text-align: left; margin-bottom: 1.5rem; }
.section-title span { color: var(--primary); }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(78,158,255,0.14) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite alternate;
}
.hero-glow-1 { width: min(800px, 100vw); height: min(800px, 100vw); background: var(--primary); top: -300px; left: -300px; }
.hero-glow-2 { width: min(600px, 80vw); height: min(600px, 80vw); background: var(--accent); bottom: -200px; right: -200px; animation-delay: -4s; }

@keyframes pulse {
  from { opacity: 0.07; transform: scale(0.95); }
  to   { opacity: 0.16; transform: scale(1.05); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: start;
  gap: 4rem;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 100px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  will-change: auto;
}

.hero-left * {
  min-width: 0;
}


@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s var(--ease) 0.15s both;
  letter-spacing: -1px;
}

.hero-title-accent {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s var(--ease) 0.45s both;
}


.hero-right {
  animation: fadeUp 0.9s var(--ease) 0.3s both;
  width: 520px;
  max-width: 100%;
  flex-shrink: 0;
  align-self: start;
}

.code-banner {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 60px rgba(78,158,255,0.05);
}

.mac-bar {
  background: #1e2228;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  user-select: none;
}

.mac-dots { display: flex; align-items: center; gap: 8px; }

.mac-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: block;
}

.mac-close    { background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.25); }
.mac-minimize { background: #febc2e; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.25); }
.mac-maximize { background: #28c840; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.25); }

.mac-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.3px;
}

.mac-spacer { width: 58px; }

.mac-body {
  background: #0d1117;
  display: flex;
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.mac-body::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; width: 90%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78,158,255,0.12), transparent);
}

.line-numbers {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 0 1.2rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  min-width: 48px;
  text-align: right;
  flex-shrink: 0;
}

.line-numbers span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75rem;
  color: rgba(255,255,255,0.15);
  display: block;
}

.code-area {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.75rem;
  color: #e6edf3;
  padding: 0 1.5rem 0 1.2rem;
  margin: 0;
  white-space: pre;
  overflow-x: auto;
  background: transparent;
  border: none;
  outline: none;
}

.code-area .kw   { color: #ff7b72; font-weight: 600; }
.code-area .fn   { color: #d2a8ff; }
.code-area .prop { color: #79c0ff; }
.code-area .str  { color: #a5d6ff; }
.code-area .cmt  { color: #56d364; font-style: italic; }
.code-area .pun  { color: #e6edf3; opacity: 0.55; }
.code-area .var  { color: #ffa657; }

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--primary);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  animation: fadeUp 1s var(--ease) 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%       { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.btn {
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(78, 158, 255, 0.35);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(78, 158, 255, 0.06);
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.2rem 2.8rem;
  font-size: 1.05rem;
}

.about-wrapper {
  display: flex;
  gap: 5rem;
  align-items: center;
}

.about-img-container {
  flex: 0 0 360px;
  position: relative;
}

.about-img-inner {
  position: relative;
  width: 360px;
  height: 420px;
}

.about-blob {
  position: absolute;
  inset: -20px;
  border: 1.5px solid var(--primary);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blob 12s infinite alternate;
  opacity: 0.5;
}

.about-img {
  width: 100%;
  height: 100%;
  background: #0d1117;
  border-radius: 24px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#terminal-section {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.terminal-window {
  max-width: 860px;
  margin: 0 auto;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.terminal-bar {
  background: #161b22;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.terminal-body {
  padding: 2rem 2.5rem 2.5rem;
  min-height: 340px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.9;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.terminal-line {
  display: block;
  animation: fadeInLine 0.05s ease both;
}

.t-comment  { color: #3d5a80; }
.t-keyword  { color: #ff7b72; }
.t-string   { color: #a5d6ff; }
.t-fn       { color: #d2a8ff; }
.t-var      { color: #ffa657; }
.t-value    { color: #79c0ff; }
.t-green    { color: #56d364; }
.t-muted    { color: #484f58; }
.t-white    { color: #e6edf3; }
.t-prompt   { color: #58a6ff; }

  to   { opacity: 1; }


.terminal-cursor-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.terminal-prompt { color: var(--primary); }

.terminal-blink {
  color: var(--primary);
  animation: blink-cursor 1s step-end infinite;
}



@media (max-width: 768px) {
  .mac-body { padding: 1.2rem 0; }
  .code-area { font-size: 0.75rem; padding: 0 1rem; line-height: 1.6rem; }
  .line-numbers { min-width: 36px; padding: 0 0.6rem 0 0.8rem; }
  .line-numbers span { line-height: 1.6rem; font-size: 0.72rem; }
}

@keyframes blob {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 60% 40% 70%; }
}

.float-badge {
  position: absolute;
  z-index: 10;
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid var(--border-active);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.float-badge i { color: var(--primary); }

.float-badge-1 {
  top: 30px;
  right: -30px;
  animation: float 5s ease-in-out infinite;
}

.float-badge-2 {
  bottom: 60px;
  left: -30px;
  animation: float 5s ease-in-out infinite reverse;
}

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

.about-text {
  flex: 1;
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.about-text p strong { color: #fff; }

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.5rem;
}

.skills-pills span {
  background: rgba(78, 158, 255, 0.08);
  border: 1px solid var(--border-active);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.skills-pills span:hover {
  background: rgba(78, 158, 255, 0.15);
  transform: translateY(-2px);
}

#services {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-big {
  grid-column: span 6;
}

.service-card:not(.service-big) {
  grid-column: span 3;
}

.service-card:hover {
  border-color: var(--border-active);
  background: rgba(20, 27, 40, 0.9);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(78, 158, 255, 0.1);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.service-icon-wrap i {
  font-size: 1.4rem;
  color: var(--primary);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

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

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list li {
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-list li i {
  color: #22c55e;
  font-size: 0.8rem;
}

.service-time {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  cursor: pointer;
}

.project-card.featured {
  grid-column: span 8;
}

.project-card.no-link {
  cursor: default;
}

.project-card:not(.no-link):hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.project-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #0d1117;
}

.project-card.featured .project-media {
  height: 300px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.project-card:not(.no-link):hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-overlay.private {
  opacity: 1;
  background: rgba(8, 11, 18, 0.5);
}

.project-overlay.private span {
  color: var(--muted);
  font-size: 0.85rem;
}

.project-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 5px;
  background: rgba(78, 158, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(78, 158, 255, 0.2);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.project-info h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  transition: var(--transition);
}

.project-card:hover h3 { color: var(--primary); }

.project-info p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.project-link {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  transition: var(--transition);
}

.project-card:hover .project-link {
  gap: 0.7rem;
}

#testimonials {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.featured-testimonial {
  border-color: var(--border-active);
  background: linear-gradient(135deg, rgba(30, 58, 100, 0.4), rgba(13, 17, 23, 0.9));
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.clients-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.client-logo-item {
  position: relative;
}

.client-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 20, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.client-card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; width: 70%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78,158,255,0.25), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.client-card-inner:hover {
  border-color: rgba(78, 158, 255, 0.3);
  background: rgba(20, 28, 48, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(78,158,255,0.06);
}

.client-card-inner:hover::before {
  opacity: 1;
}

.client-img-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition);
}

.client-card-inner:hover .client-img-wrap {
  border-color: rgba(78,158,255,0.3);
}

.client-img-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: var(--transition);
}

.client-card-inner:hover .client-img-wrap img {
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.client-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.client-info strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.client-card-inner:hover .client-info strong {
  color: #fff;
}

.client-info span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.process-grid {
  display: flex;
  align-items: center;
  gap: 0;
}

.process-step {
  flex: 1;
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.process-step:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(78, 158, 255, 0.15);
  margin-bottom: 1rem;
  line-height: 1;
}

.process-step h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

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

.process-arrow {
  color: var(--border-active);
  font-size: 1.2rem;
  flex-shrink: 0;
  padding: 0 1rem;
}

#contact {
  padding: 0;
}

.contact-inner {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 40, 80, 0.4) 0%, rgba(8, 11, 18, 0.95) 100%);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.contact-content h2 span { color: var(--primary); }

.contact-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-ctas {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-extras {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-extra-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-extra-item i { color: var(--primary); }

.footer-site {
  background: #040609;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-left p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-nav-main {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-nav-main a:hover { color: #fff; }


.footer-right {
  display: flex;
  align-items: center;
}

.footer-social-main {
  display: flex;
  gap: 1rem;
}

.footer-social-main a {
  width: 42px;
  height: 42px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social-main a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(78, 158, 255, 0.15);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.5;
}

#btn-mobile {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 1001;
}

#btn-mobile.active {
  color: var(--primary);
  transform: rotate(90deg);
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-big { grid-column: span 2; }
  .service-card:not(.service-big) { grid-column: span 1; }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-img-container { flex: 0 0 300px; }
  .about-img-inner { width: 300px; height: 360px; }
}

@media (max-width: 992px) {
  .container { padding: 80px 1.5rem; }


  #btn-mobile { display: block; margin-left: auto; }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(8, 11, 18, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s var(--ease);
  }

  nav ul.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav a { font-size: 1.1rem; display: block; width: 100%; }
  nav a::after { display: none; }

  .about-wrapper { flex-direction: column; }
  .about-img-container { flex: none; width: 100%; display: flex; justify-content: center; }
  .about-img-inner { width: 280px; height: 320px; }

  .float-badge-1 { right: 0; }
  .float-badge-2 { left: 0; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.featured { grid-column: span 1; }
  .project-card.featured .project-media { height: 250px; }

  .process-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .process-arrow { transform: rotate(90deg); }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
}

@media (max-width: 860px) {
  .container { padding: 60px 1.25rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 100px;
    padding-bottom: 60px;
    gap: 2.5rem;
  }

  .hero-title { font-size: 2.4rem; }

  .hero-sub { max-width: 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .service-big, .service-card:not(.service-big) { grid-column: span 1; }

  .cta-group, .contact-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn, .btn-large { width: 100%; justify-content: center; }

  .contact-extras { flex-direction: column; gap: 1rem; align-items: center; }

  .clients-logos { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .footer-nav-main { flex-direction: column; gap: 1rem; }

  .hero-inner {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
  }
  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .hero-left * { min-width: unset; }
  .hero-sub { text-align: center; max-width: 100%; }
  .cta-group { justify-content: center; }
  .hero-metrics { justify-content: center; }
  .hero-right { width: 100% !important; max-width: 100% !important; }
  .section-title { font-size: 2rem; }
  .process-grid { gap: 0.75rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-text p { font-size: 0.95rem; }
  .skills-pills { gap: 0.5rem; }
  .skills-pills span { font-size: 0.75rem; padding: 0.35rem 0.85rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.85rem; letter-spacing: -0.5px; }
  .hero-sub { font-size: 0.93rem; }
  .section-title { font-size: 1.75rem; }
  .about-img-inner { width: 240px; height: 280px; }
  .float-badge { display: none; }
  .hero-metrics { gap: 0; flex-wrap: nowrap; justify-content: space-between; width: 100%; }
  .metric { padding-right: 0; align-items: center; flex: 1; }
  .metric strong { font-size: 1.5rem; }
  .metric-sep { display: none; }
  .clients-logos { grid-template-columns: 1fr 1fr; }
  .client-card-inner { padding: 0.9rem 1rem; gap: 0.7rem; }
  .client-img-wrap { width: 36px; height: 36px; }
  .client-info strong { font-size: 0.78rem; }
  .client-info span { font-size: 0.65rem; }
  .step-number { font-size: 2rem; }
  .contact-inner { padding: 4rem 1.25rem; }
  .contact-inner h2 { font-size: 1.7rem; }
  .footer-inner { gap: 1.5rem; }
  .footer-logo { font-size: 1.2rem; }
}