/* ===================================================================
   RAYMOND ARIWOOLA — Tech-Forward
   Developer aesthetic · Code-inspired · Professional edge
   =================================================================== */

/* --- THEMES -------------------------------------------------------- */
[data-theme="navy"] {
  --bg:         #0a192f;
  --bg-alt:     #112240;
  --surface:    #1d3461;
  --border:     #233554;
  --text:       #ccd6f6;
  --text-muted: #8892b0;
  --heading:    #e6f1ff;
  --accent:     #64ffda;
  --accent-dim: rgba(100, 255, 218, .1);
  --glow:       rgba(100, 255, 218, .15);
  --code-bg:    #0d1b2a;
  --line-num:   #3d5a80;
  --cursor:     #64ffda;
}

[data-theme="dark"] {
  --bg:         #0a0a0a;
  --bg-alt:     #111111;
  --surface:    #1a1a1a;
  --border:     #262626;
  --text:       #b0b0b0;
  --text-muted: #666666;
  --heading:    #e0e0e0;
  --accent:     #00ff41;
  --accent-dim: rgba(0, 255, 65, .08);
  --glow:       rgba(0, 255, 65, .12);
  --code-bg:    #050505;
  --line-num:   #333333;
  --cursor:     #00ff41;
}

[data-theme="light"] {
  --bg:         #f8f8f8;
  --bg-alt:     #ffffff;
  --surface:    #eaeaea;
  --border:     #d4d4d4;
  --text:       #3c3c3c;
  --text-muted: #767676;
  --heading:    #1a1a1a;
  --accent:     #0066ff;
  --accent-dim: rgba(0, 102, 255, .07);
  --glow:       rgba(0, 102, 255, .1);
  --code-bg:    #f0f0f0;
  --line-num:   #b0b0b0;
  --cursor:     #0066ff;
}

[data-theme="vibrant"] {
  --bg:         #13041f;
  --bg-alt:     #1a0a2e;
  --surface:    #2d1450;
  --border:     #3d1a6e;
  --text:       #d4bfff;
  --text-muted: #9370db;
  --heading:    #f0e6ff;
  --accent:     #ff006e;
  --accent-dim: rgba(255, 0, 110, .1);
  --glow:       rgba(255, 0, 110, .15);
  --code-bg:    #0f0318;
  --line-num:   #4a2080;
  --cursor:     #ff006e;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* --- LAYOUT -------------------------------------------------------- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section--alt { background: var(--bg-alt); }

/* --- NAV ----------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

[data-theme="light"] .nav--scrolled {
  background: rgba(248, 248, 248, .9);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
}

.nav__logo::before {
  content: '> ';
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: lowercase;
  transition: color .2s;
  position: relative;
}

.nav__links a::before {
  content: './';
  color: var(--accent);
  opacity: 0;
  transition: opacity .2s;
  margin-right: 2px;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--heading);
}

.nav__links a:hover::before,
.nav__links a.active::before {
  opacity: 1;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle */
.theme-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: border-color .2s, background .2s;
  position: relative;
}

.theme-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.theme-btn__icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

/* Palette */
.palette {
  position: absolute;
  top: 100%;
  right: 24px;
  margin-top: 8px;
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.palette.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: border-color .2s, transform .15s;
}

.swatch:hover { transform: scale(1.15); }
.swatch.active { border-color: var(--heading); }

