/* ════════════════════════════════════════════════
   SAMUEL OLADIPUPO · PREMIUM 3D PORTFOLIO
   style.css — Full Production Stylesheet
   Design: Dark Cosmos · Accent: Electric Cyan
   Font: Orbitron (display) + Space Grotesk (body)
   ════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ──────────────────────── */
:root {
  --bg:          #040610;
  --bg-2:        #080b18;
  --bg-3:        #0c1020;
  --bg-card:     rgba(255,255,255,0.028);
  --border:      rgba(255,255,255,0.065);
  --border-lit:  rgba(0,229,255,0.22);
  --text:        #dde3f0;
  --text-muted:  #5a6480;
  --text-dim:    #8892aa;
  --accent:      #00e5ff;
  --accent-glow: rgba(0,229,255,0.18);
  --accent-dim:  rgba(0,229,255,0.08);
  --gold:        #f59e0b;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --shadow-card: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 40px rgba(0,229,255,0.12);
  --font-display:'Orbitron', monospace;
  --font-body:   'Space Grotesk', system-ui, sans-serif;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { font-family: inherit; }

/* ── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ── NOISE GRAIN OVERLAY ────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9990;
}

/* ══════════════════════════════════════════════
   LOADER
═══════════════════════════════════════════════ */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content { text-align: center; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 900;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -0.04em;
  animation: loaderPulse 1.4s ease-in-out infinite alternate;
}
@keyframes loaderPulse {
  from { opacity: 0.7; text-shadow: 0 0 0px var(--accent); }
  to   { opacity: 1;   text-shadow: 0 0 30px var(--accent); }
}
.loader-bar-wrap {
  width: 220px; height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px; overflow: hidden;
  margin: 0 auto 18px;
}
.loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  border-radius: 99px;
  transition: width 0.1s linear;
}
.loader-label {
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}
.ellipsis { animation: ell 1.4s steps(4, end) infinite; }
@keyframes ell {
  0%  { content: '';    }
  25% { content: '.';  }
  50% { content: '..'; }
  75% { content: '...';}
}

/* ══════════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════════ */
.cursor-dot, .cursor-ring {
  position: fixed; pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9995;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  transition: transform 0.08s, width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(0,229,255,0.5);
  transition: transform 0.14s var(--ease-out), width 0.25s, height 0.25s, opacity 0.2s;
}
body.cursor-hover .cursor-dot { width: 4px; height: 4px; opacity: 0.6; }
body.cursor-hover .cursor-ring { width: 48px; height: 48px; border-color: var(--accent); }

/* ══════════════════════════════════════════════
   3D WORLD CANVAS
═══════════════════════════════════════════════ */
#worldCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.nav-bar {
  position: fixed; top: 0; width: 100%;
  z-index: 500;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px);
  background: rgba(4,6,16,0.65);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, box-shadow 0.4s;
}
.nav-bar.scrolled {
  background: rgba(4,6,16,0.92);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
  color: var(--text-dim); font-size: 0.875rem; font-weight: 500;
  padding: 8px 16px; border-radius: 99px;
  position: relative;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.055);
}
.nav-link.active::after {
  content: '';
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}
.nav-burger {
  display: none; background: transparent;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 10px; cursor: pointer;
  flex-direction: column; gap: 4px;
}
.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: 72px; right: 20px;
    background: rgba(8,11,24,0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    flex-direction: column; gap: 2px;
    backdrop-filter: blur(24px);
    min-width: 170px;
  }
  .nav-links.open { display: flex; }
}

/* ══════════════════════════════════════════════
   MAIN CONTENT (sits above canvas)
═══════════════════════════════════════════════ */
#mainContent {
  position: relative; z-index: 10;
}

/* ══════════════════════════════════════════════
   SHARED SECTION STYLES
═══════════════════════════════════════════════ */
.section { position: relative; }
.section-container {
  max-width: 1240px; margin: 0 auto;
  padding: 0 28px;
}
.section-tag {
  font-family: var(--font-display);
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px; font-weight: 700;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 52px;
}
.c-accent { color: var(--accent); }
.body-copy { color: var(--text-dim); line-height: 1.85; margin-bottom: 18px; }
.body-copy strong { color: var(--text); font-weight: 600; }

