/* style.css – Tebello Beketsana portfolio */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0b1a2e;
  line-height: 1.5;
  transition: background 0.2s, color 0.2s;
  padding: 1.5rem;
}

body.dark {
  background: #0b1a2e;
  color: #e2e8f0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  /* background: rgba(255, 255, 255, 0.6); */
  backdrop-filter: blur(2px);
  border-radius: 2rem;
  padding: 2rem 2.5rem;
  /* box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1); */
  transition: background 0.2s;
}

body.dark .container {
  background: #132337;
  /* box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6); */
}

/* ----- NAV ----- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 1.2rem;
}

body.dark nav {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  background: #2563eb;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #2563eb;
}

.theme-toggle {
  background: none;
  border: 1px solid #d1d9e6;
  border-radius: 40px;
  padding: 0.3rem 0.9rem;
  font-size: 1.1rem;
  cursor: pointer;
  background: white;
  transition: 0.2s;
  color: #0b1a2e;
}

body.dark .theme-toggle {
  background: #1e2a44;
  border-color: #3b4a66;
  color: #f0f4ff;
}

.theme-toggle:hover {
  transform: scale(1.02);
}

/* ----- HERO ----- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.hero-content {
  flex: 2;
  min-width: 280px;
}

.hero-badge {
  display: inline-block;
  background: #e0e7ff;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

body.dark .hero-badge {
  /* background: #1e2a4a; */
  color: #a5b9fc;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hero h1 span {
  background: #2563eb;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: #334155;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.hero-org {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.2rem;
}

body.dark .hero-sub,
body.dark .hero-org {
  color: #b9c7e0;
}

.hero p {
  font-size: 1.05rem;
  color: #334155;
  max-width: 600px;
  margin-bottom: 1.8rem;
}

body.dark .hero p {
  color: #b9c7e0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
}

.btn-primary {
  background: #0b1a2e;
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.dark .btn-primary {
  background: #e2e8f0;
  color: #0b1a2e;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #0b1a2e;
  color: #0b1a2e;
  padding: 0.7rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.dark .btn-outline {
  border-color: #b9c7e0;
  color: #e2e8f0;
}

.btn-outline:hover {
  background: #0b1a2e;
  color: white;
  transform: translateY(-3px);
}

body.dark .btn-outline:hover {
  background: #e2e8f0;
  color: #0b1a2e;
}

.hero-avatar {
  flex: 1;
  min-width: 160px;
  display: flex;
  justify-content: center;
}

body.dark .avatar-circle {
  border-color: #1e2a44;
  color: #a5b9fc;
}

/* ----- HIGHLIGHTS ----- */
.highlights-section {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.highlight-card {
  background: white;
  border-radius: 1.2rem;
  padding: 1.2rem 1.2rem 1rem;
  border: 1px solid #eef2f6;
  text-align: center;
  transition: 0.2s;
}

body.dark .highlight-card {
  background: #172a44;
  border-color: #263b57;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03);
}

.highlight-number {
  font-size: 2rem;
  font-weight: 700;
  color: #0b1a2e;
  letter-spacing: -0.02em;
}

body.dark .highlight-number {
  color: #e2e8f0;
}

.highlight-label {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
}

body.dark .highlight-label {
  color: #a5b9d4;
}

/* ----- SKILLS ----- */
.skills-section {
  margin-bottom: 3.5rem;
}

.skills-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 0.8rem;
}

body.dark .skills-section h2 {
  color: #94a9c9;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
}

.skill-chip {
  background: white;
  padding: 0.35rem 1.2rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid #e9edf3;
  transition: 0.15s;
}

body.dark .skill-chip {
  background: #1e2a44;
  border-color: #2e3d5e;
  color: #d6e0f5;
}

.skill-chip:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

/* ----- PROJECTS ----- */
.projects-section {
  margin-bottom: 3.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.6rem 1.6rem 1.8rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
  border: 1px solid #eef2f6;
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
}

body.dark .project-card {
  background: #172a44;
  border-color: #263b57;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
}

.project-tag {
  align-self: flex-start;
  color: #1e3a8a;
  border-bottom: 1px solid #0b1a2e;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.8rem;
  margin-bottom: 1rem;
}

body.dark .project-tag {
  color: #a5b9fc;
}

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

.project-card p {
  color: #475569;
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.2rem;
}

body.dark .project-card p {
  color: #b0c3dd;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
}

body.dark .project-meta {
  color: #a5b9d4;
}

.project-meta i {
  margin-right: 0.2rem;
}

.project-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.project-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b1a2e;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: 0.15s;
}

body.dark .project-links a {
  color: #cbd5e1;
}

.project-links a:hover {
  border-bottom-color: #2563eb;
  color: #2563eb;
}

/* ----- CERTIFICATIONS ----- */
.certifications-section {
  margin-bottom: 3.5rem;
}

.certifications-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 1rem;
}

body.dark .certifications-section h2 {
  color: #94a9c9;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: white;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: 0.2s;
}

body.dark .cert-card {
  background: #172a44;
  border-color: #263b57;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03);
}

.cert-icon {
  color: #263b57;
  font-size: 1.2rem;
  width: 2rem;
  flex-shrink: 0;
}

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

.cert-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0b1a2e;
}

body.dark .cert-name {
  color: #e2e8f0;
}

.cert-org {
  font-size: 0.75rem;
  color: #475569;
}

body.dark .cert-org {
  color: #94a9c9;
}

/* ----- COMMUNITY ----- */
.community-section {
  margin-bottom: 3rem;
  background: #eef2f6;
  border-radius: 2rem;
  padding: 1.8rem 2rem;
  transition: background 0.2s;
}

body.dark .community-section {
  background: #102133;
}

.community-section h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 1rem;
}

body.dark .community-section h2 {
  color: #94a9c9;
}

.community-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.community-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}

.community-item i {
  font-size: 1.2rem;
  color: #263b57;
  width: 1.8rem;
}

/* ----- FOOTER ----- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  color: #475569;
}

body.dark footer {
  border-top-color: #1e2a44;
  color: #94a9c9;
}

.footer-socials {
  display: flex;
  gap: 1.2rem;
  font-size: 1.2rem;
}

.footer-socials a {
  color: inherit;
  transition: 0.2s;
}

.footer-socials a:hover {
  color: #2563eb;
  transform: scale(1.1);
}

.footer-built {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  opacity: 0.7;
}

/* responsive */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-avatar {
    flex: 0;
  }
  .avatar-circle {
    width: 120px;
    height: 120px;
    font-size: 3.5rem;
  }
  .project-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 1rem;
  }
  .highlights-section {
    grid-template-columns: 1fr 1fr;
  }
  .community-items {
    flex-direction: column;
    gap: 0.8rem;
  }
}