/* ============================================================
   Ahmad Firdaus — GIS Portfolio
   Retro Pixel-Art Gaming Theme (RegexQuest Style)
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Press+Start+2P&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg-primary: #121214;
  --bg-secondary: #18181c;
  --bg-tertiary: #202024;
  --bg-card: #1e1e22;
  --bg-card-hover: #26262c;
  --bg-glass: #1e1e22;

  /* Accents */
  --accent-primary: #a855f7;      /* Retro purple */
  --accent-primary-rgb: 168, 85, 247;
  --accent-secondary: #00e89d;    /* Pixel green */
  --accent-secondary-rgb: 0, 232, 157;
  --accent-tertiary: #fbbf24;     /* Pixel yellow/gold */
  --accent-tertiary-rgb: 251, 191, 36;
  --accent-warm: #ef4444;         /* Pixel red */

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Borders */
  --border-subtle: #27272a;
  --border-default: #3f3f46;
  --border-accent: #a855f7;

  /* Shadows */
  --shadow-card: 4px 4px 0px #000000;
  --shadow-card-hover: 6px 6px 0px #000000;
  --shadow-elevated: 8px 8px 0px #000000;
  --glow-primary: 0 0 15px rgba(168, 85, 247, 0.4);

  /* Radii (Clean pixel block style with slight roundness) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1180px;
  --section-padding: 100px 24px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

html::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border: 2px solid var(--bg-primary);
  border-radius: var(--radius-sm);
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-secondary);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '>';
  color: var(--accent-secondary);
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 680px;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Pixel Topographic Grid Overlay --- */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAVBAR (Pixel Style)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 2px solid transparent;
}

.navbar.scrolled {
  background: var(--bg-secondary);
  border-color: var(--border-default);
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.navbar-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  border: 2px solid #000;
  box-shadow: 2px 2px 0px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 400;
  color: #fff;
}

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

.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-secondary);
  background: rgba(0, 232, 157, 0.05);
  border-color: var(--accent-secondary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  border-top: 2px solid var(--border-default);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-overlay a {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-overlay a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(168, 85, 247, 0.05);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Retro map scanner style */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 232, 157, 0.05) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 660px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-secondary);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  margin-bottom: 24px;
  opacity: 0;
}

.hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.4;
  margin-bottom: 24px;
  opacity: 0;
  color: var(--text-primary);
}

.hero-typed-wrap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  min-height: 48px;
  line-height: 1.6;
  opacity: 0;
}

.hero-typed-wrap .typed-cursor {
  color: var(--accent-primary);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

/* Hero Map Widget (Pixel style) */
.hero-map-widget {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--border-default);
  background: var(--bg-card);
  box-shadow: var(--shadow-elevated);
  opacity: 0;
}

.hero-map-widget:hover {
  border-color: var(--accent-primary);
}

.hero-map-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 4px solid var(--border-default);
  background: var(--bg-tertiary);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
}

.hero-map-header .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  animation: dotPulse 1.5s steps(2) infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-map-header span {
  color: var(--text-primary);
}

#hero-map {
  height: 320px;
  z-index: 1;
  position: relative;
}

/* Leaflet overrides for retro theme */
.leaflet-container {
  background: var(--bg-tertiary) !important;
  font-family: 'JetBrains Mono', monospace !important;
}

.leaflet-control-zoom {
  border: 2px solid #000 !important;
  box-shadow: 2px 2px 0px #000 !important;
  border-radius: var(--radius-sm) !important;
}

.leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-bottom: 2px solid #000 !important;
}

.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 2px solid var(--border-default) !important;
  box-shadow: var(--shadow-card) !important;
  border-radius: var(--radius-sm) !important;
}

.leaflet-popup-tip {
  background: var(--border-default) !important;
}

.leaflet-popup-content {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 8px !important;
  line-height: 1.6 !important;
  margin: 10px 14px !important;
}

