/* ═══════════════════════════════════════════════════════════════
   Index-page-only styles. Loads after /style.css.
   Same rules apply: no border-radius, accent gradient only.
   ═══════════════════════════════════════════════════════════════ */

/* Background particles — below the skewed header (navspace is z-index 10) */
#bg-particles{
  position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;pointer-events:none;
}

/* Header flow: slightly tighter content gap than the project pages */
.toptoptop{margin-bottom:120px}

/* ─── HERO ─── */
.hero{
  display:flex;align-items:center;
  padding:1rem 3rem 3rem;
  position:relative;overflow:hidden;
}
.hero-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:4rem;
  max-width:1200px;margin:0 auto;width:100%;align-items:center;
}
.hero-greeting{
  font-size:1rem;color:var(--text-dim);font-weight:300;
  letter-spacing:.03em;margin-bottom:.5rem;
}
.hero-text h1{
  font-family:var(--sans);font-size:clamp(2.5rem,5vw,4.5rem);
  line-height:1.05;font-weight:600;margin-bottom:0;
  position:relative;
  white-space:nowrap;
}
/* Aurora canvas paints the name; only hide the text when JS is running */
.js .hero-text h1{color:transparent}
.aurora-canvas{
  position:absolute;top:0;left:0;pointer-events:none;
}
.hero-underline{
  width:100%;height:2px;margin-top:1.25rem;margin-bottom:2.25rem;
  background:var(--border);
}
.hero-text .tagline{
  font-size:1rem;color:var(--text-dim);max-width:480px;
  margin-bottom:2.5rem;font-weight:300;line-height:1.75;
}
.hero-links{display:flex;gap:1rem}

/* Quick project list */
.hero-projects{
  display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;
  margin-top:1.75rem;
}
.hero-projects-label{
  font-family:var(--mono);font-size:.7rem;letter-spacing:.15em;
  text-transform:uppercase;color:var(--text-dim);margin-right:.4rem;
}
.hero-projects a{
  font-family:var(--mono);font-size:.75rem;letter-spacing:.03em;
  color:var(--text-dim);text-decoration:none;
  padding:.45rem .9rem;border:1px solid var(--border);background:var(--surface);
  transition:all .3s;
}
.hero-projects a:hover{
  color:var(--accent-green);border-color:rgba(1,201,122,.5);
  transform:translateY(-2px);box-shadow:0 4px 14px rgba(1,201,122,.1);
}
.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.85rem 2rem;
  font-family:var(--sans);font-size:.85rem;font-weight:500;
  text-decoration:none;letter-spacing:.04em;
  transition:all .4s cubic-bezier(.25,.8,.25,1);cursor:pointer;
}
.btn svg{width:18px;height:18px}
.btn-primary{
  background:var(--grad-135);color:var(--bg);
  border:1px solid transparent;
}
.btn-primary:hover{transform:translateY(-3px);box-shadow:0 6px 24px rgba(1,201,122,.2);color:var(--bg)}
.btn-ghost{
  background:var(--surface);color:var(--text);
  border:1px solid var(--border);
}
.btn-ghost:hover{border-color:var(--accent-green);color:var(--text);transform:translateY(-3px);box-shadow:0 6px 24px rgba(1,201,122,.08);background:linear-gradient(to top,rgba(1,201,122,.25),rgba(1,166,207,.12) 50%,rgba(1,166,207,.03))}

.hero-portrait{position:relative;display:flex;justify-content:center}
.portrait-frame{
  position:relative;width:320px;height:320px;
  overflow:hidden;
  border:2px solid var(--border);
  box-shadow:0 0 60px rgba(1,201,122,.1),0 0 120px rgba(1,166,207,.06);
}
.portrait-frame img{width:100%;height:100%;object-fit:cover}
.hero-bg-shape{
  position:absolute;top:50%;left:50%;width:500px;height:500px;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle,rgba(1,201,122,.08) 0%,rgba(1,166,207,.05) 40%,transparent 70%);
  border-radius:50%;pointer-events:none;
}
.hero-bg-shape2{
  position:absolute;top:50%;left:50%;width:400px;height:400px;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle,rgba(1,166,207,.06) 0%,transparent 70%);
  border-radius:50%;pointer-events:none;
}

