:root {
  --brand: #addae9; /*sky*/
  --action: #e08947; /*tail*/
  --white: #faf7f3; /*unicorn */
  --base-light: #ebc05b;
  --base-dark: #84b467;
  --black: #000008; /*nav-bar */
  --socialbar: #02001d;
  --socialicon: #488cb8;
  --darkblue: #090979;
  --accentpurple: #5847b8;
  --developer-inner: #b4f3ec;
  --developer-border: #3da5a7;
  --educator-inner: #ffd0d8;
  --educator-border: #ff879b;
  --educator-text: #e07ba2;
  --media-creator-inner: #ffe6c0;
  --media-creator-border: #fdaf69;
  --ocean-height: 32vh;
  --drop-delay: 0.2s;
  --drop-duration: 1.2s;
  --drop-distance: 32vh;
  --fade-overlap: 0.15s;
  --menu-max: 220px;
}
/* CSS Reset */
/* { outline: 1px solid hotpink; } */
html {
  box-sizing: border-box;
  font-size: 16px;
  font-family: "Playpen Sans Thai", "Lato";
  color: var(--black);
  scroll-behavior: smooth;
}

/* not sure about these - hide overflow of certain sections/divs, maybe not the html or body */
/* html { overflow-x: clip; }          
body { overflow-x: hidden; }  */

*,
*:before,
*:after {
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playpen Sans Thai";
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

/* Utilities */

.display-none {
  display: none;
}

/* Components */

/* btn-primary */
.btn-primary {
  display: inline-flex; /* Use this to ensure perfect vertical centering */
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  line-height: 1; /* kills extra font line space  - also check what font you are using because the line height can get whack aka swap*/
  border-radius: 999px;
  border: 2px solid #1f8f88;
  background: green;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  font-family: "lato";
  transition: transform 0.2s, box-shadow 0.25s;
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 0 10px 12px #ffffffa6, inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:focus {
  transform: scale(1.04);
}

/* header ----------------------------------------------------------------------- */
#navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  background-color: #000008;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 16px;
  height: 52px;
  z-index: 1000;
  border-bottom: 2px solid var(--white);
  border-left: 0;
  border-right: 0;
  padding-bottom: 4px;
}

.nav-link {
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--white);
  font-family: "Playpen Sans Thai", cursive;
  font-weight: 250;
  margin: 0 0.6rem;
}

.nav-logo {
  position: absolute;
  width: 90px;
  top: 8px;
  left: 15px;
}
.hamburger-icon {
  display: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

header .mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 600px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header .mobile-header .hamburger-icon {
    display: none;
  }
}

@media (max-width: 599.98px) {
  #navbar {
    gap: 12px;
  }
  #navbar .nav-links .nav-link {
    display: block;
    padding: 8px 0; /* adjust the height of the mobile drop down menu here */
    line-height: 1.25; /* adjust the line height of the dropdown menu here */
    transition: background-color 0.18s ease, color 0.18s ease,
      padding-left 0.18s ease;
  }
  /* hover/focus */
  #navbar .nav-links .nav-link:hover,
  #navbar .nav-links .nav-link:focus-visible {
    transform: scale(1.04);
  }

  #navbar .nav-links .nav-link:active {
    transform: scale(1.02);
  }

  /* prefers reduced motion for accessibility reasons */
  @media (prefers-reduced-motion: reduce) {
    #navbar .nav-links .nav-link {
      transition: none;
    }
    #navbar .nav-links .nav-link:hover,
    #navbar .nav-links .nav-link:focus-visible,
    #navbar .nav-links .nav-link:active {
      transform: none;
    }
  }

  #navbar .nav-link {
    display: none;
    color: var(--white);
    text-align: right;
    padding: 10px 0;
    text-decoration: none;
  }

  #navbar .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 3;
  }
  #navbar .hamburger-icon {
    display: block;
    width: 32px;
    height: 32px;
  }

  /* slide container (collapsed by default) */
  #navbar .nav-links {
    position: absolute;
    top: 52px; /* below fixed header - use this to adjust variance from top */
    right: 0;
    left: auto;
    background: #000008;
    border-top: 0;
    padding: 0 16px;
    overflow: hidden;
    max-height: 0; /* collapsed */
    z-index: 2;
    transition: max-height 280ms ease, padding 180ms ease;
  }
  /* OPEN state: expand panel */
  #navbar.responsive .nav-links {
    max-height: var(--menu-max);
    padding: 10px 16px 12px;
  }
  #navbar.responsive .nav-link {
    display: block; /* Display block turns the header back on */
  }
}

