/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* EDIT: Change these to customise your colour palette */
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-surface-alt: #f9fafb;
  --color-border: #e0e2e8;
  --color-text: #1e1e2a;
  --color-text-muted: #5c5e6e;
  --color-accent: #2d5a9e;
  --color-accent-light: rgba(45, 90, 158, 0.08);
  --color-accent-hover: #1d4380;
  --color-shadow: rgba(0, 0, 0, 0.05);
  --color-shadow-hover: rgba(0, 0, 0, 0.1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34vh;
  padding: 4rem 3rem 2.5rem;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px var(--color-shadow);
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1.15rem;
  border-radius: 6px;
  transition: all var(--transition);
  background: var(--color-surface-alt);
}

.hero-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* ===== TAB BAR ===== */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.6rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 245, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.tab {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition);
}

.tab:hover {
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: 0 1px 4px var(--color-shadow);
}

.tab.active {
  color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: 0 1px 6px var(--color-shadow);
  font-weight: 600;
}

/* ===== CONTENT ===== */
.content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 3rem 5rem;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

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

.tab-panel h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.tab-panel > p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
  max-width: 720px;
}

/* ===== JOB CARDS (Experience) ===== */
.job-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 3px var(--color-shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.job-card:hover {
  box-shadow: 0 4px 16px var(--color-shadow-hover);
  border-color: var(--color-accent);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.job-title {
  font-size: 1.08rem;
  font-weight: 600;
}

.job-company {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.12rem;
}

.job-date {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-details {
  list-style: none;
  padding: 0;
}

.job-details li {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  padding-left: 1.15rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.job-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px var(--color-shadow);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.project-card:hover {
  box-shadow: 0 4px 16px var(--color-shadow-hover);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.project-icon {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  opacity: 0.45;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.project-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.project-tags span {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.22rem 0.6rem;
  border-radius: 5px;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.skill-item {
  margin-bottom: 0.85rem;
}

.skill-name {
  font-size: 0.88rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.skill-bar {
  height: 6px;
  background: var(--color-bg);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* ===== EDUCATION ===== */
.edu-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 3px var(--color-shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.edu-card:hover {
  box-shadow: 0 4px 16px var(--color-shadow-hover);
  border-color: var(--color-accent);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.edu-header h3 {
  font-size: 1.08rem;
  font-weight: 600;
}

.edu-school {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-top: 0.12rem;
}

.edu-date {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.edu-details {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  box-shadow: 0 1px 3px var(--color-shadow);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  color: var(--color-text);
}

.contact-card:hover {
  box-shadow: 0 4px 16px var(--color-shadow-hover);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: var(--color-text);
}

.contact-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.contact-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-card p {
  font-size: 0.83rem;
  color: var(--color-text-muted);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .content {
    padding: 2rem 1.25rem 4rem;
  }

  .hero {
    padding: 3rem 1.25rem 2rem;
    min-height: 28vh;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 25vh;
    padding: 2.5rem 1rem 1.5rem;
  }

  .tab-bar {
    gap: 0.1rem;
    padding: 0.4rem 0.5rem;
  }

  .tab {
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
  }

  .content {
    padding: 1.5rem 1rem 4rem;
  }

  .job-header,
  .edu-header {
    flex-direction: column;
    gap: 0.2rem;
  }
}
