/* ============================================
   CRITICAL DEVELOPER PORTFOLIO — styles.css
   ============================================ */

/* ------- RESET & BASE ------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0f;
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

/* ------- CANVAS RAIN ------- */
#rain-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
}

/* ------- BG GLOW ------- */
.bg-glow {
  position: fixed;
  top: -20vh; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.2) 0%, rgba(168,85,247,0.15) 35%, rgba(236,72,153,0.1) 70%, transparent 100%);
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

/* ------- CONTAINER ------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ------- TYPOGRAPHY ------- */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.15; }

/* ------- BUTTONS ------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-size: .92rem; font-weight: 600;
  text-decoration: none;
  transition: all .22s ease;
  cursor: pointer; border: none;
}
.btn--white  { background: #fff; color: #0a0a0f; }
.btn--white:hover { background: #dde4ff; transform: translateY(-2px); }
.btn--ghost  { background: transparent; color: #e2e8f0; border: 1.5px solid rgba(255,255,255,0.2); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }
.btn--pill   { background: rgba(255,255,255,0.1); color: #e2e8f0; border-radius: 999px; padding: .5rem 1.2rem; border: 1px solid rgba(255,255,255,0.12); font-size:.85rem; }
.btn--pill:hover { background: rgba(255,255,255,0.18); }

/* ------- HEADER ------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.header.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.07);
}
.header__inner {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem 1.5rem;
}
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem; font-weight: 500;
  text-decoration: none; color: #fff;
  letter-spacing: -.02em;
}
.logo__bracket { color: #3b82f6; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__link {
  color: rgba(226,232,240,0.7); text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: #3b82f6;
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; align-items: center; gap: .3rem; font-size: .8rem; }
.lang__btn { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: .8rem; padding: .1rem .3rem; transition: color .2s; }
.lang__btn.active, .lang__btn:hover { color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none; flex-direction: column; gap: 1rem;
  padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(10,10,15,0.97);
}
.mobile-nav.open { display: flex; }
.mobile-nav__link { color: #e2e8f0; text-decoration: none; font-size: 1.1rem; }

/* ------- 3D FLOATING ELEMENTS ------- */
.shapes-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  perspective: 1000px;
}
.shape-3d {
  position: absolute;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.0));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  animation: float3d 20s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes float3d {
  0% { transform: translate(0, 0) rotate(0deg) rotateX(0deg) rotateY(0deg); }
  25% { transform: translate(4vw, -8vh) rotate(90deg) rotateX(15deg) rotateY(20deg) scale(1.05); }
  50% { transform: translate(-2vw, -15vh) rotate(180deg) rotateX(-10deg) rotateY(-10deg) scale(0.95); }
  75% { transform: translate(-6vw, -5vh) rotate(270deg) rotateX(5deg) rotateY(-20deg) scale(1.02); }
  100% { transform: translate(0, 0) rotate(360deg) rotateX(0deg) rotateY(0deg); }
}

/* ------- HERO ------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero__badges {
  display: flex; gap: .8rem; flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.hero__available {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .82rem; font-weight: 500; color: #93c5fd;
}
.hero__eth {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .82rem; font-weight: 500; color: #6ee7b7;
}
.eth-dot {
  width: 8px; height: 8px;
  background: #10b981; border-radius: 50%;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: #3b82f6; border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(59,130,246,0); }
}
.hero__hello {
  font-size: 1.1rem; color: rgba(226,232,240,0.6);
  margin-bottom: .3rem; font-weight: 400;
}
.hero__h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .8rem;
  color: #fff;
}
.hero__role {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: rgba(226,232,240,0.7);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero__accent {
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shine 4s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}
.hero__sub {
  font-size: 1.1rem; color: rgba(226,232,240,0.65);
  max-width: 560px; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero__socials {
  display: flex; gap: .8rem; margin-bottom: 3.5rem;
}
.desk-only { display: none; }
@media(min-width:768px){ .desk-only { display: inline; } }

/* ------- STATUS CARDS ROW ------- */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media(max-width:768px){ .cards-row { grid-template-columns: 1fr; } }

