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

:root {
  --bgc-dark: #181719;
  --bgc-light: #2c1e42;
  --bgc-lighter: #6e34ac;
  --text-clr-light: #ccd6f6;
  --text-clr-lighter: #a8b2d1;
  --highlighter: #d8e99b;
  --font-main: 'Ubuntu', sans-serif;
  --font-hlg: 'Roboto Mono', monospace;
  --font-logo: 'Silkscreen', cursive;
}

body {
  background-color: var(--bgc-dark);
  color: var(--text-clr-lighter);
  font-family: var(--font-main);
}

a,
ul {
  color: inherit;
  text-decoration: none;
  list-style: none;
}

h1,
ul {
  font-family: var(--font-hlg);
  color: var(--text-clr-light);
}

.nav-logo {
  background: url('./assets/images/profile.webp') center / cover no-repeat;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
}

.nav-logo-link {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.nav-logo span {
  font-family: var(--font-logo);
  font-size: 2rem;
}

.container-1 {
  width: 88%;
  margin: 0 auto;
}

.container-2 {
  width: 70%;
  margin: 0 auto;
}

img {
  width: 100%;
}

/*---------- Hero text area --------------- */

.hero {
  margin: 2em 0;
  padding: 3em 0;
}

.hero-area span {
  color: var(--highlighter);
  font-size: 1.2rem;
  transition: transform 0.3s ease-out;
}

.hero-area h1 {
  font-size: 3rem;
  margin: 0.5rem 0 0.6rem 0;
  transition: transform 0.3s ease-out;
}

.hero-area h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  transition: transform 0.3s ease-out;
}

.hero-area p {
  font-size: 1rem;
  line-height: 2rem;
}

.hero-area h1:hover,
.hero-area h2:hover {
  transform: translateX(4px);
}
/* -----Link area--------  */

.link-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 1.5em 0;
}

.btn {
  font-family: var(--font-hlg);
  font-size: 1rem;
  background: none;
  border: 1px solid var(--highlighter);
  margin: 0;
  padding: 1rem;
  color: var(--text-clr-light);
}

.find-me-btn {
  font-size: 1rem;
  color: bar(--text-clr-light);
  background: linear-gradient(to right, var(--bgc-dark) 0%, var(--highlighter) 100%);
  background-size: 300% 100%;
  background-position: left bottom;
  transition: all .6s ease;
}

.find-me-btn:hover {
  cursor: pointer;
  color: black;
  border: none;
  background-position: right bottom;
}

.find-me-links {
  align-self: center;
  font-family: var(--font-main);
}

.find-me-link {
  font-size: 1.5rem;
  margin: 1rem;
}

.designation {
  display: inline;
  position: relative;
  font-size: 0.8rem;
  top: -10px;
  left: 60px;
  opacity: 60%;
}

/* ------------nav---------------- */
nav {
  background-color: var(--bgc-light);
  padding: 1em 0;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.toggle-button {
  height: 25px;
  width: 25px;
  background-color: var(--bgc-light);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: absolute;
  top: 25px;
  right: 20px;
}

.toggle-bar {
  height: 2.5px;
  width: 100%;
  background-color: white;
}

.nav-list {
  overflow: hidden; /* Ensure no content spills out */
  height: 0; /* Start fully collapsed */
  opacity: 0; /* Fully transparent */
  transform: translateY(-10px); /* Slight upward shift */
  transition: height 0.25s ease-out, opacity 0.25s ease-out, transform 0.25s ease-out;
  text-align: center;
}

.nav-list li {
  margin: 4em 0;
  align-self: center;
}

.nav-item {
  color: white;
  letter-spacing: 1.5px;
  transition: border-bottom 0.3s ease-out;
  border-bottom: 3px solid var(--bgc-light);
  padding-bottom: 5px;
}

.btn-resume .nav-item {
  color: inherit;
  font-weight: 600;
  border-bottom: 3px solid var(--highlighter);
}
.btn-resume .nav-item:hover {
  border-bottom: 3px solid var(--bgc-dark);
}

.nav-item:hover {
  border-bottom: 3px solid var(--highlighter);
}

.nav-list.active {
  height: 100vh; /* Adjust to the maximum height of your menu */
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Reset position */
}

.btn-resume {
  background-color: var(--highlighter);
  color: var(--bgc-dark);
}
.btn-resume:hover {
  background-color: #cede8f;
}

@media (min-width: 800px) {
  .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }
  nav {
    padding: 1.5rem;
  }
  .toggle-button {
    display: none;
  }

  .nav-list {
    display: flex; /* Ensure the menu is always visible on larger screens */
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
    transition: none; /* Disable animation for desktop */
  }

  .nav-item {
    margin-left: 2em;
  }

  .btn .nav-item {
    margin-left: 0;
  }

  .btn-resume {
    margin-left: 2em;
    padding: 0.5rem 1rem;
  }

  .hero-area {
    box-shadow: -4px 0 var(--bgc-light);
    padding: 2em;
    transition: all 0.3s ease-out;
  }
  .hero-area:hover {
    box-shadow: -3px 3px var(--highlighter);
    transform: translate(5px, -5px);
  }

  .link-area {
    flex-direction: row;
    justify-content: space-between;
  }

  .find-me-links {
    margin-right: 1rem;
    cursor: pointer;
  }
}
