/* ═══════════════════════════════════════════════════
   Oluwakayode Onasanya — Portfolio
   css/style.css
   Developer: Portfolio Project 2026
═══════════════════════════════════════════════════ */

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

:root {
  --black:        #080808;
  --surface:      #0e0e0e;
  --surface2:     #131313;
  --off-white:    #f0ede8;
  --gold:         #c9a84c;
  --gold-light:   #e2c074;
  --gold-dim:     rgba(201, 168, 76, 0.12);
  --gold-border:  rgba(201, 168, 76, 0.22);
  --mid:          #5a5a5a;
  --light-mid:    #888;
  --border:       rgba(255, 255, 255, 0.06);
  --border2:      rgba(255, 255, 255, 0.1);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --transition-fast:   0.2s ease;
  --transition-med:    0.35s ease;
  --transition-slow:   0.8s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background:   var(--black);
  color:        var(--off-white);
  font-family:  var(--font-body);
  font-weight:  300;
  line-height:  1.7;
  overflow-x:   hidden;
  cursor:       none;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* Custom scrollbar */
::-webkit-scrollbar         { width: 4px; }
::-webkit-scrollbar-track   { background: var(--black); }
::-webkit-scrollbar-thumb   { background: var(--gold); border-radius: 2px; }

/* ── CUSTOM CURSOR ────────────────────────────── */
.cursor {
  position:   fixed;
  width:      10px;
  height:     10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index:    9999;
  transform:  translate(-50%, -50%);
  transition: width var(--transition-fast), height var(--transition-fast), opacity var(--transition-fast);
}

.cursor-ring {
  position:   fixed;
  width:      36px;
  height:     36px;
  border:     1px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index:    9998;
  transform:  translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
}

.cursor.expand      { width: 20px; height: 20px; opacity: 0.5; }
.cursor-ring.expand { width: 60px; height: 60px; opacity: 0.3; }

/* ── NAVIGATION ───────────────────────────────── */
nav {
  position:   fixed;
  top: 0; left: 0; right: 0;
  z-index:    100;
  display:    flex;
  justify-content: space-between;
  align-items: center;
  padding:    1.6rem 5rem;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s ease, border-color 0.4s ease;
}

.nav-logo {
  font-family:     var(--font-display);
  font-weight:     800;
  font-size:       1rem;
  letter-spacing:  0.08em;
  text-transform:  uppercase;
  color:           var(--off-white);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display:    flex;
  gap:        2.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size:       0.75rem;
  letter-spacing:  0.14em;
  text-transform:  uppercase;
  color:           var(--mid);
  text-decoration: none;
  transition:      color var(--transition-fast);
  position:        relative;
}

.nav-links a::after {
  content:    '';
  position:   absolute;
  bottom: -3px; left: 0;
  width:  0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover             { color: var(--off-white); }
.nav-links a:hover::after      { width: 100%; }

.nav-cta {
  padding:      0.55rem 1.4rem !important;
  border:       1px solid var(--gold-border) !important;
  border-radius: 2px;
  color:        var(--gold-light) !important;
  font-weight:  500 !important;
}
.nav-cta:hover          { background: var(--gold-dim); }
.nav-cta::after         { display: none !important; }

/* Hamburger */
.hamburger {
  display:        none;
  flex-direction: column;
  gap:            5px;
  cursor:         pointer;
  padding:        4px;
}
.hamburger span {
  display:    block;
  width:      22px;
  height:     1px;
  background: var(--off-white);
  transition: all 0.3s;
}

/* Mobile overlay menu */
.mobile-menu {
  display:          none;
  position:         fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:       rgba(8, 8, 8, 0.98);
  z-index:          99;
  flex-direction:   column;
  align-items:      center;
  justify-content:  center;
  gap:              2.5rem;
}
.mobile-menu.open     { display: flex; }
.mobile-menu a {
  font-family:     var(--font-display);
  font-size:       2rem;
  font-weight:     700;
  color:           var(--off-white);
  text-decoration: none;
  transition:      color var(--transition-fast);
}
.mobile-menu a:hover  { color: var(--gold); }
.mobile-close {
  position:   absolute;
  top:  1.5rem;
  right: 1.5rem;
  font-size:  1.5rem;
  color:      var(--mid);
  cursor:     pointer;
}

/* ── SHARED SECTION STYLES ────────────────────── */
section {
  padding: 7rem 5rem;
}

.section-tag {
  display:        inline-flex;
  align-items:    center;
  gap:            0.7rem;
  font-size:      0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-bottom:  1.2rem;
}
.section-tag::before {
  content:    '';
  display:    block;
  width:      20px;
  height:     1px;
  background: var(--gold);
}

.section-title {
  font-family:     var(--font-display);
  font-weight:     800;
  font-size:       clamp(2.2rem, 4.5vw, 3.8rem);
  line-height:     1.05;
  letter-spacing:  -0.02em;
  margin-bottom:   1rem;
}

.section-sub {
  color:         var(--mid);
  font-size:     0.95rem;
  max-width:     500px;
  margin-bottom: 4rem;
  line-height:   1.7;
}

/* Shared button */
.btn {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  padding:         0.9rem 2.2rem;
  border-radius:   2px;
  font-size:       0.8rem;
  font-family:     var(--font-body);
  font-weight:     500;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  text-decoration: none;
  transition:      all 0.3s ease;
  cursor:          none;
}

.btn-primary {
  background:  var(--gold);
  color:       #080808;
  border:      1px solid var(--gold);
}
.btn-primary:hover {
  background:  var(--gold-light);
  border-color: var(--gold-light);
  transform:   translateY(-3px);
  box-shadow:  0 12px 32px rgba(201, 168, 76, 0.3);
}

.btn-ghost {
  background:  transparent;
  color:       var(--off-white);
  border:      1px solid var(--border2);
}
.btn-ghost:hover {
  border-color: rgba(240, 237, 232, 0.35);
  transform:    translateY(-3px);
}

/* ── HERO ─────────────────────────────────────── */
#hero {
  min-height:     100vh;
  display:        grid;
  grid-template-rows: 1fr auto;
  padding:        0 5rem;
  position:       relative;
  overflow:       hidden;
}

.hero-ambient {
  position:       absolute;
  width:  800px;
  height: 800px;
  border-radius:  50%;
  background:     radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
  top:   -200px;
  right: -200px;
  pointer-events: none;
  z-index: 1;
}

.hero-ambient2 {
  position:       absolute;
  width:  500px;
  height: 500px;
  border-radius:  50%;
  background:     radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 65%);
  bottom: 0;
  left:  -150px;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  display:        flex;
  flex-direction: column;
  justify-content: center;
  padding-top:    8rem;
  padding-bottom: 4rem;
  position:       relative;
  z-index:        2;
}

