/* ==========================================================================
   CSS Variables & Design Tokens
   Dark mode palette inspired by Dart, Swift, and Kotlin
   ========================================================================== */
:root {
  /* Background Colors */
  --bg-dark: #0a0b0f;
  --bg-surface: #111218;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  /* Mobile Language Colors */
  --color-dart: #0175C2;         /* Dart Primary Blue */
  --color-dart-light: #56B9E8;   /* Dart Light Blue/Cyan */
  --color-swift: #F05138;        /* Swift Vibrant Coral */
  --color-swift-warm: #FA7343;   /* Swift Warm Orange */
  --color-kotlin: #7F52FF;       /* Kotlin Electric Purple */
  --color-kotlin-pink: #C711E1;  /* Kotlin Vibrant Pink/Magenta */

  /* Backend & Framework Colors */
  --color-flutter: #29B6F6;      /* Flutter Sky Blue */
  --color-ios: #f5f5f7;          /* iOS Apple Silver-White */
  --color-android: #3DDC84;      /* Android Green */
  --color-supabase: #3ECF8E;     /* Supabase Emerald */
  --color-firebase: #FFA000;     /* Firebase Amber */

  /* Gradients */
  --gradient-mobile: linear-gradient(135deg, var(--color-swift) 0%, var(--color-kotlin-pink) 38%, var(--color-kotlin) 72%, var(--color-dart) 100%);
  --gradient-ring: linear-gradient(135deg, #F05138, #C711E1, #7F52FF, #0175C2);
  --gradient-glow: radial-gradient(circle at 50% 20%, rgba(127, 82, 255, 0.15) 0%, rgba(240, 81, 56, 0.08) 32%, rgba(1, 117, 194, 0.05) 60%, transparent 80%);

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

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 255, 255, 0.35);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed 72px header */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-dark);
}

