/* ════════════════════════════════════════
   AMANJ AMJADI — PORTFOLIO STYLESHEET
   ════════════════════════════════════════ */

/* ── REAL PROJECT IMAGES ── */
.proj-single-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.project-card:hover .proj-single-img {
  transform: scale(1.04);
}

/* ── REAL PROFILE PHOTO ── */
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
  transform: scale(1.02); /* slight zoom to fill ring edge */
}

/* ── PROJECT CAROUSEL ── */
.project-image-carousel {
  overflow: hidden;
  position: relative;
}
.proj-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.proj-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: block;
}
.proj-slide.active {
  opacity: 1;
  position: relative;
}
.carousel-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.cdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.cdot.active {
  background: white;
  transform: scale(1.3);
}

/* ── DESIGN TOKENS ── */
:root {
  --bg-base:        #080c14;
  --bg-surface:     #0d1421;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(255,255,255,0.07);
  --border:         rgba(255,255,255,0.08);
  --border-hover:   rgba(100,180,255,0.3);

  --accent:         #38bdf8;
  --accent-2:       #818cf8;
  --accent-3:       #34d399;
  --accent-glow:    rgba(56,189,248,0.25);

  --text-primary:   #f0f6ff;
  --text-secondary: #8b9cb8;
  --text-muted:     #4a5a72;

  --font-sans:      'Inter', system-ui, sans-serif;
  --font-mono:      'Fira Code', monospace;

  --nav-h:          68px;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      32px;

  --ease-spring:    cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:       cubic-bezier(0.16,1,0.3,1);
  --transition:     0.3s var(--ease-out);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ── SELECTION ── */
::selection { background: var(--accent); color: var(--bg-base); }

/* ── UTILITIES ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.accent-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 1px;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }
.logo-name {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-dot {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: -2px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-link.active { color: var(--accent); }
.btn-cv {
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-base);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.btn-cv:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg-base);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(56,189,248,0.06);
  transform: translateY(-2px);
}

/* ── TAGS ── */
.tag {
  display: inline-flex;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 100px;
  white-space: nowrap;
}
.tag-sm { padding: 3px 9px; font-size: 0.72rem; }

/* ──────────────────────────────────────
   HERO
   ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-base);
}
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}
.glow-1 {
  width: 500px; height: 500px;
  top: -100px; left: -100px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.18) 0%, transparent 70%);
  animation-delay: 0s;
}
.glow-2 {
  width: 400px; height: 400px;
  top: 40%; right: -80px;
  background: radial-gradient(ellipse, rgba(129,140,248,0.18) 0%, transparent 70%);
  animation-delay: -3s;
}
.glow-3 {
  width: 300px; height: 300px;
  bottom: 100px; left: 30%;
  background: radial-gradient(ellipse, rgba(52,211,153,0.12) 0%, transparent 70%);
  animation-delay: -6s;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
  animation: fade-up 1s var(--ease-out) both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-3);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fade-up 1s 0.1s var(--ease-out) both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent-3);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero-name {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  animation: fade-up 1s 0.2s var(--ease-out) both;
}
.name-line { display: block; }

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--accent);
  margin-bottom: 20px;
  min-height: 2em;
  animation: fade-up 1s 0.3s var(--ease-out) both;
}
.type-prefix { color: var(--text-muted); }
.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fade-up 1s 0.4s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
  animation: fade-up 1s 0.5s var(--ease-out) both;
}

.hero-socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  animation: fade-up 1s 0.6s var(--ease-out) both;
}
.social-link {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(56,189,248,0.08);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: fade-in 1s 1.5s both;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--text-muted);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 7px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ──────────────────────────────────────
   SECTIONS
   ────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--bg-surface);
}
.section-header {
  margin-bottom: 56px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────
   ABOUT
   ────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}
.about-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.avatar-ring {
  width: 180px; height: 180px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
  animation: ring-spin 8s linear infinite;
}
@keyframes ring-spin {
  0%   { background: linear-gradient(0deg,   var(--accent), var(--accent-2)); }
  50%  { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
  100% { background: linear-gradient(360deg, var(--accent), var(--accent-2)); }
}
.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-initials {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}
.avatar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--accent-3);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.2);
  padding: 5px 14px;
  border-radius: 100px;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--accent-3);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--transition), background var(--transition);
}
.stat-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-plus { font-size: 1rem; }
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-body {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* ──────────────────────────────────────
   SKILLS
   ────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.skill-category:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.skill-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.skill-icon svg { width: 20px; height: 20px; }
.skill-cat-header h3 { font-size: 1rem; font-weight: 700; }

.skill-items { display: flex; flex-direction: column; gap: 16px; }
.skill-item { display: flex; flex-direction: column; gap: 7px; }
.skill-name { font-size: 0.84rem; color: var(--text-secondary); font-weight: 500; }
.skill-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width 1.2s var(--ease-out);
}

/* ──────────────────────────────────────
   EXPERIENCE / TIMELINE
   ────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}
.timeline-item.active .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  transition: border-color var(--transition), background var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-company {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}
.timeline-location {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.timeline-role {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.timeline-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.timeline-points li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.65;
}
.timeline-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 2px;
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ──────────────────────────────────────
   PROJECTS
   ────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.project-image {
  position: relative;
  height: 170px;
  overflow: hidden;
}
.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}
.project-card:hover .project-img-placeholder {
  transform: scale(1.05);
}
.project-img-placeholder svg { width: 80px; height: 80px; opacity: 0.7; }

.pi-blue   { background: linear-gradient(135deg, #0f2444, #1a3a6e); color: #60a5fa; }
.pi-purple { background: linear-gradient(135deg, #1a0a2e, #2d175a); color: #c084fc; }
.pi-green  { background: linear-gradient(135deg, #0a2010, #0f3d20); color: #4ade80; }
.pi-cyan   { background: linear-gradient(135deg, #0a2030, #0a3a4a); color: #22d3ee; }
.pi-orange { background: linear-gradient(135deg, #1a0e00, #3d2200); color: #fb923c; }

/* Carousel image taller height for real screenshots */
.project-image-carousel {
  height: 220px;
}

.project-overlay {
  position: absolute;
  top: 12px; right: 12px;
}
.project-status {
  padding: 4px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-3);
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 100px;
}
.project-status.ai {
  color: var(--accent-2);
  background: rgba(129,140,248,0.15);
  border-color: rgba(129,140,248,0.3);
}
.project-status.live {
  color: var(--accent-3);
  background: rgba(52,211,153,0.15);
  border-color: rgba(52,211,153,0.3);
}

