/* ═══════════════════════════════════════════════════════
   ROHAN VISHWAKARMA PORTFOLIO – style.css
   Modern, Clean, Artistic & Professional
   ═══════════════════════════════════════════════════════ */

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

:root {
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --bg-alt:      #f1f5f9;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1e293b;
  --gray-900:    #0f172a;
  --accent:      #4f46e5;       /* Indigo 600 */
  --accent-light:#6366f1;       /* Indigo 500 */
  --accent-faint:#eef2ff;       /* Indigo 50 */
  --accent2:     #0891b2;       /* Cyan 600 */
  --radius:      14px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(15,23,42,.06);
  --shadow-lg:   0 10px 30px rgba(15,23,42,.08);
  --transition:  all .22s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head:   'Space Grotesk', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Canvas Background ── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────── */
/*  NAVIGATION                                            */
/* ─────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
  padding: 0 1.5rem;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.02em;
}
.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 99px;
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.admin-nav-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--gray-400) !important;
  background: transparent;
  transition: all .2s !important;
}
.admin-nav-link svg {
  width: 18px;
  height: 18px;
}
.admin-nav-link::after { display: none !important; }
.admin-nav-link:hover {
  color: var(--accent) !important;
  background: var(--accent-faint);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 99;
  padding: 1rem 0;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: .85rem 2rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background .15s, color .15s;
}
.mobile-menu a:hover { background: var(--accent-faint); color: var(--accent); }
.mobile-menu svg { width: 18px; height: 18px; }

/* ─────────────────────────────────────────────────────── */
/*  SECTIONS                                              */
/* ─────────────────────────────────────────────────────── */
.section { padding: 96px 1.5rem; }
.section-alt { background: rgba(241, 245, 249, 0.6); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: .4rem;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 3.25rem;
  font-size: .95rem;
}
.accent { color: var(--accent); }

/* ─────────────────────────────────────────────────────── */
/*  HERO                                                  */
/* ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 950px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: center;
}

.photo-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}
.photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent2), var(--accent));
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.photo-wrapper img {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.greeting {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: .4rem;
  letter-spacing: -0.02em;
}
.hero-role {
  font-size: 1.15rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: .4rem;
  min-height: 1.8rem;
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}
.hero-location svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.hero-summary {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform .2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover svg {
  transform: translateX(3px);
}
.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: .75rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.social-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social-btn svg { width: 18px; height: 18px; }

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray-400);
  animation: bounce 2s ease-in-out infinite;
}
.scroll-down svg { width: 24px; height: 24px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─────────────────────────────────────────────────────── */
/*  SKILLS                                                */
/* ─────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.skill-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.1);
  transform: translateY(-4px);
}
.skill-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-faint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.skill-icon-wrap svg { width: 22px; height: 22px; }
.skill-card:hover .skill-icon-wrap {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.05);
}
.skill-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: .85rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  font-size: .78rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: .3rem .75rem;
  border-radius: 99px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.skill-card:hover .tag {
  background: var(--accent-faint);
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.15);
}

/* ─────────────────────────────────────────────────────── */
/*  EXPERIENCE TIMELINE                                   */
/* ─────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 17px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  position: relative;
  z-index: 1;
  margin-top: .15rem;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.6rem;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.timeline-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.tc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .4rem; }
.tc-role { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--gray-900); }
.tc-org { font-size: .9rem; color: var(--accent); margin-top: .15rem; font-weight: 600; }
.tc-badge {
  font-size: .72rem;
  font-weight: 600;
  background: var(--accent-faint);
  color: var(--accent);
  padding: .25rem .65rem;
  border-radius: 99px;
  white-space: nowrap;
  border: 1px solid rgba(79, 70, 229, 0.2);
  letter-spacing: 0.03em;
}
.tc-location {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .825rem;
  color: var(--gray-500);
  margin-bottom: .85rem;
}
.tc-location svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.tc-points { padding-left: 1rem; }
.tc-points li {
  font-size: .875rem;
  color: var(--gray-600);
  margin-bottom: .5rem;
  position: relative;
  padding-left: .25rem;
}
.tc-points li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: -1rem;
}

/* ─────────────────────────────────────────────────────── */
/*  PROJECTS                                              */
/* ─────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .25s;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.project-card:hover::before { opacity: 1; }

.project-card.featured {
  border-color: rgba(79, 70, 229, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.project-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-faint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.project-icon-wrap svg { width: 22px; height: 22px; }
.project-card:hover .project-icon-wrap {
  background: var(--accent);
  color: var(--white);
}

.project-links { display: flex; gap: .5rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.icon-btn:hover { background: var(--accent); color: white; border-color: var(--accent); transform: translateY(-2px); }
.icon-btn svg { width: 16px; height: 16px; }

.icon-btn.live-icon-btn {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}
.icon-btn.live-icon-btn:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

/* Badge row & Pills */
.badge-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  padding: .25rem .65rem;
  border-radius: 99px;
  border: 1px solid #a7f3d0;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tag-pill {
  font-size: .7rem;
  font-weight: 600;
  background: var(--accent-faint);
  color: var(--accent);
  padding: .25rem .6rem;
  border-radius: 99px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-badge {
  font-size: .7rem;
  font-weight: 600;
  background: #fffbeb;
  color: #b45309;
  padding: .25rem .6rem;
  border-radius: 99px;
  border: 1px solid #fde68a;
}

.contrib-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 600;
  background: #f5f3ff;
  color: #6d28d9;
  padding: .25rem .6rem;
  border-radius: 99px;
  border: 1px solid #ddd6fe;
}
.contrib-badge svg { width: 13px; height: 13px; }

