@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap"); /* Roboto */
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap"); /* Red hat display*/
@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap"); /* Dosis */
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap"); /* Lora */

/* GENERAL */
html {
  font-size: 16px;
}

body {
  font-family: "Red Hat Display", sans-serif;
  margin: 0;
  padding: 0;
  color: aliceblue;
  background-image: linear-gradient(#011222, #03335f);
  cursor: none;
}

a, input, textarea, button {
  cursor: none;
}

header {
  text-align: center;
}

.language-selection {
  position: fixed;
  left: 20px;
  display: flex;
  z-index: 1000; /* Ensure it's above other content */
}

.language-selection button {
  margin: 5px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #04181e;
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 5px;
  border: none;
}

.language-selection button.active {
  background-color: #43a1ff;
  border-color: #b0d7ff;
  box-shadow: 0 0 15px 4px rgba(0, 38, 255, 0.71);
  outline: none;
  text-decoration: underline;
  transition: 0.3s ease-in-out;
}

.language-selection button:hover {
  background-color: #0056b3;
}

section {
  padding: 30px 0px 50px 0px;
  margin: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.centered-text {
  margin-top: 0px;
  text-align: center;
  max-width: 800px;
  padding-bottom: 30px;
}
.contacts {
  display: flex;
  justify-content: center;
}
.h-50 {
  height: 50px;
}
.w-50 {
  width: 50px;
}
ul {
  list-style: none;
  padding-left: 0;
}
li a {
  color: inherit;
  padding: 0px 20px;
}
a {
  text-decoration: none;
  color: inherit;
}
.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Dosis", sans-serif;
  letter-spacing: 4px;
}
#reference {
  color: ghostwhite;
  text-align: center;
}
.bg {
  opacity: 0.1;
  position: absolute;
  width: 1500px;
  height: 400px;
  object-fit: cover;
  z-index: -1;
}
#reference blockquote,
#reference blockquote p {
  font-family: "Lora";
  font-style: italic;
  letter-spacing: 2px;
  max-width: 600px;
  padding: 0px;
  margin: 0px;
  line-height: 24px;
}
#reference p a {
  text-transform: uppercase;
  font-size: 10px;
  max-width: 600px;
  letter-spacing: 2px;
}

section h2 {
  text-align: center;
  text-transform: uppercase;
}

.arrival-section {
  height: 100vh;
  background-image: url("../img/pattern.jpg");
  background-repeat: repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: aliceblue;
}

.arrival-content {
  max-width: 600px;
  padding: 20px;
}

.arrival-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.arrival-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #0056b3;
}

/* Basic styles for the navigation bar */
nav {
  position: sticky;
  top: 0;
  right: 0; /* Align to the right side of the screen */
  z-index: 999;
  display: flex;
  flex-direction: column;
  background-color: #3198ff;
  align-items: end;
  transition: 0.5s ease-in-out;
}

nav ul {
  height: 45px;
  margin: 0;
  color: #04181e;
  display: flex;
  justify-content: flex-end; /* Align the links to the right */
  align-items: center;
  flex-direction: row;
  transition: transform 0.3s ease-in-out;
}

nav ul li {
  height: inherit;
}

nav ul li a {
  text-align: center;
  height: 45px;
  color: inherit;
  display: flex;
  align-items: center;
  background-color: inherit;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #072c37;
  background-color: #43a1ff;
}

nav ul li a.active {
  color: #96caff;
  background-color: #002b56;
}

/* Hamburger menu styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 25px;
  justify-content: space-between;
  margin-right: 20px;
  padding: 10px 0;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu span {
  display: block;
  height: 4px;
  background: #04181e;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 10px);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -10px);
}

/* Responsive styles */
@media (max-width: 970px) {
  nav ul {
    display: none;
    position: absolute; /* Position absolutely to overlay other content */
    top: 45px; /* Adjust to be just below the nav bar */
    right: 0; /* Align to the right */
    width: 200px; /* Full width */
    z-index: 998; /* Ensure it's above other content */
    transform: translateY(100%);
  }

  nav ul.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* Adjust height to fit content */
    background-color: #007bff;
    animation: slideIn 0.3s forwards;
  }

  nav ul.inactive {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* Adjust height to fit content */
    background-color: #007bff;
    animation: slideOut 0.3s forwards;
  }

  .hamburger-menu {
    display: flex;
  }
}

/* Keyframe animations for sliding effect */
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