/* ─── SKILLS ─── */
.skills-section{background:var(--surface)}
.skills-categories{display:flex;flex-direction:column;gap:3rem}
.skills-category-header{
  display:flex;align-items:center;gap:.75rem;margin-bottom:1.25rem;
}
.skills-category-icon{
  width:32px;height:32px;
  background:linear-gradient(135deg,rgba(1,201,122,.1),rgba(1,166,207,.1));
  border:1px solid rgba(1,166,207,.15);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.skills-category-icon svg{width:16px;height:16px;fill:var(--accent-cyan)}
.skills-category-title{
  font-family:var(--sans);font-size:.8rem;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);
}
.skills-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;
}
.skill-card{
  background:rgba(11,22,32,.5);border:1px solid var(--border);
  padding:1.15rem 1.25rem;transition:all .3s;display:flex;gap:.9rem;align-items:flex-start;
  min-height:80px;
}
.skill-card:hover{border-color:rgba(1,201,122,.5);background:rgba(11,22,32,.85);transform:translateY(-2px) !important;box-shadow:0 6px 20px rgba(1,201,122,.1)}
.skill-icon{
  flex-shrink:0;width:34px;height:34px;
  background:rgba(1,201,122,.06);border:1px solid rgba(1,201,122,.1);
  display:flex;align-items:center;justify-content:center;margin-top:1px;
}
.skill-icon svg{width:16px;height:16px;fill:var(--accent-green)}
.skill-info{min-width:0;flex:1}
.skill-header{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;margin-bottom:.2rem}
.skill-name{font-size:.85rem;font-weight:600}
.skill-yrs{font-size:.85rem;color:var(--text-dim);white-space:nowrap;font-weight:300;opacity:.35}
.skill-desc{font-size:.72rem;color:var(--text-dim);line-height:1.55}

/* ─── EXPERIENCE TIMELINE ─── */
.timeline{position:relative;padding-left:3rem}
.timeline::before{
  content:'';position:absolute;left:18px;top:0;width:2px;
  height:var(--tl-height, 100%);
  background:linear-gradient(180deg,var(--accent-green),var(--accent-cyan),var(--border));
  opacity:.5;
}
.timeline-item{position:relative;padding-bottom:2.5rem}
.timeline-item:last-child{padding-bottom:0}
.timeline-icon{
  position:absolute;left:-3rem;top:0;width:38px;height:38px;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface2);border:2px solid var(--border);
  z-index:1;transition:border-color .3s;overflow:hidden;
}
.timeline-item:hover .timeline-icon{border-color:var(--accent-green)}
.timeline-icon img{width:100%;height:100%;object-fit:contain;padding:4px;background:#fff}
.timeline-logo{font-size:.65rem;font-weight:700;letter-spacing:-.02em;color:var(--accent-green);line-height:1}
.timeline-content{
  padding:.25rem 0 0 .5rem;transition:all .3s;
}
.timeline-item:hover .timeline-content{transform:translateX(4px)}
.timeline-date{
  font-family:var(--mono);font-size:.7rem;color:var(--accent-cyan);
  letter-spacing:.03em;margin-bottom:.3rem;
}
.timeline-role{font-size:1.05rem;font-weight:600;margin-bottom:.15rem}
.timeline-company{font-size:.82rem;color:var(--text-dim);margin-bottom:.4rem}
.timeline-desc{font-size:.82rem;color:var(--text-dim);line-height:1.7}
.timeline-skills{
  display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem;
}
.timeline-skill{
  padding:.2rem .55rem;background:rgba(1,201,122,.08);border:1px solid rgba(1,201,122,.12);
  font-size:.65rem;color:var(--accent-green);font-family:var(--mono);
}
@media(max-width:900px){
  .timeline{padding-left:2.5rem}
  .timeline-icon{left:-2.5rem;width:32px;height:32px}
  .timeline-logo{font-size:.55rem}
}

/* ─── PROJECTS ─── */
.projects-section{background:var(--bg)}
.project-cards{display:flex;flex-direction:column;gap:4rem}
.project-card{
  display:grid;grid-template-columns:1fr 1fr;gap:3rem;
  align-items:center;text-decoration:none;color:inherit;cursor:pointer;
  padding:2rem;border:1px solid transparent;
  transition:border-color .4s ease,background .4s ease,box-shadow .4s ease,transform .4s ease;
}
.project-card:hover{
  color:inherit;
  border-color:rgba(1,166,207,.25);
  background:linear-gradient(to top,rgba(1,166,207,.08),rgba(1,166,207,.02) 50%,transparent);
  box-shadow:0 4px 20px rgba(1,166,207,.06),inset 0 0 40px rgba(1,166,207,.05);
  transform:translateY(-2px) !important;
}
.project-card:nth-child(even){direction:rtl}
.project-card:nth-child(even) > *{direction:ltr}
.project-img{
  position:relative;overflow:hidden;
  border:1px solid var(--border);aspect-ratio:4/3;
  transition:border-color .4s ease,box-shadow .4s ease;
}
.project-img img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s cubic-bezier(.25,.8,.25,1);
}
.project-card:hover .project-img img{transform:scale(1.03)}
.project-card:hover .project-link{gap:.7rem}
.project-number{
  font-family:var(--mono);font-size:5rem;color:var(--bg);
  position:absolute;top:0;right:1rem;line-height:1;
  opacity:1;
}
.project-info{}
.project-tag{
  display:inline-block;padding:.3rem .8rem;
  font-family:var(--mono);font-size:.65rem;letter-spacing:.06em;
  text-transform:uppercase;margin-bottom:1rem;
}
.tag-scooter,.tag-drone,.tag-gimbal{background:rgba(1,201,122,.1);color:var(--accent-green)}

