:root{
  --bg:#0b0b0b;
  --card:#161616;
  --border:#242424;
  --text:#f1f1f1;
  --muted:#9a9a9a;
  --accent:#e5e5e5;
}

*{margin:0;padding:0;box-sizing:border-box}

body{
  font-family:Inter,system-ui,Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
}

header{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 2rem;
  background:rgba(11,11,11,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}

button{
  background:none;
  border:1px solid var(--border);
  color:var(--text);
  padding:.5rem 1.2rem;
  border-radius:10px;
  cursor:pointer;
  transition:.3s;
}
button:hover{border-color:#fff}

section{
  max-width:1200px;
  margin:auto;
  padding:5rem 1.5rem;
  opacity:0;
  transform:translateY(40px);
  transition:opacity .8s ease, transform .8s ease;
  text-align: left;
}

h2{font-size:2.2rem;margin-bottom:1.5rem}

.hero{
  min-height:85vh;
  display:grid;
  grid-template-columns:1.4fr .6fr;
  align-items:center;
  gap:4rem;
}

.hero h1{font-size:4rem}
.hero h2{color:var(--muted);font-weight:400}

.typing{
  color:var(--muted);
  margin-top:.8rem;
  font-size:1.1rem;
  min-height:1.4em;
}

.profile{
  width:260px;
  height:260px;
  border-radius:50%;
  border:4px solid var(--border);
  object-fit:cover;
  justify-self:center;
  transition:.4s;
}
.profile:hover{transform:scale(1.05)}

.skills{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:1.5rem;
}

.skill{
  background:var(--card);
  border:1px solid var(--border);
  padding:1.5rem;
  border-radius:18px;
  display:flex;
  gap:.8rem;
  align-items:center;
  transition:.3s;
}
.skill:hover{
  transform:translateY(-6px);
  border-color:#fff;
}
.skill img{width:32px}

.certificates{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.5rem;
}
.cert{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:2rem;
  transition:.3s;
}
.cert:hover{transform:translateY(-6px)}

.contact{text-align:left}

.contact-box{
  margin-top:3rem;
  max-width:520px;
  padding:2.5rem 3rem;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  display:flex;
  flex-direction:column;
  gap:1.4rem;
}

.contact-item span{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
}

.contact-item a{
  color:var(--accent);
  text-decoration:none;
}
.contact-item a:hover{text-decoration:underline}

footer{
  text-align:center;
  padding:3rem;
  color:var(--muted);
  border-top:1px solid var(--border);
}

@media(max-width:900px){
  .hero{grid-template-columns:1fr;text-align:center}
  .hero h1{font-size:2.5rem}
  .profile{width:160px;height:160px}
  .contact{text-align:center}
  .contact-box{margin:auto}
}

.about-text{
  text-align: justify;
  text-justify: inter-word;
  color: var(--text);
  max-width: 900px;
}

.about-text p{
  margin-bottom: 1.2rem;
}

#projects-section {
  padding:5rem 1.5rem;
  text-align: left;
}

.filters{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:3rem;
  justify-content:flex-start;
}

.filters button {
  background:#1e1e1e;
  border:1px solid #333;
  color:#ccc;
  padding:8px 16px;
  border-radius:20px;
  cursor:pointer;
  transition:all .3s ease;
}

.filters button:hover,
.filters button.active {
  background:#fff;
  color:#000;
}

.projects {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

@media(max-width:1024px){
  .projects{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:640px){
  .projects{grid-template-columns:1fr;}
}

.project-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  padding:24px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  opacity:0;
  transform:translateY(20px);
  transition:.4s ease;
}

.project-card.show{
  opacity:1;
  transform:translateY(0);
}

.project-card:hover{
  transform:translateY(-6px);
  border-color:var(--accent);
  box-shadow:0 20px 40px rgba(0,0,0,.4);
}

.project-card h3{
  margin-bottom:10px;
  color:#fff;
  font-size:1.15rem;
}

.project-card p{
  text-align:justify;
  line-height:1.6;
  color:var(--muted);
  font-size:.95rem;
}

.project-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:18px;
  font-size:.8rem;
  color:#888;
}

.project-card a{
  color:var(--accent);
  text-decoration:none;
  font-weight:500;
}

.project-card a:hover{
  text-decoration:underline;
}

.certificates-section{
  padding:5rem 1.5rem;
}

.certificates-grid{
  margin-top:3rem;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2.5rem;
}

.certificate-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  transition:.4s ease;
  transform:translateY(20px);
  opacity:0;
}

.certificate-card.show{
  transform:translateY(0);
  opacity:1;
}

.certificate-card:hover{
  transform:translateY(-12px);
  border-color:var(--accent);
}

.certificate-card img{
  width:100%;
  height:200px;
  object-fit:cover;
  filter:grayscale(20%);
  transition:.4s ease;
}

.certificate-card:hover img{
  filter:grayscale(0%);
  transform:scale(1.05);
}

.certificate-content{
  padding:1.6rem;
  display:flex;
  flex-direction:column;
  gap:.7rem;
}

.certificate-content h3{
  font-size:1.15rem;
}

.certificate-content p{
  font-size:.95rem;
  color:var(--muted);
  line-height:1.6;
}

.skills-icons{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(80px,1fr));
  gap:2rem;
  margin-top:3rem;
  align-items:center;
}

.skills-icons a{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:1.2rem;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  transition:all .35s ease;
}

.skills-icons img{
  width:48px;
  height:auto;
}

.skills-icons a:hover{
  transform:translateY(-10px) scale(1.05);
  border-color:var(--accent);
}

.skills-icons a:hover img{
  filter:grayscale(0%);
}