/* style.css — Non-critical styles loaded after first paint */

/* ── Cursor ──────────────────────────────────────────────────────────────────*/
.cursor{position:fixed;top:0;left:0;z-index:9999;width:14px;height:14px;background:var(--red);border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);transition:width .2s,height .2s;will-change:transform}
.cursor-ring{position:fixed;top:0;left:0;z-index:9998;width:38px;height:38px;border:1.5px solid rgba(202,53,55,.5);border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);transition:transform .35s ease,width .3s,height .3s;will-change:transform}
@media(hover:none){.cursor,.cursor-ring{display:none}}

/* ── Hero visual (right column) ──────────────────────────────────────────────*/
.hero-visual{position:relative;display:flex;align-items:center;justify-content:center;height:calc(100vh - 68px)}
.hero-photo-wrap{position:relative;width:400px;height:500px;animation:fadeUp .9s .2s ease both}
.hero-photo-bg{position:absolute;inset:0;background:linear-gradient(135deg,var(--red-dim),var(--bg-2));border-radius:var(--radius-lg);transform:rotate(3deg);will-change:transform}
.hero-photo-card{position:absolute;inset:0;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border);background:var(--bg-3)}
.hero-photo-img{width:100%;height:100%;object-fit:cover;object-position:top center;display:none}
.hero-photo-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;color:var(--text-dim)}
.hero-photo-placeholder svg{opacity:.25}
.hero-photo-placeholder p{font-size:.82rem;opacity:.45}
.hero-chip{position:absolute;background:var(--bg-2);border:1px solid var(--border);border-radius:50px;padding:.5rem 1rem;font-size:.78rem;font-weight:600;white-space:nowrap;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.chip-dot{display:inline-block;width:6px;height:6px;background:var(--red);border-radius:50%;margin-right:.4rem}
.chip-1{top:2.5rem;right:-3rem;animation:float 5s ease-in-out infinite}
.chip-2{bottom:5rem;left:-3.5rem;animation:float 4s 1s ease-in-out infinite}
.chip-3{top:50%;right:-2rem;animation:float 6s .5s ease-in-out infinite}

/* ── About ───────────────────────────────────────────────────────────────────*/
#about{padding:7rem 0}
.about-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:5rem;align-items:center}
.about-body{font-size:1rem;line-height:1.8;color:var(--text-muted)}
.about-body strong{color:var(--text);font-weight:600}
.about-body .hl{color:var(--red);font-weight:600;border-bottom:1.5px solid var(--red-dim)}
.about-body p+p{margin-top:1.2rem}
.about-cta{margin-top:2rem;display:flex;gap:1rem;flex-wrap:wrap}
.about-card{background:var(--bg-3);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.8rem;position:relative;overflow:hidden}
.about-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--red),var(--red-dim))}
.about-card-title{font-family:'Poppins',sans-serif;font-size:.95rem;font-weight:700;color:var(--white);margin-bottom:1.1rem}
.about-items{display:flex;flex-direction:column;gap:.75rem}
.about-item{display:flex;align-items:center;gap:.75rem;font-size:.875rem;color:var(--text-muted)}
.about-item-icon{width:32px;height:32px;flex-shrink:0;background:var(--bg-2);border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:.85rem}

/* ── Skills ──────────────────────────────────────────────────────────────────*/
#skills{padding:6rem 0;background:var(--bg-2)}
.skills-header{text-align:center;margin-bottom:3rem}
.skills-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem}
.skill-card{background:var(--bg-3);border:1px solid var(--border);border-radius:var(--radius);padding:1.6rem;transition:border-color .25s,transform .25s,box-shadow .25s;position:relative;overflow:hidden;contain:layout style}
.skill-card::after{content:'';position:absolute;inset:0;background:var(--red-glow);opacity:0;transition:opacity .3s;pointer-events:none}
.skill-card:hover{border-color:var(--red);transform:translateY(-4px);box-shadow:0 12px 36px rgba(202,53,55,.12)}
.skill-card:hover::after{opacity:1}
.skill-card.featured{background:linear-gradient(135deg,var(--red),var(--red-dim));border-color:var(--red)}
.skill-card.featured .skill-name{color:var(--white)}
.skill-card.featured .skill-desc{color:rgba(255,255,255,.7)}
.skill-icon{width:40px;height:40px;background:var(--bg-2);border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1rem;margin-bottom:1.1rem}
.skill-card.featured .skill-icon{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.2)}
.skill-name{font-family:'Poppins',sans-serif;font-size:.95rem;font-weight:700;color:var(--white);margin-bottom:.45rem}
.skill-desc{font-size:.82rem;line-height:1.6;color:var(--text-muted)}

