/* ===========================
   DAMILOLA PORTFOLIO — CSS
   Dark · Techy · Professional
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  --bg: #080a0f;
  --bg2: #0d1018;
  --surface: #111520;
  --border: rgba(255,255,255,0.07);
  --accent: #00e5b0;
  --accent2: #7b5cf6;
  --text: #e8eaf0;
  --muted: #6b7280;
  --white: #ffffff;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ======= NOISE ======= */
.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ======= CURSOR ======= */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
.cursor-trail {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.3s;
  opacity: 0.5;
}
body:hover .cursor { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { transform: translate(-50%, -50%) scale(2.5); }

/* ======= NAV ======= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(8,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover { background: var(--accent); color: var(--bg); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}

/* ======= MOBILE MENU ======= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 1.5rem 0; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--accent); }

/* ======= HERO ======= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 22rem);
  font-weight: 800;
  color: rgba(255,255,255,0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: -0.05em;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  animation: bgTextFloat 8s ease-in-out infinite;
}
@keyframes bgTextFloat {
  0%,100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-20px); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span { display: inline-block; }
.accent-line {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.4);
}
.hero-sub {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
  letter-spacing: 0.05em;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,229,176,0.25);
}
.btn-primary.full-width { width: 100%; text-align: center; border-radius: var(--radius); }
.btn-ghost {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--white); }

.hero-scroll {
  position: absolute;
  bottom: 3rem; left: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { width: 40px; opacity: 1; }
  50% { width: 70px; opacity: 0.5; }
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ORB EFFECTS */
.hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 10s ease-in-out infinite;
}
.orb1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,229,176,0.12), transparent);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.orb2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(123,92,246,0.1), transparent);
  bottom: 100px; left: 5%;
  animation-delay: -3s;
}
.orb3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,229,176,0.07), transparent);
  bottom: 200px; right: 20%;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(30px,-40px); }
  66% { transform: translate(-20px,20px); }
}

/* ======= MARQUEE ======= */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: var(--bg2);
}
.marquee {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.marquee .dot { color: var(--accent); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ======= SECTIONS ======= */
.section { padding: 8rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 4rem; }
.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 3rem;
}
.section-title.center { text-align: center; }

/* ======= ABOUT ======= */
.about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-box {
  aspect-ratio: 1;
  max-width: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.about-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 360px;
  background: linear-gradient(135deg, #111520 0%, #0d1520 100%);
}
.about-image-placeholder > span {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  z-index: 1;
}
.image-ring {
  position: absolute;
  width: 400px;  /* Made it bigger than the 360px image! */
  height: 400px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid var(--accent); /* Made the line slightly thicker so it pops */
  opacity: 0.25; /* Bumped up opacity so you can see it better */
  z-index: -1; /* Pushes it behind the photo */
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.25; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
    opacity: 0.05; 
  }
}
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,229,176,0.25);
  z-index: 10; /* 🚀 THIS IS THE MAGIC FIX! Pulls the badge to the very front */
}
.badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.badge-text { font-size: 0.65rem; letter-spacing: 0.1em; font-weight: 500; }

.about-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  max-width: 520px;
}
.about-text p strong { color: var(--white); }
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-plus { font-family: var(--font-display); font-size: 2rem; color: var(--accent); font-weight: 800; }
.stat-label { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; display: block; }

/* ======= SKILLS ======= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation-delay: var(--delay, 0s);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,176,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,229,176,0.25);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.skill-card:hover::before { opacity: 1; }
.skill-icon { font-size: 2rem; margin-bottom: 1rem; }
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.skill-card p { color: var(--muted); font-size: 0.8rem; margin-bottom: 1.2rem; }
.skill-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ======= PROJECTS ======= */
.projects { background: var(--bg2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  animation-delay: var(--delay, 0s);
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,229,176,0.2);
}
.project-card.featured {
  border-color: rgba(0,229,176,0.2);
  background: linear-gradient(135deg, #0f1a1a, var(--surface));
}
.project-glow {
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,229,176,0.08), transparent);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}
.project-card:hover .project-glow { opacity: 1; }
.project-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.project-tags span {
  background: rgba(0,229,176,0.08);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(0,229,176,0.15);
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.project-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.project-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.project-link:hover { gap: 0.7rem; }

/* ======= CONTACT ======= */
.contact-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 4rem;
  margin-top: -1.5rem;
  font-size: 0.85rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.contact-item:hover { border-color: rgba(0,229,176,0.2); }
.contact-icon { font-size: 1.5rem; }
.contact-label { display: block; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.2rem; }
.contact-val { color: var(--white); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.contact-val:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

/* ======= FOOTER ======= */
.footer {
  padding: 2.5rem 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}
.footer p { color: var(--muted); font-size: 0.75rem; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ======= ACCENT COLOR ======= */
.accent { color: var(--accent); }

/* ======= REVEAL ANIMATIONS ======= */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--delay, 0s);
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-box { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 0 1.5rem; text-align: center; }
  .hero-scroll { display: none; }
  .hero-actions { justify-content: center; }
  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .about-badge { bottom: -10px; right: 0; }
}

.image-ring {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.15;
  animation: ringPulse 3s ease-in-out infinite;
  z-index: 3; /* <--- This pulls the neon ring in front of the picture! */
}

.about-image-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Shift the 20% higher or lower until your face is perfectly framed */
  z-index: 3; /* Ensures it sits above the 'D' and the background gradient */
}

/* Make the entire image box pulse with a neon glow */
.about-image-box {
  animation: boxPulse 3s infinite;
}

@keyframes boxPulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(0, 229, 176, 0.4); 
  }
  70% { 
    box-shadow: 0 0 0 25px rgba(0, 229, 176, 0); 
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(0, 229, 176, 0); 
  }
}

/* Ensure the text block appears in front */
.teaching-block {
    /* You must have a position (relative, absolute, etc.) set for z-index to work */
    position: relative; 
    z-index: 10; /* Set a high number to force it to the front */
}

/* Ensure the photo stays behind other elements */
.person-photo {
    position: relative; /* Ensure z-index works on this element as well */
    z-index: 1; /* Set a lower number to keep it in the back */
}