@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("about.css");
@import url("project.css");
@import url("contact.css");


:root {
  --text-color: #e5e5e5;
  --footer-color: #1c1c1c;
  --bg-color: #111111;
  --contact-color: #262626;
  --gray-color: #737373;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  margin: 0; /* Removes default margin */
  color: var(--text-color);
  transition: all 0.15s linear;
}

* {
  margin: 0;
  padding: 0;
  font-family: -system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    "Helvetica Neue", sans-serif;
}

img {
  user-select: none;
}

/* Navigation Bar */

nav {
  top: 0;
  position: sticky;
  display: flex;
  color: var(--text-color);
  background-color: var(--bg-color);
  z-index: 10;
}

nav {
  align-items: center; /* Align items vertically */
  justify-content: center; /* Centers the entire nav horizontally */
  min-height: 50px;
}

.navLinks {
  top: 0;
  position: relative;
  display: flex;
  color: var(--text-color);
  background-color: var(--bg-color);
  z-index: 10;
}

.name {
  position: absolute; /* Positions the name on the left */
  left: 20px; /* Adjust for spacing from the left edge */
  font-size: 14px;
}

.navLinks {
  gap: 20px;
  list-style: none;
  font-size: 13px;
  font-weight: 400;
}

a {
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
}

.nav-link-container {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.indicator{
  position: absolute;
  width: 5px;
  height: 5px;
  top: 25px;
  left: 45%;
  background-color: var(--text-color);
  border-radius: 50%;
  transform: scale(0) translateX(-50%);
  transition: transform 0.2s ease-in-out;
}

.nav-link-container:hover{
  .indicator {
    transform: scale(1);
  }
}

/* Clock */
.clock {
  position: absolute;
  right: 50px;
  display: flex;
  gap: 5px;
}

.clock__int {
  display: flex;
  gap: 1px;
}

/* Light and Dark Mode */

.dark-light-button {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.dark-light-button img:last-child {
  display: none;
}

.light-mode .dark-light-button img:first-child {
  display: none;
}

.light-mode .dark-light-button img:last-child {
  display: block;
}

.light-mode {
  --text-color: #111111;
  --bg-color: white;
  --footer-color: #fafafa;
  --contact-color: #f5f5f5;
}


/* Main body of homepage */

.introWrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 75px;
  row-gap: 50px;
}

h3 {
  font-size: 2.5rem;
}

.intro {
  font-size: 26px;
  max-width: 22ch;
  line-height: 1.3;
}

.intro p {
  color: var(--gray-color);
}

.homeImg {
  max-width: 100%;
  width: 380px;
  height: auto;
  border-radius: 2rem;
  border: 1px solid #f2f2f24d;
  box-shadow: inset 0 0 10px #0000001a, 0 0 12px #0006;
  padding: 8px;
}

/* Footer */

.footer-container {
  padding: 50px 0 75px 0;
  background-color: var(--footer-color);
  position: relative;
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
  height: 100px;
}

.footer {
  display: flex;
  justify-content: space-evenly;
  margin: 0 auto;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 175px;
}

.footer-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.heading-left {
  font-size: 14px;
  font-weight: 400;
}

.heading-right {
  display: flex;
  gap: 50px;
}

hr {
  border-color: var(--text-color);
  border-style: solid;
  border-width: 1px;
}

.footer-heading h1 {
  font-weight: 600;
}

.footer-heading a {
  font-weight: 400;
}

.footer-heading h1,
.footer-heading a {
  font-size: 14px;
}

.footer-heading a:hover {
  text-decoration: underline;
}
