/* =============================================
   ABIOLA LAWAL PORTFOLIO — style.css
   Inspired by resend.com: dark, clean, typographic
   ============================================= */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #ededed;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-glow: rgba(99,102,241,0.15);
  --green: #22c55e;
  --yellow: #eab308;
  --radius: 10px;
  --radius-sm: 6px;
  --mono: 'Geist Mono', 'Fira Code', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

/* ====== NAV ====== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.logo-bracket {
  color: var(--accent);
  font-size: 13px;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 12px;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-nav {
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--accent-2); transform: translateY(-1px); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--text-2); border-radius: 2px; transition: all 0.25s; }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 16px 24px 24px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-menu a { display: block; padding: 10px 12px; font-size: 15px; color: var(--text-2); border-radius: var(--radius-sm); }
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.mm-btn { display: inline-block; }

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 80px;
}
.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: glow-drift 12s ease-in-out infinite alternate;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #818cf8 0%, transparent 70%);
  bottom: 0; right: 10%;
  animation: glow-drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes glow-drift {
  from { transform: translate(0,0); }
  to { transform: translate(30px, 20px); }
}
.hero-inner {
  flex: 1;
  position: relative;
  z-index: 1;
  padding-top: 60px;
  animation: fadeUp 0.8s ease forwards;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
  background: rgba(255,255,255,0.03);
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.hero-title-name {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
.hero-title-role {
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--text-2);
  font-weight: 300;
  margin-top: 4px;
}
.hero-title-role em { font-style: italic; font-family: var(--serif); color: var(--accent-2); }
.hero-desc {
  font-size: 16px;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.hero-social { display: flex; gap: 16px; }
.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hero-social a:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255,255,255,0.04); }

/* HERO PHOTO */
.hero-photo-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  padding-top: 60px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-photo {
  width: 280px; height: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.4) 100%);
}
.hero-stats {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: var(--bg-2);
  transition: background 0.2s;
}
.stat-item:hover { background: var(--bg-3); }
.stat-num { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--accent-2); }
.stat-label { font-size: 11px; color: var(--text-3); margin-top: 2px; text-align: center; }

/* ====== SECTIONS ====== */
.section { padding: 96px 24px; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.container { max-width: 1200px; margin: 0 auto; }
.section-label { font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.section-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-title em { font-style: italic; color: var(--accent-2); }
.section-sub { font-size: 15px; color: var(--text-2); max-width: 560px; line-height: 1.7; margin-bottom: 48px; }

/* ====== ABOUT ====== */
.about-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.about-text p { color: var(--text-2); line-height: 1.8; margin-bottom: 16px; font-size: 15.5px; }
.about-text p strong { color: var(--text); }
.info-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.info-row:last-child { border-bottom: none; }
.info-key { color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.info-val { color: var(--text-2); text-align: right; }
.info-val a { color: var(--accent-2); }
.info-val a:hover { text-decoration: underline; }
.info-available { display: flex; align-items: center; gap: 8px; color: var(--green) !important; }
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ====== SKILLS ====== */
.skills-tabs { display: flex; gap: 4px; margin-bottom: 32px; flex-wrap: wrap; }
.tab-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-family: var(--sans);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { border-color: var(--accent); color: var(--text); background: var(--accent-glow); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.skill-tile {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
}
.skill-tile:hover { border-color: var(--border-hover); background: var(--bg-3); transform: translateY(-2px); }
.skill-tile.hidden { display: none; }
.skill-icon { font-size: 22px; margin-bottom: 10px; }
.skill-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.skill-detail { font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* ====== TIMELINE ====== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}
.timeline-item { position: relative; margin-bottom: 56px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -34px; top: 6px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px var(--accent);
}
.timeline-content {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-2);
  transition: border-color 0.2s;
}
.timeline-content:hover { border-color: var(--border-hover); }
.tl-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.tl-role { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tl-company { font-size: 13px; color: var(--text-2); display: block; }
.tl-date { font-family: var(--mono); font-size: 12px; color: var(--accent-2); background: var(--accent-glow); padding: 4px 10px; border-radius: 4px; flex-shrink: 0; }
.tl-list { padding-left: 0; margin-bottom: 16px; }
.tl-list li { font-size: 14px; color: var(--text-2); line-height: 1.7; padding: 4px 0 4px 16px; position: relative; }
.tl-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 6px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags span { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-3); }

/* ====== PROJECTS ====== */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.project-card.featured { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.04); }
.project-card.featured:hover { border-color: rgba(99,102,241,0.5); }
.project-header { display: flex; justify-content: space-between; align-items: center; }
.project-status { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.project-status.live { color: var(--green); }
.project-status.wip { color: var(--yellow); }
.pulse-green { width: 7px; height: 7px; background: var(--green); border-radius: 50%; display: inline-block; animation: pulse-dot 2s ease-in-out infinite; }
.project-link { color: var(--text-3); transition: color 0.2s; }
.project-link:hover { color: var(--text); }
.project-card h3 { font-size: 17px; font-weight: 600; color: var(--text); }
.project-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech span { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-3); }
.project-footer { margin-top: auto; }
.proj-link-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--text-3); border: 1px solid var(--border); padding: 5px 12px; border-radius: var(--radius-sm); transition: color 0.2s, border-color 0.2s; }
.proj-link-btn:hover { color: var(--text); border-color: var(--border-hover); }
.github-cta { display: flex; align-items: center; gap: 16px; justify-content: center; }
.github-cta p { color: var(--text-2); font-size: 14px; }

/* ====== CERTS ====== */
.certs-section { margin-bottom: 40px; }
.certs-heading { font-size: 13px; font-family: var(--mono); color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.certs-grid { display: flex; flex-direction: column; gap: 8px; }
.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}
.cert-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.02); }
.cert-card.in-progress { border-left: 2px solid var(--accent); }
.cert-card.done { border-left: 2px solid var(--green); }
.cert-icon { font-size: 18px; flex-shrink: 0; width: 32px; text-align: center; }
.cert-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cert-name { font-size: 14px; font-weight: 500; color: var(--text); }
.cert-org { font-size: 12px; color: var(--text-3); }
.cert-badge { font-family: var(--mono); font-size: 11px; padding: 3px 10px; border-radius: 100px; flex-shrink: 0; }
.cert-badge.wip { background: var(--accent-glow); color: var(--accent-2); border: 1px solid rgba(99,102,241,0.3); }
.cert-badge.done { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.education-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 32px;
}
.edu-icon { font-size: 28px; }
.education-box h3 { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.education-box p { font-size: 13px; color: var(--text-2); }

/* ====== CONTACT ====== */
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  color: var(--text-2);
}
.contact-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.02); transform: translateX(4px); }
.contact-card svg { flex-shrink: 0; color: var(--accent); }
.cc-label { display: block; font-size: 11px; color: var(--text-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.cc-val { font-size: 14px; color: var(--text); }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-submit {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.form-msg { font-size: 13px; color: var(--green); min-height: 20px; }
.form-msg.error { color: #f87171; }

/* ====== FOOTER ====== */
.footer { padding: 40px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.footer-desc { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); flex-wrap: wrap; gap: 8px; }
.footer-stack { font-family: var(--mono); }

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: flex-start; min-height: auto; padding-bottom: 60px; }
  .hero-photo-wrap { align-self: center; padding-top: 0; }
  .hero-photo { width: 240px; height: 290px; }
  .projects-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: block; }
}

@media (max-width: 600px) {
  .section { padding: 64px 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-photo { width: 200px; height: 240px; }
  .tl-header { flex-direction: column; gap: 8px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
