:root {
  --bg: #080d14;
  --bg2: #0d1520;
  --bg3: #111b2a;
  --green: #22c55e;
  --green-dim: #16a34a;
  --green-light: #4ade80;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --text: #e2e8f0;
  --text-secondary: #cbd5e1;
  --muted: #64748b;
  --border: #1e2d3d;
  --border-light: #334155;
  --card: #0f1c2b;
  --card-hover: #132a47;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

/* Custom cursor */
.cursor {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--green);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  opacity: 0.5;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 4px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 4rem;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  backdrop-filter: blur(0px);
}
nav.scrolled {
  background: rgba(8,13,20,0.92);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.nav-logo:hover {
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}
.nav-logo span { color: var(--text); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 44px; height: 38px;
  align-items: center; justify-content: center;
  padding: 0.25rem;
}
.nav-toggle .bar {
  display: block; width: 22px; height: 2px; background: var(--text-secondary);
  margin: 4px 0; border-radius: 2px; transition: all 0.18s ease;
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--text); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--text); }
.nav-links a {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}
.nav-links a::before { content: ''; display: none; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--green), var(--cyan)); transform: scaleX(0); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-links a:hover { color: var(--green-light); }
.nav-links a:hover::after { transform: scaleX(1); }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  max-width: 1100px;
  position: relative; z-index: 1;
}

/* Photo circle */
.hero-photo-wrap {
  flex-shrink: 0;
  position: relative;
  width: 320px; height: 320px;
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
}
.hero-photo-ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--green), var(--cyan), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spinRing 8s linear infinite;
}
.hero-photo-dots {
  position: absolute; inset: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(34,197,94,0.2);
  animation: spinRing 20s linear infinite reverse;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-photo-glow {
  position: absolute; inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid rgba(34,197,94,0.3);
  display: block;
  position: relative; z-index: 1;
  filter: brightness(1.05) contrast(1.05);
}


/* Grid background */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* Glowing orb */
#hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  max-width: 620px;
}

.hero-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
  opacity: 0; animation: fadeUp 0.6s 0.2s forwards;
  font-weight: 600;
  text-transform: uppercase;
}
.hero-tag::before { content: ''; width: 50px; height: 2px; background: linear-gradient(to right, var(--green), transparent); }

.hero-name {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  opacity: 0; animation: fadeUp 0.6s 0.35s forwards;
  color: var(--text);
}
.hero-name .accent { 
  color: var(--green);
}

.hero-title {
  font-family: 'Fira Code', monospace;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.6s 0.5s forwards;
  font-weight: 600;
}
.hero-title .blink {
  display: inline-block;
  width: 2px; height: 1.2em;
  background: var(--cyan);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.6s 0.65s forwards;
  font-weight: 400;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.6s 0.8s forwards;
}

.btn-primary {
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #000;
  border: none; border-radius: 6px;
  text-decoration: none; cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover::after { transform: translateX(0); }

.btn-outline {
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 2rem;
  background: rgba(34, 197, 94, 0.05);
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 6px;
  text-decoration: none; cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex; align-items: center;
  position: relative;
}
.btn-outline:hover {
  background: rgba(34, 197, 94, 0.12);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex; gap: 1.2rem; margin-top: 3rem;
  opacity: 0; animation: fadeUp 0.6s 0.95s forwards;
}
.hero-socials a {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
  cursor: none;
}
.hero-socials a:hover { color: var(--green); }
.hero-socials a svg { width: 14px; height: 14px; }

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: fadeIn 1s 1.5s forwards;
}
.scroll-hint span {
  font-family: 'Fira Code', monospace; font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.1em;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollLine 2s ease infinite;
}

/* SECTION BASE */
section { padding: 7rem 4rem; }
.section-header {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 4rem;
  position: relative;
}
.section-header::before {
  content: '';
  width: 4px; height: 2.2rem;
  background: linear-gradient(to bottom, var(--green), var(--cyan));
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  max-width: 300px;
}

