:root {
  --bg:         #060707;
  --bg2:        #0d0d0e;
  --bg3:        #0d0d0e;
  --lime:       #9c7b0f;
  --gold:       #ECCE48;
  --purple:     #A78BFA;
  --text:       #E2E8F0;
  --muted:      #64748B;
  --border:     rgba(255,255,255,0.07);
  --card-bg:    rgba(13,17,23,0.85);
  --header-h:   72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ─── MATRIX CANVAS ─── */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 99999;
  background: rgba(8,11,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: none;
  transition: background 0.3s;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.logo .dot { color: var(--lime); }

.nav-links { display: flex; gap: 8px; }
.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--lime);
  background: rgba(120,243,6,0.08);
}

/* ─── HAMBURGER ─── */
.nav-toggle-input { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px; height: 44px;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 999999;
  padding: 11px 9px;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger span {
  height: 2px; width: 22px;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s;
  transform-origin: center;
  display: block;
  pointer-events: none;
}
/* Animate to X when checked */
.nav-toggle-input:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle-input:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── SHARED ─── */
.section-pad { padding: 80px 10%; position: relative; z-index: 1; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--lime);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  opacity: 0.8;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title.centered { text-align: center; }
.section-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 60px;
}
.section-sub.centered { text-align: center; }

.accent { color: var(--lime); }
.accent-text { color: var(--lime); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--lime);
  color: #0A0A0A;
  box-shadow: 0 0 24px rgba(120,243,6,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(120,243,6,0.4);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 0 24px rgba(37,211,102,0.2);
}
.btn-whatsapp:hover { transform: translateY(-2px); background: #1ebe5b; }
.btn-whatsapp.large-wa { font-size: 16px; padding: 14px 28px; margin-top: 20px; }
.full-width { width: 100%; justify-content: center; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--header-h) + 60px) 10% 80px;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; max-width: 600px; }

.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 28px;
}

.terminal-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--lime);
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.hero-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 24px;
  min-height: 2em;
}
.typed-text { color: var(--lime); font-weight: 600; }
.cursor-blink {
  color: var(--lime);
  animation: blink 0.8s infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-bio { color: var(--muted); font-size: 16px; margin-bottom: 36px; line-height: 1.8; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  width: fit-content;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* ─── HERO VISUAL / ORBIT ─── */
.hero-visual {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}
.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(120,243,6,0.2);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: spin linear infinite;
}
.ring1 { width: 200px; height: 200px; animation-duration: 20s; }
.ring2 { width: 300px; height: 300px; animation-duration: 30s; border-color: rgba(236,206,72,0.15); }
.ring3 { width: 380px; height: 380px; animation-duration: 40s; animation-direction: reverse; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.avatar-container {
  position: absolute;
  width: 130px; height: 160px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 2;
  perspective: 900px;
}

/* Spinning sphere/ball avatar — vertical axis (rotateY), oval body */
.avatar-sphere {
  width: 100%; height: 100%;
  position: relative;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: ballSpin 6s linear infinite;
}
.avatar-face {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    inset -14px -10px 30px rgba(0,0,0,0.55),
    inset 10px 10px 24px rgba(255,255,255,0.06),
    0 10px 28px rgba(0,0,0,0.5);
}
.avatar-face-front { transform: rotateY(0deg); }
.avatar-face-back   { transform: rotateY(180deg) scaleX(-1); }
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes ballSpin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.avatar-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,243,6,0.3), transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 1;
}
@keyframes glowPulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

.orbit-icon {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--lime);
  top: 50%; left: 50%;
  transform-origin: center;
  z-index: 3;
  animation: orbitIcon linear infinite;
}
.oi1 { animation-duration: 20s; --orbit-r: 100px; animation-delay: 0s; }
.oi2 { animation-duration: 20s; --orbit-r: 100px; animation-delay: -6.7s; }
.oi3 { animation-duration: 20s; --orbit-r: 100px; animation-delay: -13.4s; color: var(--gold); }
.oi4 { animation-duration: 30s; --orbit-r: 150px; animation-delay: 0s; color: var(--gold); }
.oi5 { animation-duration: 30s; --orbit-r: 150px; animation-delay: -15s; }
.oi6 { animation-duration: 40s; --orbit-r: 190px; animation-delay: 0s; color: var(--purple); }
@keyframes orbitIcon {
  from { transform: translate(-50%,-50%) rotate(0deg) translateX(var(--orbit-r)) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg) translateX(var(--orbit-r)) rotate(-360deg); }
}

