:root {
  --main-background: #091a28;
  --card-backround: #0c2030;
  --main-text-color: #94a3b8;
  --heading-text-color: #f7faff;
  --accent-color: #0170f5;
  --highlight-color: #34d399;
  --btn-padding: 1rem 2rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --border-color: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #145880 var(--main-background);
}

::selection {
  background-color: var(--highlight-color);
  color: var(--main-background);
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: #145880;
  border-radius: 8px;
}

html::-webkit-scrollbar-thumb {
  background: #145880;
  border-radius: 8px;
  border: 2px solid #f1f1f1;
}

/* Hover effects for WebKit engines */
html::-webkit-scrollbar-thumb:hover {
  background: #186c9c; /* Darker color on hover */
}

body {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-display: swap;
  background-color: var(--main-background);
  color: var(--main-text-color);
  font-optical-sizing: auto;
  font-style: normal;
  overflow-x: hidden;
  position: relative;
}

/* body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(103, 232, 249, 0.149),
      transparent 31rem
    ),
    radial-gradient(
      circle at 100% 16%,
      rgba(125, 211, 252, 0.1),
      transparent 26rem
    ),
    linear-gradient(180deg, rgba(103, 232, 249, 0.05), transparent 36rem);
} */

h1,
h2,
h3,
h4 {
  color: var(--heading-text-color);
  /* line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700; */
  letter-spacing: -3px;
  line-height: 0.95em;
  font-weight: 300;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem);
  max-width: 85%;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: -1px;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* .btn::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  background-color: var(--accent-color);
  width: 45%;
  height: 100%;
  z-index: -1;
  transition: width 500ms ease-in-out;
}

.btn:hover::before {
  width: 100%;
} */

.btn i {
  font-size: 1rem;
  margin-left: 0.5rem;
}

.line {
  width: 100%;
  background-color: var(--border-color);
  height: 1px;
  margin-top: 2rem;
}

/* ------------ Main Header ------------ */
.nav-header {
  background-color: var(--main-background);
  position: sticky;
  top: 0;
  padding: 0.5rem 0;
  /* backdrop-filter: blur(10px); */
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* transform: translateY(-100%); */
  transition: transform 0.3s ease-in-out;
  z-index: 3;
  height: 65px;
}

.nav-hidden {
  transform: translateY(-100%);
}

.nav-header .container {
  width: 100%;
}

.nav-header nav,
.nav-header ul {
  display: flex;
  align-items: center;
}

.nav-header nav {
  justify-content: space-between;
}

.logo {
  color: var(--heading-text-color);
}

svg {
  width: 2.5rem;
  height: 2.5rem;
}

.nav-header nav ul {
  gap: 3.5rem;
}

.nav-header ul a {
  color: var(--heading-text-color);
  opacity: 0.75;
  transition: opacity 250ms ease-in-out;
  font-size: 1rem;
  font-weight: 300;
}

.nav-header ul a:hover {
  color: var(--heading-text-color);
  opacity: 1;
}

/* .nav-header.show {
  transform: translateY(0);
} */

/* Sidebar on mobile */
.menu {
  display: none;
}

.menu,
.close-sidebar {
  background: none;
  border: none;
  color: var(--main-text-color);
}

.menu svg,
.close-sidebar svg {
  fill: var(--main-text-color);
  transition: fill 250ms ease-in-out;
}

.menu:hover svg,
.close-sidebar:hover svg {
  fill: var(--heading-text-color);
}

.menu,
.close-sidebar {
  font-size: 1.5rem;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  background: var(--main-background);
  z-index: 3;
  width: 100%;
  height: 100dvh;
  display: none;
  transform: translateX(100%);
  transition: transform 500ms ease;
  padding: 1.5rem 3rem;
}

.sidebar li {
  margin-top: 2.5rem;
  width: fit-content;
}

.sidebar a {
  color: var(--main-text-color);
  font-size: 1.5rem;
}

.sidebar a:hover {
  color: var(--heading-text-color);
}

/* ------------ Hero Section ------------ */
.hero {
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
}

.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 65px);
  /* padding-bottom: 6.25rem; */
}

/* font-size: 3.5em;
    letter-spacing: -0.04em;
    line-height: 0.95em;
    font-weight: 300;
    cursor: default;
    text-wrap: balance; */

.hero h1 {
  margin-top: 1rem;
}

.hero-tagline {
  max-width: 600px;
  margin-top: 2rem;
}

.hero-cta {
  margin-top: 3rem;
}

/* ------------ Projects ------------ */
.projects,
.about,
.skills,
.why-me,
.contact {
  padding: 6.25rem 0;
  /* min-height: 100dvh; */
}

.projects .container > p {
  max-width: 35rem;
  margin: 1rem 0 5rem 0;
}

