* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #0b0f0c;
  color: white;
  transition: 0.4s;
}

body.light {
  background: #f3f6f2;
  color: black;
}

.particles::before,
.particles::after {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
}

.particles::before {
  background: rgba(0,255,100,0.15);
  top: -100px;
  left: -100px;
}

.particles::after {
  background: rgba(0,255,150,0.12);
  bottom: -100px;
  right: -100px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 8%;

  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.3);

  border-bottom: 1px solid rgba(0,255,120,0.15);
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #4ade80;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #4ade80;
}

#themeToggle {
  background: #4ade80;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 60px 8%;
}

.hero-content {
  max-width: 900px;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #4ade80;
  margin-bottom: 25px;

  box-shadow: 0 0 40px rgba(74,222,128,0.5);
}

.domain {
  color: #4ade80;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 72px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #4ade80;
}

.typing {
  font-size: 24px;
  color: #9ca3af;
  margin-bottom: 25px;
  min-height: 40px;
}

.desc {
  font-size: 20px;
  line-height: 1.8;
  color: #9ca3af;
  max-width: 700px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 14px;
  font-weight: bold;
  transition: 0.3s;
}

.btn.primary {
  background: #4ade80;
  color: black;
}

.btn.primary:hover {
  transform: translateY(-3px);
}

.btn.secondary {
  border: 1px solid #4ade80;
  color: inherit;
}

.btn.secondary:hover {
  background: rgba(74,222,128,0.1);
}

.socials {
  display: flex;
  gap: 15px;
}

.socials a,
.footer-socials a {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  border: 1px solid rgba(74,222,128,0.3);

  color: inherit;
  text-decoration: none;

  transition: 0.3s;
}

.socials a:hover,
.footer-socials a:hover {
  border-color: #4ade80;
  color: #4ade80;
  transform: scale(1.1);
}

.about,
.projects {
  padding: 120px 8%;
}

.section-title {
  color: #4ade80;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.about h2,
.projects h2 {
  font-size: 48px;
  margin-bottom: 25px;
}

.about p {
  max-width: 700px;
  color: #9ca3af;
  line-height: 1.8;
  margin-bottom: 50px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 20px;
}

.tech-card {
  padding: 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(74,222,128,0.1);
  text-align: center;
  font-weight: bold;

  transition: 0.3s;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: #4ade80;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 30px;
}

.project-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(74,222,128,0.1);

  transition: 0.4s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 50px rgba(74,222,128,0.15);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;

  transition: 0.5s;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-content {
  padding: 35px;
}

.project-number {
  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;

  background: rgba(74,222,128,0.1);

  color: #4ade80;
  font-weight: bold;

  margin-bottom: 25px;
}

.project-content h3 {
  font-size: 30px;
  margin-bottom: 20px;
}

.project-content p {
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 30px;
}

footer {
  padding: 40px 8%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;

  border-top: 1px solid rgba(74,222,128,0.1);
}

footer h3 {
  color: #4ade80;
  margin-bottom: 10px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

@media(max-width: 768px) {

  .navbar {
    padding: 20px;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 48px;
  }

  .about h2,
  .projects h2 {
    font-size: 36px;
  }

  .desc {
    font-size: 18px;
  }
}