/* ==========================================================================
   Morshedul Islam - Senior Flutter & Mobile Software Engineer Portfolio
   Design System & Styling
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --bg-dark: #090D16;
  --bg-card: #101626;
  --bg-card-hover: #151D33;
  --bg-card-alt: #131A2D;
  --bg-glass: rgba(16, 22, 38, 0.75);
  --bg-glass-heavy: rgba(9, 13, 22, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.28);
  --border-focus: rgba(0, 242, 254, 0.5);

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-inverse: #090D16;

  /* Accents */
  --cyan-bright: #00F2FE;
  --cyan-subtle: #38BDF8;
  --blue-flutter: #0284C7;
  --blue-deep: #0369A1;
  --purple-accent: #818CF8;
  --emerald-accent: #10B981;
  --amber-accent: #F59E0B;
  --rose-accent: #F43F5E;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #00F2FE 0%, #38BDF8 50%, #818CF8 100%);
  --gradient-glow: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(9, 13, 22, 0) 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --container-max: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-subtle);
}

/* Selection */
::selection {
  background: rgba(0, 242, 254, 0.25);
  color: var(--cyan-bright);
}

/* --- Ambient Background Glow Orbs --- */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.glow-1 {
  top: 5%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(2, 132, 199, 0) 70%);
}
.glow-2 {
  top: 35%;
  left: -8%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
}
.glow-3 {
  top: 70%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

/* --- Container & Typography --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code, pre {
  font-family: var(--font-code);
}

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

/* --- Section Headers --- */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-family: var(--font-code);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--cyan-subtle);
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.975rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%);
  box-shadow: 0 6px 28px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.08);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* --- Header / Navigation Bar --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(56, 189, 248, 0.15);
}

.nav-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: var(--font-code);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.logo-bracket {
  color: var(--cyan-subtle);
}
.logo-name {
  color: #FFFFFF;
}
.logo-dot {
  color: var(--emerald-accent);
}
.logo-ext {
  color: var(--purple-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-subtle);
  transition: width var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-btn-primary {
  padding: 8px 18px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  color: var(--cyan-bright) !important;
  font-weight: 600;
}
.nav-btn-primary:hover {
  background: var(--cyan-subtle);
  color: #000000 !important;
  border-color: var(--cyan-subtle);
}
.nav-btn-primary::after {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px var(--emerald-accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.status-text {
  font-family: var(--font-code);
  font-size: 0.775rem;
  color: var(--emerald-accent);
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: all var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.badge-icon {
  font-size: 1rem;
}
.badge-text {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}
.badge-divider {
  color: var(--border-subtle);
}
.badge-highlight {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--cyan-bright);
  font-weight: 600;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-description strong {
  color: var(--text-main);
}

/* Metrics Row */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.metric-card {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}
.metric-card:last-child {
  border-right: none;
}
.metric-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--cyan-bright);
  line-height: 1.2;
}
.metric-label {
  font-size: 0.775rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Hero Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

/* Tech Ticker */
.tech-ticker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}
.ticker-label {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-right: 6px;
}
.tech-pill {
  font-family: var(--font-code);
  font-size: 0.775rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #CBD5E1;
  transition: all var(--transition-fast);
}
.tech-pill:hover {
  border-color: var(--cyan-subtle);
  color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.1);
}

/* Hero Visual & Phone Graphic */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.hero-phone-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--transition-normal);
}
.hero-phone-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-4px);
}
.hero-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.floating-badge {
  position: absolute;
  padding: 10px 16px;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}
.badge-top {
  top: 20px;
  left: 20px;
}
.badge-bottom {
  bottom: 20px;
  right: 20px;
  animation-delay: -2s;
}

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

.badge-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cyan-subtle);
}
.badge-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
}
.badge-role {
  display: block;
  font-family: var(--font-code);
  font-size: 0.725rem;
  color: var(--cyan-subtle);
}

.badge-stat {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--emerald-accent);
}
.badge-sub {
  display: block;
  font-size: 0.725rem;
  color: var(--text-muted);
}
.pulse-ring {
  width: 12px;
  height: 12px;
  background: var(--emerald-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--emerald-accent);
}