/* ============================================================
   BUTTONS (Retro Clicky Buttons)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  transition: all 0.1s ease;
  cursor: pointer;
  border: 2px solid #000;
  box-shadow: 4px 4px 0px #000;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  border-color: #000;
}

.btn-primary:hover {
  background: #b567ff;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: #000;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-secondary);
  border-top: 4px solid var(--border-default);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--border-default);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  max-width: 280px;
  aspect-ratio: 1 / 1;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.stat-card .stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  padding: var(--section-padding);
  position: relative;
  border-top: 4px solid var(--border-default);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.skill-card {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  position: relative;
}

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

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-primary);
  border: 2px solid var(--border-default);
}

.skill-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-primary);
}

.skill-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-secondary);
  border-top: 4px solid var(--border-default);
}

.project-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

.filter-btn.active {
  color: #fff;
  background: var(--accent-primary);
  border-color: #000;
  box-shadow: 2px 2px 0px #000;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.project-card.hidden {
  display: none;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 232, 157, 0.1);
  color: var(--accent-secondary);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  border: 1px solid rgba(0, 232, 157, 0.2);
}

.project-badge-private {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-tertiary);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.project-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  margin-bottom: 14px;
  line-height: 1.4;
  color: var(--text-primary);
}

.project-card .project-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-list span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  transition: color var(--transition-fast);
}

.project-link:hover {
  color: #b567ff;
}

.project-link-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-secondary);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  transition: color var(--transition-fast);
}

.project-link-demo:hover {
  color: #4df2b8;
}

.project-link-private {
  color: var(--text-muted);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   GITHUB ACTIVITY (Arcade Graph)
   ============================================================ */
.github-activity {
  padding: var(--section-padding);
  position: relative;
  border-top: 4px solid var(--border-default);
}

.contributions-wrapper {
  margin-top: 40px;
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.contributions-grid {
  display: flex;
  gap: 4px;
  min-width: 720px;
}

.contributions-week {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contribution-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: #27272a;
  transition: transform 0.1s ease;
}

.contribution-cell:hover {
  transform: scale(1.3);
  outline: 2px solid var(--accent-primary);
}

.contribution-cell[data-level="1"] {
  background: rgba(168, 85, 247, 0.25);
}
.contribution-cell[data-level="2"] {
  background: rgba(168, 85, 247, 0.5);
}
.contribution-cell[data-level="3"] {
  background: rgba(168, 85, 247, 0.75);
}
.contribution-cell[data-level="4"] {
  background: var(--accent-primary);
}

.contribution-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  min-width: 720px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-muted);
}

.github-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.github-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.github-stat .stat-number {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--accent-secondary);
}

.github-stat .stat-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

.contributions-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-muted);
}

.contributions-legend .legend-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-secondary);
  border-top: 4px solid var(--border-default);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  line-height: 1.5;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 232, 157, 0.1);
  color: var(--accent-secondary);
  border: 2px solid rgba(0, 232, 157, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-warm);
  border: 2px solid rgba(239, 68, 68, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  color: var(--text-secondary);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: rgba(168, 85, 247, 0.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 36px 24px;
  text-align: center;
  border-top: 4px solid var(--border-default);
  background: var(--bg-primary);
}

.site-footer p {
  color: var(--text-muted);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  line-height: 1.8;
}

.site-footer a {
  color: var(--accent-primary);
}

.site-footer .footer-heart {
  color: var(--accent-warm);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent-secondary);
  background: rgba(0, 232, 157, 0.05);
  transform: translateY(-2px);
}

/* ============================================================
   ANIMATION HELPERS
   ============================================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(20px);
}

.anim-fade-in {
  opacity: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-map-widget {
    max-width: 440px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav-overlay {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero h1 {
    font-size: clamp(16px, 6vw, 24px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #hero-map {
    height: 260px;
  }

  .profile-card {
    margin: 0 auto;
  }
}

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .project-filters {
    gap: 8px;
  }

  .filter-btn {
    font-size: 7px;
    padding: 8px 12px;
  }
}
