/* Basic reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  transition: background .3s ease, color .3s ease;
}

:root {
  --bg: #0b0c10;
  --panel: #111319;
  --glass: rgba(255,255,255,0.06);
  --fg: #e6e6e6;
  --muted: #9aa0a6;
  --primary: #8b5cf6; /* violet */
  --accent: #22c55e;  /* green */
  --ring: rgba(139, 92, 246, .35);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
}

.light {
  --bg: #f7f7fb;
  --panel: #ffffff;
  --glass: rgba(0,0,0,0.04);
  --fg: #171717;
  --muted: #666a73;
  --primary: #6d28d9;
  --accent: #16a34a;
  --ring: rgba(109, 40, 217, .25);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.title {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
}

.subtitle {
  margin: 2px 0 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.nav a {
  color: inherit;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav a:hover { background: var(--glass); }

.theme-toggle {
  border: 1px solid var(--glass);
  background: var(--panel);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  color: var(--fg);
}

.button {
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--glass);
  box-shadow: var(--shadow);
  display: inline-block;
}

.button.primary { background: var(--primary); color: white; border: none; }
.button.ghost { background: transparent; border: 1px solid var(--glass); }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  padding: 44px 0 18px;
}

.hero-text h2 { font-size: clamp(1.8rem, 2.3rem, 3rem); margin: 0 0 10px; }
.hero-text p { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin-top: 14px; }
.chips li { padding: 6px 10px; background: var(--panel); border: 1px solid var(--glass); border-radius: 999px; }

.glass {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--glass);
  box-shadow: var(--shadow);
  padding: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-number { font-size: 1.6rem; font-weight: 800; display: block; }
.stat-label { color: var(--muted); font-size: .9rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 10px; background: var(--glass); border-radius: 999px; border: 1px dashed var(--glass); }

.section { padding: 50px 0; }
.section-head h3 { font-size: 1.6rem; margin: 0 0 6px; }
.section-head p { color: var(--muted); margin: 0 0 18px; }

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

.card {
  background: var(--panel);
  border: 1px solid var(--glass);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img { width: 100%; height: 170px; object-fit: cover; background: #1f2430; }
.card .pad { padding: 14px; }
.card .title { font-size: 1.1rem; }
.card .muted { color: var(--muted); font-size: .95rem; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

.timeline {
  display: grid;
  gap: 14px;
  border-left: 2px dashed var(--glass);
  padding-left: 18px;
}

.timeline .item {
  position: relative;
  padding-left: 6px;
}

.timeline .item::before {
  content: "";
  position: absolute;
  left: -26px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px var(--ring);
}

.skills { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.skill-group { background: var(--panel); border: 1px solid var(--glass); border-radius: var(--radius); padding: 14px; }
.skill-group h4 { margin: 0 0 10px; }
.progress { height: 8px; background: var(--glass); border-radius: 999px; overflow: hidden; }
.bar { height: 100%; background: var(--accent); width: 0; transition: width 1s ease; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.cards .card { min-height: 140px; }

.carousel { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial { background: var(--panel); border: 1px solid var(--glass); border-radius: var(--radius); padding: 16px; }
.testimonial .who { font-weight: 700; margin-top: 8px; }
.testimonial .role { color: var(--muted); font-size: .95rem; }

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px; border-radius: 10px;
  border: 1px solid var(--glass); background: var(--panel); color: var(--fg);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--ring); }

.social { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.social a { text-decoration: none; border: 1px solid var(--glass); padding: 8px 12px; border-radius: 999px; }

.site-footer { padding: 30px 0 50px; color: var(--muted); text-align: center; }

.avatar { border-radius: 50%; border: 2px solid var(--glass); }

/* Print-friendly CV page styles */
@media print {
  .nav, .theme-toggle, .cta, .contact-form, .social, .site-footer { display: none !important; }
  body { background: white; color: black; }
  .glass, .skill-group, .card { border: 1px solid #ddd; box-shadow: none; }
  a { color: black; text-decoration: none; }
}

/* Mobile */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
}


.nav a i {
  margin-right: 6px;
  transition: transform 0.3s ease;
}

.nav a:hover i {
  transform: scale(1.2);
  color: var(--primary);
}

.section-head h3 i {
  margin-right: 8px;
  color: var(--primary);
}

.social a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
}

.social a[href*="linkedin"]::before {
  content: "\f08c"; /* LinkedIn icon */
}

.social a[href*="osoolajide.com"]::before {
  content: "\f0ac"; /* Globe icon */
}

.social a:hover::before {
  color: var(--primary);
  transform: scale(1.2);
}


/* Smooth theme transition */
body {
  transition: background 0.5s ease, color 0.5s ease;
}

.theme-toggle i {
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover i {
  transform: rotate(20deg) scale(1.2);
  color: var(--primary);
}
