/* ==========================================================================
   Modern Minimalist Tech & Gaming Portfolio CSS
   Premium dark slate aesthetic with refined lighting, smooth micro-interactions,
   subtle glassmorphism, fluid typography, and bespoke motion design.
   Strictly preserving all existing layout, content, and component structures.
   ========================================================================== */

:root {
  /* Clean Dark Mode Palette with Depth */
  --bg-primary: #080b11;
  --bg-secondary: #0e131d;
  --bg-surface: #121927;
  --bg-card: rgba(16, 23, 37, 0.72);
  --bg-card-hover: rgba(22, 32, 51, 0.86);
  --bg-elevated: rgba(26, 37, 59, 0.65);
  
  /* Borders with Subtle Gradient Highlights */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(99, 102, 241, 0.38);
  --border-glow: rgba(99, 102, 241, 0.2);

  /* Sophisticated Accents */
  --accent-primary: #6366f1;       /* Indigo 500 */
  --accent-primary-hover: #4f46e5; /* Indigo 600 */
  --accent-primary-light: #818cf8; /* Indigo 400 */
  --accent-cyan: #06b6d4;          /* Cyan 500 */
  --accent-cyan-light: #38bdf8;    /* Cyan 400 */
  --accent-green: #10b981;         /* Emerald 500 */
  --accent-green-light: #34d399;   /* Emerald 400 */
  --accent-purple: #8b5cf6;        /* Purple 500 */

  /* Text Colors */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Easing & Timing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-spring);
  --transition-smooth: 0.38s var(--ease-spring);
  --transition-slow: 0.6s var(--ease-smooth);

  /* Depth Shadows & Ambient Glows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-card-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.75), 0 0 24px rgba(99, 102, 241, 0.16);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.2);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.18);
  --shadow-glow-green: 0 0 25px rgba(16, 185, 129, 0.22);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Advanced Custom Cursor System (Hardware Accelerated, Non-blocking)
   ========================================================================== */
.cursor-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-primary-light);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.3s ease, transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease;
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.95);
  will-change: left, top, transform;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(129, 140, 248, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s var(--ease-spring),
              height 0.3s var(--ease-spring),
              border-color 0.3s ease,
              background-color 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.3s ease;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.12);
  will-change: left, top, transform;
}

/* Cursor Interactive States */
.cursor-ring.cursor-hover {
  width: 58px;
  height: 58px;
  border-color: rgba(99, 102, 241, 0.85);
  background-color: rgba(99, 102, 241, 0.08);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.cursor-dot.cursor-hover {
  transform: translate3d(-50%, -50%, 0) scale(1.6);
  background-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
}

.cursor-ring.cursor-click {
  transform: translate3d(-50%, -50%, 0) scale(0.82);
  border-color: var(--accent-cyan-light);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.cursor-dot.cursor-click {
  transform: translate3d(-50%, -50%, 0) scale(0.7);
  background-color: var(--accent-cyan-light);
}

/* Mobile & Touch Guard */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Background Mesh & Refined Ambient Lighting
   ========================================================================== */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Subtle organic grid texture for tactile depth */
.bg-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, black 40%, transparent 85%);
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(140px);
  opacity: 0.32;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.blob-1 {
  width: 620px;
  height: 620px;
  top: -180px;
  left: 20%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.38), transparent 70%);
}

.blob-2 {
  width: 520px;
  height: 520px;
  top: 42%;
  right: -120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 70%);
}

.blob-3 {
  width: 640px;
  height: 640px;
  bottom: 8%;
  left: -180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.24), transparent 70%);
}

/* ==========================================================================
   Typography & Balance
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

.text-accent {
  color: var(--accent-primary-light);
}

.text-green {
  color: var(--accent-green);
}

.text-blue {
  color: var(--accent-cyan-light);
}

.text-purple {
  color: var(--accent-purple);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 75%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* ==========================================================================
   Layout Utilities & Smooth Reveal Transitions
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

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

.badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.38rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.28);
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.badge-tag:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.section-title {
  font-size: 2.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Subtle Entrance Reveal State */
.reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-spring), transform 0.75s var(--ease-spring);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   Button Styles & Magnetic Microinteractions
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.82rem 1.65rem;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              transform 0.2s var(--ease-spring),
              box-shadow var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.38), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d70f5 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--accent-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.52rem 1.15rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2.05rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background-color var(--transition-smooth), 
              backdrop-filter var(--transition-smooth), 
              border-color var(--transition-smooth),
              padding var(--transition-smooth),
              box-shadow var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 11, 17, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  padding: 0.85rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary-light);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.28rem 0.62rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.brand:hover .brand-badge {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.brand-name {
  color: #fff;
  transition: opacity var(--transition-fast);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary-light);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast), left var(--transition-fast);
}

.nav-links a:not(.btn):hover {
  color: #ffffff;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
  left: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: color var(--transition-fast);
}

.mobile-toggle:hover {
  color: var(--accent-primary-light);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  width: 100%;
  background: rgba(14, 19, 29, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.mobile-nav-links a:hover {
  color: #fff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: 9.5rem;
  padding-bottom: 5.5rem;
  text-align: center;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.status-pill:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.55rem;
  max-width: 920px;
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin-bottom: 1.65rem;
  font-weight: 800;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.8rem;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 4.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Metrics Bar */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1020px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.6rem 1.2rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-card-hover);
}

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

.metric-value {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 0.84rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Services Cards
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card-hover);
}