/* ─── ABOUT ─── */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.code-block {
  background: #0D1117;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: none;
}
.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.code-file {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
}
.code-content {
  padding: 24px;
  color: #E2E8F0;
  white-space: pre;
  overflow-x: auto;
}
.code-content .k { color: #FF7B72; }   /* keyword */
.code-content .s { color: #A5D6FF; }   /* string */
.code-content .n { color: #78F306; }   /* lime key */
.code-content .g { color: #ECCE48; }   /* gold */
.code-content .c { color: #8B949E; }   /* comment */

.about-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 20px;
}
.about-right p { color: var(--muted); margin-bottom: 16px; }
.about-right strong.accent-text { font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag {
  background: rgba(120,243,6,0.08);
  border: 1px solid rgba(120,243,6,0.2);
  color: var(--lime);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
}

/* ─── SKILLS ─── */
.skills { background: var(--bg); }
.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s;
}
.skill-category:hover { border-color: rgba(120,243,6,0.3); transform: translateY(-4px); }

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.skill-cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(120,243,6,0.12);
  border: 1px solid rgba(120,243,6,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--lime);
}
.skill-cat-icon.secondary { background: rgba(236,206,72,0.12); border-color: rgba(236,206,72,0.25); color: var(--gold); }
.skill-cat-icon.tertiary  { background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.25); color: var(--purple); }
.skill-cat-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.skill-bars { 
  display: flex; 
  flex-direction: column; 
  gap: 18px; }
.skill-item {}
.skill-meta { 
  display: flex; 
  justify-content: space-between; 
  margin-bottom: 8px; }
.skill-name { 
  font-size: 14px; 
  color: var(--text); 
  font-weight: 500; }
.skill-pct  { 
  font-family: 'JetBrains Mono', monospace; 
  font-size: 13px; 
  color: var(--lime); }
.skill-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), #ECCE48);
  border-radius: 99px;
  transition: width 1.6s cubic-bezier(0.4,0,0.2,1);
}
.skill-category:nth-child(2) .skill-bar-fill { background: linear-gradient(90deg, var(--gold), var(--lime)); }
.skill-category:nth-child(3) .skill-bar-fill { background: linear-gradient(90deg, var(--purple), var(--lime)); }

/* ─── PROJECTS ─── */
.projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.project-card:hover { border-color: rgba(120,243,6,0.35); transform: translateY(-6px); }

.project-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--lime);
  background: rgba(120,243,6,0.08);
  border: 1px solid rgba(120,243,6,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.project-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(120,243,6,0.1);
  border: 1px solid rgba(120,243,6,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--lime);
  margin-bottom: 18px;
}
.project-icon.secondary-icon { background: rgba(236,206,72,0.1); border-color: rgba(236,206,72,0.2); color: var(--gold); }
.project-icon.tertiary-icon  { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.2); color: var(--purple); }

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.project-desc { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.project-stack { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.project-stack span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  border-radius: 4px;
}
.project-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.project-link:hover { gap: 14px; }

.cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(120,243,6,0.06), rgba(236,206,72,0.06));
  border: 1px dashed rgba(120,243,6,0.3);
  text-align: center;
}
.cta-card-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-plus { font-size: 32px; color: var(--lime); margin-bottom: 4px; }
.cta-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; }
.cta-card p  { color: var(--muted); font-size: 14px; }

/* ─── SERVICES ─── */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover { border-color: rgba(120,243,6,0.35); transform: translateY(-4px); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(120,243,6,0.1);
  border: 1px solid rgba(120,243,6,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--lime);
  margin-bottom: 20px;
}
.service-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.service-price {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--lime);
  font-weight: 600;
}

