/* ===================================================================
   Absolom Orianga — Portfolio
   Light, modern theme. Accent: teal → cyan with indigo support.
   =================================================================== */

:root {
  /* Palette — light, not dark */
  --bg:        #f7faf9;
  --bg-soft:   #eef4f3;
  --surface:   #ffffff;
  --ink:       #0f2a30;   /* deep teal-charcoal text */
  --ink-soft:  #4a5d63;
  --muted:     #7c8b90;
  --line:      #e2eae8;

  --teal:      #0ea5a3;
  --teal-dark: #0c8a88;
  --cyan:      #22d3ee;
  --indigo:    #6366f1;
  --violet:    #8b5cf6;

  --grad: linear-gradient(120deg, #0ea5a3 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, #0ea5a3 0%, #6366f1 100%);

  --shadow-sm: 0 2px 10px rgba(15, 42, 48, .06);
  --shadow-md: 0 12px 30px rgba(15, 42, 48, .09);
  --shadow-lg: 0 24px 60px rgba(14, 165, 163, .16);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1140px;

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 800; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--surface); color: var(--teal-dark); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: padding .3s, background .3s, box-shadow .3s;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.brand-name { font-size: 1.02rem; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .94rem; color: var(--ink-soft); transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--teal-dark); }
.nav-link.active { color: var(--teal-dark); background: var(--bg-soft); }
.nav-cta { margin-left: 8px; padding: 10px 20px; font-size: .9rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 130px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-1 { width: 420px; height: 420px; background: #9beedf; top: -80px; right: -60px; animation: float 14s ease-in-out infinite; }
.blob-2 { width: 360px; height: 360px; background: #c7d2fe; bottom: -100px; left: -80px; animation: float 18s ease-in-out infinite reverse; }
.blob-3 { width: 300px; height: 300px; background: #baf7f1; top: 40%; left: 45%; animation: float 16s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(25px,-25px) scale(1.08); } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center;
}
.eyebrow {
  display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: .9rem; color: var(--teal-dark); margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.3rem, 5vw, 3.75rem); letter-spacing: -.02em; margin-bottom: 22px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 32px; }
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 34px; margin-bottom: 28px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1; }
.stat-num::after { content: '+'; color: var(--teal); }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.hero-socials { display: flex; gap: 12px; }
.hero-socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  box-shadow: var(--shadow-sm); transition: .25s;
}
.hero-socials a:hover { color: var(--teal-dark); transform: translateY(-3px); border-color: var(--teal); }

/* Hero visual */
.hero-card { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.avatar-ring {
  display: grid; place-items: center; width: 320px; height: 400px; max-width: 100%; border-radius: 26px;
  background: var(--grad); padding: 7px; box-shadow: var(--shadow-lg);
  animation: float 8s ease-in-out infinite;
}
.avatar {
  width: 100%; height: 100%; border-radius: 20px; background: var(--surface);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  font-size: 2.6rem; color: var(--teal-dark);
  object-fit: cover; border: 4px solid var(--surface);
}
.code-card {
  width: 100%; max-width: 360px; background: #0f2a30; border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-lg); font-family: 'Courier New', monospace;
}
.code-dots { display: flex; gap: 7px; margin-bottom: 16px; }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; background: #2c4a50; }
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }
.code-card pre { white-space: pre-wrap; font-size: .82rem; line-height: 1.7; color: #cfeae7; }
.c-key { color: #5eead4; } .c-var { color: #93c5fd; } .c-str { color: #fcd34d; } .c-bool { color: #f9a8d4; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px; display: grid; justify-items: center;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--teal); border-radius: 2px; margin-top: 7px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 12px 0 14px; letter-spacing: -.02em; }
.section-lead { color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 46px; align-items: start; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; }
.about-text strong { color: var(--ink); }
.about-list { list-style: none; margin: 24px 0 28px; display: grid; gap: 12px; }
.about-list li {
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); color: var(--ink-soft);
}
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: .25s;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfeae7; }
.info-icon { font-size: 1.6rem; }
.info-card h3 { font-size: .95rem; margin: 12px 0 4px; }
.info-card p { color: var(--ink-soft); font-size: .92rem; }
.available { color: var(--teal-dark) !important; font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal), var(--indigo)); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -28px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--teal); box-shadow: 0 0 0 4px rgba(14,165,163,.14); }
.tl-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: .25s; }
.tl-content:hover { transform: translateX(5px); box-shadow: var(--shadow-md); }
.tl-date { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--teal-dark); background: var(--bg-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.tl-content h3 { font-size: 1.18rem; }
.tl-org { display: block; color: var(--indigo); font-weight: 600; font-size: .92rem; margin: 2px 0 12px; }
.tl-content ul { list-style: none; display: grid; gap: 8px; }
.tl-content li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: .95rem; }
.tl-content li::before { content: '▹'; position: absolute; left: 0; color: var(--teal); }
.edit-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 30px; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.project-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .3s; display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #cfeae7; }
.project-top {
  position: relative; height: 130px; background: var(--p); display: grid; place-items: center;
}
.project-emoji { font-size: 3rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.project-lang {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.9);
  color: var(--ink); font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
}
.project-body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.18rem; margin-bottom: 10px; }
.project-body > p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 16px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tags span { font-size: .74rem; font-weight: 600; color: var(--teal-dark); background: var(--bg-soft); padding: 4px 11px; border-radius: 999px; }
.project-link { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--teal-dark); transition: gap .2s; }
.project-link:hover { color: var(--teal); }
.projects-cta { text-align: center; margin-top: 40px; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); transition: .25s; }
.skill-group:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.skill-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 18px; }
.skill-group h3 span { font-size: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span {
  font-weight: 600; font-size: .88rem; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); padding: 8px 15px; border-radius: 10px; transition: .2s;
}
.chips span:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-copy .section-title { margin-top: 10px; }
.contact-copy .section-lead { margin-bottom: 28px; }
.contact-methods { display: grid; gap: 14px; }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: .25s; }
.contact-method:hover { transform: translateX(5px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.cm-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.contact-method span:last-child { font-size: .92rem; color: var(--ink-soft); }
.contact-method strong { color: var(--ink); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .96rem; color: var(--ink); background: var(--bg); transition: .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(14,165,163,.12); }
.form-note { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; }
.form-note.ok { background: #def7f1; color: var(--teal-dark); }
.form-note.err { background: #fee2e2; color: #b91c1c; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfeae7; padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand-mark { box-shadow: none; }
.footer p { font-size: .9rem; color: #a9cdc9; }
.to-top { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: #fff; padding: 8px 16px; border: 1px solid #2c4a50; border-radius: 999px; transition: .25s; }
.to-top:hover { background: var(--teal); border-color: var(--teal); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .projects-grid, .skills-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
    background: var(--surface); padding: 40px 34px; box-shadow: -10px 0 40px rgba(0,0,0,.12);
    transition: right .35s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1.1rem; width: 100%; }
  .nav-cta { margin-left: 0; margin-top: 10px; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 22px; }
  .stat-num { font-size: 1.6rem; }
  .about-cards { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
