@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;600;800&display=swap");
:root {
  --bg-main: #9fbdf0;
  --bg-light: #b6cdf4;
  --cream: #fff7cf;
  --cream-soft: #fff3c4;
  --cream-muted: rgba(255, 247, 207, 0.72);
  --menu-blue: rgba(95, 120, 170, 0.92);
}

* {
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at bottom left, var(--bg-light) 0%, transparent 75%),
    var(--bg-main);
  color: var(--cream);
}

/* =========================
   NAVIGATION
   ========================= */

nav {
  width: 100%;
  height: 10vh;
  position: sticky;
  background: transparent;
}

.nav-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  z-index: auto;
}

.logo {
  color: var(--cream);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.logo span,
.logo .bow {
  color: var(--cream);
}

.hamburg,
.cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  color: var(--cream);
  display: none;
}

.nav-container .links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-container .links a {
  position: relative;
  font-size: 1.2rem;
  color: var(--cream);
  font-weight: 400;
  text-decoration: none;
  transition: 0.3s linear;
}

.nav-container .links a::before {
  position: absolute;
  content: "";
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cream);
  transition: 0.2s linear;
}

.nav-container .links a:hover::before {
  width: 100%;
}

.nav-container .links a:hover {
  color: white;
}

/* Mobile dropdown */
.dropdown {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 100dvh;
  overflow-y: auto;
  transform: translateY(-100%);
  z-index: 99999 !important;
  background: var(--menu-blue);
  backdrop-filter: brightness(40%) blur(3px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: 0.2s linear;
}

.dropdown.open {
  transform: translateY(0);
}

.dropdown .links a {
  color: var(--cream);
  display: flex;
  text-decoration: none;
  justify-content: center;
  padding: 15px 0;
  align-items: center;
  transition: 0.2s linear;
}

.dropdown .links a:hover {
  background-color: rgba(255, 247, 207, 0.12);
}

/* =========================
   HOME PAGE
   ========================= */

section {
  width: 100%;
  height: calc(100vh - 10vh);
  overflow: hidden;
}

.main-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding-top: 8px;
}

/* Home cutout photo
   - width/max-width control overall photo size
   - translateY controls how far down the photo sits */
.main-container .image {
  width: 70%;
  max-width: 600px;
  transform: translateY(200px);
}

.main-container .image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120vh;
  object-fit: contain;
}

.main-container .content {
  color: var(--cream);
  width: 50%;
  min-height: 100px;
}

/* MAIN PAGE TEXT SIZES
   Change these three blocks if you want to resize the homepage text. */