.hero-line {
  display:       flex;
  align-items:   center;
  gap:           1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.1s forwards;
}
.hero-line::before {
  content:    '';
  display:    block;
  width:      40px;
  height:     1px;
  background: var(--gold);
}

.hero-eyebrow {
  font-size:       0.72rem;
  letter-spacing:  0.22em;
  text-transform:  uppercase;
  color:           var(--gold);
  font-weight:     400;
}

.hero-name {
  font-family:     var(--font-display);
  font-weight:     800;
  font-size:       clamp(3.2rem, 7.5vw, 7.5rem);
  line-height:     0.92;
  letter-spacing:  -0.025em;
  margin-bottom:   2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.25s forwards;
}
.hero-name .outline {
  color:               transparent;
  -webkit-text-stroke: 1.5px rgba(240, 237, 232, 0.2);
}

.hero-desc {
  font-size:     clamp(0.95rem, 1.6vw, 1.1rem);
  color:         var(--light-mid);
  max-width:     480px;
  line-height:   1.75;
  margin-bottom: 3rem;
  font-style:    italic;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero-cta {
  display:    flex;
  gap:        1rem;
  flex-wrap:  wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s forwards;
}

/* Stats bar */
.hero-stats {
  display:      flex;
  gap:          0;
  border-top:   1px solid var(--border);
  position:     relative;
  z-index:      2;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

.stat-item {
  flex:           1;
  padding:        2.2rem 3rem 2.2rem 0;
  border-right:   1px solid var(--border);
}
.stat-item:not(:first-child) { padding-left: 3rem; }
.stat-item:last-child         { border-right: none; }

.stat-num {
  font-family:  var(--font-display);
  font-weight:  700;
  font-size:    2.4rem;
  color:        var(--off-white);
  line-height:  1;
}
.stat-num em    { color: var(--gold); font-style: normal; }

.stat-label {
  font-size:       0.7rem;
  letter-spacing:  0.12em;
  text-transform:  uppercase;
  color:           var(--mid);
  margin-top:      0.5rem;
}

/* ── ABOUT ────────────────────────────────────── */
#about {
  background: var(--surface);
  position:   relative;
  overflow:   hidden;
}

/* Watermark background text */
#about::before {
  content:        'ABOUT';
  position:       absolute;
  right:          -1rem;
  top:            50%;
  transform:      translateY(-50%);
  font-family:    var(--font-display);
  font-weight:    800;
  font-size:      12rem;
  line-height:    1;
  color:          rgba(255, 255, 255, 0.025);
  pointer-events: none;
  user-select:    none;
  letter-spacing: -0.05em;
}

