/* -------------------------------------------------------------
   RAHAMATH ALIKHAN J - PORTFOLIO STYLESHEET
   Design System: Modern Executive Light Mode (Crisp Slate, Sky Blue, Indigo & Emerald)
   With GPU-Accelerated Micro-Interactions & Scroll Animations
   ------------------------------------------------------------- */

:root {
  /* Core Light Surfaces */
  --bg-dark: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: #E2E8F0;
  --border-hover: #38BDF8;
  --border-glow: rgba(2, 132, 199, 0.3);

  /* Typography Colors (High Contrast on Light) */
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-dim: #64748B;

  /* Rich Light-Mode Accent Palette */
  --accent-primary: #0284C7;
  --accent-primary-dark: #0369A1;
  --accent-indigo: #4F46E5;
  --accent-emerald: #059669;
  --accent-amber: #D97706;

  /* Semantic Aliases */
  --android-green: #059669;
  --android-glow: rgba(5, 150, 105, 0.16);
  --flutter-cyan: #0284C7;
  --flutter-blue: #0369A1;
  --flutter-glow: rgba(2, 132, 199, 0.16);
  --accent-purple: #4F46E5;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Motion & Shape */
  --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Layered Light Shadows */
  --shadow-card: 0 4px 20px -4px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 38px -12px rgba(2, 132, 199, 0.16), 0 8px 16px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 10px 28px -6px rgba(37, 99, 235, 0.28);
}

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

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

body {
  background-color: #F8FAFC;
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 75% 45% at 15% -5%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 88% 12%, rgba(99, 102, 241, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
  background-attachment: fixed;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0284C7, #4F46E5, #059669);
  z-index: 2001;
  transition: width 0.08s linear;
}

/* -------------------------------------------------------------
   KEYFRAME ANIMATIONS
   ------------------------------------------------------------- */

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.55); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

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

/* Scroll Reveal Classes (Controlled by IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Container & Typography */
.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1440px) {
  .container {
    max-width: 1380px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1480px;
  }
}

h1, h2, h3, h4, h5 {
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--accent-indigo);
}

code {
  font-family: var(--font-code);
  font-size: 0.86em;
  background: #F1F5F9;
  color: #0369A1;
  border: 1px solid #E2E8F0;
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
}