/* ABOUT */
#about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-text p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 1.4rem;
}
.about-text p strong { color: var(--green-light); font-weight: 700; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.stat-card {
  background: linear-gradient(135deg, rgba(15, 28, 43, 0.8) 0%, rgba(17, 27, 42, 0.6) 100%);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.8rem;
  position: relative; overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--green), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.stat-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.08), 0 0 20px rgba(34, 197, 94, 0.04);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-num {
  font-size: 2.5rem; font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem; color: var(--text-secondary);
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* SKILLS */
#skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px; margin: 0 auto;
}
.skill-group {
  background: linear-gradient(135deg, rgba(15, 28, 43, 0.9) 0%, rgba(17, 27, 42, 0.6) 100%);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 2.2rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
}
.skill-group::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.08), transparent);
  transition: left 0.5s ease;
}
.skill-group::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--green), var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.skill-group:hover {
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.1), 0 0 40px rgba(34, 197, 94, 0.08), inset 0 1px 0 rgba(34, 197, 94, 0.1);
}
.skill-group:hover::before { left: 100%; }
.skill-group:hover::after { opacity: 1; }
.skill-group-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.skill-group-title::before {
  content: '◆';
  font-size: 0.6rem;
  color: var(--green);
  animation: float 2s ease-in-out infinite;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skill-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-secondary);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.skill-tag::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
  transition: left 0.5s ease;
}
.skill-tag:hover {
  border-color: var(--green);
  color: var(--green-light);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), inset 0 0 20px rgba(34, 197, 94, 0.05);
  transform: translateY(-3px) scale(1.08);
}
.skill-tag:hover::before { left: 100%; }

/* EXPERIENCE */
#experience { background: var(--bg2); }
.exp-container { max-width: 900px; margin: 0 auto; }
.exp-item {
  display: grid;
  grid-template-columns: 1fr;
  border-left: 2px solid var(--border-light);
  padding-left: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  transition: all 0.3s ease;
}
.exp-item::before {
  content: '';
  position: absolute; left: -6.5px; top: 6px;
  width: 11px; height: 11px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border: 3px solid var(--bg2);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}
.exp-item:hover::before {
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
  transform: scale(1.2);
}
.exp-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.exp-role { font-size: 1.2rem; font-weight: 700; }
.exp-company { color: var(--green); font-size: 0.9rem; margin-bottom: 0.3rem; }
.exp-date {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  background: var(--bg3);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.exp-points { list-style: none; margin-top: 1rem; }
.exp-points li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.exp-points li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--green); font-size: 0.8rem;
}
.exp-highlight {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

/* PROJECTS */
#projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
.project-card {
  background: linear-gradient(135deg, rgba(15, 28, 43, 0.7) 0%, rgba(17, 27, 42, 0.5) 100%);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 2.2rem;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--green), var(--cyan), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.project-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.1), 0 0 30px rgba(34, 197, 94, 0.05);
}
.project-card:hover::before { transform: scaleX(1); }
.project-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-bottom: 1.2rem;
}
.project-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-desc {
  color: var(--muted); font-size: 0.88rem;
  line-height: 1.7; margin-bottom: 1.2rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.project-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem; letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green-light);
  transition: all 0.25s ease;
}
.project-tag:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--green);
}
.project-highlights { list-style: none; }
.project-highlights li {
  color: var(--text-secondary); 
  font-size: 0.87rem;
  padding: 0.35rem 0 0.35rem 1.2rem;
  position: relative;
  line-height: 1.6;
}
.project-highlights li::before {
  content: '▸'; 
  position: absolute; 
  left: 0;
  color: var(--green); 
  font-size: 1rem; 
  line-height: 1.2;
}

