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

:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 55px;
}

:root {
  --body-color: #e0e0e0;
  --button-color: #fff;
  --max-width: 50rem;
  --navbar-color1: #1b1b1b;
  --navbar-color2: #4caf50;
  --accent-color: #00ff41;
  --space-between-sentences: 1.6;
}

body {
  background: #222222;
  color: var(--body-color);
  font-family: Arial, Helvetica, sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 3rem;
}

.section-separator {
  width: 100%;
  max-width: 600px;
  height: 1px;
  margin: 3rem auto;
  border: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(76, 175, 80, 0.35) 50%,
    transparent 100%
  );
}

.hamburger {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--button-color);
}

.navbar {
  background: var(--navbar-color1);
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  display: inline-block;
  border: 2px solid var(--navbar-color2);
  color: var(--button-color);
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: var(--navbar-color2);
  color: var(--navbar-color1);
}

.projects-btn,
#contact-form button {
  background: var(--navbar-color2);
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.projects-btn:hover,
#contact-form button:hover {
  background: #388e3c;
}

.section-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero {
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-tagline {
  font-family: "Poppins", sans-serif;
  font-size: 1.625rem;
  font-style: normal;
  font-weight: 400;
  color: var(--accent-color);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.projects-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.blog-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: 2px solid var(--navbar-color2);
  border-radius: 8px;
  color: var(--navbar-color2);
  font-size: 1rem;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.blog-btn:hover {
  background: var(--navbar-color2);
  color: #000;
}

#welcome-section,
#skills {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.about-text {
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  line-height: var(--space-between-sentences);
  margin-inline: 0;
  max-width: 100%;
  padding-bottom: 1rem;
  word-spacing: 0.01em;
}

.skills {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0.5rem 0 3rem;
}

.skill-group {
  flex: 1;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pill {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.35);
  border-radius: 999px;
  color: var(--body-color);
  font-size: 0.875rem;
  padding: 0.3rem 0.85rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.pill:hover {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.6);
}

.pill--learning {
  border-style: dashed;
  color: #aaa;
  font-style: italic;
}

h3 {
  margin-bottom: 0.5rem;
}

.project-tile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
  gap: 2rem;
  padding: 1rem;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.project-content:hover {
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(76, 175, 80, 0.1),
    0 0 0 1px rgba(76, 175, 80, 0.1);
  transform: translateY(-2px);
}

.project-content img {
  height: auto;
  max-width: 18.75rem;
  object-fit: cover;
  width: 85%;
}

.project-content ul {
  padding-left: 0.8125rem;
}

.project-content ul li {
  line-height: var(--space-between-sentences);
}

.project-content a {
  display: inline-block;
  color: var(--navbar-color2);
  font-weight: 600;
  text-decoration: none;
}

.project-content a:hover {
  text-decoration: underline;
}

.coming-soon {
  background-color: #2c2c2c;
  border: 1px dashed #555;
  color: #aaa;
  opacity: 0.8;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 3rem auto;
  max-width: 18.75rem;
}

.error {
  background-color: red;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

input,
textarea {
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  padding: 0.5rem;
}

.input-error {
  border: 1px solid red;
}

#contact-form button {
  border: none;
  padding: 0.75rem;
}

.success-container {
  background-color: transparent;
  border: none;
  border-radius: 0;

  padding: 4rem 1rem;
  margin: 2rem auto;
  max-width: var(--max-width);
  text-align: center;
}

.success-container h3 {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.success-message p {
  color: var(--body-color);
  font-size: 1.25rem;
  line-height: var(--space-between-sentences);
  max-width: 35rem;
  margin: 0 auto;
}

footer {
  background-color: #1b1b1b;
  color: var(--body-color);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  border-top: 1px solid #333;
  font-size: 0.875rem;
}

footer > * {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: #fff;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--navbar-color2);
}

@media (max-width: 1024px) {
  #welcome-section,
  #skills {
    padding: 0 2rem;
  }

  .section-separator {
    margin: 2.5rem auto;
  }

  .about-text,
  .skills ul li,
  .project-content ul li {
    line-height: 1.5;
  }

  .skills {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .project-tile {
    grid-template-columns: 1fr;
  }

  .project-content img {
    width: 100%;
    max-width: 100%;
  }

  .nav-menu {
    justify-content: flex-end;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 78px;
  }

  #welcome-section,
  #skills {
    padding: 0 1rem;
  }

  .section-separator {
    max-width: 80%;
    margin: 2rem auto;
  }

  .navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: transparent;
  }

  .hamburger {
    display: block;
    background-color: var(--navbar-color1);
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    width: fit-content;
    background-color: var(--navbar-color1);
    padding: 1rem 2.5rem;
    /* border: 1px solid red; */
  }

  .isOpen {
    display: flex;
  }

  .nav-link {
    border: none;
  }

  .nav-link:hover {
    background: transparent;
    color: var(--navbar-color2);
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .blog-btn {
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
  }

  .about-text,
  .skills ul li,
  .project-content ul li {
    line-height: 1.4;
  }

  .skills {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .project-content {
    padding: 1rem;
    border-radius: 8px;
  }

  .project-content img {
    width: 100%;
    max-width: 100%;
  }

  .about-text {
    font-size: 1rem;
  }

  footer {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }
}
