@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");

:root {
  --bg-color: #37353e;
  --text-color: #d3dad9;
  --accent-color: #8ed122;
  --secondary-color: #8ed122af;
  --max-width: 1100px;
  --font: "montserrat";
}

html {
  scroll-behavior: smooth;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  padding: 0 1.5px;
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  color: var(--text-color);
  font-family: Unbounded;
}

a {
  color: var(--accent-color);
  transition: 0.3s;
  text-decoration: none;
  font-family: Unbounded;
}

a:hover {
  color: var(--text-color);
}

section {
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

ul {
  list-style: none;
  font-family: "Montserrat";
}

p {
  font-family: "Montserrat";
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background-color: #3c3d37;
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

/* About */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 5rem 2rem;
}

.about-content {
  flex: 1 1 45%;
}

.about-content h2 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.about-content span {
  font-weight: 600;
  color: var(--accent-color);
}

.about-img {
  display: flex;
  flex: 1 1 40%;
  justify-content: center;
}

.about-img img {
  height: 280px;
  width: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(142, 209, 34, 0.3);
}

.btn {
  background-color: var(--accent-color);
  color: #000;
  padding: 0.8rem 1.5rem;
  display: inline-block;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3 ease-out;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

.logo {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--accent-color);
}
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: capitalize;
}

.nav-links a:hover {
  color: var(--accent-color);
}
body {
  padding-top: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }
  .about-img img {
    height: 220px;
    width: 220px;
  }

  @media (max-width: 768px) {
    .contact-container {
      flex-direction: column;
      text-align: center;
    }

    .contact-info,
    .contact-form {
      flex: 1 1 100%;
      width: 100%;
    }

    .contact-form button {
      align-self: center;
    }
  }
}
.skills {
  padding: 5rem 2rem;
  background-color: #2f2d36;
}

.skill-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  font-family: Unbounded;
  color: var(--accent-color);
}

.skill-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.progress-bar {
  background-color: #3b3b46;
  border-radius: 8px;
  overflow: hidden;
  height: 12px;
  position: relative;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--secondary-color)
  );
  border-radius: 8px;
  transition: width 1.5s ease-in-out;
}

@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: var(--fill-width);
  }
}

.skill:hover .progress-bar span {
  filter: brightness(1.2);
  box-shadow: 0 0 10px var(--accent-color);
}

.project {
  padding: 5rem 2rem;
  background-color: #33313a;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-card {
  background-color: #3f3d46;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3 ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(142, 209, 34, 0.3);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  color: var(--accent-color);
  margin-bottom: 05rem;
}

.project-info p {
  font-size: 0.98rem;
  color: var(--text-color);
  opacity: 0.9;
}

.contact {
  padding: 5rem 2rem;
  background-color: #2f2d36;
}

.contact .section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-color);
  font-size: 2rem;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 auto;
  align-items: flex-start;
  max-width: 1000px;
}

.contact-info {
  flex: 1 1 45%;
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
}

.contact-info span {
  font-weight: 600;
  color: var(--accent-color);
}

.contact-info a:hover {
  color: var(--text-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-direction: 1 1 45%;
}

.contact-form input,
.contact-form textarea {
  border: none;
  outline: none;
  color: var(--text-color);
  padding: 0.8rem;
  border-radius: 6px;
  background-color: #3b3c43;
  font-family: "montserrat";
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form button {
  border: none;
  cursor: pointer;
}

.footer {
  text-align: center;
  background-color: #3c3d37;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer span {
  color: var(--accent-color);
  font-weight: 600;
}
