:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e5e7eb;
  --bg2: #f3ead3
}

body.dark {
  --bg: #0f1115;
  --card: #161a22;
  --text: #f5f5f5;
  --muted: #9ca3af;
  --border: #2a2f3a;
  --bg2: #0c152c
}

* {
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

/* Header */
.top-bar {
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Container for two cards in columns */
.two-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.two-columns .card {
  flex: 1 1 48%;
}

@media (max-width: 768px) {
  .two-columns .card {
    flex: 1 1 100%;
  }
}

.profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile img {
  border-radius: 50%;
  width: 160px;
  height: 160px;
}

.subtitle {
  color: var(--text);
  font-size: 16px;
}

.tech-stack {
  color: var(--text);
  font-size: 14px;
  font-weight: bold;
}

#themeToggle {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding: 0 20px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.card h2 {
  margin-top: 0;
  font-size: 18px;
}

/* Card header row with title + action link */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
}

/* "View More" clickable text */
.view-more-btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.2s ease;
  text-decoration: underline;
}

.view-more-btn:hover {
  animation: bounce 0.6s;
}

/* EXPERIENCE TIMELINE */
.experience-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.experience-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0 12px 30px;
  cursor: pointer;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  transition: background 0.2s ease, border 0.2s ease;
  z-index: 1;
}

.experience-item.active .timeline-dot {
  background: var(--text);
  border-color: var(--text);
}

.experience-item:hover .timeline-dot {
  background: var(--text);
  border-color: var(--text);
}

.experience-item .content strong {
  display: block;
  font-size: 14px;
}

.experience-item .content p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.year {
  margin-left: auto;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg);
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cert-list li {
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 10px;
}

.cert-list a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
}

.cert-title {
  font-size: 15px;
}

.cert-list li:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-list li {
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 10px;
}

.simple-list a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
}

.simple-list a:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

.email-btn {
  background-color: var(--text);
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--bg);
  border: 1px solid var(--bg);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.works {
  background-color: var(--text);
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--bg);
  border: 1px solid var(--bg);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.email-btn:hover {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-8px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
}

/* Projects */
.project {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

.project p {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Recommendations */
.recommendations-container {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.recommendations-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recommendation {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* Lists */
.timeline {
  list-style: none;
  padding: 0;
}

.timeline li {
  margin-bottom: 15px;
}

.timeline span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* ─── WORKS SLIDE PANEL ─────────────────────────────────── */

/* Dim overlay behind the panel */
.works-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 100;
}

.works-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Panel itself – slides in from the right */
.works-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 100vw;
  background: var(--bg);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 101;
  overflow-y: auto;
}

.works-panel.active {
  transform: translateX(0);
}

.works-panel-inner {
  padding: 28px 24px;
}

/* Back button */
.works-panel-close {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s ease;
}

.works-panel-close:hover {
  background: var(--card);
}

/* The single card inside the panel */
.works-panel-card {
  margin-bottom: 0;
}

/* All works list */
.all-works-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.all-works-list li {
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, background 0.2s ease;
}

.all-works-list li:hover {
  transform: translateY(-2px);
  background: var(--card);
}

.all-works-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
}

.all-works-name {
  font-size: 14px;
  font-weight: 500;
}

.all-works-arrow {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.all-works-list li:hover .all-works-arrow {
  color: var(--text);
}