.about-grid {
  display:               grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:                   6rem;
  align-items:           start;
}

.about-intro {
  font-size:     1.1rem;
  color:         rgba(240, 237, 232, 0.75);
  line-height:   1.85;
  margin-bottom: 1.4rem;
  font-weight:   300;
}
.about-intro strong  { color: var(--off-white); font-weight: 500; }
.about-intro .highlight { color: var(--gold); }

.about-pills {
  display:    flex;
  flex-wrap:  wrap;
  gap:        0.5rem;
  margin-top: 2.5rem;
}

.pill {
  padding:         0.35rem 0.9rem;
  border-radius:   2px;
  font-size:       0.72rem;
  letter-spacing:  0.07em;
  text-transform:  uppercase;
  border:          1px solid var(--gold-border);
  color:           var(--gold-light);
  background:      var(--gold-dim);
}

.about-cards {
  display:        flex;
  flex-direction: column;
  gap:            1px;
}

.about-card {
  background:  var(--surface2);
  border:      1px solid var(--border);
  padding:     1.6rem 2rem;
  transition:  all var(--transition-med);
  position:    relative;
  overflow:    hidden;
}

.about-card::before {
  content:    '';
  position:   absolute;
  left: 0; top: 0; bottom: 0;
  width:      2px;
  background: var(--gold);
  transform:  scaleY(0);
  transition: transform var(--transition-med);
}

.about-card:hover                { border-color: var(--gold-border); background: rgba(201,168,76,0.04); }
.about-card:hover::before        { transform: scaleY(1); }

.about-card-num {
  font-family:     var(--font-display);
  font-size:       0.65rem;
  letter-spacing:  0.15em;
  color:           var(--gold);
  margin-bottom:   0.6rem;
  font-weight:     600;
}

.about-card-title {
  font-family:   var(--font-display);
  font-weight:   700;
  font-size:     0.95rem;
  margin-bottom: 0.4rem;
  color:         var(--off-white);
}

.about-card p {
  font-size:   0.82rem;
  color:       var(--mid);
  line-height: 1.65;
}

/* ── EXPERIENCE ───────────────────────────────── */
#experience {
  background: var(--black);
}

.exp-list {
  margin-top: 1rem;
}

.exp-item {
  display:               grid;
  grid-template-columns: 220px 1fr;
  gap:                   4rem;
  padding:               3rem 0;
  border-bottom:         1px solid var(--border);
  transition:            all 0.3s ease;
  position:              relative;
}
.exp-item:first-child { border-top: 1px solid var(--border); }

.exp-item::before {
  content:    '';
  position:   absolute;
  left:       -5rem; top: 0; bottom: 0;
  width:      2px;
  background: transparent;
  transition: background 0.3s;
}
.exp-item:hover::before { background: var(--gold); }

.exp-date {
  font-size:       0.7rem;
  letter-spacing:  0.14em;
  text-transform:  uppercase;
  color:           var(--mid);
  margin-bottom:   0.7rem;
}

.exp-company {
  font-family:  var(--font-display);
  font-weight:  800;
  font-size:    1.05rem;
  color:        var(--off-white);
  transition:   color 0.3s;
  margin-bottom: 0.3rem;
}
.exp-item:hover .exp-company { color: var(--gold); }

.exp-location {
  font-size:       0.72rem;
  color:           var(--mid);
  letter-spacing:  0.05em;
}