.service-card.featured {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(180deg, rgba(28, 38, 60, 0.85) 0%, rgba(16, 23, 37, 0.85) 100%);
  box-shadow: 0 12px 35px -10px rgba(99, 102, 241, 0.25), var(--shadow-card);
}

.service-card.featured:hover {
  box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.38), var(--shadow-glow);
}

.popular-ribbon {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.6rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover .service-icon {
  transform: scale(1.06);
}

.mc-icon {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.bot-icon {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.web-icon {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.15);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: auto;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.5;
}

.service-list li i {
  color: var(--accent-green);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Showcase / Terminal
   ========================================================================== */
.terminal-wrapper {
  background: #0b0f19;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 35px rgba(0, 0, 0, 0.6);
  position: relative;
}

.terminal-header {
  background: #111726;
  padding: 0.95rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.dot:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.terminal-badge {
  font-size: 0.68rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 1.6rem 2rem;
}

.terminal-tabs {
  display: flex;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all var(--transition-fast);
  user-select: none;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.45);
  color: #e0e7ff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
}

.tab-content {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.85;
}

.tab-content.active {
  display: block;
  animation: fadeInTerminal 0.35s ease;
}

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

.console-line {
  margin-bottom: 0.4rem;
  word-break: break-all;
}

.c-dim { color: #64748b; }
.c-blue { color: #60a5fa; }
.c-cyan { color: #38bdf8; }
.c-green { color: #4ade80; }
.c-yellow { color: #fbbf24; }

.console-summary {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.sum-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Featured Projects
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card-hover);
}

.project-preview {
  height: 185px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.3rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 13, 20, 0.6) 100%);
  pointer-events: none;
}

.preview-mc {
  background: linear-gradient(135deg, #10241b, #0c1422);
  border-bottom: 1px solid rgba(16, 185, 129, 0.22);
}

.preview-bot {
  background: linear-gradient(135deg, #1d1b4b, #0c1422);
  border-bottom: 1px solid rgba(99, 102, 241, 0.25);
}

.preview-web {
  background: linear-gradient(135deg, #0d2938, #0c1422);
  border-bottom: 1px solid rgba(6, 182, 212, 0.22);
}

.preview-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  z-index: 1;
}

.preview-stats {
  display: flex;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: #e2e8f0;
  font-weight: 500;
  z-index: 1;
}

.preview-stats span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-body {
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.project-card:hover .project-title {
  color: #fff;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* ==========================================================================
   Tech Stack Columns
   ========================================================================== */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tech-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.tech-col:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-card-hover);
}

.category-heading {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.badge-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: default;
}

.badge-item:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* ==========================================================================
   Pricing / Packages
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.highlighted {
  background: linear-gradient(180deg, #182239 0%, #0f1625 100%);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 14px 45px -12px rgba(99, 102, 241, 0.35), var(--shadow-card);
}

.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.32rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

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

.plan-name {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pricing-points {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 2.4rem;
  flex: 1;
}

.price-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.price-feature i {
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Why Work With Me & Live Ping Widget
   ========================================================================== */
.features-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.trust-points {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.trust-item {
  display: flex;
  gap: 1.3rem;
  transition: transform var(--transition-fast);
}

.trust-item:hover {
  transform: translateX(4px);
}

.trust-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary-light);
  flex-shrink: 0;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.trust-item:hover .trust-icon {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.trust-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Server Box Preview */
.server-card-box {
  background: #0f1523;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-card), 0 0 35px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.server-card-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
}

.server-box-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.9rem;
}

.server-avatar {
  width: 54px;
  height: 54px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--accent-green);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.server-box-title {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.server-box-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite;
}

.server-box-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 1.3rem 1rem;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.server-copy-action {
  display: flex;
  gap: 0.65rem;
}

.ip-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.ip-input:focus {
  border-color: var(--accent-primary-light);
}

.copy-success-message {
  font-size: 0.82rem;
  color: var(--accent-green);
  margin-top: 0.65rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.copy-success-message.visible {
  opacity: 1;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.contact-box-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  line-height: 1.55;
}

.direct-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.95rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), 
              border-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.direct-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.direct-icon {
  font-size: 1.35rem;
  color: var(--accent-primary-light);
  width: 28px;
  text-align: center;
}

.direct-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.direct-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Form */
.project-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(9, 13, 20, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.05rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-group select option {
  background: #111726;
  color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary-light);
  background: rgba(14, 20, 31, 0.95);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.form-feedback {
  font-size: 0.9rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  display: none;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  animation: fadeInTerminal 0.3s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.8rem 0 2rem;
  background: #06090e;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-socials {
  display: flex;
  gap: 1.1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
  border-color: var(--accent-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.85rem;
  }
  .services-grid,
  .projects-grid,
  .pricing-grid,
  .tech-categories {
    grid-template-columns: 1fr;
  }
  .features-split {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-desc {
    font-size: 1.05rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