.project-name{
  font-family:var(--sans);font-size:clamp(1.5rem,2.6vw,2.1rem);
  font-weight:600;margin-bottom:1rem;line-height:1.2;
}
.project-desc{
  font-size:.9rem;color:var(--text-dim);line-height:1.8;margin-bottom:1.5rem;
  max-width:500px;
}
.project-specs{
  display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem;
}
.spec{
  padding:.35rem .75rem;background:var(--surface);border:1px solid var(--border);
  font-size:.7rem;color:var(--text-dim);font-family:var(--mono);
}
.project-link{
  color:var(--accent-cyan);text-decoration:none;font-size:.8rem;font-weight:600;
  display:inline-flex;align-items:center;gap:.4rem;
  letter-spacing:.04em;transition:gap .4s cubic-bezier(.25,.8,.25,1);
}
.project-link:hover{gap:.7rem}

/* ─── HOBBIES ─── */
.hobbies-section{background:var(--bg)}
.hobbies-flex{
  display:flex;flex-wrap:wrap;gap:1rem;
}
.hobby-chip{
  padding:.65rem 1.3rem;border:1px solid var(--border);
  font-size:.8rem;color:var(--text-dim);transition:all .4s cubic-bezier(.25,.8,.25,1);cursor:default;
}
.hobby-chip:hover{border-color:rgba(1,201,122,.5);color:var(--text);background:rgba(11,22,32,.85);transform:translateY(-2px) !important;box-shadow:0 6px 20px rgba(1,201,122,.1)}
.hobby-chip .emoji{margin-right:.4rem}

/* ─── CONTACT ─── */
.contact-section{
  padding:6rem 3rem 12rem;
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,var(--bg) 0%,rgba(1,201,122,.03) 50%,rgba(1,166,207,.04) 100%);
}
.contact-section .section-inner{max-width:1200px;margin:0 auto}
.contact-subtitle{color:var(--text-dim);font-size:.95rem;margin-bottom:3rem;font-weight:300}
.contact-links{display:flex;gap:1rem;flex-wrap:wrap}
.contact-btn{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.85rem 2rem;
  background:var(--surface);border:1px solid var(--border);
  color:var(--text);text-decoration:none;font-size:.85rem;font-weight:500;
  transition:all .4s cubic-bezier(.25,.8,.25,1);
}
.contact-btn:hover{border-color:var(--accent-green);color:var(--text);transform:translateY(-3px) !important;box-shadow:0 6px 24px rgba(1,201,122,.08);background:linear-gradient(to top,rgba(1,201,122,.25),rgba(1,166,207,.12) 50%,rgba(1,166,207,.03))}
.contact-btn svg{width:18px;height:18px}
.contact-glow{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:500px;height:500px;
  background:radial-gradient(circle,rgba(1,201,122,.06) 0%,rgba(1,166,207,.03) 40%,transparent 70%);
  border-radius:50%;pointer-events:none;
}

/* ─── RESPONSIVE ─── */
@media(max-width:900px){
  section{padding:4rem 1.5rem}
  .hero{padding:1rem 1.5rem 2.5rem}
  .hero-grid{grid-template-columns:1fr;gap:2.5rem}
  .hero-text h1{white-space:normal}
  .hero-text .tagline{margin-bottom:2rem}
  .hero-links{flex-wrap:wrap}
  .hero-portrait{order:-1}
  .portrait-frame{width:220px;height:220px}
  .project-card,.project-card:nth-child(even){grid-template-columns:1fr;direction:ltr}
  .project-card:nth-child(even) > *{direction:ltr}

  .contact-section{padding:5rem 1.5rem}
}
@media(max-width:600px){
  .skills-grid{grid-template-columns:1fr}
}
