@font-face {
  font-family: 'Custom';  
  src: url('fonts/Crozet-Regular.woff') format('woff');  
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  align-items: center;
  background-color:rgb(240, 240, 240);
  color: rgb(33, 33, 33)#000000;
  font-family: "akhbar", sans-serif;
  font-weight: 400;
  font-style: normal;
  cursor: url('./imgs/portfolio_imgs/cross_cursor.png'), auto; 
}

::selection {
  background: #000000;
  color: #ffffff;
}

a {
  text-decoration: none; 
  color: inherit;
}

a:hover {
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.3px;
  /* cursor: url('./imgs/portfolio_imgs/cross_cur.png'), auto; */
}

/* ---------------------- HEADER ---------------------- */
header {
  position: relative; 
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-top: 20px;
}

.occupation {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 10px;
  right: 20px; 
  width: auto; 
  display: flex;
  flex-direction: row;
  align-items: center; 
  justify-content: center;
  margin-block: 0;
}

/* ---------------------- MENU ---------------------- */
.index {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 10px;
  left: 20px; 
  width: auto;  
  display: flex;
  flex-direction: row;
  align-items: center; 
  justify-content: center;
}

.index .dropdown-content {
  display: none;
  position: absolute;
  z-index: 9999;
  top: 100%; 
  left: 20px;
  width: 20vw; 
}

.index:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.3px;
}

.index:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

/* ---------------------- MAIN CONTENT ---------------------- */
.items {
  height: 100%;
}

.item, .resume {
  position: fixed;
}

.title {
  padding: 0px;
}

.content {
  position: absolute;
  right: 20%;
  top: 30%;
  padding: 10px;
  z-index: 10;
  line-height: 1;
  width: 10vw; 
  text-transform: uppercase; 
  text-align: justify;
  text-justify: inter-word;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.content img {
  height: 20%; 
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.item:hover, .resume:hover {
  /* cursor: url('./imgs/portfolio_imgs/cursor2_hover.png'), auto; */
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.3px;
}

.item:hover .content {
  display: block;
  opacity: 1;
}

.resume:hover .content {
  display: block;
  opacity: 1;
}

.item:hover .content img {
  opacity: 1;
}

.resume:hover .content img {
  opacity: 1;
}
/* ---------------------- CURSOR ---------------------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px; 
  height: 20px;
  pointer-events: none;
  transition: transform 0.1s ease;
  z-index: 9999;
  background-image: url('imgs/portfolio_imgs/cross_cursor.png');  
  background-size: cover; 
}

/* ---------------------- FOOTER ---------------------- */
footer {
  margin: 0px;
  padding: 0px;
  margin-top: auto;
  text-align: center;
}

@keyframes handwriting {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

.handwriting-effect {
  font-family: 'Custom';
  letter-spacing: -4px;
  font-size: 90px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  border-right: 2.5px solid black;
  animation: blink-caret 0.75s step-end infinite;
}
/*
font-family: "shabby-chic", sans-serif;
font-weight: 400;
font-style: normal;
*/

/* ---------------------- RESPONSIVE BREAKPOINTS ---------------------- */
@media (max-width: 768px) {
  header {
    position: relative;
  }
  .index {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .index .title {
    display: none;
  }

  .index .dropdown-content {
    position: static;
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    gap: 50px;
    background-color: transparent;
    box-shadow: none;
    width: 100vw;
    margin-top: -20px;
    padding: 0;
    opacity: 1;
    visibility: visible;
    z-index: 10;
    text-decoration: none;
  }

  .index:hover {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .index .dropdown-content:hover {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
  }

  .dropdown-content a {
    padding: 0;
    text-align: center;
    text-decoration: none;
    color: black;
  }

  .index .dropdown-content a:hover {
    text-decoration: none;
  }

  .handwriting-effect {
    font-size: 60px;
  }

  .occupation {
    position: fixed;
    right: 20px; 
    top: 0px; 
    font-size: 70%;
    flex-direction: column;
    align-items: center;
  }
  
  .items {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    padding: 20px;
    width: 100%;
    height: auto;
    overflow-y: auto;
    background-color: rgb(240, 240, 240);
    z-index: 10000;
  }

  .item {
    position: relative !important; 
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .item .title {
    display: block !important;
    font-weight: bold;
    text-decoration: none !important;
  }

  .item .title:hover {
    text-decoration: none !important;
  }

  .item .content:hover {
    text-decoration: none !important;
  }
  .item p:hover {
    text-decoration: none !important;
  }
  .item:hover {
    text-decoration: none !important;
  }

  .item .content {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    opacity: 1 !important;
    padding: 0;
    text-align: center;
    display: flex !important;
  }

  .item .content img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    margin: 0 auto;
    display: block;
    object-fit: cover;
  }

  .item .content p {
    display: block !important;
    margin: 0px;
  }

  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  header {
    margin-bottom: 20px;
  }

  footer {
    margin-top: 40px;
  }

  .resume {
    display: none;
  }
}
@media (max-width: 480px) {
  .handwriting-effect {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .index, .occupation {
    font-size: 14px;
  }

  .index .dropdown-content {
    font-size: 14px;
    width: 100%;
  }

  .content {
    width: 95%;
  }

  .cursor-dot {
    width: 15px;
    height: 15px;
  }

  .items {
    grid-template-columns: 1fr;
  }
}