@import './variables.css';

.header-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem 0}
.logo{font-weight:700;color:var(--text);text-decoration:none}
.logo-img{height:56px;width:56px;display:inline-block;vertical-align:middle;border-radius:50%;object-fit:cover}
.nav a{margin:0 0.6rem;color:var(--muted);text-decoration:none}
#theme-toggle{background:transparent;border:1px solid transparent;padding:0.4rem;border-radius:6px;color:var(--muted);cursor:pointer}

/* header social removed: social icons live in Contact section now */

.hero{padding:4rem 0}
.hero-inner{display:flex;gap:2rem;align-items:center}
.hero-text{flex:1}
.hero-media{width:220px}
.headshot{width:220px;height:220px;border-radius:50%;object-fit:cover;border:none;background:transparent;box-shadow:none}
.lead{color:var(--muted)}
.btn{display:inline-block;padding:0.6rem 1rem;border-radius:8px;background:transparent;color:var(--text);border:1px solid rgba(255,255,255,0.06);text-decoration:none;margin-right:0.5rem}
.btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#022}
.btn:hover{text-decoration:underline}

/* Keep global underline for most buttons, but disable it for
  buttons inside the hero and contact sections (resume / contact CTAs) */
.hero .btn:hover,
.contact .btn:hover{ text-decoration:none }

.about{padding:2rem 0}
.about h2{text-align:left}
.about .about-content{max-width:820px;margin-top:0.6rem;line-height:1.6;text-align:justify;color:var(--muted)}
.skills{padding:2rem 0}
.skills-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}
.skill{background:var(--surface);padding:1rem;border-radius:12px;box-shadow:0 8px 18px rgba(2,6,23,0.35);}
.skill h3{margin:0 0 0.6rem 0;font-size:1.05rem}
.skill ul{list-style:none;padding:0;margin:0}
.skill li{display:flex;align-items:center;gap:0.8rem;padding:0.45rem 0}
.skill li span{flex:0 0 80px;font-weight:600;color:var(--text)}
.skill-bar{flex:1;display:inline-block;height:10px;border-radius:999px;background:rgba(255,255,255,0.06);position:relative;overflow:hidden}
.skill-bar[data-level]{background:rgba(255,255,255,0.06);}
.skill-bar[data-level]::after{content:'';position:absolute;left:0;top:0;height:100%;width:var(--fill,0%);background:linear-gradient(90deg,var(--accent),var(--accent-2));transition:width 900ms ease}

.projects{padding:2rem 0}
.projects-controls{display:flex;gap:1rem;align-items:center;margin-bottom:1rem}
#projects-search{flex:1;padding:0.6rem;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:var(--surface);color:var(--text)}
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:0.6rem}
.project-card{background:var(--surface);padding:0;border-radius:8px;box-shadow:0 8px 18px rgba(2,6,23,0.35);font-size:0.9rem;overflow:hidden;display:flex;flex-direction:column;transition:transform 220ms ease,box-shadow 220ms ease;border:1px solid rgba(255,255,255,0.02)}
.project-image{width:100%;height:120px;overflow:hidden}
.project-image img{width:100%;height:100%;object-fit:cover;display:block}
.project-card .project-body{padding:0.7rem;flex:1;display:flex;flex-direction:column}
.project-card h3{margin:0 0 0.35rem 0;font-size:1rem;color:var(--text)}
.project-desc{color:var(--muted);margin:0 0 0.6rem 0}
.project-meta{font-size:0.82rem;color:var(--muted);margin-bottom:0.4rem}
.project-tags{margin-top:auto}
.project-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(2,6,23,0.45)}

/* compact project image */
.project-card img{width:100%;height:100px;object-fit:cover;border-radius:8px;margin-bottom:0.4rem}

/* remove underlines for links site-wide; keep hover underline for discoverability */
a{text-decoration:none;color:inherit}
a:hover{text-decoration:underline}

.social{display:flex;gap:0.6rem;align-items:center;margin-top:1rem;flex-wrap:wrap}
.youtube-channel{display:flex;align-items:center;gap:0.6rem;margin-top:1rem}
.youtube-link img{width:44px;height:44px;display:block;border-radius:8px;padding:6px;background:var(--surface);object-fit:contain}
.youtube-label{display:inline-block;color:var(--muted);margin-left:0.4rem;font-size:0.98rem}
.social a img{width:36px;height:36px;display:block;border-radius:8px;background:var(--surface);padding:6px}

.contact{padding:2rem 0}
form label{display:block;margin:0.6rem 0}
input,textarea{width:100%;padding:0.6rem;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:var(--text)}
.form-actions{display:flex;gap:0.6rem;align-items:center}
.site-footer{padding:2.25rem 0;color:var(--muted);border-top:1px solid rgba(255,255,255,0.03);background:linear-gradient(180deg,transparent, rgba(0,0,0,0.02))}
.site-footer .footer-inner{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.footer-brand strong{display:block;font-size:1.02rem}
.footer-brand .muted{margin:0.3rem 0 0;color:var(--muted);font-size:0.95rem}
.footer-actions{display:flex;flex-direction:column;align-items:flex-end;gap:0.4rem}
.footer-actions p{margin:0}
.footer-actions a{text-decoration:underline;color:var(--accent-2)}
.footer-actions a:hover{text-decoration:underline}
.footer-credits{font-size:0.88rem;color:var(--muted)}
.heart{color:var(--accent);display:inline-block;animation:beat 1.2s infinite ease-in-out}
.tech{color:var(--muted);font-weight:600}

@keyframes beat{0%{transform:scale(1)}25%{transform:scale(1.18)}40%{transform:scale(1)}}

@media (max-width:720px){
  .site-footer .footer-inner{flex-direction:column;align-items:center;text-align:center}
  .footer-actions{align-items:center}
}

/* Notes grid and cards */
.notes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0.8rem}
.note-card{background:var(--surface);padding:0.9rem;border-radius:10px;box-shadow:0 8px 18px rgba(2,6,23,0.45);border-left:4px solid rgba(56,189,248,0.08)}
.note-card h3{margin:0 0 0.4rem 0;font-size:1.06rem;color:var(--text)}
.note-card p{margin:0 0.6rem 0 0;color:var(--muted);font-size:0.95rem}
.note-actions{margin-top:0.6rem;display:flex;gap:0.6rem}
.note-actions .btn{padding:0.45rem 0.7rem;font-size:0.88rem}
.btn.secondary{background:transparent;border-color:rgba(255,255,255,0.06);color:var(--accent-2)}
.btn.secondary:hover{text-decoration:underline}

/* responsive */
@media (max-width:800px){
  .hero-inner{flex-direction:column}
  .hero-media{width:160px}
}

@media (max-width:800px){
  .social{justify-content:center}
  .youtube-channel{justify-content:center}
}

/* focus styles */
:focus{outline:3px solid rgba(0,0,0,0.08);outline-offset:2px}

/* reveal animations */
.reveal{opacity:0;transform:translateY(8px);transition:opacity 600ms,var(--transform) 600ms}
.reveal.active{opacity:1;transform:none}