/* ------- BASE CARD ------- */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px) translateZ(10px);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 10px 40px rgba(168,85,247,0.15), 0 0 20px rgba(59,130,246,0.1);
}
.card--status { padding: 1.4rem 1.4rem 1.2rem; }
.card__label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; color: #3b82f6;
  margin-bottom: .7rem;
  font-family: 'JetBrains Mono', monospace;
}
.card__title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.card__desc { font-size: .83rem; color: rgba(226,232,240,0.55); line-height: 1.5; }
.card--music { position: relative; }
.music-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 20px; margin-top: .8rem;
}
.music-bars span {
  display: block; width: 4px; background: #3b82f6; border-radius: 2px;
  animation: bar 1.2s ease-in-out infinite;
}
.music-bars span:nth-child(1){ height:6px; animation-delay:0s; }
.music-bars span:nth-child(2){ height:14px; animation-delay:.2s; }
.music-bars span:nth-child(3){ height:10px; animation-delay:.4s; }
.music-bars span:nth-child(4){ height:18px; animation-delay:.1s; }
@keyframes bar {
  0%,100% { transform: scaleY(1); }
  50%      { transform: scaleY(.4); }
}

/* ------- SECTIONS ------- */
.section { padding: 100px 0; }
.section__tag {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: #3b82f6; margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}
.section__h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: #fff;
  letter-spacing: -.025em; margin-bottom: 1.2rem;
}
.section__sub {
  color: rgba(226,232,240,0.5); font-size: .95rem;
  margin-bottom: 2.5rem; font-style: italic;
}

