*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --base: #555;
  --base-100: #f1f1f1;
  --base-200: #ededed;
  --base-300: #6D6D6D;
  --base-400: #555;
  --base-600: #222;
  --base-700: #111;
  --base-800: #000;
  --blue: #0a61ae;
  --background: #fff;
  --border: rgba(0, 0, 0, 0.1);
}

.darkmode {
  --base: #aaa;
  --base-100: #0e0e0e;
  --base-200: #121212;
  --base-300: #929292;
  --base-400: #aaa;
  --base-600: #ddd;
  --base-800: #fff;
  --blue: #0a61ae;
  --background: #000;
  --border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 20px;
  background-color: var(--background);
  color: var(--base-800);
  line-height: 1.6;
}

#dark-mode-toggle {
  padding: 0.5rem 1rem;
  font-size: 1.5em;
  border-radius: 10px;
  border: 2px solid var(--border);
  cursor: pointer;
  background-color: var(--base-200);
  color: var(--base-800);
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

#dark-mode-toggle:hover {
  background-color: var(--base-300);
}

a {
  text-decoration: none;
  color: var(--blue);
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

nav {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: auto;
  border-bottom: 1px solid var(--border);

  .logo-holder {
    display: flex;
    padding: 10px 0;
    align-items: center;
    font-weight: 600;
    color: var(--base-800);
    text-decoration: none;

    .logo {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      background-color: var(--base-800);
      color: var(--background);
      height: 64px;
      width: 64px;
      margin-right: 20px;
      border-radius: 50%;

      img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 1px solid #eee;
      }
    }
  }

  ul {
    display: flex;
    list-style-type: none;
    gap: 5px;

    li {
      display: inline-block;

      a {
        display: inline-block;
        padding: 10px 20px;
        color: var(--base);

        &.active {
          background-color: var(--base-100);
          border-radius: 10px;
          color: var(--base-800);
        }

        &:hover {
          background-color: var(--base-100);
          border-radius: 10px;
          text-decoration: none;
        }
      }
    }
  }

  .mobile-toggle {
    display: none;
    color: var(--base-800);
    padding: 10px;

    @media (max-width:768px) {
      display: inline-block;
      position: absolute;
      top: 20px;
      right: 20px;
    }
  }

  .button {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--base-800);
    color: var(--background);
    border-radius: 10px;
    transition: ease 0.3s all;

    &:hover {
      text-decoration: none;
      background-color: var(--base);
      color: var(--base-100);
    }
  }

  @media (max-width: 1024px) {
    flex-direction: column;
    align-items: center;

    .cta {
      margin: 10px 0;
    }
  }

  @media (max-width: 768px) {
    ul {
      margin-top: 10px;
      width: 100%;
      display: none;
      flex-direction: column;
      text-align: center;
      width: 100%;

      a {
        width: 100%;
      }

      &.active {
        display: flex;
      }
    }

    .cta {
      display: none;

      &.active {
        display: inline-block;
      }
    }
  }
}


.button {
  display: inline-block;
  padding: 10px 30px;
  background-color: var(--base-800);
  color: var(--background);
  border-radius: 10px;
  transition: ease 0.3s all;
  text-decoration: none;
}

.button:hover {
  background-color: var(--base);
  color: var(--base-100);
  text-decoration: none;
}

.container {
  max-width: 1440px;
  margin: auto;
  padding: 0 30px;
}

.hero {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--base-100) 0%, var(--base-200) 100%);
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--base-800);
}

.hero p {
  font-size: 1.2rem;
  color: var(--base-300);
  max-width: 600px;
  margin: 0 auto;
}

.projects-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: var(--base-800);
}

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

.project-card {
  background-color: var(--base-100);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  background-color: var(--base-200);
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(45deg, rgba(10, 97, 174, 0.8), rgba(10, 97, 174, 0.3)); */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
  opacity: 1;
}

.project-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--base-800);
}

.project-description {
  color: var(--base-300);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  background-color: var(--base-200);
  color: var(--base-600);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--base-800);
  text-decoration: none;
}

.stats {
  background-color: var(--base-100);
  padding: 60px 0;
  text-align: center;
}

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

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--base-300);
  font-weight: 500;
}

.footer {
  background-color: var(--base-700);
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-content {
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: white;
  color: var(--base-700);
  border-radius: 50%;
  transition: all 0.3s ease;
  
  i {
    font-size: 1.5rem;
    color: black;
    opacity: 0.9;
  }
}

.social-link:hover {
  text-decoration: none;
  background-color: var(--base-700);
  transition: 0.5s;

  i {
    color: white;
    transition: 0.5s;
  }
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;

  .coder {
    color: var(--base-300);
    text-decoration: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  nav {
    flex-direction: column;
    gap: 20px;
  }

  .container {
    padding: 0 20px;
  }
}