/* CERTIFICATIONS */
#certifications { background: var(--bg2); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 0 2.5rem;
}
.cert-card {
  background: linear-gradient(180deg, rgba(15, 23, 30, 0.9), rgba(12,18,24,0.7));
  border: 1px solid rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.1rem 1rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: transform 0.28s cubic-bezier(.2,.9,.3,1), box-shadow 0.28s;
  position: relative; overflow: hidden;
  cursor: pointer;
  min-height: 108px;
  align-items: flex-start;
}
/* subtle thin accent bar on the left */
.cert-card::after {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  background: linear-gradient(180deg, rgba(34,197,94,0.9), rgba(6,182,212,0.6));
  border-top-left-radius: 8px; border-bottom-left-radius: 8px;
  transform: translateX(-3px);
  transition: transform 0.28s ease;
}
.cert-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--green), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.cert-card:hover {
  border-color: rgba(34, 197, 94, 0.08);
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(3,8,14,0.6), 0 6px 20px rgba(34,197,94,0.03);
}
.cert-card:hover::before { transform: scaleX(1); }
.cert-card:hover::after { transform: translateX(0); }
.cert-card .cert-view-hint { display: none; }
.cert-actions {
  margin-left: auto; display: flex; align-items: center; gap: 0.6rem;
}
.cert-view-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.04);
  color: var(--text); padding: 0.45rem 0.65rem; font-family: 'Fira Code', monospace;
  font-size: 0.72rem; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.18s ease;
}
.cert-view-btn svg { width: 14px; height: 14px; opacity: 0.9; }
.cert-view-btn:hover { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.12); }
.cert-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.02);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0; color: var(--green);
}
.cert-rh { background: linear-gradient(180deg, rgba(244,63,94,0.06), rgba(244,63,94,0.02)); border-color: rgba(244,63,94,0.18); color: #f87171; }
.cert-aws { background: linear-gradient(180deg, rgba(255,178,77,0.06), rgba(255,178,77,0.02)); border-color: rgba(255,178,77,0.18); color: #fb923c; }
.cert-cisco { background: linear-gradient(180deg, rgba(6,182,212,0.06), rgba(6,182,212,0.02)); border-color: rgba(6,182,212,0.18); color: var(--cyan); }
.cert-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; color: #e6eef4; max-width: 56ch; }
.cert-issuer {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem; color: var(--green); letter-spacing: 0.08em; text-transform: uppercase;
}
.cert-date {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem; color: var(--muted); margin-top: 0.28rem;
}

/* CERT MODAL */
.cert-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 9, 15, 0.92);
  backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.cert-modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.cert-modal {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%; max-width: 860px;
  max-height: 92vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cert-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cert-modal-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem; color: var(--green);
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 0.5rem;
}
.cert-modal-title::before { content: '📄'; }
.cert-modal-actions { display: flex; align-items: center; gap: 0.8rem; }
.cert-modal-download {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--green); text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 5px;
  background: rgba(34,197,94,0.06);
  transition: all 0.2s;
  cursor: none;
}
.cert-modal-download:hover { background: rgba(34,197,94,0.12); }
.cert-modal-close {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  cursor: none; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cert-modal-close:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.cert-modal-body { flex: 1; overflow: hidden; min-height: 0; }
.cert-modal-body iframe {
  width: 100%; height: 100%;
  border: none; min-height: 70vh;
  display: block;
}

/* CONTACT */
#contact {
  background: var(--bg);
  text-align: center;
  padding: 8rem 4rem;
  position: relative; overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(34,197,94,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner { max-width: 600px; margin: 0 auto; position: relative; }
.contact-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem; color: var(--green);
  font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 1rem;
  text-transform: uppercase;
}
.contact-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-sub { 
  color: var(--text-secondary); 
  line-height: 1.8; 
  margin-bottom: 2.5rem; 
  font-size: 1.05rem;
}
.contact-links {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.contact-link {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--text-secondary); text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  display: flex; align-items: center; gap: 0.6rem;
  transition: all 0.3s ease;
  background: rgba(15, 28, 43, 0.5);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-weight: 500;
}
.contact-link:hover {
  border-color: var(--green);
  color: var(--green-light);
  background: rgba(34, 197, 94, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
}
.contact-link svg { width: 16px; height: 16px; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border-light);
  padding: 2rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem; color: var(--text-secondary);
  background: linear-gradient(180deg, var(--bg2) 0%, rgba(8, 13, 20, 0.8) 100%);
  backdrop-filter: blur(10px);
}
footer span {
  transition: color 0.3s ease;
}
footer span:hover {
  color: var(--green-light);
}

/* ANIMATIONS - Enhanced */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 25px rgba(34, 197, 94, 0.5); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* CERT MODAL */
.cert-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(4, 8, 15, 0.92);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.cert-modal-overlay.open { display: flex; }
.cert-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: min(92vw, 860px);
  height: min(90vh, 680px);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(34,197,94,0.08);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cert-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cert-modal-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem; color: var(--green);
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 0.6rem;
}
.cert-modal-title::before { content: 'CERT'; font-size: 0.75rem; }
.cert-modal-actions { display: flex; gap: 0.6rem; }
.cert-btn {
  font-family: 'Fira Code', monospace; font-size: 0.7rem;
  padding: 0.4rem 0.9rem;
  border-radius: 5px; cursor: pointer;
  border: 1px solid var(--border);
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.cert-btn-download {
  background: rgba(34,197,94,0.1); color: var(--green);
  border-color: rgba(34,197,94,0.25);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
}
.cert-btn-download:hover { background: rgba(34,197,94,0.18); }
.cert-btn-close {
  background: rgba(255,255,255,0.04); color: var(--muted);
}
.cert-btn-close:hover { color: var(--text); border-color: var(--muted); }
.cert-modal iframe {
  flex: 1; border: none; width: 100%;
  background: #fff;
}
/* clickable cert cards */
.cert-card { cursor: pointer; }
.cert-card .cert-view-hint {
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem; color: var(--green);
  margin-top: 0.4rem; opacity: 0;
  transition: opacity 0.2s;
  letter-spacing: 0.08em;
}
.cert-card:hover .cert-view-hint { opacity: 1; }
.cert-card:hover { box-shadow: 0 0 0 1px rgba(34,197,94,0.2); }

@media (max-width: 768px) {
  nav { padding: 1rem 1.2rem; }
  .nav-toggle { display: flex; }
  /* hide links by default on small screens, reveal via toggle */
  .nav-links { display: none; gap: 1rem; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; right: 1rem; background: rgba(6,11,16,0.96); border: 1px solid var(--border); padding: 0.8rem; border-radius: 10px; gap: 0.6rem; min-width: 220px; box-shadow: 0 12px 30px rgba(2,6,10,0.6); }
  .nav-links.open a { color: var(--text); }
  .nav-links li { margin: 0.15rem 0; }
  section, #hero, #contact { padding: 4rem 1rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 1rem; }
  .about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.25rem; }
  footer { flex-direction: column; gap: 0.8rem; text-align: center; }
  .hero-inner { flex-direction: column-reverse; gap: 2rem; text-align: center; align-items: center; }
  .hero-photo-wrap { width: 200px; height: 200px; }
  .hero-tag, .hero-socials { justify-content: center; }
  .hero-actions { justify-content: center; flex-wrap: wrap; gap: 0.6rem; }
  .btn-primary, .btn-outline { padding: 0.7rem 1rem; font-size: 0.95rem; }
  .skill-tag { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
  .stat-num { font-size: 2.1rem; }
  .nav-logo { font-size: 1rem; }
}

@media (max-width: 480px) {
  nav { padding: 0.8rem 1rem; }
  .nav-links { gap: 0.6rem; font-size: 0.85rem; }
  .nav-links li { width: 100%; text-align: right; }
  .hero-photo-wrap { width: 150px; height: 150px; }
  .hero-name { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero-title { font-size: 0.95rem; }
  .hero-desc { font-size: 0.95rem; padding: 0 0.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-group { padding: 1.4rem; border-radius: 10px; }
  .skill-tag { padding: 0.45rem 0.8rem; font-size: 0.75rem; }
  .about-stats { grid-template-columns: 1fr; }
  .stat-card { padding: 1rem; }
  .hero-actions a { width: 100%; display: inline-flex; justify-content: center; }
  .cursor, .cursor-ring { display: none; }
}
