:root {
  --bg-dark: #0b0c0e;
  --panel-bg: #131519;
  --panel-bg-hover: #1a1d23;
  --border-color: #232730;
  --accent-gold: #f2b90c;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.background-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(242, 185, 12, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  max-height: 860px;
  display: flex;
  gap: 24px;
  padding: 0 24px;
}
/* AVATAR FRAME & CONTAINER */
.avatar-wrapper {
  position: relative;
  width: 148px;
  height: 148px;
  margin-bottom: 22px;
  border-radius: 32px;
  
  /* 1. VISIBLE GOLD FRAME BORDER */
  padding: 4px;
  background: linear-gradient(135deg, #f2b90c 0%, #b8860b 50%, rgba(242, 185, 12, 0.4) 100%);
  
  /* 2. GLOW EFFECT AROUND FRAME */
  box-shadow: 0 0 50px rgba(242, 185, 12, 0.35), 0 10px 25px rgba(0, 0, 0, 0.7);
  
  /* Keeps the image inside the frame curves */
  overflow: hidden; 
}

/* MAIN AVATAR IMAGE */
.main-avatar {
  width: 100%;
  height: 100%;
  border-radius: 26px; /* Slightly smaller than wrapper to match curve */
  object-fit: cover;
  display: block;
  
  /* CROP & ZOOM CONTROLS (Safe inside wrapper) */
  transform: scale(1.25);
  object-position: center 15%;
  
  /* INNER DARK BORDER TO SEPARATE IMAGE FROM GOLD FRAME */
  border: 2px solid #131519;
  box-sizing: border-box;
}

.main-avatar {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
  border: 2px solid var(--panel-bg);
  
  /* CROP & ZOOM CONTROLS */
  transform: scale(1.3);
  object-position: center 20%;
  
  display: block;
}

.user-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.user-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin-bottom: 24px;
}

.contact-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(242, 185, 12, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(242, 185, 12, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 18px; height: 18px; }

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

.contact-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 12.5px;
  font-weight: 600;
  word-break: break-all;
}

.social-bar {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.social-bar a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.social-bar a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.social-bar svg { width: 18px; height: 18px; }

/* MAIN CONTENT AREA */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.top-nav {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
  color: #111;
  background: var(--accent-gold);
  font-weight: 700;
}

.scroll-body {
  flex: 1;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow-y: auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.gold-line {
  width: 40px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.intro-paragraph {
  font-size: 15px;
  line-height: 1.6;
  color: #d1d5db;
  max-width: 720px;
  margin-bottom: 32px;
}

.intro-paragraph b {
  color: var(--accent-gold);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.metric-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-gold);
}

.metric-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.subsection-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.project-card:hover {
  border-color: rgba(242, 185, 12, 0.4);
  transform: translateY(-4px);
}

.badge {
  background: rgba(242, 185, 12, 0.12);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
}

.project-card h3 { font-size: 17px; font-weight: 700; }
.tech-stack { font-size: 12px; color: var(--text-muted); }
.project-desc { font-size: 13.5px; color: #9ca3af; line-height: 1.5; }

.project-metrics {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.project-metrics strong { color: var(--accent-gold); font-size: 15px; }
.project-metrics span { font-size: 11px; color: var(--text-muted); display: block; }

.project-btn {
  margin-top: auto;
  align-self: flex-start;
  background: var(--accent-gold);
  color: #111;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.time-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
}

.timeline-item h3 { font-size: 17px; font-weight: 700; margin: 4px 0; }
.organization { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.timeline-item li { font-size: 13.5px; color: #d1d5db; margin-bottom: 4px; list-style: square inside; }

/* CERTIFICATES */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cert-tag {
  width: 42px; height: 42px;
  background: var(--accent-gold);
  color: #111;
  font-weight: 800;
  font-size: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-item h4 { font-size: 14px; font-weight: 700; }
.cert-item p { font-size: 12px; color: var(--text-muted); }

/* CONTACT CARDS */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.c-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.c-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.c-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-icon svg { width: 22px; height: 22px; }

.gold-box { background: rgba(242, 185, 12, 0.15); color: var(--accent-gold); }
.linkedin-box { background: #0077b5; color: #fff; }
.github-box { background: var(--accent-gold); color: #111; }

.c-lbl { font-size: 10px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; display: block; }
.c-val { font-size: 13.5px; font-weight: 700; word-break: break-all; }

/* RESPONSIVE */
@media (max-width: 960px) {
  body { overflow-y: auto; }
  .app-container { flex-direction: column; height: auto; max-height: none; padding: 16px; }
  .sidebar { width: 100%; }
  .scroll-body { padding: 24px; }
  .top-nav { justify-content: center; flex-wrap: wrap; }
  .projects-grid, .cert-grid, .contact-cards, .highlights-grid { grid-template-columns: 1fr; }
}