/* GENERAL */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: black;
  font-family: "Roboto Mono", monospace;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Send it behind the content */
}

.content {
  position: relative;
  z-index: 1; /* Ensure it's on top of the background */
  color: white; /* Text color contrast */
  padding: 20px;
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

h1, h2, h3, p, li {
  color: white; /* Ensures all text elements are visible */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Adds shadow for better contrast */
}

nav a {
  color: #ffffff;
}

.btn {
  color: black;
  background-color: #f1c40f; /* Gold button color */
}

#desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.8); 
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); 
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom: 1px solid white;
}



nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 11vh;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  margin-right: 50px;
}

.nav-links li {
  margin-left: 20px;
  z-index: 100;
}

a {
  color: aqua;
  text-decoration: none;
  text-decoration-color: white;
  filter: drop-shadow(0px 0px 12px grey);

}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

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

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

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

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section-pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
  filter: drop-shadow(0px 0px 12px grey);
}

.section-text {
  align-self: center;
  text-align: center;
}

.section-text p {
  font-weight: 600;
}

.section-text-p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  aspect-ratio: 3/2;
  object-fit: contain;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: auto;
  height: auto;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: rgba(255, 255, 255, 0.1); /* Transparent button */
  color: white; /* White text for contrast */
}


.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;  
  flex-direction: column;
  align-items: center;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.about-pic2 {
  margin-left: 58px;
  border-radius: 2rem;
}

.details-container {
  background: rgba(0, 0, 0, 0.7); /* Transparent black */
  border: rgba(255, 255, 255, 0.3) 0.1rem solid; /* Semi-transparent white */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.details-container h3 {
  font-size: 1.5rem;
  margin: 10px 0;
  color: white;
}

.details-container p {
  color: lightgray;
  font-size: 1.1rem;
  line-height: 1.5;
}


.section-container {
  gap: 4rem;
  height: 80%;
}

.section-pic-container {
  height: 500px;
  width: 500px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(34, 34, 34); /* Darker background to blend with black */
}


.project-title {
  margin: 1rem;
  color: black;
}

/* CONTACT */

#contact {
  display: flex;
  position: relative;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

/* POSITIONS OF CONTACT ME LAST PAGE */

.left-position {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: initial;
  justify-content: center;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.5rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
  aspect-ratio: 3/2;
  object-fit: contain;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

.icon-display {
  display: flex;
  height: 95px;
  justify-content: center;
  align-items: center;
}

/* CONTACT ME */

.contact-container {
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.contact-message {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  border: .5rem ridge rgb(235, 138, 138);
  border-radius: 10%;
  padding: 10px;
}

.contact-title {
  font-size: 50px;
  font-weight: bold;
  color: aqua;
}

.contact-title h2{
  font-weight: 600;
  color: aqua;
  font-size: 40px;
  margin-bottom: 5px;
}

.contact-title hr {
  border: none;
  width: 120px;
  height: 5px;
  background-color: aqua;
  border-radius: 10px;
  margin-bottom: 20px;
}

.contact-inputs {
  width: 400px;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: gray;
  border-radius: 50px;
}

.contact-title textarea {
  height: 140px;
  padding-top: 15px;
  border-radius: 20px;
}

.contact-inputs:focus {
  border: 2px solid black;
}

.contact-inputs::placeholder {
  color: darkcyan;
}

.contact-title button {
  display: flex;
  border: none;
  align-items: center;
  padding: 15px 30px;
  gap: 10px;
}

.contact-inputs img {
  display: flex;
  height: 100px;
  width: 50px;
}

.button-icon {
  border: 0;
  cursor: pointer;
}

.button-me {
  width: 80px;
}

.project-image {
  height: 300px;
}

.typing-text {
  display: inline-block;
  margin: 5%;
}

.text-typer {
  overflow: hidden;
  font-size: 1.6rem;
  font-weight: 700;
  border-right: 0.15em solid orange;
  white-space: nowrap;
  animation: typing 6s steps(40, end) infinite
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.hidden {
  opacity: 0;
  transition: all 1s;
}

.show {
  opacity: 1;
}

/* HOVER */

.all {
  display: flex;
  perspective: 800px;
  transform: rotateX(15deg);
  will-change: transform;
  justify-content: center;
  transform-style: preserve-3d;
  transition: all 0.8s ease-out;
  perspective-origin: center;
}

.all:hover {
  perspective: 1500px;
  transform: rotateX(0deg);
  transition: all 0.8s ease-in;
}

.all:hover .text {
  opacity: 1; /* Show text */
}

.all:hover > div {
  opacity: 1;
  transition-delay: 0.3s; /* Slight delay to make items appear after perspective shift */
}

.all:hover .explainer {
  opacity: 0; /* Hide explainer text */
}

.left, .center, .right, .lefter, .righter {
  width: 200px;
  height: 250px; /* Increased height to accommodate buttons */
  transform-style: preserve-3d;
  border-radius: 10px;
  border: 1px solid #fff;
  box-shadow: 0 0 20px 5px rgba(100, 100, 255, 0.6);
  opacity: 0;
  transition: all 0.5s ease;
  position: relative;
  background-position: center center;
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  margin: 10px;
}

.text {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s ease;
  bottom: 0;
  left: 5px;
  position: absolute;
  will-change: transform;
  color: #fff;
  text-shadow: 0 0 5px rgba(100, 100, 255, 0.6);
}

/* Buttons container at the bottom */
.buttons {
  position: absolute;
  bottom: 10px; /* Place buttons at the bottom */
  left: 10px;
  display: flex;
  gap: 10px; /* Space between buttons */
  z-index: 2;
}

/* Button styling */
.btn-project {
  padding: 5px 10px;
  font-size: 0.9rem;
  color: black; /* White text for contrast */
  background-color: rgba(0, 0, 0, 0.5); /* Transparent background matching the card's style */
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid grey; /* Add a subtle white border */
}

.btn-project:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Lighten the button on hover */
}

.code-btn-project {
  background-color: rgba(255, 255, 255, 0.2); /* Lighten the button on hover */ /* Green color for code button */
}

.code-btn-project:hover {
  background-color: rgb(214, 207, 207);
}

.link-btn-project {
  background-color: rgba(66, 69, 74, 0.3); /* Blue color for link button */
}

.link-btn-project:hover {
  background-color: lightgrey;
}

/* Hover effect for layers */
.left:hover, .center:hover, .right:hover, .lefter:hover, .righter:hover {
  box-shadow: 0 0 30px 10px rgba(100, 100, 255, 0.8);
  background-color: #ccf;
}

.lefter {
  transform: translateY(-60px) translateZ(-50px) rotateY(-10deg);
  background-image: url(/assets/M.A.U\ App.png);
}
.left {
  transform: translateY(-30px) translateZ(-25px) rotateY(-5deg);
  background-image: url(/assets/Spin\ and\ SPlit.png);
}
.center {
  opacity: 1;
  transform: translateZ(0); /* Keep center element in place */
  background-image: url(/assets/mandalorian.png);
}
.right {
  transform: translateY(30px) translateZ(-25px) rotateY(5deg);
  background-image: url(/assets/Trivia\ Mania.png);
}
.righter {
  transform: translateY(60px) translateZ(-50px) rotateY(10deg);
  background-image: url(/assets/bb-meme.png);
}

.explainer {
  font-weight: 300;
  font-size: 2rem;
  color: #fff;
  transition: all 0.6s ease;
  width: 100%;
  height: 100%;
  background-color: #303050;
  background-image: radial-gradient(circle at center top, #ccc, #33a);
  border-radius: 3px;
  padding: 7px 10px;
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}