/* EXPERIENCE SECTION */
.timeline {
  text-align: center;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.timeline-item {
  width: inherit;
  display: flex;
  align-items: center;
  min-height: 150px;
  border-top: 2px dashed #1e8fffa0;
}

.job-duration,
.study-duration {
  width: 200px;
  min-width: 100px;
  font-size: 20px;
}

.month {
  text-transform: uppercase;
  letter-spacing: 4px;
}
.year {
  letter-spacing: 2px;
}

.company-logo {
  width: 125px;
  object-fit: contain;
}

.job-definition,
.study-definition {
  max-width: 550px;
  border-left: 2px dashed #1e8fffa0;
  padding: 15px 0px 35px 50px;
}
.study-definition {
  padding: 5px 0px 35px 50px;
}
.job-title-section {
  max-width: inherit;
  display: flex;
  align-items: center;
  padding: 8px 0px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
}
.job-title {
  max-width: 450px;
  padding-left: 10px;
  text-align: left;
}

.job-description,
.study-description {
  text-align: left;
  padding: 0;
  margin: 0;
}

.job-skill-list {
  display: flex;
  flex-wrap: wrap;
}
.job-skill-item {
  margin: 4px 4px;
  padding: 0px 15px;
  font-size: 14px;
  font-weight: 600;
  background-color: #96caff;
  color: #04181e;
  border-radius: 30px;
}

/* RESUME */
.resume {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0px 0px 0px;
  padding: 10px 25px;
  background-color: #007bff;
  color: #04181e;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-size: 24px;
}
div em {
  text-decoration: none;
  font-style: normal;
  font-size: larger;
}

/* EDUCATION SECTION */
.study-title-section {
  max-width: inherit;
  display: flex;
  flex-direction: column;
  padding: 8px 0px;
  justify-content: center;
}

.study-place {
  max-width: 550px;
  text-align: left;
  font-size: larger;
  font-weight: bolder;
  letter-spacing: 4px;
  text-transform: capitalize;
  margin-bottom: 0px;
}

.study-title {
  max-width: 550px;
  margin-top: 5px;
  text-align: left;
}
/* PROJECT SECTION */
.project {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  justify-content: center; /* Center the projects horizontally */
  width: 100%;
}
.project-link {
  width: 33%;
  min-width: 250px;
}
.project-item {
  border-radius: 8px;
  position: relative;
}
.project-image {
  aspect-ratio: 4 / 3; /* Set the aspect ratio to 16:9 */
  width: 100%;
}
.project-item .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease-in-out;
}
.project-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #96caff;
  border-radius: inherit;
  opacity: 0;
  transition: 0.4s ease-in-out;
}
.project-item:hover img {
  filter: grayscale(1) brightness(0.2);
}
.project-item:hover::after {
  opacity: 1;
  inset: 20px;
}
.project-description {
  position: absolute;
  top: 50%; /* Adjust positioning */
  left: 50%; /* Adjust positioning */
  transform: translate(-50%, -50%); /* Center align */
  text-align: center; /* Center align text */
  width: 80%; /* Adjust width */
  max-height: 80%; /* Limit height */
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
.project-item:hover .project-description {
  opacity: 1;
}
.project-description h3 {
  text-transform: uppercase;
}
.project-item:hover .project-description h3,
.project-item:hover .project-description p {
  opacity: 1;
  transform: translateY(0);
}

/* SKILL SECTION */
.skills-grid {
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-item {
  margin: 5px;
  padding: 10px 5px 0px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100px;
  background-color: #b3d0ed;
  border-radius: 25px;
  color: #04181e;
  font-weight: 600;
}

.skill-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* CONTACT SECTION */
#contact {
  padding: 60px 20px;
  background-color: #021932;
  color: #b3d0ed;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin: 40px 0;
}

#contact h2 {
  font-family: "Dosis", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #96caff;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 800px;
  min-width: 400px;
  align-items: center;
}

.form-item {
  width: 100%;
  margin-bottom: 20px;
}

label {
  font-size: 1.2rem;
  margin-bottom: 5px;
  display: inline-block;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #96caff;
  border-radius: 5px;
  background-color: #011222;
  color: #b3d0ed;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #43a1ff;
  box-shadow: 0 0 50px 4px rgba(0, 0, 255, 0.5);
  outline: none;
}

textarea {
  height: 150px;
  resize: none;
}

.submit-button {
  background-color: #96caff;
  color: #04181e;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: none;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #0056b3;
}
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: rgba(155, 180, 255, 1);
  background-image: url("../img/plus.png");
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.4s ease, height 0.4s ease;
}

.follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-color: rgba(155, 180, 255, 1);
  border-style: solid;
  pointer-events: none;
  border-width: 3px;
  z-index: 9998;
  transition: transform 0.25s ease-out;
}

/* Footer */
footer {
  background-color: #021932;
  color: #b3d0ed;
  padding: 40px 20px;
  font-family: "Red Hat Display", sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  padding: 20px;
  min-width: 250px;
}