@media (min-width: 600px) {
  #navbar .nav-links {
    position: static;
    display: flex;
    gap: 12px;
    max-height: none;
    overflow: visible;
    border: 0;
    padding: 0;
    background: transparent;
  }

  #navbar .nav-link {
    display: inline-block;
    color: var(--white);
  }
  #navbar .hamburger-btn {
    display: none;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  #navbar .nav-links {
    transition: none;
  }
}
/* hero ----------------------------------------------------------------------- */
@media (min-width: 768px) {
  .hero .logo {
    height: auto;
    max-width: 60vw;
  }

  .hero .hero-roles {
    padding: 48px;
  }
}
@media (max-width: 768px) {
  .hero .logo {
    height: auto;
    max-width: 60vw;
  }
}

/* .hero ----------------------------- */
.hero {
  position: relative;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(2, 0, 36, 1) 8%,
    rgba(9, 9, 121, 1) 14%,
    rgba(173, 218, 233, 1) 55%
  );
  text-align: center;
  overflow: hidden;
  min-height: 100svh;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  padding-top: 110px;
  color: var(--white);
  display: flex;
  justify-content: center;
  font-family: "Playpen Sans Thai";
  font-weight: 400;
  padding-bottom: 12px;
}

.hero-roles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content; /* columns shrink to each word */
  justify-content: center; /* center the trio */
  align-items: center;
  column-gap: clamp(14px, 5vw, 56px);
  white-space: nowrap;
  padding-top: 24px;
  color: var(--white);
  /* border: 2px solid pink; */

  /* display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | middle | right */
  /* justify-items: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  white-space: nowrap;
  padding-top: 24px; */
  /* border: 2px solid pink; */
}

.hero-roles .role {
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4),
    /* soft dark halo for contrast */ 0 0 12px rgba(255, 255, 255, 0.2); /* gentle light glow */
}

