/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:opsz@6..12&family=Rubik+Mono+One&display=swap');

/* Base Styles */
body,
html {
  --sb-track-color: #000000;
  --sb-thumb-color: #ffffff;
  --sb-size: 8px;
  margin: 0;
  padding: 0;
  font-family: "Rubik Mono One", monospace;
  color: white;
}

/* Link Styles */
a {
  text-decoration: none;
}

/* Button Styles */
#fullscreen-btn,
#presentButton {
  background-color: white;
  color: black;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

#presentButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

#fullscreen-btn:hover {
  background-color: #f0f0f0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#fullscreen-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Scrollbar Styles */
body::-webkit-scrollbar {
  width: var(--sb-size);
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

/* Sequence and Content Container */
#sequence-container {
  height: 500vh;
  position: relative;
}

#sequence {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

#content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

/* Sections Container */
#main-content {
  display: none;
}

#sections-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

section {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  padding: 20px;
  margin: 20px;
  border-radius: 10px;
  /* background-color: rgba(0, 0, 0, 0.6); */
}

#intro,
#about,
#projects,
#contact {
  width: calc(60% - 40px);
  align-self: flex-start;
}

#intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#skills {
  width: calc(35% - 40px);
  align-self: flex-start;
  margin-left: auto;
}

.intro-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-container h1 {
  font-size: 3.5rem
}

.intro-container img {
  width: 70px;
  padding-top: 30px
}

/* Highlighted Text */
.highlight {
  color: #fff1c9;
}

/* Heading Styles */
h1,
h2 {
  margin-bottom: 10px;
}

/* List Styles */
ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 5px;
}

/* Social Links */
#social-links {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#social-links img {
  width: 30px;
  margin-left: 10px;
}

/* Projects Section */
#projects-container {
  display: flex;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: transform 0.5s ease;
}

.project {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-right: 20px;
  width: 300px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transform: translateZ(0);
  will-change: transform;
}

.project img {
  width: 100%;
  border-radius: 5px;
}

.project-links img {
  width: 20px;
  margin-right: 10px;
}

#projects {
  height: 100vh;
  display: flex;
  align-items: center;
}

/* Hover Circle */
.hover-circle {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(7, 7, 7, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

/* Tech Icons */
.tech-icons-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.tech-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tech-icon:hover {
  transform: scale(1.2);
}

/* Email Button */
#email-button {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  margin-top: 20px;
  object-fit: cover;
}

#email-button:hover {
  transform: scale(1.1);
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999;
}

.loader {
  border: 5px solid black;
  border-top: 5px solid #fff1c9;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#loading-screen p {
  margin-top: 20px;
  color: white;
  font-size: 18px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .intro-container h1 {
    font-size: 2.5rem;
  }

  .project {
    width: 250px;
  }

  #projects-container {
    flex-direction: column;
    align-items: center;
    position: static;
    transform: none;
  }

  .project {
    width: 80%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  #presentButton {
    display: none;
  }

}

/* Responsive Styles */
@media (max-width: 1024px) {

  /* Decrease font sizes for tablets */
  .intro-container h1 {
    font-size: 2.5rem;
  }

  /* Adjust project width for better display on tablets */
  .project {
    width: 250px;
  }

  /* Stack projects vertically on smaller screens and remove fixed positioning */
  #projects-container {
    flex-direction: column;
    align-items: center;
    position: static;
    transform: none;
  }

  .project {
    width: 80%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  #projects-container {

    transform: translateY(50%);
  }

  h3 {
    font-size: 1rem;
  }

  #skills {
    /* margin-left: 20px; */
    margin-right: 50px;
  }

  /* Add padding to the content area */
  #content {
    padding-top: 60px;
  }

  /* Adjust social links size */
  #social-links {
    top: 10px;
    right: 10px;
  }

  #social-links img {
    width: 25px;
    margin-left: 8px;
  }

  /* Adjust intro text and image for mobile */
  .intro-container h1 {
    font-size: 2rem;
  }

  .intro-container img {
    width: 50px;
    padding-top: 20px;
  }

  /* Reduce hover circle size for mobile */
  .hover-circle {
    width: 200px;
    height: 200px;
  }

  /* Reduce tech icon size for mobile */
  .tech-icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {

  #contact {
    width: 80%;
  }

  /* Adjust section margins and padding for smaller mobile screens */
  section {
    margin: 10px;
    padding: 15px;
  }


  /* Further reduce intro text size */
  .intro-container h1 {
    font-size: 1.5rem;
  }

  .intro-container img {
    width: 40px;
    padding-top: 15px;
  }

  /* Decrease heading sizes */
  h2 {
    font-size: 1.125rem;
  }

  /* Adjust font size for paragraphs and list items */
  p,
  li {
    font-size: 0.9rem;
  }

  /* Ensure project takes up most of the screen on mobile */
  .project {
    width: 90%;

  }

  /* Adjust email button size */
  #email-button {
    width: 30px;
    height: 30px;
  }

  /* Further reduce hover circle and tech icon size */
  .hover-circle {
    width: 150px;
    height: 150px;
  }

  .tech-icon {
    width: 25px;
    height: 25px;
  }
}