.org-badge {
  font-size: .7rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: .25rem .6rem;
  border-radius: 99px;
  border: 1px solid var(--gray-200);
}

.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: .45rem;
}
.project-card p {
  font-size: .875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.6;
  flex: 1;
}

.live-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: .4rem .9rem;
  border-radius: 8px;
  margin-bottom: .95rem;
  width: fit-content;
  transition: var(--transition);
}
.live-cta-btn svg { width: 14px; height: 14px; }
.live-cta-btn:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
  transform: translateY(-1px);
}

.project-tech { display: flex; flex-wrap: wrap; gap: .4rem; }
.project-tech span {
  font-size: .75rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: .25rem .6rem;
  border-radius: 99px;
  border: 1px solid var(--gray-200);
}

/* ─────────────────────────────────────────────────────── */
/*  WEBSITES                                              */
/* ─────────────────────────────────────────────────────── */
.websites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.website-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.website-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.ws-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-faint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.ws-icon-wrap svg { width: 22px; height: 22px; }
.website-card:hover .ws-icon-wrap {
  background: var(--accent);
  color: var(--white);
}

.ws-info { flex: 1; }
.ws-info h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: .2rem; }
.ws-info p { font-size: .8rem; color: var(--gray-500); margin-bottom: .3rem; }
.ws-url { font-size: .75rem; color: var(--accent); font-weight: 500; }
.ws-arrow {
  color: var(--gray-400);
  display: flex;
  align-items: center;
  transition: transform .2s, color .2s;
}
.ws-arrow svg { width: 18px; height: 18px; }
.website-card:hover .ws-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────── */
/*  EDUCATION                                             */
/* ─────────────────────────────────────────────────────── */
.edu-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 740px;
  margin: 0 auto 3.5rem;
}
.edu-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.edu-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateX(4px); }
.edu-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-faint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.edu-icon-wrap svg { width: 22px; height: 22px; }
.edu-card:hover .edu-icon-wrap { background: var(--accent); color: var(--white); }

.edu-info { flex: 1; }
.edu-info h3 { font-family: var(--font-head); font-size: .98rem; font-weight: 600; color: var(--gray-900); margin-bottom: .2rem; }
.edu-info p { font-size: .85rem; color: var(--gray-500); }
.edu-year {
  font-size: .8rem;
  font-weight: 700;
  background: var(--accent-faint);
  color: var(--accent);
  padding: .3rem .75rem;
  border-radius: 99px;
  flex-shrink: 0;
}

.cert-heading {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 1.5rem;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  max-width: 840px;
  margin: 0 auto;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.cert-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cert-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-faint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.cert-icon-wrap svg { width: 20px; height: 20px; }
.cert-card:hover .cert-icon-wrap { background: var(--accent); color: var(--white); }

.cert-title { font-size: .875rem; font-weight: 600; color: var(--gray-800); margin-bottom: .15rem; }
.cert-org { font-size: .78rem; color: var(--accent); font-weight: 500; }

/* ─────────────────────────────────────────────────────── */
/*  CONTACT                                               */
/* ─────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 950px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.contact-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-5px); }
.cc-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-faint);
  color: var(--accent);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-card:hover .cc-icon-wrap { background: var(--accent); color: var(--white); transform: scale(1.05); }
.cc-icon-wrap svg { width: 22px; height: 22px; }
.contact-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: .3rem; }
.contact-card p { font-size: .825rem; color: var(--gray-500); word-break: break-all; }

/* ─────────────────────────────────────────────────────── */
/*  FOOTER                                                */
/* ─────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--gray-900);
  color: var(--gray-400);
  font-size: .825rem;
}

/* ─────────────────────────────────────────────────────── */
/*  AOS ANIMATIONS                                        */
/* ─────────────────────────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────── */
/*  RESPONSIVE DESIGN                                     */
/* ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .photo-wrapper { margin: 0 auto; }
  .hero-btns { justify-content: center; }
  .social-links { justify-content: center; }
  .hero-location { justify-content: center; }
  .hero-summary { margin: 0 auto 1.75rem; }

  .timeline::before { left: 0; }
  .timeline-item { padding-left: 1rem; gap: 1rem; }
  .timeline-dot { display: none; }

  .section { padding: 72px 1.25rem; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.1rem; }
  .projects-grid, .websites-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   PROJECT DETAIL & THUMBNAIL ADDITIONS
   (appended for Cloudflare Pages version)
   ═══════════════════════════════════════════════ */

/* Project card thumbnail */
.project-thumb {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(0,0,0,0.06);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

/* Live pill for project cards */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #10b981;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-anim 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}