.gradient-text {
  background: linear-gradient(135deg, #0284C7 0%, #4F46E5 50%, #059669 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

.gradient-text-android {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-flutter {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 0;
  transition: all var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-avatar-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #EFF6FF, #EEF2FF);
  border: 1px solid #BFDBFE;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-avatar-icon {
  transform: rotate(-6deg) scale(1.06);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-role {
  font-size: 0.68rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.45rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 16px -3px rgba(37, 99, 235, 0.38);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn-primary:hover::after {
  left: 140%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0369A1 0%, #1D4ED8 100%);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.45);
  color: #FFFFFF;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid #CBD5E1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-outline-flutter {
  background: #F0F9FF;
  color: var(--accent-primary);
  border: 1px solid #BAE6FD;
}

.btn-outline-flutter:hover {
  background: #E0F2FE;
  border-color: var(--accent-primary);
  color: #0369A1;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* Hero Section with Staggered Entrance */
.hero {
  padding: 5.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.25rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
  padding: 0.42rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.12;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-location-badge strong {
  color: var(--text-main);
}

.hero-description {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.75;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

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

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Hero Right: Floating Profile Card & Dark Code Sandbox */
.hero-visual {
  position: relative;
  animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.12), 0 4px 12px -4px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  animation: floatSlow 6s ease-in-out infinite;
}

.profile-card:hover {
  animation-play-state: paused;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-indigo), var(--accent-emerald));
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.dash-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dash-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dash-pill.android {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

.dash-pill.flutter {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0369A1;
}

.stack-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.stack-item:hover {
  background: #F0F9FF;
  border-color: #BAE6FD;
  transform: translateX(4px);
}

.stack-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.stack-item div {
  display: flex;
  flex-direction: column;
}

.stack-item strong {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 700;
}

.stack-item span {
  font-size: 0.77rem;
  color: var(--text-muted);
}

/* Sandbox Code Toggle Component (Intentional Dark IDE Contrast Block) */
.code-sandbox {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.28);
}

.sandbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #1E293B;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #334155;
}

.sandbox-header span {
  color: #94A3B8 !important;
}

.sandbox-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.sandbox-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  font-size: 0.73rem;
  font-family: var(--font-code);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sandbox-tab:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.06);
}

.sandbox-tab.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7DD3FC;
  font-weight: 600;
}

.code-pre {
  padding: 1rem;
  font-family: var(--font-code);
  font-size: 0.76rem;
  line-height: 1.6;
  color: #A7F3D0;
  overflow-x: auto;
  white-space: pre;
}

.code-pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Section Common Styling */
.section {
  padding: 4.25rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.section-tag {
  color: var(--accent-primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
  display: inline-block;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 0.9rem;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

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

/* Architecture & About Cards */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

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

.arch-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.arch-card:hover .arch-icon {
  transform: scale(1.1) rotate(-4deg);
}

.arch-title {
  font-size: 1.22rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-main);
}

.arch-text {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.arch-text strong {
  color: var(--text-main);
}

/* Freelance Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: var(--accent-emerald);
  transition: transform var(--transition-fast);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-4deg);
}

.service-icon.flutter-srv {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: var(--accent-primary);
}

.service-icon.backend-srv {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: var(--accent-indigo);
}

.service-icon.ai-srv {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: var(--accent-amber);
}

.service-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.service-description {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.service-features li i {
  color: var(--accent-emerald);
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-primary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-cta:hover {
  gap: 0.75rem;
  color: var(--accent-indigo);
}

/* Skills Section */
.skills-filter-wrapper {
  margin-bottom: 2.25rem;
  display: flex;
  justify-content: center;
}

.skills-search {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.skills-search input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--text-main);
  padding: 0.85rem 1.15rem 0.85rem 2.75rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: var(--font-main);
  outline: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.skills-search input::placeholder {
  color: var(--text-dim);
}

.skills-search input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.category-icon.flutter-icon {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: var(--accent-primary);
}

.category-icon.ai-icon {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: var(--accent-indigo);
}

.category-title {
  font-size: 1.08rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--text-main);
}

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

.skill-tag {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: #F0F9FF;
  border-color: #7DD3FC;
  color: #0369A1;
  transform: translateY(-2px);
}

.skill-tag.featured {
  border-color: #A7F3D0;
  background: #ECFDF5;
  color: #047857;
}

.skill-tag.flutter-tag {
  border-color: #BAE6FD;
  background: #F0F9FF;
  color: #0369A1;
}

.skill-tag.flutter-tag:hover {
  background: #E0F2FE;
  border-color: var(--accent-primary);
  color: #0C4A6E;
}

/* Projects Showcase Section */
.projects-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--text-muted);
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: #F0F9FF;
}

.filter-btn.active {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.38);
}

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

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

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

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 215px;
  overflow: hidden;
  background: #F1F5F9;
  border-bottom: 1px solid var(--border-color);
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.06);
}

.project-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid #BAE6FD;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369A1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.project-badge-overlay.android {
  color: #047857;
  border-color: #A7F3D0;
}

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

.project-client {
  font-size: 0.74rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tech-pill {
  font-size: 0.74rem;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: var(--text-secondary);
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.view-modal-btn {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.view-modal-btn:hover {
  color: var(--text-main);
}

.case-study-page-link {
  color: var(--accent-primary);
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.case-study-page-link:hover {
  color: var(--accent-indigo);
  gap: 0.65rem;
}

/* Experience Timeline Section */
.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0284C7, #4F46E5, #059669);
  opacity: 0.35;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 2.75rem;
  text-align: left;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 2.75rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--accent-primary);
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

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

.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0369A1;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.timeline-item:nth-child(even) .timeline-date {
  color: #4338CA;
  background: #EEF2FF;
  border-color: #C7D2FE;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.timeline-company {
  font-size: 0.92rem;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.89rem;
  line-height: 1.65;
}

.timeline-bullets li {
  margin-bottom: 0.55rem;
  padding-left: 1rem;
  position: relative;
}

.timeline-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

/* Education Section */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

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

.edu-icon-box {
  width: 46px;
  height: 46px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.edu-degree {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.edu-institution {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

.edu-year {
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Contact Card */
.contact-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #F0F9FF 100%);
  border: 1px solid #BAE6FD;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 20px 45px -15px rgba(2, 132, 199, 0.14);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-indigo), var(--accent-emerald));
}

.local-presence-box {
  background: #FFFFFF;
  border: 1px solid #BAE6FD;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin: 1.5rem auto;
  max-width: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: left;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--accent-primary);
  background: #F0F9FF;
  transform: translateY(-2px);
  color: #0369A1;
}

/* Enquiry Form */
.enquiry-form {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 1.75rem auto 0;
  max-width: 760px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.enquiry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-main);
  background: #F8FAFC;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.3rem;
  text-align: center;
}

.form-status.success {
  color: #047857;
}

.form-status.error {
  color: #DC2626;
}

@media (max-width: 768px) {
  .enquiry-grid {
    grid-template-columns: 1fr;
  }

  .enquiry-form {
    padding: 1.25rem;
  }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: scale(0.96) translateY(16px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #B91C1C;
}

/* Footer */
footer {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  background: #FFFFFF;
}

/* Status Badges */
.skill-badge-subtle {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skill-badge-subtle.exploring {
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}

.skill-badge-subtle.core {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 1.5rem 0 0.5rem;
  margin-top: 5.25rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.breadcrumb-list a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 700;
}

/* Dedicated Case Study & Product Page Styles */
.case-study-header {
  padding: 1.75rem 0 2.75rem;
}

.case-study-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.case-study-title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.1rem;
  color: var(--text-main);
}

.case-study-meta-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-card);
}

.case-study-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.case-study-meta-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.case-study-meta-value {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
}

.case-study-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.75rem;
  padding-bottom: 4.5rem;
  align-items: start;
}

.case-study-hero-img-box {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 2.25rem;
  background: #F1F5F9;
  box-shadow: var(--shadow-card);
}

.case-study-hero-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-section {
  margin-bottom: 2.75rem;
}

.case-study-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
}

.case-study-section p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.78;
  margin-bottom: 1rem;
}

