 :root {
  --primary-color: #23476e;
  --secondary-color: #D4DDED;
  --tertiary-color: #f9f1e0;
  --quarternary-color: #0C121D;

  --font-body: 'Raleway', sans-serif;
  --font-heading: 'Quicksand', sans-serif;
}
* {
  box-sizing: border-box; /* padding and border calculated with width and height */
}
body {
  font-family: var(--font-body);
}
h1, h2, h3 {
  font-family: var(--font-heading);
}

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

.navbar {
  width: 100%;
  height: 10dvh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px;
  margin-top: 0;
  
  background-color: transparent;
  
  position: absolute; /* overlap the navbar for smooth background */
  top: 0;
  left: 0;
  z-index: 1000;
}
.contact-button {
  padding: 10px 20px;
  background-color: transparent;
  text-decoration: none;
}
.contact-button:hover, .logo-button:hover {
  cursor: pointer;
}
.logo-button {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-image: url('LJ_logo.png');
  background-position: center;
  background-size: cover;
}
.logo-button:hover {
    transform: scale(1.2);
}
/* Hamburger menu icon (hidden by default) */
.navbar-toggle {
  display: none;
  background: none;
  color: black;
  border: none;
  font-size: 28px;
}

/* @media mobile width */
@media (max-width: 768px) {
    .navbar-right {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }    
    .navbar-toggle {
        display: block;
        color: var(--primary-color);
        font-size: 50px;
    }
    .navbar.show-menu .navbar-right {
        display: flex;
    }
    .navbar {
        flex-wrap: wrap;
        height: auto;
    }
    .navbar-right{
        margin-top: 10px;
    }
    .navbar-right .right-button,
    .navbar-right .resume-button {
        padding: 8px 12px;
        font-size: 14px;
        margin: 5px auto;
    }
    .resume-button {
        text-decoration: none;
    }
}

/* ---------- HOME PAGE ----------- */
/* ========== WELCOME SECTION ========== */

.welcome-wrapper {
  width: 100%; 
  height: 120dvh; 
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* move content to top */
  background-color: var(--tertiary-color);

  gap: 20px;
  overflow: hidden;
  background-image: url(akl_skyline.png);
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;

  padding-top: 20dvh; /* same height as the navbar */
}
.welcome-title-box {
  width: auto;
  height: auto;
  z-index: 1;
  background-color: transparent;
}
.welcome-portrait-box {
  width: 300px;
  height: 350px;
  z-index: 1;
  border-radius: 50%; 
}
.welcome-portrait-box img {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  
  object-fit: cover;
}

/* @media phone width */
@media (max-width: 768px) {
  .welcome-wrapper {
    height: 100dvh;;
  }
}

/* ========== ETHICS SECTION ========== */

.ethics-wrapper {
  width: 100%;
  height: 95dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}
.ethics-box {
  width: inherit;
  height: 90dvh;

  display: flex;
  flex-direction: row;
}
.ethics-image-container {
  width: 50%;
  height: inherit;
  background-color: var(--primary-color);
}
.ethics-text-container {
  width: 50%;
  height: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 7.5%;
  padding-top: 5%;
  padding-right: 5%;
  background-color: var(--tertiary-color);
  border: 2px solid black;
  overflow-wrap: break-word;
}
.ethics-box h2 {
  font-size: 2.4rem;
}
.ethics-box h3 {
  font-size: 1.8rem;
}
.ethics-box p {
  font-size: 1.4rem;
}

/* ========== ETHICS CAROUSEL ========== */