.role-dev {
  animation: myAnim-dev 1s ease 1.4s 1 normal both;
}
@keyframes myAnim-dev {
  0% {
    opacity: 0;
    transform: translateX(-250px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.role-edu {
  animation: myAnim-edu 1s ease 1.4s 1 normal both;
}

@keyframes myAnim-edu {
  0% {
    opacity: 0;
    transform: translateY(-250px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* optional: shift the middle label 1–2px right */
@media (min-width: 768px) {
  .role-edu {
    transform: translateX(2px);
  } /* try 1–2px */
}

.role-med {
  animation: myAnim-med 1s ease 1.4s 1 normal both;
}
@keyframes myAnim-med {
  0% {
    opacity: 0;
    transform: translateX(250px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero .stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 33%;
  background: url("assets/stars.png") repeat top center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 768px) {
  .ocean {
    width: 100vw;
  }
  .hero h1 {
    font-size: 4.2rem;
    max-width: 100%;
    text-shadow: -0.5px -0.5px 0 black,
      /* Top-left shadow */ 0.5px -0.5px 0 black,
      /* Top-right shadow */ -0.5px 0.5px 0 black,
      /* Bottom-left shadow */ 0.5px 0.5px 0 black; /* Bottom-right shadow */
  }

  .hero .hero-roles {
    font-size: 2rem;
    gap: 5vw;
    font-weight: 500;
    padding-top: 24px;
  }
}

/* This code makes everything z-index 1 so its above the ocean and stars layers (0) and also relative aka is positioned relative to its normal position in the document*/
.hero .logo,
.hero h1 {
  position: relative;
  z-index: 1;
}

/* Ocean pinned to bottom so the bloody thing doesn't move when resizing*/
.hero .ocean {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--ocean-height);
  width: 100vw;
  /* object-fit: cover; */
  z-index: 0;
  /* background-size: cover; */
  /* background-position: bottom center; */
}

.hero .ocean img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centered stack so both logos sit on top of each other------------------*/
.hero .logo-stack {
  position: absolute;
  bottom: calc(50% - (min(42vw, 360px) / 1.2));
  left: 50%;
  /* top: 50%; */
  width: min(42vw, 360px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) translateY(calc(var(--drop-distance) * -1));
  /* transform: translateX(-50%); */
  z-index: 1;
  animation: drop var(--drop-duration) ease-in var(--drop-delay) forwards;
}

/* Both logos fill the stack EXACTLY and overlap ----------------------*/
.hero .logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Super important - this ensures the circle is on top until it fades and LINKS THE PICS TOGETHER!!!!*/
.hero .logo-circle {
  z-index: 2;
}
.hero .logo-cutout {
  z-index: 1;
}

/* Circle fades as it "hits" water -  adjust values in root to change drop height/delay/fading overlap --------------*/
.hero .logo-circle {
  animation: fade-out 0.35s linear
    calc(var(--drop-delay) + var(--drop-duration) - var(--fade-overlap))
    forwards;
}

/* Yay for infinite bobbing! */
.hero .logo-cutout {
  animation: bob 3.5s ease-in-out calc(var(--drop-delay) + var(--drop-duration))
    infinite;
}

@keyframes drop {
  from {
    transform: translate(-50%, -50%) translateY(calc(var(--drop-distance) * -1));
  }
  to {
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.8vh);
  }
}

/* .mobile-navigation links----------------------------------------------------- */
.mobile-nav a {
  text-decoration: none;
  color: var(--black);
  display: block;
  padding: 4px 16px;
}

/* .desktop-nav */
.desktop-nav {
  display: none;
}

/* bigger screen - desktop navigation links----------------------------------------- */
@media (min-width: 768px) {
  .desktop-nav a {
    text-decoration: none;
    font-size: larger;
    color: var(--black);
  }

  .desktop-nav {
    display: inline-block;
  }
}

/* ----------------------------------------------------ARTICLE--------------------------------------------*/

/* .articles-container ------------------------------------------------------- */
@media (min-width: 768px) {
  .articles-container {
    display: flex;
  }
}
.articles-container {
  /* border-top: 5px solid var(--brand); */
  border-bottom: 5px solid var(--educator-text);
}

/* careful applying this to all articles... */
@media (min-width: 768px) {
  article {
    padding: 56px;
  }
}

article {
  background-color: #fff5f5;
  background: linear-gradient(
    180deg,
    rgba(255, 245, 245, 1) 0%,
    rgba(255, 208, 216, 1) 100%
  );
  padding: 40px;
  transition: all 0.3s ease;
  font-family: "Playpen Sans Thai";
  line-height: 1.8;
  margin-inline: auto;
}

article p {
  margin-bottom: 16px;
}

/* these are on homepage */
.aboutme-background {
  position: relative; /* Do this on every stacked layer image (establishing stacking context) */
  background: url("assets/bubblebackground.jpg") center bottom / cover
    /* position bottom, scale to fill ----- tiling also works but aspect ratio still looks off */
    no-repeat;
}

.aboutmeimage {
  display: inline-block;
  height: auto;
  padding: 16px;
}

article h2 {
  color: var(--educator-text);
}
.aboutmeimage {
  animation: bob 2.5s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.8vh);
  }
}

/* ---- My_Projects -------------------------------- */
.my-projects-container {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  background-color: var(--white);
  text-align: center;
  padding-top: 40px;
  align-items: center;
  text-align: center;
}
.projects-title {
  margin-bottom: 24px;
  margin: 0 auto 24px auto;
  font-size: 3.5em;
  color: var(--socialbar);
}
.cards {
  width: 100%;
  max-width: 1100px;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px; /* gap does spacing between cards not the dev/edu/media cards */
  display: flex;
  justify-content: center;
}

.dev-card {
  background: linear-gradient(180deg, #b4f3ec 0%, #c7f5ea 40%, #d9f7e6 100%);
  border: 2px solid #7adfdb;
}

.edu-card {
  background-color: #ffd0d8;
  border: 2px solid #ff879b;
}

.media-card {
  background-color: #ffe6c0;
  border: 2px solid #fdd8aa;
}
.dev-card,
.edu-card,
.media-card {
  flex: 1 1 320px; /* grow | shrink | preferred width - Google recommends? */
  max-width: 338px; /* cap so the cards don’t stretch too wide */
  border-radius: 20px;
  box-sizing: border-box;
}

.inner-wrap {
  border-radius: 20px;
  text-align: center;
  padding-bottom: 8px;
  margin-top: auto;
}

.dev-card img,
.edu-card img,
.media-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.dev-card h4,
.edu-card h4,
.media-card h4 {
  font-size: 1.6rem;
  margin: 4px 0 10px;
  display: flex;
  justify-content: center;
}

.dev-card h4 {
  color: #3da5a7;
}

.edu-card h4 {
  color: #e07ba2;
}

.media-card h4 {
  color: #fdaf69;
}
.dev-card p,
.edu-card p,
.media-card p {
  padding-bottom: 20px;
  line-height: 0.4;
  display: flex;
  justify-content: center;
}

.dev-card .inner-wrap {
  background: #f5fffd;
  background: linear-gradient(
    180deg,
    rgba(245, 255, 253, 1) 0%,
    rgba(122, 223, 219, 1) 100%
  );
}

.edu-card .inner-wrap {
  background: #fff5f5;
  background: linear-gradient(
    180deg,
    rgba(255, 245, 245, 1) 0%,
    rgba(255, 208, 216, 1) 100%
  );
}
.media-card .inner-wrap {
  background: #fffbf5;
  background: linear-gradient(
    180deg,
    rgba(255, 251, 245, 1) 0%,
    rgba(255, 230, 192, 1) 100%
  );
}

.btn-primary.btn-dev {
  background-color: #3da5a7;
  border-color: #308385;
  color: var(--white);
}

.btn-primary.btn-edu {
  background-color: #e07ba2;
  color: var(--white);
  border-color: #d7608e;
}

.btn-primary.btn-media {
  background-color: #fdaf69;
  border-color: #ff9c45;
  color: var(--white);
}

/* .contact-form ----------------------------------------------------------------------*/

.contact-form {
  padding: 48px 16px;
  margin: 0px 0px;
  background-color: var(--white);
  font-family: "Playpen Sans Thai";
  /* min-height: calc(100vh - 52px); */
}

.contact-form input,
.contact-form select {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
}

.contact-form textarea {
  display: block;
  width: 100%;
  padding: 8px;
}

.contact-form label {
  display: block;
  width: 100%;
}

.contact-form h2 {
  color: var(--base-dark);
  margin-bottom: 16px;
  margin-top: 24px;
  text-align: center;
}

.contact-form input[type="submit"] {
  background-color: var(--action);
  border: 0;
  margin-top: 8px;
  cursor: pointer;
}
.contact-form input[type="submit"]:hover {
  transform: translate(0, -1px);
  box-shadow: 0 10px 12px #ffffffa6, inset 2px -4px 2px rgba(0, 0, 0, 0.12),
    inset 2px 4px 2px rgba(255, 255, 255, 0.28);
}

.contact-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.22);
}

.contact-form input[type="submit"]:focus {
  background: #ff8800c7;
}

@media (min-width: 768px) {
  .contact-form h2 {
    text-align: center;
    font-size: 2.5rem;
  }

  .contact-form form {
    max-width: 60%;
    margin: 40px auto;
  }
}

.contact-page .contact-form {
  min-height: calc(100vh - 5px);
  padding-top: 72px;
  padding-bottom: 24px;
}
/*  footer --------------------------------------------------------------------------- */
footer {
  width: 100%;
  padding: 0px;
  text-align: center;
  display: flex;
  justify-content: center;
  background-color: var(--educator-text);
  border-top: 5px solid #d7608e;
}

.social-icons {
  display: flex;
  background-color: #ff99aa 100%;
  align-items: center;
  color: var(--socialicon);
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 16px;
}

/* The ICON itself is what we animate */
.social-icons a i {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.social-icons a:hover i {
  transform: scale(1.2);
}

.social-icons a:active i {
  transform: scale(1.4);
}

.social-icons a {
  font-size: 2rem;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  justify-content: center;
  padding: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
  margin: 0;
}
.social-icons a:focus i {
  text-shadow: 0 0 4px var(--white);
}

@media (min-width: 768px) {
  footer {
    justify-content: center;
  }

  footer .socials-icon {
    margin-left: 20px;
    margin-right: 20px;
  }
}
footer {
  padding: 16px 0;
}

/*--------------------------------------------------------PROJECT-HTML-PAGE---------------------------------------------------*/

.my-dev-container {
  width: 100%;
  padding: 72px 20px 20px 20px;
  background-color: var(--white);
}

.my-dev-container,
.my-edu-container,
.my-media-container {
  width: 100%;
  padding: 52px 20px 20px 20px;
  background-color: var(--white);
}

.proj-title {
  margin: 24px auto 24px auto;
  font-size: 3.5em;
  color: var(--socialbar);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}

.project-cards {
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  gap: 24px;
}
/*--------------------------------------------------------------ABOUT_ME_PAGE------------------------------------------------------*/

.img-container {
  padding-top: 96px;
}

.about-me-background {
  background: linear-gradient(
    180deg,
    rgba(255, 245, 245, 1) 0%,
    rgba(255, 208, 216, 1) 100%
  );
  border-top: 2px solid var(--educator-border);
}

.about-me-header {
  font-size: 2.5rem;
  color: var(--educator-text);
  margin-bottom: 8px;
  margin-top: 24px;
  text-align: center;
}

.about-me-long-text {
  margin: 0 auto 20px;
}

.about-me-long-text p {
  font-size: 1rem;
  line-height: 1.85;
  text-align: left;
}

.about-me-background {
  text-align: center;
  min-height: calc(100vh - 52px - 100px); /* 52 = header height, 120 ≈ footer */
}
.becky-pic {
  display: block;
  height: auto;
  max-width: 240px;
  text-align: center;
  object-fit: cover;
  margin: 0 auto;
  border: 6px solid var(--educator-text);
  border-radius: 60px;
}
/*---------------------------------------PROJECTS_PAGE_-------------------------------------------*/

.project-cards .dev-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  background: var(--developer-inner);
  padding: 0px;
  display: block;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.project-cards .media-card img {
  width: 100%;
  height: 200px;
  object-fit: contain; /* fits entire image inside vs cover which expands to fit the whole thing*/
  object-position: center;
  background: #ffe6c0;
  padding: 0px;
  display: block;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.project-cards .edu-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  background: var(--educator-inner);
  padding: 0px;
  display: block;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.proj-title {
  padding-top: 24px;
}