/* "Welcome!" */
.content h1 {
  font-size: clamp(3rem, 4.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 2px;
  color: var(--cream);
  margin-bottom: 24px;
}

.content h1 span {
  color: inherit;
}

/* "I'm Jennifer!" */
.content .home-name {
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.content .home-name span {
  color: inherit;
}

.content .subheading {
  font-size: clamp(1.2rem, 1rem + 2vw, 2.2rem);
  font-weight: 400;
  color: var(--cream-soft);
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.content p {
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  margin: 10px 0;
  color: var(--cream-soft);
  font-weight: 400;
}

.content p em,
.content p i {
  color: var(--cream-soft);
  font-style: italic;
}

.content .typewriter,
.content .home-typewriter {
  font-weight: 350;
  font-size: clamp(1.1rem, 1.75vw, 1.75rem);
  color: var(--cream-soft);
  margin-bottom: 6px;
}

/* Typewriter text inherits the size above */
.content .typewriter span,
.content .home-typewriter span {
  color: var(--cream-soft);
  font-size: inherit;
  position: relative;
  transition: 0.3s linear;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.typewriter span::before {
  content: "a Computer Science Student - Software Engineering Specialist";
  animation: words 15s infinite;
}

.typewriter span::after {
  content: "";
  position: absolute;
  width: calc(100% + 8px);
  height: 1.2em;
  border-left: 2px solid var(--cream);
  animation: cursor 0.6s linear infinite;
}

@keyframes cursor {
  to {
    border-left-color: rgba(255, 247, 207, 0.25);
  }
}

@keyframes words {
  0%, 20% {
    content: "Computer Science student at UofT";
  }
  21%, 40% {
    content: "Previously Software Engineer Intern at Scotiabank";
  }
  41%, 60% {
    content: "Passionate about cybersecurity, mobile and cloud development";
  }
  61%, 80% {
    content: "Incoming Cloud/DevOps Intern at TD Bank";
  }
  81%, 100% {
    content: "Looking for 2027 Internships";
  }
}

/* Decorative characters */
.bow,
.bows,
.bowa,
.bowe,
.bowh,
.bowp,
.stars,
.content h1 .stars {
  color: var(--cream-muted) !important;
}

/* Social icons */
.social-links {
  margin: 15px 0 30px 0;
  display: flex;
  gap: 15px;
}

.social-links i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background-color: transparent;
  border: 2px solid var(--cream);
  border-radius: 50%;
  color: var(--cream);
  margin: 5px 10px;
  font-size: 1.5rem;
  transition: 0.2s linear;
}

.social-links i:hover {
  transform: scale(1.15);
  color: var(--bg-main);
  background-color: var(--cream);
  filter: drop-shadow(0 0 10px rgba(255, 247, 207, 0.35));
}

.content button {
  width: 40%;
  height: 6vh;
  margin: 30px;
  background-color: var(--cream);
  color: #7896c9;
  border: 2px solid var(--cream);
  outline: none;
  font-size: 100%;
  font-weight: 600;
  border-radius: 30px;
  transition: 0.2s linear;
}

.content button:hover {
  transform: translateY(-3px);
  color: var(--cream);
  border: 2px solid var(--cream);
  background-color: transparent;
  box-shadow: 0 0 35px rgba(255, 247, 207, 0.25);
}

/* =========================
   ABOUT ME
   ========================= */

.aboutme {
  text-align: left;
  color: var(--cream);
  font-size: 3rem;
  margin-top: 2rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.about {
  padding: 1.5rem 1rem;
}

.aboutme-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-direction: row-reverse;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.aboutmecontent {
  flex: 1 1 58%;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  line-height: 1.75;
  color: var(--cream-soft);
  font-weight: 400;
}

/* About Me photo
   Change max-width / max-height here if you want it larger or smaller. */
.amimage {
  flex: 0 0 clamp(500px, 60vw, 500px);
}

.amimage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border: 0;
  outline: 0;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
}

/* =========================
   EXPERIENCES
   ========================= */

.experiences {
  text-align: center;
  color: var(--cream);
  font-size: 3rem;
  margin-top: 2rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.hackathontitle {
  text-align: left;
  color: var(--cream);
  font-size: 3rem;
  margin-top: 2rem;
  font-weight: 400;
  letter-spacing: 1px;
}

body.exp-page .hackathontitle {
  margin-left: -50px;
}

html.exp-root-scroll {
  height: auto !important;
  overflow-y: auto !important;
}

body.exp-page {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  position: static !important;
}

body.exp-page section {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.exp-page .page-wrapper,
body.exp-page main {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

/* =========================
   PROJECTS
   ========================= */

.projects {
  text-align: center;
  color: var(--cream);
  font-size: 3rem;
  margin-top: 2rem;
  font-weight: 400;
  letter-spacing: 1px;
  position: relative;
  z-index: auto;
}

html.projects-root-scroll {
  height: auto !important;
  overflow-y: auto !important;
}

body.projects-page {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  position: static !important;
}

body.projects-page section {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.projects-page .page-wrapper,
body.projects-page main {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

/* Project image buttons */
.img-btn {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  outline: none;
  z-index: auto !important;
}

.img-btn img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  z-index: auto !important;
}

.img-btn:hover,
.img-btn:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.img-btn .pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 207, 0.92);
  color: #7896c9;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.img-btn:hover .pill,
.img-btn:focus-visible .pill {
  opacity: 1;
  transform: translateY(0);
}

.page-wrapper,
main {
  z-index: auto;
  position: relative;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 884px) {
  body {
    overflow: hidden;
  }

  body.exp-page,
  body.projects-page {
    overflow-y: auto !important;
  }

  nav .logo {
    position: absolute;
    top: 16px;
    left: 15px;
    font-size: 1.5rem;
  }

  .nav-container .links {
    display: none;
  }

  .hamburg,
  .cancel {
    display: block;
  }

  .main-container {
    flex-direction: column;
  }

  .main-container .content {
    width: 80%;
  }

  .main-container .image {
    width: 52%;
    max-width: 320px;
    transform: translateY(24px);
  }

  .social-links i {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .cancel {
    color: white;
  }
}

@media (max-width: 800px) {
  .aboutme-row {
    flex-direction: column;
  }

  .amimage {
    width: min(65vw, 300px);
    flex-basis: auto;
  }

  .aboutmecontent {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .img-btn,
  .img-btn .pill {
    transition: none;
  }
}

@media (max-width: 884px) {

  html {
    height: auto;
    overflow-y: auto;
  }

  body.home-page {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.home-page nav {
    height: 72px;
    position: relative;
  }

  body.home-page .nav-container {
    height: 72px;
    width: 100%;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.home-page nav .logo {
    position: static;

    font-size: 1.35rem;
    font-weight: 200;

    white-space: nowrap;
  }

  body.home-page .nav-container > .links {
    display: none;
  }

  body.home-page .hamburg {
    display: block;

    position: static;

    font-size: 1.5rem;

    color: var(--cream);

    cursor: pointer;

    z-index: 10;
  }

  body.home-page .dropdown {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;

    transform: translateY(-100%);

    z-index: 99999;

    background: rgba(95, 120, 170, 0.95);

    backdrop-filter: blur(10px);

    transition: transform 0.25s ease;
  }


  body.home-page .dropdown .links {
    display: flex;
    flex-direction: column;

    width: 100%;
  }


  body.home-page .dropdown .links a {
    width: 100%;

    padding: 18px 0;

    text-align: center;

    color: var(--cream);

    text-decoration: none;
  }


  body.home-page .cancel {
    display: block;

    position: absolute;

    top: 15px;
    right: 20px;

    color: var(--cream);

    font-size: 1.5rem;

    cursor: pointer;
  }

  body.home-page .home-section {
    height: auto;
    min-height: calc(100vh - 72px);

    overflow: visible;

    padding-bottom: 40px;
  }


  body.home-page .main-container {
    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: center;

    padding: 20px 24px 40px;
  }

  body.home-page .main-container .image {
    order: 2;

    width: min(70vw, 330px);
    max-width: 330px;

    margin: 0 auto;

    transform: none;
  }


  body.home-page .main-container .image img {
    display: block;

    width: 100%;
    height: auto;

    max-height: none;

    object-fit: contain;
  }

  body.home-page .main-container .content {
    order: 1;

    width: 100%;
    max-width: 600px;

    min-height: 0;

    margin-top: 10px;

    text-align: center;
  }

  body.home-page .content > h1:first-of-type {
    font-size: clamp(2.2rem, 10vw, 3.5rem);

    line-height: 1.1;

    margin-bottom: 12px;
  }

  body.home-page .content .home-name {
    font-size: clamp(1.8rem, 8vw, 2.8rem);

    line-height: 1.15;

    margin-bottom: 14px;
  }

  body.home-page .content .home-typewriter {
    width: 100%;

    font-size: clamp(1rem, 4.7vw, 1.4rem);

    line-height: 1.4;

    margin-bottom: 16px;
  }


  body.home-page .content .home-typewriter span {
    font-size: inherit;
  }

  body.home-page .social-links {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    margin: 14px 0 0;
  }


  body.home-page .social-links i {
    width: 2.7rem;
    height: 2.7rem;

    margin: 0;

    font-size: 1.3rem;
  }

  body.home-page .stars {
    display: inline;

    white-space: normal;
  }

}
