/* ==========================================================================
   Technopia — Engineering Digital Futures
   Production Stylesheet
   Modern, Dark-Themed IT Services & Product Engineering
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. GOOGLE FONTS IMPORT
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --------------------------------------------------------------------------
   02. DESIGN TOKENS (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Space Theme */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;

  /* Surfaces & Glassmorphism */
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Brand Accents */
  --accent-cyan: #00d4ff;
  --accent-violet: #7c3aed;
  --accent-cyan-dim: rgba(0, 212, 255, 0.15);
  --accent-violet-dim: rgba(124, 58, 237, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4ff, #7c3aed);
  --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(124, 58, 237, 0.4));

  /* Typography Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Font Families */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows & Glows */
  --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-glow-violet: 0 0 20px rgba(124, 58, 237, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --------------------------------------------------------------------------
   03. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

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

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan-dim);
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   04. TYPOGRAPHY & UTILITIES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   05. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   06. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

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

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* --------------------------------------------------------------------------
   07. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-normal),
              backdrop-filter var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1002;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--accent-cyan);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Links - Mobile default */
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: right 0.4s ease;
  padding: 40px;
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.nav-links.active {
  right: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-cta {
  display: none;
  align-items: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-cta:hover {
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-1px);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1002;
}

.menu-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* --------------------------------------------------------------------------
   08. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 14, 26, 0.8) 75%, var(--bg-primary) 100%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  text-decoration: none;
  cursor: pointer;
}

.scroll-indicator span {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.scroll-dot {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-muted);
  border-radius: 10px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: scrollBounce 2s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   09. COMMON SECTION STYLES
   -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* --------------------------------------------------------------------------
   10. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 212, 255, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-cyan);
}

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

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.08);
  background: rgba(0, 212, 255, 0.25);
}

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-cyan);
  stroke-width: 2;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

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

.service-card:hover .service-link,
.service-link:hover {
  gap: 10px;
  color: #5eead4;
}

.service-card:hover .service-link svg,
.service-link:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   11. PROCESS SECTION
   -------------------------------------------------------------------------- */
.process {
  background: var(--bg-secondary);
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  padding: 0 20px;
}

.process-connector {
  display: none;
  position: absolute;
  top: 52px;
  left: calc(10% + 36px);
  right: calc(10% + 36px);
  height: 2px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-violet));
  z-index: 0;
}

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

.step-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
  letter-spacing: 1px;
}

.step-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.process-step:hover .step-icon-wrapper,
.step-icon-wrapper:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: scale(1.06);
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-cyan);
  stroke-width: 2;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. WHY TECHNOPIA SECTION
   -------------------------------------------------------------------------- */
.why-section {
  background: var(--bg-primary);
}

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

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-violet);
  box-shadow: var(--shadow-glow-violet);
}

.why-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-violet-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition-normal);
}

.why-card:hover .why-icon-wrapper {
  transform: scale(1.08);
}

.why-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-violet);
  stroke-width: 2;
}

/* Alternate card styling for visual rhythm */
.why-card:nth-child(even) .why-icon-wrapper {
  background: var(--accent-cyan-dim);
}

.why-card:nth-child(even) .why-icon {
  color: var(--accent-cyan);
}

.why-card:nth-child(even):hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.why-card:nth-child(odd) .why-icon-wrapper {
  background: var(--accent-violet-dim);
}

.why-card:nth-child(odd) .why-icon {
  color: var(--accent-violet);
}

.why-card:nth-child(odd):hover {
  border-color: var(--accent-violet);
  box-shadow: var(--shadow-glow-violet);
}

.why-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.why-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.why-metric {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-metric-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.counter {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-block;
  line-height: 1;
}

.counter-suffix {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-block;
  line-height: 1;
}

.counter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 6px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   13. PORTFOLIO / CASE STUDIES SECTION
   -------------------------------------------------------------------------- */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--shadow-glow-cyan);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.portfolio-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  width: 100%;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 14, 26, 0.98) 0%,
    rgba(10, 14, 26, 0.6) 45%,
    rgba(10, 14, 26, 0.1) 75%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.portfolio-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.portfolio-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.portfolio-metrics {
  display: flex;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   15. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact {
  background: var(--bg-secondary);
}

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

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

.contact-info-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.contact-info-header p {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  stroke-width: 2;
}

.contact-item-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.contact-item-text a:hover {
  color: var(--accent-cyan);
}

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  background: var(--surface);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

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

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

.form-group.full-width {
  grid-column: span 1;
}

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

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

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 8px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.visible {
  display: block;
  animation: float 3s infinite ease-in-out;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--accent-cyan);
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-column h4,
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-cyan);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

.footer-bottom-links a:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   17. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger delays for grid items */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   18. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.92);
  }
}

@keyframes scrollBounce {
  0%, 100% {
    top: 6px;
    opacity: 1;
  }
  50% {
    top: 16px;
    opacity: 0.3;
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  }
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE BREAKPOINTS (Mobile-First)
   -------------------------------------------------------------------------- */

/* TABLET: min-width 768px */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 100px 0;
  }

  /* Navigation on tablet+ */
  .mobile-menu-btn {
    display: none;
  }

  .nav-links {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 32px;
    padding: 0;
    border-left: none;
    box-shadow: none;
    transition: none;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .nav-cta {
    display: inline-flex;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process Timeline */
  .process-timeline {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
  }

  .process-connector {
    display: block;
  }

  /* Why Grid */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Portfolio Grid */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact Section */
  .contact-container {
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
  }

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

  .form-group.full-width {
    grid-column: span 2;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* DESKTOP: min-width 1024px */
@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Why Grid */
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  /* Portfolio Grid */
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact */
  .contact-container {
    gap: 48px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

/* LARGE DESKTOP: min-width 1280px */
@media (min-width: 1280px) {
  .container {
    padding: 0 40px;
  }
}

/* --------------------------------------------------------------------------
   20. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@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;
  }
}