/* Mini Terminal in Hero */
.mini-terminal {
  background: #0B0F19;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot.red { background: #EF4444; }
.term-dot.yellow { background: #F59E0B; }
.term-dot.green { background: #10B981; }
.term-title {
  margin-left: 6px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.terminal-body {
  padding: 14px 16px;
  font-family: var(--font-code);
  font-size: 0.78rem;
  line-height: 1.6;
}
.terminal-line {
  margin-bottom: 4px;
}
.term-prompt {
  color: var(--cyan-bright);
  font-weight: bold;
}
.text-muted { color: var(--text-muted); }
.text-success { color: var(--emerald-accent); }
.text-info { color: var(--cyan-subtle); }
.typing-cursor {
  color: var(--purple-accent);
  border-right: 2px solid var(--cyan-bright);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.about-bio-card, .about-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.bio-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.bio-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cyan-subtle);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}
.bio-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.bio-name {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.bio-title {
  color: var(--cyan-bright);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.bio-company {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.bio-body p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.bio-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.hl-icon {
  font-size: 1.5rem;
}
.highlight-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #FFFFFF;
}
.highlight-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Engineering DNA / Progress Bars */
.card-heading {
  font-size: 1.35rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-heading::before {
  content: '//';
  color: var(--cyan-bright);
  font-family: var(--font-code);
}

.dna-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.dna-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dna-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}
.dna-info span:first-child {
  color: var(--text-main);
}
.dna-val {
  font-family: var(--font-code);
  color: var(--cyan-bright);
}
.dna-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dna-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

.contact-quick-box {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qb-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
}
.qb-subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- FEATURED PROJECTS --- */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.filter-btn.active {
  background: var(--cyan-subtle);
  color: #090D16;
  border-color: var(--cyan-subtle);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(56, 189, 248, 0.15);
}

.project-image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #0B0F19;
}
.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-image-wrap img {
  transform: scale(1.05);
}

.project-platforms {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.plat-badge {
  font-family: var(--font-code);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}
.plat-badge.android {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.plat-badge.ios {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.plat-badge.featured {
  background: rgba(56, 189, 248, 0.25);
  color: #00F2FE;
  border: 1px solid rgba(0, 242, 254, 0.6);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}
.plat-badge.scale {
  background: rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.6);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
  animation: pulse-scale 2s infinite;
}
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.plat-badge.live {
  background: rgba(129, 140, 248, 0.25);
  color: #C7D2FE;
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

.highlight-card {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(16, 22, 38, 0.95) 0%, rgba(13, 17, 28, 0.98) 100%);
}
.highlight-card:hover {
  border-color: var(--cyan-bright);
}


.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.overlay-btn {
  padding: 10px 18px;
  background: var(--cyan-subtle);
  color: #090D16;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.overlay-btn.ios {
  background: #FFFFFF;
  color: #090D16;
}

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.project-index {
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-bright);
}
.project-type {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  font-weight: 600;
}

.project-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}

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

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.feature-tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #CBD5E1;
}

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

.store-links {
  display: flex;
  gap: 10px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.store-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan-subtle);
  color: var(--cyan-bright);
}

.project-status-tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--emerald-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-status-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-accent);
  box-shadow: 0 0 8px var(--emerald-accent);
}

/* --- ARCHITECTURE & HOW I BUILD (Tabs) --- */
.arch-tabs-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.arch-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: #0B0F19;
  overflow-x: auto;
}
.arch-tab-btn {
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab-code {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-subtle);
}
.arch-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.02);
}
.arch-tab-btn.active {
  color: var(--cyan-bright);
  border-bottom-color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.05);
}
.arch-tab-btn.active .tab-code {
  color: var(--cyan-subtle);
}

.arch-tabs-content {
  padding: 36px;
}

.arch-tab-panel {
  display: none;
}
.arch-tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.panel-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.panel-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.arch-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.arch-feature-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
}
.arch-feature-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan-bright);
  font-size: 1.1rem;
}
.arch-feature-list li strong {
  color: var(--text-main);
}

.panel-tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.code-badge {
  font-family: var(--font-code);
  font-size: 0.775rem;
  padding: 5px 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  color: var(--cyan-subtle);
  font-weight: 600;
}

