/********************** Global Rules **********************/

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

/********************** Variables **********************/

:root {
  /* Colors */
  --bg-color: #ecf0f1;
  --nav-color: #202020;
  --footer-color: #202020;
  --primary-color: #2c3e50;
  --accent-color: #01082d;

  /* Font */
  --nav-font-color: #fff;
  --nav-font-size: 1rem;
  --nav-font-family: "Montserrat", sans-serif;
  --article-font-color: #110b04;

  /* Dimensions */
  --header-height: 8vh;
  --footer-height: 5vh;
  --min-article-height: calc(
    100vh - (var(--header-height) + var(--footer-height))
  );
}

/********************** Containers **********************/

body,
html,
#container {
  /* width: 100vw; */
  height: 100vh;
  background-color: var(--bg-color);
  color: var(--nav-font-color);
  height: fit-content;

  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
  scroll-behavior: smooth;
}

#container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/********************** Header **********************/

#main-header {
  position: sticky;
  z-index: 10;
  top: 0;
}

/********************** Navigation Bar **********************/

#main-nav {
  /* width: 100vw; */
  height: var(--header-height);
  background-color: var(--nav-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 50px 10px #000000;
  font-family: var(--nav-font-family);
}

#nav-logo {
  /* height: var(--header-height); */
  /* width: var(--header-height); */
  user-select: none;
}

#left-nav {
  width: 50%;
  margin-right: 20px;
}
#right-nav {
  width: 50%;
}

#right-nav {
  display: flex;
  align-items: end;
  flex-direction: column-reverse;
  padding-right: 2em;
}

#nav-links {
  list-style: none;
  display: flex;
}

.nav-link {
  color: #fff;
  margin-left: 3em;
  font-size: var(--nav-font-size);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

/********************** Article **********************/

#main-article {
  width: 100vw;
  min-height: var(--min-article-height);
  color: var(--article-font-color);
  padding: 3rem;
}

.article-section {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 2rem;
  margin: 3rem 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 1s ease-in;
  scroll-margin-top: calc(var(--header-height) + 3.5rem);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.job-section {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-pg {
  margin: 50px;
}

#phone-link {
  margin-left: 1rem;
}

.arrow {
  font-size: 2rem;
  color: var(--accent-color);
}

.selfie {
  object-fit: contain;
  max-width: 20vw;
  height: auto;
  width: auto;
  border-radius: 30px;
}

.article-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}
.cover-page {
  display: flex;
  justify-content: space-between;
}

.contact-info {
  text-align: left;
  margin-left: 2rem;
}

#contact-icons a {
  margin: 0 1rem;
  display: inline-block;
}

#contact-icons img {
  width: 24px;
  height: 24px;
}

.section-heading {
  margin-bottom: 1rem;
}

.resume-iframe {
  width: 54vw;
  height: 100%;
}

#resume {
  height: 100vh;
}

/* EOLS*/
.eol-section {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 40px auto;
  max-width: 800px;
}

.eol-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.eol-section ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eol-section li {
  background: #fff;
  margin: 10px 0;
  padding: 15px 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.eol-section li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eol-section a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #007bff;
  transition: color 0.3s ease;
}

.eol-section a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/********************** Footer **********************/

#main-footer {
  width: 100vw;
  height: var(--footer-height);
  background-color: var(--footer-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

#hamburger-menu {
  visibility: hidden;
}

/* CREDIT: Github: mrvivacious, thank you so much for doing the phone styles, I hate frontend! I really really appreciate it!*/
/* Hide the nav links and show the hamburger menu on small screens */
@media (max-width: 768px) {
  #nav-links {
    display: none; /* Hide the navigation links */
    flex-direction: column;
    background-color: var(--nav-color);
    position: absolute;
    top: var(--header-height);
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  #nav-links.active {
    display: flex; /* Show the navigation links when active */
  }
  #hamburger-menu {
    display: block; /* Show the hamburger icon */
    visibility: visible;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    position: absolute;
    right: 0;
    margin-right: 5px;
  }
  #right-nav {
    padding-right: 1rem; /* Adjust padding for better spacing */
  }
}