.projects-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.project-item {
  /* background: rgba(15, 23, 42, 0.5); */
  border-radius: 0.5rem;
  /* transition: transform 0.3s ease; */
  /* margin-bottom: 3rem; */
}

/* .project-item:hover {
  transform: translateY(-0.5rem);
} */

.project-image {
  /* background: rgba(15, 23, 42, 0.5); */
  border-radius: 0.5rem;
}

.project-image img {
  border-radius: 0.5rem;
}

.project-content {
  padding: 0 1rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title {
  font-size: 1.25rem;
  margin: 1.5rem 0;
}

/* .project-links {
} */

.project-description {
  margin-bottom: 1.5rem;
}

.project-tools {
  display: flex;
  gap: 1rem;
}

.project-tools span {
  padding: 0.25rem 0.5rem;
  background: rgb(15, 50, 75);
  color: var(--highlight-color);
  border-radius: 1rem;
  font-size: 0.85rem;
}

.project-links a {
  color: var(--main-text-color);
  font-size: 1rem;
  transition:
    color 250ms ease-in-out,
    fill 250ms ease-in-out;
  display: inline-flex;
  align-items: center;
}

.project-demo svg,
.project-code svg {
  width: 1.35rem;
  margin-left: 0.25rem;
  fill: var(--main-text-color);
}

.project-links a:hover,
.project-links a:hover svg {
  color: var(--heading-text-color);
  fill: var(--heading-text-color);
}

.project-demo {
  margin-right: 1.25rem;
}

/* ------------ About me ------------ */
.about {
  min-height: 100dvh;
}

.about .about-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.about h2 {
  margin-bottom: 3rem;
}

.bio {
  margin-bottom: 1.75rem;
  /* font-size: 1.35rem; */
  line-height: 1.75rem;
}

.about .bio:last-child {
  margin-bottom: 0;
}

.about-image {
  /* max-width: 335px; */
}

.about-image img {
  border-radius: 0.25rem;
  object-fit: contain;
}

/* ------------ Skills ------------ */
.skills h2 {
  margin-bottom: 2rem;
}
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skills-category {
  padding: 2rem;
  background-color: var(--card-backround);
  border-radius: 0.25rem;
}

.skills-category ul {
  margin-top: 2rem;
}

.skills-category li {
  list-style-type: square;
  list-style-position: inside;
  /* margin-left: 2rem; */
}

.skills-category li::marker {
  color: var(--highlight-color);
}

.skills-category li:not(:last-child) {
  margin-bottom: 1rem;
}

/* ------------ Why Me ------------ */
/* .why-me {
} */

.why-me .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.why-me h2 {
  margin-bottom: 3rem;
}

.why-me-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: padding-left 250ms ease-in-out;
  cursor: pointer;
}

.why-me-card:first-child {
  padding-top: 0;
}

.why-me-card:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.why-me-card:hover {
  padding-left: 0.5rem;
}

.why-me-card h3 {
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

/* ------------ Contact ------------ */
.contact .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact p {
  max-width: 500px;
  margin-top: 3rem;
}

form {
  width: 100%;
  max-width: 450px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea,
.contact button {
  width: 100%;
  padding: 18px 0;
  background: var(--main-background);
  border: 0;
  outline: 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 18px;
  color: var(--heading-text-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--main-text-color);
  opacity: 1;
}

.contact button,
.btn {
  background: var(--highlight-color);
  color: var(--main-background);
  font-size: 1.25rem;
  padding: var(--btn-padding);
  position: relative;
  border-radius: 0.25rem;
  border: 0;
}

.hidden {
  display: none;
}

#form-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

.status-success {
  background-color: var(--heading-text-color);
  color: var(--card-backround);
}

.status-error {
  background-color: var(--heading-text-color);
  color: #721c24;
}

/* ------------ Footer ------------ */

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
}

.left-footer a {
  color: var(--main-text-color);
  transition: color 250ms ease-in-out;
}

.left-footer a:hover {
  color: var(--heading-text-color);
}

.right-footer svg {
  fill: var(--main-text-color);
  transition:
    transform 250ms ease-in-out,
    fill 250ms ease-in-out;
  width: 1.75rem;
}

.right-footer svg:hover {
  transform: translateY(-5px);
  fill: var(--heading-text-color);
}

.right-footer {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  .nav-header ul {
    display: none;
  }

  .sidebar,
  .menu {
    display: block;
  }

  /* .sidebar {
    width: 100%;
  } */

  .skills-wrapper {
    max-width: 30rem;
  }

  .projects-wrapper {
    max-width: 31.25rem;
    grid-template-columns: 1fr;
  }

  .project-description {
    font-size: 1rem;
  }

  .left-footer a {
    font-size: medium;
  }
}