.ethics-carousel-wrapper{
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.ethics-carousel-track{
  height: 100%;
  display: flex;
  transition: transform 0.4s ease;
}
.ethics-carousel-slide{
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0%;
  box-sizing: border-box;
}
.ethics-carousel-slide img:hover{
  transform: scale(1.10);
}
.ethics-carousel-slide img{
  max-width: 800px;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: cover;  
  display: block;
  border: 2px solid black;
}
.ethics-image-container{ position: relative; }
.ethics-carousel-slide img {
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* @media tablet width */
@media (max-width: 1100px) {
    .ethics-wrapper {
      height: auto;
      padding-top: 40px;
      padding-bottom: 40px;
    }
    .ethics-box {
      flex-direction: column-reverse;
      align-items: center;
      justify-content: center;
      height: auto;
      padding-top: 20px;
      gap: 30px;
    }
    .ethics-text-container {
      height: auto;
      width: 80%;
      padding: 40px 40px;
      padding-top: 20px;
      overflow-wrap: break-word;
    }
    .ethics-image-container {
      width: 100%;
      height: 100%;
    }
}

/* @media phone width */
@media (max-width: 768px) {
    .ethics-wrapper {
      height: auto;
      padding-bottom: 80px;
    }
    .ethics-box {
      flex-direction: column-reverse;
      align-items: center;
      justify-content: center;
      height: auto;
      padding-top: 20px;
      gap: 30px;
    }
    .ethics-text-container {
      height: auto;
      width: 90%;
      padding: 40px 30px;
      padding-top: 20px;
      overflow-wrap: break-word;
    }
    .ethics-image-container {
      width: 100%;
    }
    .ethics-box h2 {
      font-size: 2rem;
      margin-bottom: 1.2rem;
    }
    .ethics-box h3 {
      font-size: 1.4rem;
      margin: 0.8rem 0;
    }
    .ethics-box p {
      font-size: 1rem;
      margin-top: 0.4rem;
    }

    /* carousel */
    .ethics-carousel-wrapper {
      width: 100%;
      height: 300px;
      overflow: hidden;
    }
    /*
    .ethics-carousel-track {
      border: 2px solid green;
    }
    */
    .ethics-carousel-slide {
      width:100%;
    }
    .ethics-carousel-slide img{
      max-width: 350px;
      max-height: 350px;
      width: auto;
      height: auto;
      object-fit: cover;  
      display: block;
      border: 2px solid black;
    }
}

/* ========== ACCOLADES SECTION ========== */

.accolades-wrapper h4 {
  font-size: 1.4rem;
}
.accolades-wrapper p {
  font-size: 1.2rem;
  margin-top: -10px;
}
.accolades-wrapper {
  width: 100%;
  height: 40dvh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--primary-color);
  text-align: center;
}
.accolades-box {
  width: 250px;
  height: 250px;
  background-color: var(--tertiary-color);
  padding: 10px 25px;
  border: 2px solid black;
  transition: transform 0.2s ease;
}
.accolades-box:hover {
  transform: scale(1.05);
}

/*@media tablet width */
@media (max-width: 1100px) {
    .accolades-wrapper {
      height: auto;
      padding-bottom: 80px;
    }
}

/* @media phone width */
@media (max-width: 768px) {
    .accolades-wrapper {
      height: auto;
      flex-direction: column;
      gap: 20px;
      padding-top: 10px;
      padding-bottom: 60px;
    }
    .accolades-box {
      width: 225px;
      height: 225px;
      overflow-wrap: break-word;
    }
    .accolades-box h4 {
      font-size: 1.2rem;
    }
    .accolades-box p {
      font-size: 1rem;

    }
}

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

.projects-wrapper {
  width: 100%;
  height: auto;
  text-align: center;
  padding-top: 20px;
  background-color: #fbcd96;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  padding-bottom: 80px;
}
.projects-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}
.projects-container {
  width: 300px;
  min-height: 350px;
  height: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--tertiary-color);
  border: 2px solid black;
  padding: 20px 40px;
}
.project-more {
  display: none;
}
.see-more-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  margin-top: auto;
}
.see-more-button:hover {
  opacity: 0.7;
}

/* @media tablet width */
@media (max-width: 1100px) {
  .projects-wrapper {
    height: auto;
    padding: 20px;
    padding-bottom: 40px;
  }
}

/* @media phone width */
@media (max-width: 768px) {
    .projects-wrapper {
      height: auto;
      padding-bottom: 5%;
      flex-direction: column;
    }
    .projects-box {
      flex-direction: column;
      gap: 40px;
      padding-top: 20px;
      padding-bottom: 20px;
    }
    .projects-container {
      perspective: none;
      -webkit-perspective: none;
    }
    .projects-card-inner {
      transform: none !important;
      -webkit-transform: none !important;
    }
    .projects-card-back {
      display: none;
    }
}

/* ========== SKILLS SECTION ========== */

.skills-wrapper {
  width: 100%;
  height: 80dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  border-bottom: 2px solid black;
}
.skills-grid {
  display: grid;
  width: 90%;
  height: 90%;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr); /* create 3 columns, 1 fraction each */
  justify-items: center;
  align-items: center;
}
.skills-box {
  width: 250px;
  height: 250px;
  perspective: 1000px;
  background-color: var(--primary-color)
}
.skills-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.skills-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}
.skills-box:hover .skills-card-inner {
  transform: rotateY(180deg);
}
.skills-card-front, .skills-card-back {
  position: absolute;
  width: 100%;
  height: 100%;

  background-color: var(--tertiary-color);
  border: 2px solid black;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  padding: 20px 20px;
}
.skills-card-back {
  transform: rotateY(180deg);
}
.emoji {
  font-size: 3rem;
  margin-top: 10px;
}
.skills-card-front img,
.skills-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.skills-card-front.image-card,
.skills-card-back.image-card {
  padding: 0;
}

/* @media tablet width */
@media (max-width: 1100px) {
    .skills-wrapper {
      height: auto;
      padding: 20px;
      padding-top: 40px;
      padding-bottom: 40px;
    }
    .skills-grid {
      width: 100%;
      height: 450px;
    }
    .skills-box {
      width: 200px;
      height: 200px;
    }
    .skills-card-back p {
      font-size: 0.8rem;
    }
    .emoji {
      font-size: 2rem;
    }

}

/* @media phone width */
@media (max-width: 768px) {
    .skills-wrapper {
      height: auto;
      padding: 40px 0;
    }
    .skills-grid {
      grid-template-columns: 1fr;
      gap: 30px;
      height: auto;
    }
}

/* ========== CONTACTS SECTION ========== */

.contact-wrapper { /* check this later - flex may be obselete */
  width: 100%;
  height: 30dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--tertiary-color);
}
.contact-box { 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--tertiary-color);
}

/* @media tablet width */
@media (max-width: 1100px) {
    .contact-wrapper {
      height: auto;
      padding-top: 40px;
      padding-bottom: 40px;
    }
}

/* @media phone width */
@media (max-width: 768px) {
    .contact-box {
      padding: 20px 25px;
    }
}