/* ── Projects ────────────────────────────────────────────────────────────────*/
#projects{padding:7rem 0}
.projects-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:2.8rem}
.projects-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.project-card{background:var(--bg-2);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:border-color .25s,transform .25s;contain:layout style}
.project-card:hover{border-color:var(--red);transform:translateY(-4px)}
.project-thumb{height:210px;background:var(--bg-3);display:flex;align-items:center;justify-content:center;overflow:hidden}
.project-thumb-inner{width:80%;height:80%;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:3rem;transition:transform .3s}
.project-card:hover .project-thumb-inner{transform:scale(1.06)}
.pt-1{background:linear-gradient(135deg,#1a1a2e,#16213e)}
.pt-2{background:linear-gradient(135deg,#0d2137,#1a3a2a)}
.pt-3{background:linear-gradient(135deg,#2a1a0e,#1a0e0e)}
.pt-4{background:linear-gradient(135deg,#1a1505,#2a1a05)}
.project-info{padding:1.4rem 1.6rem 1.6rem}
.project-tag{display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--red);margin-bottom:.4rem}
.project-name{font-family:'Poppins',sans-serif;font-size:1.1rem;font-weight:700;color:var(--white);margin-bottom:.45rem}
.project-desc{font-size:.85rem;line-height:1.6;color:var(--text-muted)}
.project-link{margin-top:1.1rem;display:inline-flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600;color:var(--red);transition:gap .2s}
.project-link:hover{gap:.7rem}
.projects-view-all{text-align:center;margin-top:2.8rem}

/* ── Accomplishments ─────────────────────────────────────────────────────────*/
#accomplishments{padding:7rem 0;background:var(--bg-2)}
.acc-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.acc-items{display:flex;flex-direction:column;gap:1.3rem}
.acc-item{display:flex;gap:1.3rem;align-items:flex-start;background:var(--bg-3);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;transition:border-color .25s;contain:layout style}
.acc-item:hover{border-color:var(--red)}
.acc-num{font-family:'Poppins',sans-serif;font-size:2rem;font-weight:800;color:var(--red);line-height:1;flex-shrink:0;width:36px;opacity:.3}
.acc-text-title{font-family:'Poppins',sans-serif;font-size:.92rem;font-weight:700;color:var(--white);margin-bottom:.35rem}
.acc-text-body{font-size:.85rem;line-height:1.6;color:var(--text-muted)}

/* ── Testimonials ────────────────────────────────────────────────────────────*/
#testimonials{padding:7rem 0}
.testimonials-header{text-align:center;margin-bottom:3rem}
.testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem}
.testimonial-card{background:var(--bg-2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.8rem;transition:border-color .25s;contain:layout style}
.testimonial-card:hover{border-color:var(--red)}
.testimonial-quote{font-size:2.2rem;color:var(--red);font-family:'Poppins',sans-serif;font-weight:900;line-height:1;margin-bottom:.6rem;opacity:.45}
.testimonial-text{font-size:.875rem;line-height:1.7;color:var(--text-muted);font-style:italic;margin-bottom:1.4rem}
.testimonial-stars{color:var(--red);font-size:.8rem;margin-bottom:.7rem}
.testimonial-author{display:flex;align-items:center;gap:.8rem}
.testimonial-avatar{width:38px;height:38px;border-radius:50%;background:var(--bg-3);border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:1rem}
.testimonial-name{font-family:'Poppins',sans-serif;font-size:.85rem;font-weight:700;color:var(--white)}
.testimonial-role{font-size:.76rem;color:var(--text-muted)}

/* ── CTA ─────────────────────────────────────────────────────────────────────*/
#cta{padding:7rem 0;text-align:center;background:var(--bg-2);border-top:1px solid var(--border);position:relative;overflow:hidden}
#cta::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:600px;height:400px;background:radial-gradient(ellipse,var(--red-glow),transparent 70%);pointer-events:none}
.cta-emoji{font-size:2.2rem;margin-bottom:.8rem;display:block;animation:float 4s ease-in-out infinite}
.cta-title{font-family:'Poppins',sans-serif;font-size:clamp(2.2rem,5vw,4.2rem);font-weight:900;letter-spacing:-2px;color:var(--white);line-height:1.05;margin-bottom:1rem}
.cta-title .accent{color:var(--red)}
.cta-sub{font-size:1rem;color:var(--text-muted);margin-bottom:2.2rem}
.cta-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* ── Footer ──────────────────────────────────────────────────────────────────*/
footer{padding:1.8rem 0;border-top:1px solid var(--border)}
.footer-inner{max-width:var(--max);margin:0 auto;padding:0 var(--pad);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.footer-logo{font-family:'Poppins',sans-serif;font-weight:800;font-size:1.1rem}
.footer-logo span{color:var(--red)}
.footer-copy{font-size:.78rem;color:var(--text-dim)}
.footer-links{display:flex;gap:1.3rem}
.footer-links a{font-size:.8rem;color:var(--text-dim);transition:color .2s}
.footer-links a:hover{color:var(--red)}

/* ── Reveal animation ────────────────────────────────────────────────────────*/
.reveal{opacity:0;transform:translateY(28px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:none}

/* ── Skeleton loaders ────────────────────────────────────────────────────────*/
.skeleton{background:linear-gradient(90deg,var(--bg-3) 25%,var(--bg-2) 50%,var(--bg-3) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:var(--radius)}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.skeleton-card{height:320px;border-radius:var(--radius-lg)}

/* ── Mobile ──────────────────────────────────────────────────────────────────*/
@media(max-width:768px){
  nav{justify-content:center}
  .nav-links{display:none}
  .hero-inner{grid-template-columns:1fr;min-height:auto;padding-top:3rem;padding-bottom:3.5rem;text-align:center}
  .hero-visual{display:none}
  .hero-sub{text-align:center;max-width:100%}
  .hero-actions{flex-direction:column;width:100%;gap:.85rem}
  .hero-actions .btn-primary,.hero-actions .btn-ghost{width:100%;padding:1rem}
  .hero-stats{justify-content:center;gap:2rem;flex-wrap:wrap}
  .about-grid{grid-template-columns:1fr;gap:2.5rem}
  .about-cta{flex-direction:column}
  .about-cta a{width:100%;text-align:center}
  .skills-grid{grid-template-columns:1fr 1fr}
  .projects-grid{grid-template-columns:1fr}
  .projects-header{flex-direction:column;align-items:flex-start;gap:1rem}
  .acc-grid{grid-template-columns:1fr;gap:2.5rem}
  .testimonials-grid{grid-template-columns:1fr}
  .cta-actions{flex-direction:column;align-items:stretch;padding:0 1rem}
  .cta-actions a{text-align:center}
  .footer-inner{flex-direction:column;text-align:center}
  .footer-links{justify-content:center}
  #about,#projects,#accomplishments,#testimonials,#cta{padding-top:4.5rem;padding-bottom:4.5rem}
  #skills{padding-top:4.5rem;padding-bottom:4.5rem}
}
@media(max-width:480px){
  .skills-grid{grid-template-columns:1fr}
  .hero-h1{font-size:2.6rem!important;letter-spacing:-1.5px!important}
}

/* ── Experience ──────────────────────────────────────────────────────────── */
#experience{padding:7rem 0;background:var(--bg)}
.exp-timeline{position:relative;padding-left:2rem}
.exp-timeline::before{content:'';position:absolute;left:0;top:0;bottom:0;width:2px;background:linear-gradient(180deg,var(--red),rgba(202,53,55,.1))}
.exp-item{position:relative;padding:0 0 3rem 2rem}
.exp-item::before{content:'';position:absolute;left:-2.45rem;top:.4rem;width:14px;height:14px;border-radius:50%;background:var(--red);border:3px solid var(--bg);box-shadow:0 0 0 2px var(--red)}
.exp-item:last-child{padding-bottom:0}
.exp-header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}
.exp-role{font-family:'Poppins',sans-serif;font-size:1.05rem;font-weight:700;color:var(--white)}
.exp-period{font-size:.78rem;font-weight:600;color:var(--red);background:rgba(202,53,55,.1);padding:.25rem .7rem;border-radius:50px;white-space:nowrap}
.exp-company{font-size:.875rem;font-weight:500;color:var(--text-muted);margin-bottom:.9rem}
.exp-company span{color:var(--text-dim)}
.exp-bullets{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.exp-bullets li{font-size:.85rem;line-height:1.6;color:var(--text-muted);padding-left:1rem;position:relative}
.exp-bullets li::before{content:'▸';position:absolute;left:0;color:var(--red);font-size:.7rem;top:.15rem}

/* ── Education ───────────────────────────────────────────────────────────── */
#education{padding:7rem 0;background:var(--bg-2)}
.edu-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
.edu-card{background:var(--bg-3);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.8rem;position:relative;overflow:hidden;transition:border-color .25s}
.edu-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--red),transparent)}
.edu-card:hover{border-color:var(--red)}
.edu-degree{font-family:'Poppins',sans-serif;font-size:1rem;font-weight:700;color:var(--white);margin-bottom:.4rem}
.edu-institution{font-size:.875rem;font-weight:600;color:var(--red);margin-bottom:.3rem}
.edu-period{font-size:.78rem;color:var(--text-dim);margin-bottom:.8rem}
.edu-desc{font-size:.82rem;line-height:1.6;color:var(--text-muted)}

@media(max-width:768px){
  .exp-timeline{padding-left:1.4rem}
  .exp-item{padding-left:1.5rem}
  .exp-header{flex-direction:column;gap:.4rem}
  .edu-grid{grid-template-columns:1fr}
}