.project-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.project-name {
  font-size: 1.05rem;
  font-weight: 700;
}
.project-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tech span {
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
}
.project-links { display: flex; gap: 10px; flex-wrap: wrap; }
.project-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}
.project-link:hover { color: var(--accent-2); }
.project-link-ios {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-3);
  transition: color var(--transition);
}
.project-link-ios:hover { color: #6ee7b7; }
.project-link-disabled {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.project-add {
  border-style: dashed;
  cursor: default;
  min-height: 200px;
  justify-content: center;
}
.project-add-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
  text-align: center;
}
.add-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
}
.project-add-inner p { font-weight: 600; color: var(--text-secondary); }
.project-add-inner span { font-size: 0.82rem; color: var(--text-muted); }

/* ──────────────────────────────────────
   CERTIFICATIONS
   ────────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.cert-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.cert-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-icon svg { width: 22px; height: 22px; }
.cert-red    { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.2);  color: #f87171; }
.cert-blue   { background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.2); color: var(--accent); }
.cert-orange { background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2); color: #fb923c; }
.cert-green  { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: var(--accent-3); }

.cert-info h4 { font-size: 0.97rem; font-weight: 700; }
.cert-info p  { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.cert-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────
   CONTACT
   ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition);
}
.contact-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.contact-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition);
}
a.contact-value:hover { color: var(--accent); }

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(56,189,248,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ──────────────────────────────────────
   FOOTER
   ────────────────────────────────────── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ──────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────── */
@media (max-width: 1024px) {
  .skills-grid       { grid-template-columns: 1fr 1fr; }
  .projects-grid     { grid-template-columns: 1fr 1fr; }
  .certs-grid        { grid-template-columns: 1fr 1fr; }
  .about-grid        { grid-template-columns: 1fr; gap: 36px; }
  .about-avatar-wrap { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .btn-cv { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,12,20,0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px 32px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    z-index: 999;
  }
  .nav-links.open + .btn-cv { display: none; }

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

  .section { padding: 70px 0; }
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -20px; }
  .timeline-card { padding: 20px; }
  .timeline-meta { flex-direction: column; gap: 4px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stat-card .stat-num { font-size: 1.3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .about-stats { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 480px) {
  .about-stats        { grid-template-columns: 1fr; }
  .cta-card           { padding: 24px; }
  .project-card       { border-radius: var(--radius-md); }
  .skills-grid,
  .projects-grid,
  .certs-grid,
  .contact-grid { gap: 14px; }
}

/* ══════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease;
  opacity: 0;
}
.lightbox.open .lb-img {
  transform: scale(1);
  opacity: 1;
}
.lb-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10000;
}
.lb-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.lb-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10000;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-nav:disabled { opacity: 0.3; cursor: default; }
.lb-counter {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 100px;
}

/* Make carousel images & single images look clickable */
.proj-slide, .proj-single-img {
  cursor: zoom-in;
}

/* Contact secondary value */
.contact-value-secondary {
  display: block;
  margin-top: 2px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
