/* ==========================================================================
   MR TECH — Master Stylesheet (Cyber Obsidian Edition)
   Mobile-First, Edge-to-Edge Responsive, Zero-Clipping Layout System
   Theme: Deep Obsidian & Cyber Black with Electric Cyan (#00F0FF),
          Neon Violet (#8B5CF6), and Cyber Gold (#F59E0B) Accents
   Author: Mijanur Rahman (Web & Mobile App Developer)
   ========================================================================== */

:root {
  --bg-dark: #040711;
  --bg-card: #090E1D;
  --bg-card-hover: #10182E;
  --bg-surface: #0E1626;
  --border-subtle: rgba(139, 92, 246, 0.2);
  --border-active: rgba(0, 240, 255, 0.55);
  --border-gold: rgba(245, 158, 11, 0.45);
  
  --accent-cyan: #00F0FF;
  --accent-cyan-glow: rgba(0, 240, 255, 0.4);
  --accent-purple: #8B5CF6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-violet: #6366F1;
  --accent-gold: #F59E0B;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-green: #10B981;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.glow-orb-1 {
  position: absolute;
  top: -10vw;
  right: -5vw;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(4, 7, 17, 0) 70%);
  filter: blur(85px);
}

.glow-orb-2 {
  position: absolute;
  top: 35vh;
  left: -15vw;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.13) 0%, rgba(4, 7, 17, 0) 70%);
  filter: blur(95px);
}

.glow-orb-3 {
  position: absolute;
  bottom: -10vh;
  right: 15vw;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.09) 0%, rgba(4, 7, 17, 0) 70%);
  filter: blur(85px);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: var(--transition-fast);
  background: rgba(4, 7, 17, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.header.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--border-active);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1A1838 0%, #090E1D 100%);
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan-glow);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
  animation: badge-glow-anim 3.5s ease-in-out infinite alternate;
}

@keyframes badge-glow-anim {
  0% {
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
    border-color: var(--accent-cyan);
  }
  50% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    border-color: var(--accent-purple);
  }
  100% {
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
    border-color: var(--accent-gold);
  }
}

.brand-text {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #FFFFFF;
}

.tech-pill-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  min-height: 40px;
  min-width: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  outline: none;
  min-height: 48px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #00F0FF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 22px var(--accent-purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-cyan-glow);
}

.btn-outline {
  background: rgba(9, 14, 29, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 50%, #FBBF24 100%);
  color: #040711;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--accent-gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
  min-height: 40px;
}

/* Sections Base */
section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
  scroll-margin-top: 85px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 0.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.section-title span {
  background: linear-gradient(90deg, #FFFFFF, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.6;
}

/* ==========================================================================
   Hero Section (Ultra Mobile Responsive & Zero Clipping)
   ========================================================================== */
.hero-section {
  padding-top: 7.5rem;
  padding-bottom: 4.5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  animation: pulse-ring 2s infinite;
  flex-shrink: 0;
}

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

.hero-greeting {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.hero-name {
  font-size: clamp(2rem, 7vw, 3.85rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 0.65rem;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-name .highlight {
  background: linear-gradient(135deg, #FFFFFF 15%, var(--accent-cyan) 60%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-role-wrapper {
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.role-typing {
  color: var(--accent-cyan);
  border-right: 3px solid var(--accent-purple);
  padding-right: 4px;
  animation: blink-caret 0.75s step-end infinite;
  word-break: break-word;
  overflow-wrap: break-word;
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-purple); }
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  width: 100%;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual & Profile Avatar */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.avatar-stage {
  position: relative;
  width: 330px;
  height: 330px;
  max-width: 82vw;
  max-height: 82vw;
  margin: 0 auto;
  animation: stage-intro-float 6s ease-in-out infinite;
}

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

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-gold) 100%);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.3), 0 0 25px rgba(139, 92, 246, 0.25);
  animation: morph-frame 8s ease-in-out infinite;
  overflow: hidden;
  margin: 0 auto;
}

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

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Floating Tech Badges (Border-Hugging & Synced with Morphing Frame) */
.floating-pill {
  position: absolute;
  background: rgba(9, 14, 29, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.38);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.65);
  z-index: 3;
  white-space: nowrap;
}

.pill-1 {
  top: 5%;
  left: -14%;
  animation: pill-orbit-1 8s ease-in-out infinite;
}

.pill-2 {
  bottom: 20%;
  right: -18%;
  animation: pill-orbit-2 8s ease-in-out infinite;
}

.pill-3 {
  bottom: 12%;
  left: -18%;
  animation: pill-orbit-3 8s ease-in-out infinite;
}

@keyframes pill-orbit-1 {
  0%, 100% { transform: translate(4px, 4px); }
  50% { transform: translate(-6px, -5px); }
}

@keyframes pill-orbit-2 {
  0%, 100% { transform: translate(-4px, -3px); }
  50% { transform: translate(5px, 5px); }
}

@keyframes pill-orbit-3 {
  0%, 100% { transform: translate(4px, -3px); }
  50% { transform: translate(-5px, 4px); }
}

/* ==========================================================================
   About Me Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-gold));
}

.about-headline {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.15rem;
  color: var(--text-main);
}

.about-bio {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: auto;
}

.highlight-box {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.highlight-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.highlight-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.value-item:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.value-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

/* ==========================================================================
   Skills Section (Zero-Clipping Auto-Adjusting Cards)
   ========================================================================== */
#skills {
  scroll-margin-top: 85px;
}