/* Ambient Radial Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* ==========================================================================
   Header & Navigation
   Clean, centered, transparent glassmorphism (No Logo as requested)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 11, 15, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  width: 100%;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.nav-item {
  display: inline-block;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  transition: color var(--transition-fast), background-color var(--transition-fast), text-shadow var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--gradient-mobile);
  border-radius: 2px;
}

/* ==========================================================================
   Hero / Home Section
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 2.5rem;
}

.hero-container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Avatar with Mobile Language Gradient Glow */
.avatar-wrapper {
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-ring {
  position: relative;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  padding: 3.5px;
  background: var(--gradient-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 30px rgba(240, 81, 56, 0.28),
    0 0 50px rgba(127, 82, 255, 0.22),
    0 0 70px rgba(1, 117, 194, 0.18);
  transition: transform var(--transition-bounce), box-shadow var(--transition-normal);
}

.avatar-ring:hover {
  transform: scale(1.04);
  box-shadow: 
    0 0 35px rgba(240, 81, 56, 0.4),
    0 0 60px rgba(127, 82, 255, 0.35),
    0 0 85px rgba(1, 117, 194, 0.3);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background-color: var(--bg-surface);
  display: block;
}

/* Headline */
.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

/* Gradient text accent (Swift coral -> Kotlin purple -> Dart cyan) */
.gradient-text {
  background: var(--gradient-mobile);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 800;
  padding-right: 0.05em;
}

/* Bio description */
.hero-description {
  font-size: clamp(0.975rem, 1.8vw, 1.075rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

/* Hero CTA Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: #ffffff;
  color: #0a0b0f;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.28);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Experience Tech Section ("EXPERIENCE WITH")
   ========================================================================== */
.experience-tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tech-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tech-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.tech-card {
  position: relative;
  width: 68px;
  height: 68px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  outline: none;
}

.tech-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(248, 250, 252, 0.72);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.tech-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}

/* Tech Name Label (Subtle tooltip / indicator) */
.tech-name {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.tech-card:hover .tech-name,
.tech-card:focus-visible .tech-name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Individual Tech Brand Colors & Glowing Hover Effects */

/* Dart */
.tech-dart:hover,
.tech-dart:focus-visible {
  border-color: rgba(1, 117, 194, 0.65);
  background-color: rgba(1, 117, 194, 0.08);
  box-shadow: 0 8px 24px rgba(1, 117, 194, 0.25);
  transform: translateY(-4px);
}
.tech-dart:hover .tech-icon-wrapper,
.tech-dart:focus-visible .tech-icon-wrapper {
  color: var(--color-dart-light);
  transform: scale(1.1);
}

/* Flutter */
.tech-flutter:hover,
.tech-flutter:focus-visible {
  border-color: rgba(41, 182, 246, 0.65);
  background-color: rgba(41, 182, 246, 0.08);
  box-shadow: 0 8px 24px rgba(41, 182, 246, 0.25);
  transform: translateY(-4px);
}
.tech-flutter:hover .tech-icon-wrapper,
.tech-flutter:focus-visible .tech-icon-wrapper {
  color: var(--color-flutter);
  transform: scale(1.1);
}

/* iOS */
.tech-ios:hover,
.tech-ios:focus-visible {
  border-color: rgba(245, 245, 247, 0.65);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}
.tech-ios:hover .tech-icon-wrapper,
.tech-ios:focus-visible .tech-icon-wrapper {
  color: var(--color-ios);
  transform: scale(1.1);
}

/* Android */
.tech-android:hover,
.tech-android:focus-visible {
  border-color: rgba(61, 220, 132, 0.65);
  background-color: rgba(61, 220, 132, 0.08);
  box-shadow: 0 8px 24px rgba(61, 220, 132, 0.25);
  transform: translateY(-4px);
}
.tech-android:hover .tech-icon-wrapper,
.tech-android:focus-visible .tech-icon-wrapper {
  color: var(--color-android);
  transform: scale(1.1);
}

/* Supabase */
.tech-supabase:hover,
.tech-supabase:focus-visible {
  border-color: rgba(62, 207, 142, 0.65);
  background-color: rgba(62, 207, 142, 0.08);
  box-shadow: 0 8px 24px rgba(62, 207, 142, 0.25);
  transform: translateY(-4px);
}
.tech-supabase:hover .tech-icon-wrapper,
.tech-supabase:focus-visible .tech-icon-wrapper {
  color: var(--color-supabase);
  transform: scale(1.1);
}

/* Firebase */
.tech-firebase:hover,
.tech-firebase:focus-visible {
  border-color: rgba(255, 160, 0, 0.65);
  background-color: rgba(255, 160, 0, 0.08);
  box-shadow: 0 8px 24px rgba(255, 160, 0, 0.25);
  transform: translateY(-4px);
}
.tech-firebase:hover .tech-icon-wrapper,
.tech-firebase:focus-visible .tech-icon-wrapper {
  color: var(--color-firebase);
  transform: scale(1.1);
}

/* ==========================================================================
   Process Section (4D Method: Define, Design, Develop, Deliver)
   ========================================================================== */
.process-section {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 3.5rem;
}

.process-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Header */
.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-swift-warm);
  background: rgba(250, 115, 67, 0.08);
  border: 1px solid rgba(250, 115, 67, 0.22);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.process-main-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.process-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Process Card */
.process-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition-bounce), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 115, 67, 0.35);
  background-color: var(--bg-card-hover);
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(250, 115, 67, 0.12);
}

/* Card Media / Image Frame */
.process-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0b0c11;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card Content */
.process-content {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.process-step {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-swift-warm);
  margin-bottom: 0.45rem;
  display: block;
}

.process-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.process-desc {
  font-size: 0.885rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 270px;
}

/* ==========================================================================
   Section Placeholders (Prepared for subsequent steps)
   ========================================================================== */
.section-placeholder {
  min-height: 20px;
  position: relative;
}

/* Anchor scroll offset — compensates for the 72px fixed header on all sections */
.hero-section,
.work-section,
.process-section,
.contact-section {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   Work Section
   ========================================================================== */
.work-section {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 3.5rem;
}

.work-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.work-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.work-main-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.work-subtitle {
  font-size: clamp(0.975rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* Grid — 2 equal columns on desktop, centered single column when 1 project */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work-grid:has(.project-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 460px;
  margin: 0 auto;
}

/* Project Card */
.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition-bounce), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  background-color: var(--bg-card-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.65);
}

/* Project Preview Media */
.project-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background-color: #0b0c11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  text-decoration: none;
}

