/* ==========================================================================
   Fajar Syahriar | GitHub Pages Showcase Design System
   High-performance, modern developer portfolio with Dark/Light theme
   ========================================================================== */

:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Dark Theme (Default) */
  --bg-primary: #0a0d14;
  --bg-secondary: #101522;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 34, 52, 0.95);
  --bg-elevated: #161e31;
  --bg-input: #121929;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(228, 62, 70, 0.35);
  --border-card: rgba(255, 255, 255, 0.1);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --accent: #e43e46;
  --accent-glow: rgba(228, 62, 70, 0.25);
  --accent-light: #ff6b72;
  
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --emerald: #10b981;
  --amber: #f59e0b;
  
  --header-bg: rgba(10, 13, 20, 0.88);
  --header-border: rgba(255, 255, 255, 0.08);
  --terminal-bg: #07090e;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-elevated: #f1f5f9;
  --bg-input: #ffffff;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(228, 62, 70, 0.3);
  --border-card: rgba(0, 0, 0, 0.08);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  
  --header-bg: rgba(248, 250, 252, 0.92);
  --header-border: rgba(0, 0, 0, 0.06);
  --terminal-bg: #1e293b;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Zero-Overflow Universal Element Guardrails */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, p, span, a {
  overflow-wrap: break-word;
}

/* Background Glows (Contained safely inside fixed viewport canvas) */
.bg-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.bg-glow-2 {
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* Universal Grid & Flex Overflow Defense */
.hero-grid,
.metrics-grid,
.skills-grid,
.projects-grid,
.connect-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-grid > *,
.metrics-grid > *,
.skills-grid > *,
.projects-grid > *,
.connect-grid > *,
.terminal-card,
.project-card,
.skill-card,
.metric-card,
.connect-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Vector Brand Logo (Identical to fajarsyahriar.my.id) */
.brand-logo-svg {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
}

.brand-logo-svg .cls-1,
.brand-logo-svg .cls-2 {
  fill: var(--text-main) !important;
  transition: fill 0.3s ease;
}

.brand-logo-svg .cls-3 {
  fill: var(--accent) !important;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.2rem;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

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

.btn-theme {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-theme:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #c52930 100%);
  color: #ffffff !important;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all 0.25s ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 62, 70, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.btn-mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 2.5rem;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.15rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Terminal Card */
.terminal-card {
  background: var(--terminal-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  color: var(--text-subtle);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-body {
  padding: 1.15rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.terminal-line {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
}

.terminal-prompt {
  color: var(--accent-light);
  font-weight: 700;
  flex-shrink: 0;
}

.terminal-cmd {
  color: #f8fafc;
}

.terminal-output {
  color: #94a3b8;
  padding-left: 0.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
  word-break: break-word;
}

.terminal-json {
  color: #94a3b8;
  padding-left: 0.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
  font-family: var(--font-mono);
}

.terminal-key {
  color: var(--cyan);
}

.terminal-val {
  color: #f1f5f9;
}

.terminal-highlight {
  color: var(--emerald);
  font-weight: 600;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}

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

/* Metrics Grid */
.metrics-section {
  padding: 3rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px -5px var(--accent-glow);
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-desc {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Skills Grid */
.skills-section {
  padding: 4rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all 0.3s ease;
}

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

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(228, 62, 70, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

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

.skill-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Projects Showcase */
.projects-section {
  padding: 4rem 0;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(228, 62, 70, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card:hover::before {
  opacity: 1;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.project-stars {
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.project-link:hover {
  color: var(--accent);
}

/* Connect / Social Matrix */
.connect-section {
  padding: 4rem 0 5rem;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
}

.connect-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -5px var(--accent-glow);
}

.connect-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--accent);
}

.connect-info {
  flex-grow: 1;
  min-width: 0;
}

.connect-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.connect-handle {
  font-size: 0.82rem;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

/* ==========================================================================
   Mobile Phone Optimizations (< 992px, < 768px, < 480px)
   Zero-Overflow Guardrails for Touch Devices
   ========================================================================== */

@media (max-width: 991.98px) {
  .nav-wrap {
    height: 64px;
    width: 100%;
    max-width: 100%;
  }

  .brand-logo-svg {
    height: 24px;
    max-width: 120px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta-desktop {
    display: none !important;
  }

  .btn-mobile-toggle {
    display: flex;
    min-width: 42px;
    min-height: 42px;
  }

  .btn-theme {
    min-width: 42px;
    min-height: 42px;
  }

  /* Fullscreen / Sheet Mobile Navigation Drawer */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: var(--bg-primary);
    padding: 1.5rem 1.25rem 3rem;
    gap: 0.25rem;
    z-index: 999;
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
    animation: fadeIn 0.2s ease;
    box-sizing: border-box;
  }

  .nav-links.mobile-open li {
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.mobile-open a {
    display: block;
    width: 100%;
    padding: 0.95rem 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .nav-links.mobile-open .mobile-website-btn {
    border-bottom: none;
    margin-top: 1.5rem;
  }

  .nav-links.mobile-open .mobile-website-btn a {
    text-align: center;
    background: linear-gradient(135deg, var(--accent) 0%, #c52930 100%);
    color: #ffffff !important;
    border-radius: 9999px;
    padding: 0.85rem;
    font-size: 1rem;
  }

  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 100%;
    gap: 2rem;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    line-height: 1.25;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    text-align: center;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.25rem;
    width: 100%;
  }

  .terminal-card {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
  }

  .terminal-body {
    padding: 1.15rem 0.85rem;
    font-size: 0.8rem;
    line-height: 1.65;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-header {
    margin-bottom: 2rem;
    width: 100%;
  }

  .section-title {
    font-size: 1.85rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .metrics-section,
  .skills-section,
  .projects-section,
  .connect-section {
    padding: 2.25rem 0;
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
  }

  .metric-card {
    padding: 1.15rem 0.65rem;
    width: 100%;
  }

  .metric-number {
    font-size: 1.85rem;
  }

  .metric-label {
    font-size: 0.82rem;
  }

  .metric-desc {
    font-size: 0.72rem;
  }

  .project-filters {
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    width: 100%;
  }

  .filter-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .projects-grid,
  .skills-grid,
  .connect-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    width: 100%;
  }

  .project-card,
  .skill-card {
    padding: 1.35rem 1.15rem;
    width: 100%;
  }

  .project-title {
    font-size: 1.15rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .connect-grid {
    gap: 0.75rem;
    width: 100%;
  }

  .connect-card {
    padding: 1rem;
    width: 100%;
  }

  .footer-links {
    gap: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }
}

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

  .hero-title {
    font-size: 1.75rem;
  }

  .metrics-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }

  .brand-logo-svg {
    height: 22px;
    max-width: 95px;
  }

  .terminal-body {
    padding: 0.85rem 0.65rem;
    font-size: 0.74rem;
  }

  .project-card,
  .skill-card {
    padding: 1.15rem 0.95rem;
  }
}

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