.swatch--navy    { background: #64ffda; }
.swatch--dark    { background: #00ff41; }
.swatch--light   { background: #0066ff; }
.swatch--vibrant { background: #ff006e; }

/* Mobile menu btn */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}

.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  transition: color .2s;
}

.mobile-menu a::before {
  content: '$ ';
  color: var(--accent);
}

.mobile-menu a:hover { color: var(--heading); }

/* --- TYPOGRAPHY ---------------------------------------------------- */
.comment {
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: .03em;
  margin-bottom: 8px;
}

.comment::before { content: '// '; color: var(--accent); opacity: .6; }

.heading-xl {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.heading-lg {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 48px;
}

.heading-md {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
}

.body-text {
  font-size: .9rem;
  line-height: 1.8;
  max-width: 600px;
}

.body-sm {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.accent { color: var(--accent); }

/* --- BUTTONS ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: all .25s;
}

.btn--primary {
  padding: 12px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px var(--glow);
}

.btn--ghost {
  color: var(--text-muted);
  padding: 12px 0;
}

.btn--ghost::after {
  content: '→';
  transition: transform .2s;
}

.btn--ghost:hover {
  color: var(--accent);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

/* --- HERO ---------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero__terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 720px;
}

.hero__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__dot--red    { background: #ff5f57; }
.hero__dot--yellow { background: #febc2e; }
.hero__dot--green  { background: #28c840; }

.hero__bar-title {
  font-size: .7rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.hero__code {
  padding: 32px 28px;
  font-size: clamp(.75rem, 1.5vw, .9rem);
  line-height: 2;
}

.hero__prompt {
  color: var(--accent);
}

.hero__cmd {
  color: var(--heading);
}

.hero__output {
  color: var(--text-muted);
  margin-top: 16px;
}

.hero__output-line {
  display: block;
}

.hero__name-line {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  margin-top: 12px;
}

.hero__cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--cursor);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero__subtext {
  margin-top: 32px;
  max-width: 540px;
}

.hero__subtext p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* --- GRID DOTS (background) ---------------------------------------- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .4;
  pointer-events: none;
}

/* --- ABOUT --------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__desc {
  margin-bottom: 40px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat {
  padding: 20px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .3s, box-shadow .3s;
}

.stat:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow);
}

.stat__value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.about__code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  font-size: .78rem;
  line-height: 2;
  overflow-x: auto;
}

.about__code-block .ln {
  color: var(--line-num);
  user-select: none;
  display: inline-block;
  width: 28px;
  text-align: right;
  margin-right: 16px;
}

.about__code-block .kw { color: var(--accent); }
.about__code-block .str { color: #ffd580; }
.about__code-block .cm { color: var(--text-muted); font-style: italic; }
.about__code-block .prop { color: var(--heading); }
.about__code-block .num { color: #ff7eb6; }

[data-theme="light"] .about__code-block .str { color: #d14; }
[data-theme="light"] .about__code-block .num { color: #0086b3; }

/* --- EXPERIENCE ---------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.tl-item {
  position: relative;
  padding-bottom: 48px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--glow);
}

.tl-item__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tl-item__date {
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .04em;
  white-space: nowrap;
}

.tl-item__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
}

.tl-item__org {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tl-item__desc {
  font-size: .8rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 560px;
}

.tl-item__points {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tl-point {
  font-size: .78rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.tl-point::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- SKILLS -------------------------------------------------------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--glow);
  transform: translateY(-2px);
}

.skill-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-card__icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: var(--accent);
}

.skill-card__title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: .02em;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: .68rem;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 3px;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: border-color .2s;
}

.tag:hover { border-color: var(--accent); }

.tag--featured {
  border-color: var(--accent);
  color: var(--heading);
  background: var(--accent-dim);
}

/* --- EDUCATION ----------------------------------------------------- */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .3s;
}

.edu-item:hover { border-color: var(--accent); }

.edu-item__status {
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.edu-item__status--active {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.edu-item__status--done {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.edu-item__info { flex: 1; }

.edu-item__degree {
  font-size: .85rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
}

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

.edu-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.edu-extras__block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.edu-extras__block .comment {
  margin-bottom: 12px;
}

.edu-extras__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- PORTFOLIO ----------------------------------------------------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

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

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.project-card:hover::before { transform: scaleX(1); }

.project-card__idx {
  font-size: .7rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: .06em;
}

.project-card__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- TESTIMONIALS -------------------------------------------------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.quote-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  position: relative;
}

.quote-block__prompt {
  font-size: .7rem;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: .7;
}

.quote-block__text {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}

.quote-block__author {
  font-size: .75rem;
  font-weight: 700;
  color: var(--heading);
}

.quote-block__role {
  font-size: .7rem;
  color: var(--text-muted);
}

/* --- CONTACT ------------------------------------------------------- */
.contact__inner {
  max-width: 600px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  color: var(--text-muted);
  transition: color .2s;
  padding: 12px 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.contact__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact__link-label { color: var(--heading); font-weight: 700; margin-right: 8px; }
.contact__link-value { color: var(--text-muted); }

/* --- FOOTER -------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  background: var(--code-bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--text-muted);
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.footer__indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--glow);
}

/* --- BACK TO TOP --------------------------------------------------- */
.btt {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, border-color .2s;
  z-index: 50;
}

.btt svg { width: 16px; height: 16px; }
.btt:hover { border-color: var(--accent); }
.btt.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* --- REVEAL ANIMATION ---------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1),
              transform .6s cubic-bezier(.22, 1, .36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }
.d6 { transition-delay: .6s; }

/* --- SCANLINE (optional visual flair) ------------------------------ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.015) 2px,
    rgba(0,0,0,.015) 4px
  );
}

[data-theme="light"] body::after { opacity: 0; }

/* --- RESPONSIVE ---------------------------------------------------- */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .skills__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .menu-btn { display: flex; }
  .section { padding: 72px 0; }

  .hero__terminal { border-radius: 6px; }
  .hero__code { padding: 20px 16px; }

  .about__stats { grid-template-columns: 1fr 1fr; gap: 12px; }

  .tl-item__header { flex-direction: column; gap: 4px; }

  .edu-item { flex-direction: column; align-items: flex-start; gap: 10px; }

  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .about__stats { grid-template-columns: 1fr; }
  .hero__name-line { font-size: 1.6rem; }
}
