@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@400;700&display=swap");

html {
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

:root {
  --beige: #e0e1dd;
  --black: #081f38;
  --blue: #415a77;
  --darkblue: #1b263b;
  --white: #fafafa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  background-color: var(--beige);
  color: var(--black);
}

/* INTRO SCREEN =================================== */
.intro-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  text-align: center;
  position: relative;
}

.intro-content h2 {
  font-size: 3rem;
  font-weight: normal;
  margin: -10px 0;
}

.intro-content h1 {
  font-size: 4rem;
  font-weight: bold;
  height: 100%;
  margin: -12px 0;
}

.intro-content p {
  font-size: 2rem;
  color: var(--blue);
  margin: -5px 0;
}

.text {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: 100%;
  gap: 10px;
}

@keyframes bop {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.scroll-link {
  text-decoration: none;
  color: inherit;
}

.scroll-section {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bop 1s ease-in-out infinite;
}

.scroll-section p {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-style: normal;
  font-size: 1rem;
  color: var(--darkblue);
}

.chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.chevron {
  width: 15px;
  height: 15px;
  border-bottom: 2px solid var(--darkblue);
  border-right: 2px solid var(--darkblue);
  transform: rotate(45deg);
}

.icon-buttons {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  padding: 15px;
  width: 100%;
}

.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 10px;
  height: 10px;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.icon-button:hover {
  transform: scale(1.3);
}

/* ABOUT SCREEN===================== */
.about-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  text-align: center;
  position: relative;
  background-color: var(--white);
  color: var(--black);
}

.about-content {
  width: 80%;
  max-width: 400px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.about-content h2 {
  font-size: 4rem;
  font-weight: bold;
  margin: 1em;
}

.about-content ul {
  list-style: circle;
  color: var(--darkblue);
  text-align: left;
  width: 90%;
}

.about-content ul li {
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
  margin: 20px 0;
}

/* EXPERIENCE ===================================*/
.experience-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  text-align: center;
  position: relative;
  background-color: var(--white);
}

.experience-content {
  width: 80%;
  max-width: 400px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.experience-content h2 {
  font-size: 4rem;
  font-weight: bold;
  margin: 1em;
  color: var(--black);
}

/* General styling for the cards */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.card {
  background-color: var(--beige);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.card h3 {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
}

.card p {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
}

.card:hover {
  transform: scale(1.06);
  box-shadow: 0 5px 5px rgba(119, 141, 169, 0.5);
}

/* Modal styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: var(--darkblue);
}

.modal-content h2 {
  margin: 10px;
  font-size: 2rem;
  font-weight: 500;
}

.modal-content ul {
  list-style: circle;
  color: var(--darkblue);
  text-align: left;
  width: 90%;
  margin: 10px 30px;
  gap: 10px;
}

.modal-content ul li {
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
  margin: 10px 0;
}

.modal-content .summaries {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 20px 0 0 0;
  justify-content: space-between;
  color: var(--blue);
}

.entry{
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.entry img{
  width: 20px;
  height: 20px;
}

.entry p {
  font-weight: 300;
}

.entry p a {
  color: var(--blue);
}

/* Modal content animation */
.modal-content {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: scale(0.7); /* Start smaller */
  opacity: 0; /* Start invisible */
  transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition */
}

.no-scroll {
  overflow: hidden;
}

/* Active state (shown modal) */
.modal.show .modal-content {
  transform: scale(1); /* Pop up to full size */
  opacity: 1; /* Fully visible */
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