/* ══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.92rem;
  cursor: pointer; border: none; font-family: inherit;
  transition: all 0.28s var(--ease-out);
  position: relative; overflow: hidden;
  text-decoration: none;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #030611;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(0,229,255,0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,229,255,0.4), 0 8px 30px rgba(0,229,255,0.15);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.section-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: 68px;
}
.hero-content {
  max-width: 820px;
  padding: 60px 28px;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.18);
  color: var(--accent);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 99px;
  margin-bottom: 32px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0,229,255,0.5); }
  50% { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 0 5px rgba(0,229,255,0); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-name-first { color: var(--text); opacity: 0.9; }
.hero-name-last  { color: var(--accent); }

.hero-roles {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin-bottom: 28px;
  font-size: 0.9rem; color: var(--text-dim); font-weight: 500;
}
.role-item {
  transition: color 0.3s;
}
.role-item.active { color: var(--text); }
.role-sep { color: var(--border); }

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim); line-height: 1.75;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-metrics {
  display: flex; align-items: center;
  gap: 36px; flex-wrap: wrap;
}
.metric { text-align: center; }
.metric-val {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 900;
  color: var(--text); letter-spacing: -0.04em;
  display: inline;
}
.metric-plus { font-size: 1.5rem; color: var(--accent); font-weight: 700; }
.metric-name {
  display: block; font-size: 0.75rem;
  color: var(--text-muted); margin-top: 2px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.metric-divider { width: 1px; height: 44px; background: var(--border); }

.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  z-index: 2;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(0,229,255,0.3);
  border-radius: 99px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: var(--accent);
  border-radius: 99px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ══════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════ */
.section-about {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8,11,24,0.9) 30%, rgba(8,11,24,0.95) 70%, transparent 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px; align-items: start;
}
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
}
.about-pills span {
  font-size: 0.78rem; font-weight: 500;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.18);
  color: var(--accent); padding: 5px 14px; border-radius: 99px;
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}
.about-pills span:hover {
  background: rgba(0,229,255,0.14);
  transform: translateY(-2px);
}

/* Glass cards */
.about-cards-col { display: flex; flex-direction: column; gap: 18px; }

.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.glass-card:hover {
  border-color: var(--border-lit);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.gc-profile {
  text-align: center;
  perspective: 1000px;
}
.gc-avatar {
  position: relative; width: 100px; height: 100px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
}
.gc-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg);
}
.gc-avatar-fallback {
  display: none; width: 100%; height: 100%;
  border-radius: 50%; background: var(--bg-3);
  align-items: center; justify-content: center;
  font-size: 2rem; color: var(--text-muted);
  border: 3px solid var(--bg);
}
.gc-status-dot {
  position: absolute; bottom: 4px; right: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-2);
  animation: pulseDot 2s infinite;
}
.gc-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.gc-title { font-size: 0.8rem; color: var(--accent); margin-bottom: 3px; }
.gc-school { font-size: 0.75rem; color: var(--text-muted); }

.gc-highlights { }
.gc-heading {
  font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px; font-weight: 700;
}
.gc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.gc-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.85rem; color: var(--text-dim);
}
.gc-list li i { color: var(--accent); width: 16px; margin-top: 3px; flex-shrink: 0; font-size: 0.8rem; }

/* ══════════════════════════════════════════════
   SKILLS SECTION
═══════════════════════════════════════════════ */
.section-skills {
  padding: 120px 0;
  position: relative;
}
.section-skills::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 900px 500px at 50% 50%, rgba(0,229,255,0.025), transparent);
  pointer-events: none;
}

/* Skill orbs (decorative 3D labels) */
.skills-orbs-wrapper {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 14px;
  margin-bottom: 64px;
}
.skill-orb {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-dim);
  cursor: default;
  transition: all 0.3s var(--ease-spring);
  transform: translateZ(0);
}
.skill-orb:hover {
  background: var(--accent-dim);
  border-color: rgba(0,229,255,0.3);
  color: var(--accent);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0,229,255,0.1), 0 0 0 1px rgba(0,229,255,0.12);
}
.skill-orb i { margin-right: 7px; }

/* Skill bars */
.skills-bars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .skills-bars-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) and (min-width: 961px) { .skills-bars-grid { grid-template-columns: repeat(2, 1fr); } }