.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.15rem;
  width: 100%;
}

.skill-card {
  background: rgba(14, 22, 38, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  overflow: hidden;
}

.skill-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -10px rgba(0, 240, 255, 0.25);
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  width: 100%;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 0;
}

.skill-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.12);
}

.skill-icon {
  font-size: 1.25rem;
  color: var(--accent-cyan);
}

.skill-meta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 0;
}

.skill-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
}

.skill-cat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.skill-stat-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.skill-percent {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: monospace;
  white-space: nowrap;
}

.skill-badge {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.15rem 0.48rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.18);
  color: #DDD6FE;
  border: 1px solid rgba(139, 92, 246, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.skill-bar-container {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  transition: width 1s ease-in-out;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.project-filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.project-filter-btn:hover,
.project-filter-btn.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--accent-purple);
  color: #DDD6FE;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  width: 100%;
  max-width: 100%;
}

.project-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7);
}

.project-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #060A14;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-status-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-completed { background: rgba(16, 185, 129, 0.92); color: #FFFFFF; }
.status-production { background: rgba(0, 240, 255, 0.92); color: #040711; }
.status-enterprise { background: rgba(139, 92, 246, 0.92); color: #FFFFFF; }
.status-demo { background: rgba(245, 158, 11, 0.92); color: #040711; }
.status-development { background: rgba(100, 116, 139, 0.92); color: #FFFFFF; }
.status-active { background: rgba(99, 102, 241, 0.92); color: #FFFFFF; }

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

.project-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text-main);
  word-break: break-word;
}

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

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.tech-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-links .btn {
  flex: 1;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px var(--accent-purple-glow);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(0, 240, 255, 0.12) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

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

.service-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-deliverables li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: #CBD5E1;
}

.service-deliverables li i {
  color: var(--accent-cyan);
  font-size: 0.78rem;
}

/* ==========================================================================
   Experience / Timeline Section
   ========================================================================== */
.timeline-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 60%, rgba(139, 92, 246, 0.1) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.timeline-period {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.timeline-context {
  font-size: 0.9rem;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

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

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-fast);
  word-break: break-word;
}

.contact-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card-content h5 {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.contact-card-content p {
  font-size: 0.98rem;
  font-weight: 600;
  word-break: break-all;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #E2E8F0;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
  background: rgba(14, 22, 38, 1);
}

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

/* ==========================================================================
   PUBLIC LIVE CHAT & 4-STEP SEQUENTIAL LEAD VERIFICATION GATE
   ========================================================================== */
.livechat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #00F0FF 100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.livechat-trigger:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 240, 255, 0.6);
}

.livechat-trigger.dragging {
  cursor: grabbing;
  transform: scale(1.12);
  transition: none;
  box-shadow: 0 16px 42px rgba(0, 240, 255, 0.72), 0 0 0 3px rgba(0, 240, 255, 0.3);
}

.livechat-trigger .badge-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #040711;
  box-shadow: 0 0 8px #10B981;
}

.livechat-dialog {
  position: fixed;
  bottom: 95px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: rgba(9, 14, 29, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 240, 255, 0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chat-popup 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.livechat-dialog.open {
  display: flex;
}

@keyframes chat-popup {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  padding: 0.9rem 1.15rem;
  background: linear-gradient(135deg, rgba(26, 24, 56, 0.95) 0%, rgba(9, 14, 29, 0.95) 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.chat-agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
  flex-shrink: 0;
}

.chat-agent-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
}

.chat-agent-subtitle {
  font-size: 0.74rem;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-agent-subtitle .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  flex-shrink: 0;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.chat-close-btn,
.chat-reset-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.chat-close-btn:hover,
.chat-reset-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

/* Sequential 4-step Lead Gate inside Chat */
.chat-lead-gate {
  flex-grow: 1;
  padding: 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lead-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.lead-progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lead-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  transition: width 0.3s ease;
}

.lead-completed-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lead-done-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.lead-step-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lead-field-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #E2E8F0;
}

.lead-control {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  background: #0E1626;
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.lead-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
}

.lead-control option {
  background: #090E1D;
  color: #FFFFFF;
}

.lead-extra-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.lead-error-box {
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
  font-size: 0.82rem;
  font-weight: 600;
}

.lead-step-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.chat-locked-bar {
  padding: 0.85rem 1.15rem;
  background: rgba(14, 22, 38, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chat-locked-bar i {
  color: var(--accent-gold);
}

.chat-verified-banner {
  padding: 0.55rem 1rem;
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.verified-text {
  font-size: 0.72rem;
  color: #34D399;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-edit-btn {
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--accent-cyan);
  border-radius: 8px;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-quick-chips {
  display: flex;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  background: rgba(14, 22, 38, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}

.chat-quick-chips::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  background: rgba(14, 22, 38, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--accent-cyan);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.quick-chip:hover {
  background: var(--accent-cyan);
  color: #040711;
}

.chat-messages-container {
  flex-grow: 1;
  padding: 1.15rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 84%;
}

.chat-bubble-wrapper.admin {
  align-self: flex-start;
}

.chat-bubble-wrapper.customer {
  align-self: flex-end;
}

.chat-bubble {
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble.admin {
  background: #141E33;
  color: #FFFFFF;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-bottom-left-radius: 3px;
}

.chat-bubble.customer {
  background: linear-gradient(135deg, #7C3AED 0%, #00F0FF 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 3px;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.chat-timestamp {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  padding: 0 0.25rem;
}

.chat-bubble-wrapper.customer .chat-timestamp {
  text-align: right;
}

.chat-input-bar {
  padding: 0.75rem 1rem;
  background: rgba(14, 22, 38, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-input-bar input {
  flex-grow: 1;
  background: #090E1D;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 0.6rem 0.95rem;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--accent-cyan);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 3.5rem 0 2rem;
  background: #020409;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

.social-btn:hover {
  background: var(--accent-cyan);
  color: #040711;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-cyan-glow);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-cyan);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 380px;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: #090E1D;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  animation: toast-in 0.3s ease forwards;
}

.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid #EF4444; }

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLING (Zero Face Overlap & Zero Clipping)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.25rem;
  }
  .hero-tagline {
    margin: 0 auto 2rem;
  }
  .hero-role-wrapper {
    justify-content: center;
  }
  .hero-cta-group,
  .hero-stats {
    justify-content: center;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0;
  }
  .avatar-stage {
    width: clamp(192px, 55vw, 250px);
    height: clamp(192px, 55vw, 250px);
  }
  .floating-pill {
    font-size: 0.7rem;
    padding: 0.34rem 0.68rem;
    gap: 0.4rem;
  }
  .pill-1 {
    top: 3%;
    left: -18%;
  }
  /* Android Compose: mostly outside bottom-right border curve, completely separated from Firebase pill */
  .pill-2 {
    top: auto;
    bottom: 20%;
    right: -23%;
  }
  /* Firebase Cloud: mostly outside bottom-left border curve */
  .pill-3 {
    top: auto;
    bottom: 12%;
    left: -23%;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(4, 7, 17, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-active);
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-cta-btn {
    display: none;
  }
  .about-card,
  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .hero-name {
    font-size: clamp(1.85rem, 8.5vw, 2.75rem);
    letter-spacing: -0.5px;
  }
  .hero-role-wrapper {
    font-size: 1.15rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    text-align: center;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  #skills,
  #projects,
  #services,
  #journey,
  #contact,
  #about {
    scroll-margin-top: 85px;
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }
  .skills-tabs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    padding: 0.4rem 0.25rem 0.8rem;
    margin-bottom: 1.5rem;
    width: 100%;
  }
  .skills-tabs::-webkit-scrollbar {
    display: none;
  }
  .skills-tabs .tab-btn {
    font-size: 0.78rem;
    padding: 0.42rem 0.85rem;
    flex-shrink: 0;
  }
  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .skill-card {
    padding: 0.85rem 0.95rem;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
  }
  .skill-header {
    gap: 0.55rem;
    min-width: 0;
  }
  .skill-icon-box {
    width: 34px;
    height: 34px;
  }
  .skill-icon {
    font-size: 1.1rem;
  }
  .skill-name {
    font-size: 0.86rem;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.3;
  }
  .skill-percent {
    font-size: 0.78rem;
  }
  .skill-badge {
    font-size: 0.6rem;
    padding: 0.12rem 0.42rem;
  }
  .projects-filter {
    justify-content: center;
    gap: 0.45rem;
    padding: 0 0.25rem;
    margin-bottom: 2rem;
  }
  .project-filter-btn {
    font-size: 0.8rem;
    padding: 0.42rem 0.85rem;
  }
  .project-thumb-wrapper {
    height: 180px;
  }
  .timeline-container::before {
    left: 16px;
  }
  .timeline-item {
    padding-left: 44px;
  }
  .timeline-dot {
    left: 7px;
  }
  .footer-grid,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.25rem;
  }
  .livechat-trigger {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
  }
  .livechat-dialog {
    bottom: 82px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    height: 500px;
    max-height: calc(100vh - 100px);
    border-radius: 16px;
  }
}

@media (max-width: 380px) {
  .hero-name {
    font-size: 1.75rem;
  }
  .avatar-stage {
    width: 192px;
    height: 192px;
  }
  .floating-pill {
    font-size: 0.66rem;
    padding: 0.28rem 0.56rem;
    gap: 0.34rem;
  }
  .pill-1 {
    top: 2%;
    left: -16%;
  }
  .pill-2 {
    bottom: 20%;
    right: -22%;
  }
  .pill-3 {
    bottom: 11%;
    left: -22%;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   GLASS THEME (Glassmorphism)
   ========================================================================== */
:root {
  --glass-fill: linear-gradient(135deg,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0.04) 48%,
      rgba(255, 255, 255, 0.08) 100%);
  --glass-fill-hover: linear-gradient(135deg,
      rgba(255, 255, 255, 0.20) 0%,
      rgba(255, 255, 255, 0.07) 48%,
      rgba(255, 255, 255, 0.12) 100%);
  --glass-edge: rgba(255, 255, 255, 0.17);
  --glass-edge-hover: rgba(255, 255, 255, 0.34);
  --glass-blur: blur(22px) saturate(165%);
  --glass-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  --glass-shadow-hover:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(0, 240, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);

  --border-subtle: rgba(255, 255, 255, 0.14);
  --text-muted: #B4C0D4;
  --text-dim: #8493AB;
}

body {
  background:
    radial-gradient(1100px 700px at 10% -5%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(900px 600px at 95% 25%, rgba(0, 240, 255, 0.14), transparent 60%),
    radial-gradient(900px 700px at 40% 105%, rgba(139, 92, 246, 0.20), transparent 60%),
    var(--bg-dark);
  background-attachment: fixed;
}

.ambient-glow { background-image: none; }

.about-card,
.project-card,
.service-card,
.contact-form-card,
.highlight-box,
.value-item,
.skill-card,
.timeline-content,
.contact-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.value-item:hover,
.skill-card:hover,
.project-card:hover,
.service-card:hover,
.timeline-content:hover,
.contact-card:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-edge-hover);
  box-shadow: var(--glass-shadow-hover);
}

.header,
.header.scrolled {
  background: rgba(10, 14, 32, 0.42);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.footer {
  background: rgba(2, 4, 9, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline,
.tab-btn,
.project-filter-btn,
.social-btn,
.quick-chip,
.floating-pill {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

.tab-btn.active,
.project-filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(139, 92, 246, 0.28));
  border-color: rgba(0, 240, 255, 0.65);
  color: #FFFFFF;
}

.form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.livechat-dialog {
  background: rgba(12, 16, 36, 0.72);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(30px) saturate(175%);
  backdrop-filter: blur(30px) saturate(175%);
}

/* Desktop / PC Wide Auto-Adjustment */
@media (min-width: 993px) {
  .hero-visual { max-width: 520px; }
  .avatar-stage {
    width: min(400px, 84%);
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: none;
  }
  .floating-pill {
    font-size: 0.9rem;
    padding: 0.6rem 1.1rem;
  }
  .pill-1 { top: 6%; left: -12%; }
  .pill-2 { bottom: 20%; right: -16%; top: auto; }
  .pill-3 { bottom: 12%; left: -16%; }
  .hero-role-wrapper {
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: clamp(1rem, 1.75vw, 1.45rem);
  }
  .role-typing {
    word-break: normal;
    overflow-wrap: normal;
  }
}