.case-study-list {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.78;
  margin-bottom: 1.5rem;
}

.case-study-list li {
  margin-bottom: 0.55rem;
}

.case-study-list strong {
  color: var(--text-main);
}

.case-study-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 6rem;
}

.case-study-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
}

.case-study-sidebar-card h3 {
  font-size: 1.12rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-study-tech-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* -------------------------------------------------------------
   PRODUCT SOLUTIONS & SHOWCASE STYLES
   ------------------------------------------------------------- */

.product-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.product-pill.flutter {
  background: #F0F9FF;
  color: #0369A1;
  border-color: #BAE6FD;
}

.product-pill.cloud {
  background: #EEF2FF;
  color: #4338CA;
  border-color: #C7D2FE;
}

.product-pill.ready {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.product-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.25rem;
}

.product-feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.product-feature-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.product-feature-box h3 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.product-feature-box p {
  font-size: 0.89rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.product-specs-table th,
.product-specs-table td {
  padding: 0.95rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.product-specs-table th {
  background: #F8FAFC;
  color: var(--text-main);
  font-weight: 700;
  width: 32%;
}

.product-specs-table td {
  background: #FFFFFF;
  color: var(--text-muted);
}

.product-specs-table tr:last-child th,
.product-specs-table tr:last-child td {
  border-bottom: none;
}

.product-cta-banner {
  background: linear-gradient(135deg, #F0F9FF 0%, #EEF2FF 100%);
  border: 1px solid #BAE6FD;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.product-cta-banner h2 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.product-cta-banner p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 620px;
  margin: 0 auto 1.65rem;
  line-height: 1.65;
}

/* Homepage Product Showcase Grid */
.products-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.product-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.product-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: var(--accent-emerald);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.product-showcase-card:hover .product-card-icon {
  transform: scale(1.1) rotate(-4deg);
}

.product-card-icon.flutter {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: var(--accent-primary);
}

.product-card-icon.cloud {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: var(--accent-indigo);
}

.product-card-icon.amber {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: var(--accent-amber);
}

.product-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.product-card-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.product-card-features-list li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.product-card-features-list li i {
  color: var(--accent-emerald);
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* -------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 7.5rem 0 4rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .profile-card {
    animation: none;
  }

  .case-study-layout {
    grid-template-columns: 1fr;
  }

  .case-study-sidebar {
    position: static;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 2.75rem !important;
    padding-right: 0 !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 8px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .skills-grid,
  .projects-grid,
  .services-grid,
  .products-showcase-grid,
  .arch-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 2.25rem 1.5rem;
  }

  .local-presence-box {
    flex-direction: column;
    text-align: center;
  }

  .product-specs-table th,
  .product-specs-table td {
    display: block;
    width: 100%;
  }

  .product-specs-table th {
    padding-bottom: 0.35rem;
    border-bottom: none;
  }

  .product-specs-table td {
    padding-top: 0.25rem;
  }
}