.project-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-preview-img {
  transform: scale(1.04);
}

/* Top row: icon + name/tagline */
.project-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-icon-wrap {
  flex-shrink: 0;
}

.project-app-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(41, 182, 246, 0.28));
}

.project-logo-warm {
  filter: drop-shadow(0 4px 10px rgba(250, 115, 67, 0.35));
}

.project-icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.project-icon-blue  { background: linear-gradient(135deg, #0175C2, #29B6F6); }
.project-icon-green { background: linear-gradient(135deg, #3ECF8E, #00b894); }

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.project-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.project-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Tech stack */
.project-stack {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Tag pills */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-ios     { background: rgba(41, 182, 246, 0.12); color: #29B6F6; border: 1px solid rgba(41, 182, 246, 0.28); }
.tag-android { background: rgba(61, 220, 132, 0.12); color: #3DDC84; border: 1px solid rgba(61, 220, 132, 0.28); }
.tag-neutral { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

/* Bottom row: Stats and Action button together */
.project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: 0.15rem;
}

.project-stats {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.stat-accent {
  color: #29B6F6;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1;
}

/* Action row */
.project-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-case-study {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-case-study:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-case-study-accent {
  background: linear-gradient(135deg, #0175C2, #29B6F6);
  color: #fff;
  border-color: transparent;
}

.btn-case-study-accent:hover {
  opacity: 0.88;
  background: linear-gradient(135deg, #0175C2, #29B6F6);
  border-color: transparent;
}

.btn-open {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.btn-open:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 4rem;
}

.contact-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-main-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.contact-subtitle {
  font-size: clamp(0.975rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* Row of contact cards */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1.25rem 1.5rem;
  align-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  flex: 1;
  min-width: 240px;
}

.contact-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.contact-card-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.4);
  background-color: rgba(37, 211, 102, 0.06);
}

.contact-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  flex-shrink: 0;
}

.contact-card-whatsapp .contact-icon-wrap {
  color: #25D366;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1080px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
    padding: 0 1rem;
  }

  .nav-menu {
    gap: 1.15rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }

  /* Tighten scroll offset for smaller header on mobile */
  html {
    scroll-padding-top: 72px;
  }

  .hero-section,
  .work-section,
  .process-section,
  .contact-section {
    scroll-margin-top: 72px;
  }

  .hero-section {
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }

  .avatar-ring {
    width: 120px;
    height: 120px;
  }

  .hero-title {
    margin-bottom: 1rem;
  }

  .hero-description {
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    gap: 0.75rem;
    margin-bottom: 3rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .tech-grid {
    gap: 1rem;
  }

  .tech-card {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .tech-icon-wrapper {
    width: 26px;
    height: 26px;
  }

  .tech-icon {
    width: 24px;
    height: 24px;
  }

  /* Process Section Tablet */
  .process-section {
    padding: 2rem 1.25rem 2.5rem;
  }

  .process-header {
    margin-bottom: 3rem;
  }

  .process-desc {
    max-width: 100%;
  }

  /* Work Section Tablet */
  .work-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .work-grid:has(.project-card:only-child) {
    max-width: 460px;
  }

  .work-section {
    padding: 2rem 1.25rem 2.5rem;
  }

  /* Contact Tablet */
  .contact-section {
    padding: 2rem 1.25rem 3rem;
  }

  .contact-card {
    min-width: 200px;
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
    gap: 1.25rem;
  }

  .process-card {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .process-media {
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
  }

  .avatar-ring {
    width: 108px;
    height: 108px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .tech-grid {
    gap: 0.85rem;
  }

  .tech-card {
    width: 56px;
    height: 56px;
  }

  /* Contact stacked on mobile */
  .contact-row {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card {
    min-width: unset;
    flex: unset;
    justify-content: center;
  }

  /* Work card bottom row on mobile */
  .project-bottom {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .project-actions {
    flex-wrap: wrap;
  }
}