.exp-role {
  font-family:   var(--font-display);
  font-weight:   700;
  font-size:     1.2rem;
  margin-bottom: 1rem;
  color:         var(--off-white);
}

.exp-desc {
  color:         rgba(240, 237, 232, 0.55);
  font-size:     0.9rem;
  line-height:   1.8;
  margin-bottom: 1.2rem;
}

.exp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.exp-tag {
  font-size:       0.7rem;
  padding:         0.28rem 0.75rem;
  border-radius:   2px;
  background:      rgba(255, 255, 255, 0.04);
  color:           var(--light-mid);
  border:          1px solid var(--border);
  letter-spacing:  0.05em;
  text-transform:  uppercase;
}

/* ── SKILLS ───────────────────────────────────── */
#skills {
  background: var(--surface);
}

.skills-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1px;
  border:                1px solid var(--border);
}

.skill-card {
  background:  var(--surface2);
  padding:     2.5rem;
  transition:  all var(--transition-med);
  position:    relative;
  overflow:    hidden;
}

.skill-card::after {
  content:          '';
  position:         absolute;
  bottom: 0; left: 0; right: 0;
  height:           2px;
  background:       linear-gradient(90deg, var(--gold), transparent);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.4s ease;
}

.skill-card:hover        { background: rgba(201, 168, 76, 0.04); }
.skill-card:hover::after { transform: scaleX(1); }

.skill-icon-wrap {
  width:          42px;
  height:         42px;
  border:         1px solid var(--gold-border);
  border-radius:  4px;
  display:        flex;
  align-items:    center;
  justify-content: center;
  margin-bottom:  1.5rem;
  background:     var(--gold-dim);
}

.skill-icon-wrap svg {
  width:        20px;
  height:       20px;
  stroke:       var(--gold);
  fill:         none;
  stroke-width: 1.5;
}

.skill-card h3 {
  font-family:    var(--font-display);
  font-weight:    700;
  font-size:      0.95rem;
  margin-bottom:  0.8rem;
  color:          var(--off-white);
  letter-spacing: 0.01em;
}

.skill-card p {
  font-size:   0.8rem;
  color:       var(--mid);
  line-height: 1.7;
}

/* ── INTERESTS ────────────────────────────────── */
#interests {
  background: var(--black);
}

.interests-intro {
  color:         var(--mid);
  font-size:     0.95rem;
  max-width:     560px;
  margin-bottom: 4rem;
  line-height:   1.75;
}

.interests-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1.5rem;
}

.interest-card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: 4px;
  padding:       2rem 1.8rem;
  transition:    all var(--transition-med);
  position:      relative;
  overflow:      hidden;
}

.interest-card:hover {
  border-color: var(--gold-border);
  transform:    translateY(-5px);
  box-shadow:   0 20px 40px rgba(0, 0, 0, 0.4);
}
.interest-card:hover .interest-icon { color: var(--gold); }

.interest-icon {
  font-size:     1.6rem;
  margin-bottom: 1.2rem;
  transition:    color 0.3s;
  display:       block;
}

.interest-title {
  font-family:   var(--font-display);
  font-weight:   700;
  font-size:     0.92rem;
  margin-bottom: 0.6rem;
  color:         var(--off-white);
}

.interest-desc {
  font-size:   0.78rem;
  color:       var(--mid);
  line-height: 1.65;
}

.interest-tag {
  display:         inline-block;
  margin-top:      1rem;
  font-size:       0.65rem;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  color:           var(--gold);
  border:          1px solid var(--gold-border);
  padding:         0.2rem 0.6rem;
  border-radius:   2px;
}

/* ── EDUCATION ────────────────────────────────── */
#education {
  background: var(--surface);
}

.edu-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   1.5rem;
}

.edu-card {
  background:  var(--surface2);
  border:      1px solid var(--border);
  padding:     2.2rem 2.5rem;
  transition:  all var(--transition-med);
}
.edu-card:hover { border-color: var(--gold-border); }

.edu-badge {
  font-size:       0.62rem;
  letter-spacing:  0.16em;
  text-transform:  uppercase;
  color:           var(--gold);
  border:          1px solid var(--gold-border);
  background:      var(--gold-dim);
  padding:         0.22rem 0.7rem;
  border-radius:   2px;
  display:         inline-block;
  margin-bottom:   1.4rem;
}