.skills-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.skills-column:hover {
  border-color: var(--border-lit);
  box-shadow: var(--shadow-glow);
}
.skills-col-title {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 24px;
}
.skills-col-title i { color: var(--accent); margin-right: 8px; }

.skill-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px 10px; align-items: center;
  margin-bottom: 16px;
}
.skill-row span:first-child { font-size: 0.84rem; color: var(--text-dim); }
.bar {
  grid-column: 1 / -1;
  height: 4px; background: rgba(255,255,255,0.055);
  border-radius: 99px; overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  border-radius: 99px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.animated { width: calc(var(--target-w) * 1%); }
.pct {
  font-size: 0.72rem; color: var(--text-muted);
  font-family: var(--font-display); font-weight: 700;
}

/* ══════════════════════════════════════════════
   PROJECTS SECTION
═══════════════════════════════════════════════ */
.section-projects {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8,11,24,0.9) 20%, rgba(8,11,24,0.9) 80%, transparent 100%);
}
.project-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 48px;
}
.filter-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 22px; border-radius: 99px;
  font-size: 0.84rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  font-family: inherit;
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active {
  background: var(--accent); border-color: var(--accent);
  color: #030611;
  box-shadow: 0 0 20px rgba(0,229,255,0.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1040px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  transform-style: preserve-3d;
}
.project-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--border-lit);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), var(--shadow-glow);
}
.project-card.hidden { display: none; }
.project-card.extra-project { display: none; }
.projects-grid.show-all .project-card.extra-project {
  display: block;
  animation: fadeRise 0.45s var(--ease-out) forwards;
}
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pc-thumb {
  position: relative; height: 210px; overflow: hidden;
  background: var(--bg-3);
}
.pc-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  display: block;
}
.project-card:hover .pc-thumb img { transform: scale(1.06); }
.pc-thumb.thumb-empty img { display: none; }

/* Data art visuals */
.thumb-data, .thumb-ml, .thumb-bi {
  display: flex; align-items: center; justify-content: center;
}
.data-viz-art {
  text-align: center; width: 100%;
  padding: 16px;
}
.data-viz-art > i {
  font-size: 2.2rem; color: var(--accent);
  display: block; margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(0,229,255,0.4));
}
.thumb-bi .data-viz-art > i { color: var(--gold); filter: drop-shadow(0 0 12px rgba(245,158,11,0.4)); }

.dviz-bars {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 5px; height: 52px;
}
.dviz-bars div {
  width: 12px; height: var(--h, 50%);
  background: linear-gradient(to top, var(--accent), rgba(0,229,255,0.2));
  border-radius: 3px 3px 0 0;
  animation: dvizPulse 2.4s ease-in-out infinite alternate;
}
.dviz-gold div {
  background: linear-gradient(to top, var(--gold), rgba(245,158,11,0.2));
}
.dviz-bars div:nth-child(2) { animation-delay: 0.3s; }
.dviz-bars div:nth-child(3) { animation-delay: 0.6s; }
.dviz-bars div:nth-child(4) { animation-delay: 0.9s; }
.dviz-bars div:nth-child(5) { animation-delay: 1.2s; }
@keyframes dvizPulse {
  from { transform: scaleY(0.55); }
  to   { transform: scaleY(1); }
}

.pc-overlay {
  position: absolute; inset: 0;
  background: rgba(4,6,16,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.project-card:hover .pc-overlay { opacity: 1; }

.pc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #030611;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.85rem;
  transition: transform 0.2s;
  cursor: pointer;
}
.pc-btn:hover { transform: scale(1.06); }

.pc-tag-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--accent);
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
  backdrop-filter: blur(8px);
}

.pc-body { padding: 22px; }
.pc-body h4 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.pc-body p { font-size: 0.83rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 16px; }
.pc-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tech span {
  font-size: 0.7rem; font-weight: 600;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.16);
  color: var(--accent);
  padding: 3px 10px; border-radius: 99px;
}

.projects-toggle-row { text-align: center; margin-top: 48px; }