/* Code Preview Window */
.code-preview-window {
  background: #07090F;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.code-window-header {
  padding: 12px 18px;
  background: #0E131F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.window-title {
  font-family: var(--font-code);
  font-size: 0.775rem;
  color: #94A3B8;
}
.lang-tag {
  font-family: var(--font-code);
  font-size: 0.725rem;
  color: var(--cyan-bright);
  text-transform: uppercase;
}

.code-snippet {
  padding: 22px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  line-height: 1.65;
  color: #E2E8F0;
  overflow-x: auto;
}
.keyword { color: #F43F5E; font-weight: 600; }
.type { color: #38BDF8; }
.function { color: #FBBF24; }
.string { color: #34D399; }
.comment { color: #64748B; font-style: italic; }

/* --- SKILLS MATRIX --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.skill-category-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.cat-icon {
  font-size: 1.5rem;
}
.cat-title {
  font-size: 1.2rem;
  color: #FFFFFF;
}

.skill-pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-badge {
  font-family: var(--font-code);
  font-size: 0.8rem;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.skill-badge.primary {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--cyan-bright);
  font-weight: 600;
}
.skill-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan-subtle);
  transform: translateY(-1px);
}

/* --- WORK EXPERIENCE TIMELINE --- */
.timeline {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-subtle) 0%, rgba(56, 189, 248, 0.1) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 11px;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #090D16;
  border: 3px solid var(--cyan-bright);
  box-shadow: 0 0 12px var(--cyan-bright);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.timeline-content:hover {
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.timeline-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.company-badge {
  font-family: var(--font-code);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  border-radius: var(--radius-full);
}
.company-badge.alt {
  background: rgba(129, 140, 248, 0.15);
  border-color: rgba(129, 140, 248, 0.4);
  color: #A5B4FC;
}
.timeline-date {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.timeline-role {
  font-size: 1.4rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.timeline-company {
  font-size: 1.05rem;
  color: var(--cyan-bright);
  font-weight: 600;
  margin-bottom: 16px;
}

.timeline-desc {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-tags span {
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #CBD5E1;
}

/* --- CLIENT VALUE GRID --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-fast);
}
.value-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.value-icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #FFFFFF;
}
.value-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* --- CONTACT & HIRE ME SECTION --- */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.contact-title {
  font-size: 2.35rem;
  margin-bottom: 16px;
  line-height: 1.25;
}
.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.direct-contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.direct-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.direct-label {
  display: block;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 2px;
}
.direct-value {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}
.direct-value:hover {
  color: var(--cyan-bright);
}

.contact-buttons-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Contact Form */
.contact-form-wrap {
  background: #0B0F19;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-title {
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.form-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan-subtle);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #07090F;
  padding: 60px 0 30px 0;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-brand {
  max-width: 480px;
}
.footer-tagline {
  margin-top: 12px;
  font-size: 0.925rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--cyan-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.back-to-top {
  font-family: var(--font-code);
  color: var(--cyan-subtle);
  font-weight: 600;
}
.back-to-top:hover {
  color: #FFFFFF;
}

/* --- TOAST NOTIFICATION --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #0B0F19;
  border: 1px solid var(--border-highlight);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 2.85rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-box {
    grid-template-columns: 1fr;
    padding: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 18px;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .metric-card {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
  }
  .metric-card:nth-child(3), .metric-card:nth-child(4) {
    border-bottom: none;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2.15rem;
  }
  .hero-phone-card {
    transform: none;
  }
  .hero-phone-card:hover {
    transform: none;
  }
  .status-pill {
    display: none;
  }
}

/* --- WhatsApp Interactive Styles --- */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(37, 211, 102, 0.5);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  font-weight: 600;
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

.whatsapp-icon {
  background: rgba(37, 211, 102, 0.1) !important;
  border-color: rgba(37, 211, 102, 0.4) !important;
}

.text-whatsapp {
  color: #25D366 !important;
  font-family: var(--font-code);
  font-weight: 700;
  transition: all var(--transition-fast);
}
.text-whatsapp:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

/* Floating WhatsApp Quick Action */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 99;
  transition: all var(--transition-fast);
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65);
}

.floating-tooltip {
  position: absolute;
  left: 70px;
  background: #0B0F19;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
}
.floating-whatsapp:hover .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

