:root {
  --bg-color: #ffffff;
  --grid-color: rgba(0, 0, 0, 0.2); 
  --grid-size: 22px;
  --grid-line-width: 1px;
}

@font-face {
  font-family: "Oddval";
  src: url("./fonts/Oddval-SemiBold.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Affigue";
  src: url("./fonts/affigue.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(to right, var(--grid-color) var(--grid-line-width), transparent var(--grid-line-width)),
    linear-gradient(to bottom, var(--grid-color) var(--grid-line-width), transparent var(--grid-line-width));
  background-size: var(--grid-size) var(--grid-size);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* ================= MODAL STYLES ================= */
.pdf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
}

.pdf-modal-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 850px;
  max-height: 88vh;
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  -webkit-overflow-scrolling: touch;
}

.pdf-modal-close {
  position: sticky;
  top: 14px;
  float: right;
  margin-right: 14px;
  background: #1f2937;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pdf-modal-close:hover {
  background: #dc2626;
  transform: scale(1.08);
}

.pdf-modal-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

/* Zoomed-in state */
.pdf-modal-img.zoomed {
  transform: scale(2); /* Bumped to 2x for a crisp close-up */
  cursor: zoom-out;
}


/* ================= PAGE STYLES ================= */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

#app {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  min-height: 100vh;
  padding: 40px 24px;
  box-sizing: border-box;
  gap: 40px;
}

/* Profile picture styling */
.profile-picture {
  display: block;
  width: 100%;
  max-width: 580px;
  height: auto;
  border: 2px solid #000000;
  border-radius: 50%;
  box-shadow: 
    0 0 0 14px #ffffff,  
    0 0 0 19px #000000;  
}

.right-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p_tags {
  text-align: center;
}

p {
  font-family: "Oddval", sans-serif;
  font-size: 4.2rem;
}

#name {
  font-family: "Oddval", sans-serif;
  font-style: italic;
  font-size: 5rem;
  font-weight: 400;
  margin: 0;
  margin-bottom: 10px;
}

#title {
  font-family: "Affigue", sans-serif;
  font-size: 3rem;
  margin: 0px;
  text-align: left;
  padding: 0;
}

.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
}

#portfolio, #wand {
  background-color: #000000;
  color: #ffffff;
  border-radius: 30px;
  padding: 24px 60px;
  font-family: "Oddval", sans-serif;
  font-size: 3.2rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
  max-width: 420px;
}

#portfolio:hover, #wand:hover {
  opacity: 0.85;
}

/* ================= TABLET STYLES (≤ 1024px) ================= */
@media (max-width: 1024px) {
  #app {
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
  }

  .profile-picture {
    max-width: 280px;
    box-shadow: 
      0 0 0 10px #ffffff,  
      0 0 0 14px #000000;  
  }

  #name {
    font-size: 3.4rem;
    margin-top: 20px;
  }

  #title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
  }

  #portfolio, #wand {
    font-size: 2.4rem;
    padding: 20px 48px;
    max-width: 360px;
  }
}

/* ================= MOBILE STYLES (≤ 600px / iPhone SE / etc.) ================= */
@media (max-width: 600px) {
  #app {
    padding: 40px 16px;
    gap: 24px;
    justify-content: flex-start;
  }

  .profile-picture {
    max-width: 180px;
    box-shadow: 
      0 0 0 7px #ffffff,  
      0 0 0 10px #000000;  
  }

  #name {
    font-size: 2.4rem;
  }

  #title {
    font-size: 1.6rem;
  }

  .buttons {
    margin-top: 24px;
    gap: 16px;
  }

  #portfolio, #wand {
    font-size: 1.8rem;
    padding: 16px 32px;
    max-width: 280px;
  }
}