/* ══════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════ */
.section-contact {
  padding: 120px 0 160px;
  position: relative;
}
.section-contact::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 500px at 80% 50%, rgba(124,58,237,0.05), transparent);
  pointer-events: none;
}
.contact-sub {
  color: var(--text-dim); font-size: 1.05rem;
  margin: -36px 0 52px; line-height: 1.7;
}
.contact-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 40px; align-items: start;
  position: relative; z-index: 1;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .cf-row { grid-template-columns: 1fr; } }
.cf-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cf-group label {
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.1em; font-family: var(--font-display);
}
.cf-group input, .cf-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text); font-family: inherit; font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.cf-group input:focus, .cf-group textarea:focus {
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.06);
}
.cf-group input::placeholder, .cf-group textarea::placeholder { color: var(--text-muted); }

.contact-sidebar { padding-top: 4px; }
.avail-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.2);
  color: #22c55e;
  font-size: 0.82rem; font-weight: 600;
  padding: 9px 18px; border-radius: 99px;
  margin-bottom: 24px;
}
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  animation: pulseDot 2s infinite;
}
.contact-bio { color: var(--text-dim); line-height: 1.8; margin-bottom: 28px; font-size: 0.92rem; }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.soc-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 1rem;
  transition: all 0.25s var(--ease-out);
}
.soc-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #030611;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,229,255,0.2);
}

.contact-details { display: flex; flex-direction: column; gap: 13px; }
.cd-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.87rem; color: var(--text-dim);
}
.cd-item i { color: var(--accent); width: 18px; text-align: center; }

/* ══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  position: relative; z-index: 10;
  background: rgba(4,6,16,0.8);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-inner p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a {
  color: var(--text-muted); font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   REVEAL ANIMATION (IntersectionObserver)
═══════════════════════════════════════════════ */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-item:nth-child(2) { transition-delay: 0.08s; }
.reveal-item:nth-child(3) { transition-delay: 0.16s; }
.reveal-item:nth-child(4) { transition-delay: 0.24s; }
.reveal-item:nth-child(5) { transition-delay: 0.32s; }
.reveal-item:nth-child(6) { transition-delay: 0.40s; }

/* ══════════════════════════════════════════════
   RESPONSIVE FINE-TUNING
═══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero-content { padding: 60px 20px 40px; }
  .hero-actions { flex-direction: column; }
  .hero-metrics { gap: 20px; }
  .metric-val { font-size: 2rem; }
  .section-container { padding: 0 20px; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
/* ═══════════════════════════════════════
   AI CHATBOT WIDGET
═══════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  font-family: var(--font-body);
}

.chat-toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border-lit);
  background: var(--accent);
  color: #030611;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,229,255,0.35);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
}
.chat-toggle:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 40px rgba(0,229,255,0.5); }

.chat-toggle-icon-close { display: none; }
.chat-widget.open .chat-toggle-icon-open { display: none; }
.chat-widget.open .chat-toggle-icon-close { display: inline-block; }

.chat-toggle-pulse {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: chatPulse 2.2s ease-out infinite;
  pointer-events: none;
}
.chat-widget.open .chat-toggle-pulse { display: none; }
@keyframes chatPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 140px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  backdrop-filter: blur(20px);
}
.chat-widget.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-lit);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.chat-title { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.chat-status {
  font-size: 0.72rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}
.chat-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2ee6a6; box-shadow: 0 0 6px #2ee6a6;
}
.chat-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.95rem; cursor: pointer; padding: 6px;
  transition: color 0.2s;
}
.chat-close:hover { color: var(--accent); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-lit); border-radius: 10px; }

.chat-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.55;
  animation: chatMsgIn 0.25s var(--ease-out);
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #030611;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.chat-msg a { color: var(--accent); text-decoration: underline; }
.chat-msg.user a { color: #030611; }

.chat-typing {
  align-self: flex-start;
  display: flex; gap: 4px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: chatTypingDot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.chat-quick-replies:empty { display: none; }
.chat-chip {
  background: var(--accent-dim);
  border: 1px solid var(--border-lit);
  color: var(--accent);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.chat-chip:hover { background: var(--accent); color: #030611; transform: translateY(-1px); }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-row input:focus { border-color: var(--border-lit); }
.chat-input-row input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  color: #030611;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.chat-send:hover { transform: scale(1.08); }

@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 120px);
    bottom: 72px;
    right: -8px;
  }
}