.pricing-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
}
.table-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 28px;
}
.table-scroll { overflow-x: auto; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: none;
}
.pricing-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--lime);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-table td { color: var(--muted); }
.pricing-table td:first-child { color: var(--text); font-weight: 500; }
.pricing-table td:last-child  { color: var(--gold); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.pricing-table tr:hover td { background: rgba(255,255,255,0.02); }
.pricing-table tbody tr:last-child td { border-bottom: none; }

/* ─── CONTACT ─── */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(120,243,6,0.1);
  border: 1px solid rgba(120,243,6,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--lime);
  flex-shrink: 0;
}
.contact-icon.secondary-icon { background: rgba(236,206,72,0.1); border-color: rgba(236,206,72,0.2); color: var(--gold); }
.contact-icon.tertiary-icon  { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.2); color: var(--purple); }
.contact-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.contact-value { font-weight: 500; color: var(--text); font-size: 15px; transition: color 0.2s; }
.contact-value:hover { color: var(--lime); }

/* Contact Form */
.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--lime); background: rgba(120,243,6,0.04); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--bg3); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg);
  border-top: none;
  padding: 60px 10%;
  position: relative;
  z-index: 1;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; }
.footer-tagline { color: var(--muted); font-size: 14px; }
.footer-social { display: flex; gap: 16px; margin: 8px 0; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--lime); border-color: rgba(120,243,6,0.3); }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ─── HERO ANIMATIONS (CSS-only, fire on page load) ─── */
.hero-reveal {
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
}
.hero-reveal-right {
  opacity: 0;
  animation: heroFadeRight 0.9s ease forwards;
}
.hero-reveal.d1, .hero-reveal-right.d1 { animation-delay: 0.15s; }
.hero-reveal.d2, .hero-reveal-right.d2 { animation-delay: 0.30s; }
.hero-reveal.d3, .hero-reveal-right.d3 { animation-delay: 0.45s; }
.hero-reveal.d4, .hero-reveal-right.d4 { animation-delay: 0.60s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── SCROLL REVEAL (non-hero sections) ─── */
/* Start visible — JS observer adds animation class when scrolled into view */
.reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }

/* When JS marks them as animate-ready, apply the transition */
.will-animate.reveal-up    { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.will-animate.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.will-animate.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.revealed { opacity: 1 !important; transform: none !important; }

.delay1 { transition-delay: 0.1s; }
.delay2 { transition-delay: 0.2s; }
.delay3 { transition-delay: 0.3s; }
.delay4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-layout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  header { padding: 0 24px; }
  .hamburger {
    display: flex !important;
  }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh; width: 260px;
    background: #0D1117;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    border-left: 1px solid var(--border);
    transition: right 0.35s ease;
    z-index: 999998;
    gap: 4px;
    box-shadow: -8px 0 32px rgba(0,0,0,0.5);
  }
  /* CSS-only open: checkbox drives the nav */
  .nav-toggle-input:checked ~ .nav-links { right: 0; }
  .nav-links.show { right: 0; }
  .nav-links a { font-size: 16px; width: 100%; padding: 12px 16px; border-radius: 8px; }

  .hero { flex-direction: column; text-align: center; padding-top: calc(var(--header-h) + 40px); }
  .hero-visual { width: 260px; height: 260px; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-bio { margin: 0 auto 36px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .section-pad { padding: 80px 6%; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 20px; }
  .stat-divider { width: 48px; height: 1px; }
}

footer.portfolio-footer {
  width: 100%;
  max-width: 100%;
  margin: 80px auto 0 auto;
  padding: 40px 10%;
  background: var(--bg2);
  background: transparent;  
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 10;
}

.footer-left-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.footer-left-meta p {
  font-size: 14px;
  color: var(--text);
  opacity: 0.85;
}

.developer-attribution {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px !important;
  color: var(--muted);
}

.dev-link {
  color: var(--lime);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}

.dev-link:hover {
  color: #1c1d19;
  text-shadow: 0 0 8px var(--lime);
}

/* Fixed Professional Chips Container Grid System */
.professional-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 50%;
  flex-shrink: 0;
}

.skill-chip {
  background: rgba(35, 42, 49, 0.02);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.25s ease;
}

.skill-chip:hover {
  border-color: var(--lime);
}

/* Adaptive Breakpoint System Grid Optimization */
@media (max-width: 820px) {
  footer.portfolio-footer {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
    gap: 24px;
  }

  .professional-chips {
    justify-content: center;
    max-width: 100%;
    width: 100%;
  }

  .footer-left-meta {
    width: 100%;
  }
}