* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins;
  text-decoration: none;
  list-style: none;
}

body {
  background: #0f172a;
  color: white;
  margin: 0;
}

section {
  padding: 80px 10%;
  text-align: center;
  scroll-margin-top: 90px;
}

#aboutme,
#contact-me {
  scroll-margin-top: 160px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 35px 12px;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  z-index: 100;
  background: #020617;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.logo {
  font-size: 20px;
  color: white;
  font-weight: 600;
  transition: 0.3s ease;
}
.logo:hover {
  color: #22d3ee;
  text-shadow:
    0 0 25px #22d3ee,
    0 0 50px #22d3ee;
  transform: scale(1.1);
}
span {
  color: #22d3ee;
}
.navbar a {
  font-size: 18px;
  color: white;
  font-weight: 500;
  margin: 0 20px;
  border-bottom: 3px solid transparent;
  transition: o.3s ease;
}
.navbar a:hover,
.navbar a:active {
  color: #22d3ee;
  border-bottom: 2px solid #22d3ee;
}
.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 16px;
  border-radius: 12px;
  background-color: white;
  color: black;
  border: 2px solid transparent;
  font-weight: 600;
  line-height: normal;
  transition: 0.3s ease;
}
.contact:hover {
  background-color: #22d3ee;
  box-shadow: 0 0 25px #22d3ee;
  color: white;
}

.home {
  width: 100%;
  min-height: 100vh;
  display: block;
  align-items: center;
  gap: 7em;
  padding: 30px 12% 0;
  margin-top: 100px;
}
.home-content {
  max-width: 800px;
  text-align: left;
}
.home-content h2 {
  font-size: 28px;
}
.home-content h1 {
  font-size: 50px;
  line-height: 1.2;
}
.home-content p {
  font-size: 20px;
  margin: 25px 0 30px;
}

.img-box img {
  border-radius: 50%;
  width: 100%;
  max-width: 400px;
  height: 300px;
  margin-top: 60px;
  box-shadow:
    0 0 25px #22d3ee,
    0 0 50px #22d3ee;
}

.btn-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}
.btn-1 {
  padding: 12px 24px;
  background-color: white;
  color: black;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
  width: 150px;
}
.btn-1:hover {
  background-color: #7c3aed;
  color: white;
  border: 2px solid black;
}
.btn-2 {
  padding: 12px 24px;
  background-color: #22d3ee;
  color: white;
  border: 2px solid black;
  border-radius: 8px;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
  width: 150px;
}
.btn-2:hover {
  background-color: white;
  color: black !important;
  border: 2px solid black;
}

.btn-3 {
  padding: 12px 24px;
  border: 2px solid black;
  background-color: white;
  color: black;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
  width: 150px;
}

.btn-3:hover {
  background-color: #7c3aed;
  color: white;
  border: 2px solid black;
}

::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-thumb {
  background-color: #22d3ee;
}
::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.6);
  width: 50px;
}

.sub-section {
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 400;
}

.sub-section {
  padding: 80px 10%;
  background: #0f172a;
  color: #e5e7eb;
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

.info-section {
  margin-top: 60px;
  margin-bottom: 80px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.info-card {
  background: #1e293b;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.info-card h3 {
  margin-bottom: 10px;
  color: white;
}

.info-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-card ul {
  padding-left: 20px;
  font-size: 14px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill {
  background: #1e293b;
  padding: 20px;
  border-radius: 8px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 200px;
}

.projects_box img {
  border-radius: 10px;
  width: 300px;
  height: 300px;
  display: inline-block;
}

.project {
  background: #1e293b;
  padding: 20px;
  border-radius: 10px;
}

.project a {
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
  color: #22d3ee;
}

.about-section {
  max-width: 1200px;
  margin: 150px auto 0;
  padding: 8% 6%;
  background: #1e293b;
  color: #e5e7eb;
  font-family: 'Poppins', sans-serif;
  border-radius: 10px;
  box-sizing: border-box;
}
.section-title {
  font-size: 42px;
  margin-bottom: 20px;
  color: #fff;
}

.about-intro {
  font-size: 18px;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto 60px auto;
  text-align: center;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-card {
  background: #111827;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  border-color: #6366f1;
}

.skills-tags {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skills-tags span {
  background: #111827;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skills-tags span:hover {
  background: #6366f1;
  color: white;
  transform: scale(1.05);
}

.about-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 24px;
  background: #22d3ee;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.about-btn:hover {
  background: #6366f1;
  color: white;
  transform: scale(1.05);
}

.contact-form h2 {
  text-align: center;
  margin: 3em;
  margin-bottom: 1em;
  font-size: 36px;
}
.contact-form form {
  max-width: 50em;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3em;
}
.contact-form form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-form form .input-box input,
.contact-form form textarea {
  width: 100%;
  padding: 1.5em;
  font-size: 18px;
  color: black;
  background: rgb(244, 241, 241);
  border-radius: 0.8rem;
  margin: 1rem 0;
  resize: none;
}

.btn-send {
  width: 40%;
  padding: 1.5em;
  font-size: 18px;
  color: black;
  background: rgb(244, 241, 241);
  border-radius: 0.8rem;
  margin: 1rem 0;
  resize: none;
  cursor: pointer;
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: black;
}
.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: white;
}

.footer .social a {
  font-size: 24px;
  color: white;
  border: 2px solid #22d3ee;
  width: 40px;
  line-height: 38px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 8px;
  box-shadow:
    inset 0 0 10px #22d3ee,
    0 0 10px #22d3ee;
  transition: 0.3s ease;
}
.footer .social a:hover {
  transform: scale(1.2) translateY(-10px);
  color: #22d3ee;
  border: 2px solid #22d3ee;
}
.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease;
  margin-right: 8px;
}
.footer ul li a:hover {
  border-bottom: 3px solid #22d3ee;
}
.footer ul li {
  display: inline-block;
  padding-left: 0 15px;
}
.footer .copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 12px;
  color: white;
}

@media (max-width: 768px) {
  .header {
    padding: 12px 5%;
    min-height: 60px;
    align-items: center;
  }

  .contact {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 36px;
    line-height: 1;
    border-radius: 8px;
  }

  .contact-form h2 {
    text-align: center;
    margin: 0.5em;
    margin-bottom: 0.1em;
    font-size: 20px;
  }

  .logo {
    font-size: 1.2rem;
  }

  section {
    text-align: center;
  }

  .navbar a {
    font-size: 16px;
    margin: 0 10px;
  }
  #typing {
    font-size: small;
  }
}

@media (max-width: 900px) {
  .home {
    text-align: center;
  }

  .home-content {
    text-align: center;
    margin: auto;
  }

  .home-content h1 {
    font-size: 40px;
  }

  .home-content h3 {
    font-size: 30px;
  }

  .home-content p {
    font-size: 18px;
  }

  .btn-box {
    justify-content: center;
  }
  .about-section {
    max-width: 100%;
    margin: 80px 5% 0;
    padding: 10% 8%;
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-container {
    grid-template-columns: 1fr;
  }

  .projects_box img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .contact-form form {
    width: 90%;
  }

  .btn-send {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .footer ul li {
    display: block;
    margin: 10px 0;
  }

  .footer .social a {
    margin: 6px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .about-section {
    max-width: 90%;
    padding: 8% 7%;
  }
}