.edu-card h3 {
  font-family:   var(--font-display);
  font-weight:   700;
  font-size:     1rem;
  margin-bottom: 0.5rem;
  color:         var(--off-white);
  line-height:   1.35;
}

.edu-card p {
  font-size: 0.82rem;
  color:     var(--mid);
}

/* ── CONTACT ──────────────────────────────────── */
#contact {
  background:  var(--black);
  text-align:  center;
  position:    relative;
  overflow:    hidden;
}

.contact-glow {
  position:       absolute;
  width:  600px;
  height: 600px;
  border-radius:  50%;
  background:     radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 65%);
  top:  50%;
  left: 50%;
  transform:      translate(-50%, -50%);
  pointer-events: none;
}

.contact-inner { position: relative; z-index: 2; }

#contact .section-title {
  font-size:     clamp(3rem, 7vw, 6rem);
  margin-bottom: 1rem;
}

.contact-sub {
  color:         var(--mid);
  font-size:     1rem;
  margin-bottom: 3rem;
  max-width:     440px;
  margin-left:   auto;
  margin-right:  auto;
  line-height:   1.7;
}

.contact-btns {
  display:         flex;
  justify-content: center;
  gap:             1rem;
  flex-wrap:       wrap;
  margin-bottom:   5rem;
}

.contact-strip {
  display:          flex;
  justify-content:  center;
  border-top:       1px solid var(--border);
}

.contact-strip-item {
  flex:        1;
  max-width:   220px;
  padding:     2rem 1.5rem;
  border-right: 1px solid var(--border);
  text-align:  center;
}
.contact-strip-item:last-child { border-right: none; }

.contact-strip-label {
  font-size:       0.65rem;
  letter-spacing:  0.16em;
  text-transform:  uppercase;
  color:           var(--mid);
  margin-bottom:   0.5rem;
}

.contact-strip-value {
  font-size: 0.82rem;
  color:     var(--off-white);
}

/* ── FOOTER ───────────────────────────────────── */
footer {
  background:       var(--surface);
  padding:          2rem 5rem;
  display:          flex;
  justify-content:  space-between;
  align-items:      center;
  border-top:       1px solid var(--border);
}

.footer-logo {
  font-family:    var(--font-display);
  font-weight:    800;
  font-size:      0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--off-white);
}
.footer-logo span { color: var(--gold); }

footer p { font-size: 0.72rem; color: var(--mid); }

.footer-links {
  display: flex;
  gap:     2rem;
}
.footer-links a {
  font-size:       0.72rem;
  color:           var(--mid);
  text-decoration: none;
  transition:      color var(--transition-fast);
}
.footer-links a:hover { color: var(--gold); }

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity:    0;
  transform:  translateY(32px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.visible        { opacity: 1; transform: translateY(0); }
.reveal-delay-1        { transition-delay: 0.1s; }
.reveal-delay-2        { transition-delay: 0.2s; }
.reveal-delay-3        { transition-delay: 0.3s; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  nav                    { padding: 1.2rem 1.8rem; }
  .nav-links             { display: none; }
  .hamburger             { display: flex; }

  #hero, section, footer { padding-left: 1.8rem; padding-right: 1.8rem; }
  #hero                  { padding-top: 0; }
  .hero-content          { padding-top: 7rem; }

  .hero-stats            { flex-direction: column; }
  .stat-item             { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
  .stat-item:last-child  { border-bottom: none; }

  .about-grid            { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid           { grid-template-columns: 1fr 1fr; }
  .interests-grid        { grid-template-columns: 1fr 1fr; }
  .edu-grid              { grid-template-columns: 1fr; }
  .exp-item              { grid-template-columns: 1fr; gap: 0.8rem; }

  footer                 { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links          { justify-content: center; }

  .contact-strip         { flex-direction: column; align-items: center; }
  .contact-strip-item    { border-right: none; border-bottom: 1px solid var(--border); width: 100%; max-width: 100%; }

  #about::before         { font-size: 5rem; }

  body                   { cursor: auto; }
  .cursor, .cursor-ring  { display: none; }
}

@media (max-width: 520px) {
  .skills-grid    { grid-template-columns: 1fr; }
  .interests-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