.footer-section h2 {
  color: #96caff;
  margin-bottom: 20px;
  font-family: "Dosis", sans-serif;
  letter-spacing: 2px;
}

.footer-section p,
.footer-section ul {
  margin: 5px 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #b3d0ed;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0px;
}

.footer-section ul li a:hover {
  color: #96caff;
}

.footer-bottom {
  text-align: center;
  padding: 0px 0;
  margin-top: 0px;
}

.footer-bottom p {
  margin: 5px 0;
}

.footer-section .socials {
  margin-top: 20px;
}

.footer-section .social-icon {
  width: 40px;
  margin-right: 25px;
  transition: transform 0.3s ease;
}

.footer-section .social-icon:hover {
  transform: scale(1.1);
}

/* Scroll animation */
/* Initial state for elements to be animated */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

/* Final state for animated elements */
.animate {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

/* Project pages */
#project-header {
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#main-image {
  height: 85%;
}
#project-header {
  border-bottom: 3px solid #96caff;
  width: 90%;
}

#project-explanation {
  max-width: 1000px;
  width: 90%;
  padding-top: 30px;
}

.project-paragraph {
  margin: 0px 20px;
  padding-bottom: 30px;
  text-align: justify;
  line-height: 1.5;
}

.img-right {
  float: right;
  padding-left: 20px;
  margin-right: 20px;
}

.img-left {
  float: left;
  padding-right: 20px;
  margin-left: 20px;
}

.img-center {
  width: 100%;
}

.img-400 {
  max-width: 400px;
  width: 50%;
}
.img-450 {
  max-width: 450px;
  width: 56%;
}

.img-500 {
  max-width: 500px;
  width: 63%;
}

.img-550 {
  max-width: 550px;
  width: 66%;
}
.img-300 {
  max-width: 300px;
  width: 37%;
}

.img-425 {
  max-width: 425px;
  width: 53%;
}

.img-fig {
  width: 100%;
}

.img-full-width {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
}

.figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
}
.image-caption {
  height: 20%;
  padding: 10px 0px 15px 0px; /* Add some space between the image and the caption */
}

.padding-top {
  padding-top: 10px;
}

.padding-bot {
  padding-bottom: 30px;
}

.disable-animations {
  animation: none !important;
  transition: none !important;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  /* Hide custom cursor */
  .cursor,
  .follower {
    display: none !important;
  }

  /* Navigation adjustments */
  nav ul {
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
  }
  nav ul li a {
    height: auto;
    padding: 10px;
  }

  /* Hamburger menu visible */
  .hamburger-menu {
    display: flex;
  }

  /* Timeline adjustments */
  .timeline {
    max-width: 95%;
    padding: 0 10px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    border-top: 2px dashed #1e8fffa0;
    padding: 15px 0;
  }

  .job-duration,
  .study-duration {
    width: 100%;
    font-size: 16px;
    text-align: left;
    margin-bottom: 10px;
  }

  .job-definition,
  .study-definition {
    max-width: 100%;
    border-left: none;
    padding-left: 0;
  }

  .job-title-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 0;
  }

  /* Project section adjustments */
  swiper-slide {
    width: 90% !important;
    min-width: auto;
    margin: 0 auto;
  }

  .project-link {
    width: 100% !important;
  }

  .project-item {
    height: auto !important;
  }

  /* Arrival section */
  .arrival-content h1 {
    font-size: 2rem;
  }

  .arrival-content p {
    font-size: 1rem;
  }

  /* Skills grid */
  .skills-grid {
    flex-direction: column;
    align-items: center;
  }

  .skill-item {
    width: 80px;
    margin: 5px 0;
  }

  /* Contact form adjustments */
  form {
    max-width: 95%;
    min-width: unset;
  }

  /* Project pages */
  #project-header {
    height: auto;
    width: 95%;
  }

  #main-image {
    height: auto;
    width: 100%;
  }

  #project-explanation {
    width: 95%;
    padding-top: 20px;
  }

  .project-paragraph {
    margin: 0 10px;
    padding-bottom: 20px;
    font-size: 0.95rem;
  }

  .img-left,
  .img-right {
    float: none;
    margin: 0 auto 20px auto;
    padding: 0;
    display: block;
  }

  .img-center,
  .img-400,
  .img-450,
  .img-500,
  .img-550,
  .img-300,
  .img-425,
  .img-fig,
  .img-full-width {
    width: 90%;
    max-width: 100%;
  }

  /* Footer adjustments */
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    padding: 10px;
    text-align: center;
  }

  .footer-section .socials {
    margin-top: 10px;
  }
}