/* ------- ABOUT GRID ------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: start;
}
@media(max-width:768px){ .about-grid { grid-template-columns: 1fr; gap: 2rem; } }
.about__p { color: rgba(226,232,240,0.65); margin-bottom: 1rem; font-size: .95rem; }
.skills { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.skill-group h4 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: .5rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .78rem; color: #93c5fd; font-weight: 500;
}
.about__card { padding: 2rem; text-align: center; }
.about__avatar-wrap { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.about__photo {
  width: 130px; height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(59,130,246,0.4);
  box-shadow: 0 0 30px rgba(59,130,246,0.2);
}
.about__name-tag {
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem; margin-bottom: 1.2rem; text-align: center;
}
.about__name-title { font-size: 1.3rem; font-weight: 800; color: #fff; }
.about__name-role { font-size: .82rem; color: rgba(226,232,240,0.55); }
.about__location { font-size: .8rem; color: #93c5fd; }
.about__ai-skills {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .6rem; margin-top: 1.5rem;
}
.ai-skill {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: .6rem .9rem;
  font-size: .85rem; color: rgba(226,232,240,0.8);
}
.check { color: #10b981; font-weight: 700; }
.about__stats-row { display: flex; justify-content: space-around; gap: 1rem; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__n { font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.stat__l { font-size: .75rem; color: rgba(226,232,240,0.5); font-weight: 500; margin-top: .2rem; }

/* ------- PROJECTS GRID ------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.2rem;
}
@media(max-width:768px){ .projects-grid { grid-template-columns: 1fr; } }
.project-card { overflow: hidden; }
.project-card--featured {
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 280px;
}
@media(max-width:768px){
  .project-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
}
.project-card__body { padding: 2rem; display: flex; flex-direction: column; gap: .8rem; }
.project-card__top { display: flex; justify-content: space-between; align-items: center; }
.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #3b82f6;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 999px; padding: .2rem .7rem;
}
.arrow-link {
  font-size: 1.4rem; color: rgba(255,255,255,0.3);
  text-decoration: none; line-height: 1;
  transition: color .2s, transform .2s;
}
.arrow-link:hover { color: #fff; transform: translate(2px,-2px); }
.project-card__title { font-size: 1.3rem; font-weight: 800; color: #fff; }
.project-card__desc { font-size: .88rem; color: rgba(226,232,240,0.6); line-height: 1.6; flex: 1; }
.project-card__visual {
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(129,140,248,0.05) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; border-left: 1px solid rgba(255,255,255,0.06);
}
.project-card__visual--alt { border-left: none; border-right: 1px solid rgba(255,255,255,0.06); }
.mock-ui {
  width: 100%; max-width: 280px;
  background: rgba(10,10,20,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 5px;
  padding: .5rem .7rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mock-titlebar span { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mock-body { display: flex; height: 100px; }
.mock-sidebar { width: 50px; background: rgba(255,255,255,0.03); border-right: 1px solid rgba(255,255,255,0.06); }
.mock-content { flex: 1; padding: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.mock-block { height: 12px; background: rgba(59,130,246,0.2); border-radius: 3px; }
.mock-block.s { width: 60%; background: rgba(255,255,255,0.08); }
.mock-block.w { width: 80%; }
.mock-products { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; padding: .7rem; }
.mock-product { height: 50px; background: rgba(59,130,246,0.12); border-radius: 6px; }
.mock-ui--alt .mock-titlebar { background: rgba(129,140,248,0.05); }

/* ------- SKILLS GRID ------- */
.skills-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem;
}
@media(max-width:900px){ .skills-grid { grid-template-columns: 1fr; } }
.skill-cat { padding: 1.8rem; }
.skill-cat__title {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #3b82f6;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1.2rem;
}
.skill-bars { display: flex; flex-direction: column; gap: .9rem; }
.skill-bar { display: flex; flex-direction: column; gap: .3rem; }
.skill-bar > span:first-child { font-size: .85rem; color: rgba(226,232,240,0.8); }
.skill-pct { font-size: .75rem; color: #3b82f6; font-family: 'JetBrains Mono', monospace; align-self: flex-end; margin-top: -1.2rem; }
.bar {
  height: 4px; background: rgba(255,255,255,0.08);
  border-radius: 999px; overflow: hidden;
}
.bar div {
  height: 100%; background: linear-gradient(90deg, #3b82f6, #818cf8);
  border-radius: 999px;
  animation: barGrow 1.2s ease forwards;
}
@keyframes barGrow { from { width: 0 !important; } }

/* ------- REFERENCES ------- */
.refs-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem;
}
@media(max-width:768px){ .refs-grid { grid-template-columns: 1fr; } }
.ref-card { padding: 2rem; }
.ref-card p { font-size: .92rem; color: rgba(226,232,240,0.7); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.ref-card footer { display: flex; align-items: center; gap: .8rem; }
.ref-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #3b82f6, #818cf8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ref-card strong { display: block; font-size: .9rem; color: #fff; }
.ref-card span { font-size: .78rem; color: rgba(226,232,240,0.45); }

/* ------- CTA SECTION ------- */
.cta-section { padding: 100px 0; }
.cta-inner {
  padding: 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(129,140,248,0.04) 100%);
  border-color: rgba(59,130,246,0.15);
}
.cta__eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #3b82f6; margin-bottom: .8rem; font-family: 'JetBrains Mono', monospace; }
.cta__h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: #fff; letter-spacing: -.025em; margin-bottom: 1rem; }
.cta__accent { background: linear-gradient(135deg,#3b82f6,#818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta__sub { color: rgba(226,232,240,0.55); font-size: .95rem; margin-bottom: 2.5rem; }
.cta__row { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.socials { display: flex; gap: .7rem; }
.social {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(226,232,240,0.6); text-decoration: none;
  transition: all .2s;
}
.social:hover { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.3); color: #fff; transform: translateY(-2px); }

/* ------- FOOTER ------- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.8rem 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: rgba(226,232,240,0.35);
}
.footer__inner nav { display: flex; gap: 1.2rem; }
.footer__inner nav a { color: rgba(226,232,240,0.35); text-decoration: none; transition: color .2s; }
.footer__inner nav a:hover { color: #fff; }

/* ------- SCROLL REVEAL ------- */
.reveal {
  opacity: 0; transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ------- MOBILE ------- */
@media(max-width:900px){
  .nav, .header__right { display: none; }
  .hamburger { display: flex; }
}
@media(max-width:600px){
  .cta-inner { padding: 2.5rem 1.5rem; }
  .about__card { padding: 1.5rem; }
  .hero { padding: 100px 0 60px; }
}
