
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

html{
  scroll-snap-type: none;
  overflow-y: scroll;
}


main{

}

/* ------ Header ------ */

header{
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1% 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 1.2em;

  z-index: 10000;
  box-shadow: -2px -2px 3px rgba(255, 255, 255,   0.1),
  4px 4px 6px rgba(5,5, 5,   0.5);
}

header ul{
  display: flex;
  justify-content: center;
  align-items: center;
}

header ul li{
  list-style: none;
  margin-left: 15px;
  border-radius: 20px;
  box-shadow: -2px -2px 3px rgba(255, 255, 255,   0.1),
  4px 4px 6px rgba(5,5, 5,   0.5);
  padding: 6px 12px;
}

header ul li a{
  padding: 6px 12px;
}

header .logo {
  font-size: 1.2em;
  letter-spacing: 3px;
}

header a:link {
  color: white;
  text-decoration: none;
}

header a:active{
  color: white;
}

header a:visited{
  color: white;
  text-decoration: none;
}

header li:hover{
  border-radius: 20px;
  box-shadow: 2px 2px 3px rgba(255, 255, 255,   0.1),
  -4px -4px 6px rgba(5,5, 5,   0.5);
}

.nav-toggle { 
  display: none; 
}

.hamburger {
  display: none;              /* hidden by default; shown on small screens */
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: -2px -2px 3px rgba(255,255,255,0.1), 4px 4px 6px rgba(5,5,5,0.5);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: white;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ------ Front Page ------ */
.parallex_wrap{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 100px;
  z-index: 0;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;      /* new stacking context, safer compositing */
  contain: paint;          /* keep repaints inside */
}

.parallex_wrap img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(20px); 
  object-fit: contain;
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
}

#background{
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  object-fit: cover;
  transform: translateZ(0);
}

.cloud1, .cloud1_part2, .cloud2, .cloud2_part2,
#moon_1, #moon_2, #moon_3, #moon_4, #main_header {
  will-change: transform;
  transform: translateZ(0);
}

.parallex_wrap h1{
  font-family: "Cubano", sans-serif;
  font-size: 6vw;
  text-align: center;
  color: white;
  position: absolute;
  z-index: 100;
  letter-spacing: 15px;
  line-height: 1.1;
  filter: drop-shadow(7pt 7pt 5pt black);
}


.parallex_wrap #moon_3 {
  transform-origin: 11.5% 43%;
  animation: rotate 12s cubic-bezier(.3,.01,.37,.99) 2s infinite forwards;

}

.parallex_wrap #moon_4 {
  transform-origin: 11.5% 43%;
  animation: rotate 8s cubic-bezier(.3,.01,.37,.99) 2s infinite forwards;

}

@keyframes  rotate {
0%{
  transform: rotate(0deg);
}
100%{
  transform: rotate(360deg);
}
}

.cloud1{
  animation: float 6s ease-in-out infinite;
}

.cloud2{
  animation: float 10s ease-in-out infinite;
}

.cloud1_part2{
  animation: float 10s ease-in-out infinite;
}

.cloud2_part2{
  animation: float 6s ease-in-out infinite;
}

#main_header{
  animation: float2 12s ease-in-out infinite;
}

#moon_1{
  animation: float2 12s ease-in-out infinite;
}

#moon_2{
  animation: float1 6s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(+15px);
	}
	100% {
		transform: translatey(0px);
	}
}

@keyframes float2 {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-10px);
	}
	100% {
		transform: translatey(0px);
	}
}

/* -----About ----- */

.profile{
  display: flex;
  /* justify-content: center; */
  width: 100%;
  height: 100vh;
  position: relative;
  /* padding: 80px; */
  background: rgba(20, 20, 20, 1);
  overflow: hidden;
  scroll-snap-align: start;
}

.profile .profile_img_container{
  width: 50%;
  background-image: url("Imgs/Profile_Img_2.jpg");
  background-repeat:no-repeat;
  background-position: 50% 20%;
  background-size: cover;
}

.profile .profile_img_container img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  border-radius: 75px;
  /* box-shadow: -4px -4px 3px rgba(255, 255, 255,   0.1),
  10px 10px 6px rgba(5,5, 5,   0.5); */

  padding: 20px 0px;
}


.profile .profile_paragraph{
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5%;
  overflow: hidden;
}

.profile h2{
  font-family: "Roboto", sans-serif;
  color: white;
  text-align: center;
  line-height: 2;
  /* padding: 20px; */
}

.projects a:link {
  color: white;
  text-decoration: none;
}

.projects a:visited {
  color: white;
  text-decoration: none;
}

.projects a:hover {
  color: white;
  text-decoration: none;
}

.projects a:active {
  color: white;
  text-decoration: none;
}

.profile_paragraph_1{
  font-size: 1vmax;
  margin-top: auto;
  /* margin-bottom: 1.5%; */
}

.profile_paragraph_2{
  /* position: relative; */
  font-size: 1.5vmax;
  /* height: 5%; */
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  margin-bottom: 14%;
}

.profile_paragraph_2 h2 {
  position: absolute;
  background: rgba(20, 20, 20, 1);
  cursor: pointer;
  text-align: center;
}
#interactive_artist{
  z-index: 3;
}

#game_designer{
  z-index: 2;
}

#dreamer{
  z-index: 1;
}

.active{
  animation: smoke 2s linear forwards;
}

.profile_paragraph_3{
  /* height: 30%; */
  display: flex;
  /* justify-content: center; */
  align-items: center;
  margin-bottom: auto;

}

.profile_paragraph_4 {
  color: white;
  font-family: "Montserrat", sans-serif;
  text-align: justify;
  line-height: 2.0;
}

@keyframes smoke {
  0%
  {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    background: transparent;
  }

  50%{
    opacity: (1);
    pointer-events: none;
  }

  100%
  {
    opacity: 0;
    filter: blur(20px);
    transform: translateX(300px) translateY(-300px) rotate(0deg) scale(4);
  }

}

.profile li{
  padding: 30%;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 1.8vmax;
  list-style: none;
  border-radius: 100px;
  box-shadow: -2px -2px 3px rgba(255, 255, 255,   0.1),
  4px 4px 6px rgba(5,5, 5,   0.5);
  margin-top: 50%;
}

.profile a:link{
  text-decoration: none;
  color: white;
}

.profile a:visited{
  text-decoration: none;
  color: white;
}

.profile li:hover{
  text-decoration: none;
  color: gold;
  cursor: pointer;

  box-shadow: -1px -1px 3px rgba(255, 255, 255,   0.1),
  2px 2px 6px rgba(125,125, 125,   0.1),
  inset -4px -4px 10px rgba(255, 255, 255,   0.5),
  inset 4px 4px 10px rgba(0,0, 0,   0.5);

}

/* -------Skills------- */

.skills{
  font-family: Roboto, sans-serif;
  list-style: none;
  background: #333;
  background-image: url("Imgs/SkillsBg.jpg");
  background-repeat:no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;   /* was height:100vh */
  height: auto;        /* allow taller than a viewport if needed */
  scroll-snap-align: start;
  overflow-x: hidden;

}

.skills h1 {
  color: white;
  font-family: "Cubano", sans-serif;
  font-size: 2em;
  margin-bottom: 50px;
  letter-spacing: 15px;
  filter: drop-shadow(7pt 7pt 5pt black);
}

.skills h2 {
  font-size: clamp(0.9rem, 1.2vw + 0.5rem, 1.3rem);
  white-space: nowrap;
}

.skills .skills_body{
  width: clamp(800px, 45%, 1000px);
  color: white;
  background-color: rgba(75, 75, 75, 0.5);
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
  padding: 5%;
  display: flex;
  flex-flow: column;
  justify-content: start;
  align-items: center;
}

.skills_body2{
  width: 100%;
  display: flex;
  flex-flow: row;
  justify-content: center;
  gap: 60px;
}

.col_1, .col_2 { 
  flex: 1 1 0;
  min-width: 0;      /* lets flex items actually shrink on small screens */
}

.skills .skills_body li{
margin-bottom: 35px;
}

.skills_body .bar {
  width: 100%;
  margin-top: 15px;
  background: #353b48;
  display: block;
  height: 8px;
  border: 1px solid rgba( 0,0,0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 10px #DAA520;
}

.skills .bar span {
  height: 8px;
  float: left;
  background: #EEE8AA;
}

.skills .unity_bar{
  width:90%;
  animation: unity 2s;
  animation-timing-function:  ease-in-out;
}

.skills .arduino_bar {
  width: 90%;
  animation: arduino 2s;
  animation-timing-function:  ease-in-out;
}

.skills .illustrator_bar {
  width: 65%;
  animation: illustrator 2s;
  animation-timing-function:  ease-in-out;
}

.skills .html5_bar{
  width: 65%;
  animation: html 2s;
  animation-timing-function:  ease-in-out;
}

.skills .aseprite_bar{
  width: 75%;
  animation: aseprite 2s;
  animation-timing-function:  ease-in-out;
}

.skills .blender_bar{
  width: 50%;
  animation: blender 2s;
  animation-timing-function:  ease-in-out;
}

.skills .after_effects_bar{
  width: 75%;
  animation: aftereffects 2s;
  animation-timing-function:  ease-in-out;
}

.skills .swift_bar{
  width: 50%;
  animation: swift 2s;
  animation-timing-function:  ease-in-out;
}

@keyframes unity {
0%{
  width: 0%;
}

100%{
  width: 90%;
}
}

@keyframes arduino {
0%{
  width: 0%;
}

100%{
  width: 90%;
}
}

@keyframes illustrator{
0%{
  width: 0%;
}

100%{
  width: 65%;
}
}

@keyframes html {
0%{
  width: 0%;
}

100%{
  width: 65%;
}
}

@keyframes swift {
  0%{
    width: 0%;
  }
  
  100%{
    width: 50%;
  }
}

@keyframes aseprite {
  0%{
    width: 0%;
  }
  
  100%{
    width: 75%;
  }
}

@keyframes blender {
  0%{
    width: 0%;
  }
  
  100%{
    width: 50%;
  }
}

@keyframes aftereffects {
  0%{
    width: 0%;
  }
  
  100%{
    width: 75%;
  }
}


/* --------- Projects Section --------- */

.projects{
  width: 100%;
  min-height: 160vh;
  background-color:  rgba( 100,100,100, 1);
  padding: 3%;
  color: white;
  background-image: url("Imgs/ProjectsBg2.jpg");
  background-repeat:no-repeat;
  background-position: center center;
  background-size: cover;
  scroll-snap-align: start;
  overflow-x: hidden;
}

.projects h2 {
  filter: drop-shadow(7pt 7pt 5pt black);
  font-family: "Cubano", sans-serif;
  letter-spacing: 7px;
  font-size: 6vh;
  color: white;
  height: 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 2vh;
}


.projects .projects_body{
  flex: 1 1 auto;            /* fills the remaining height */
  gap: 2vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.projects .works {
   width: 100%;
   min-height: clamp(120px, 15vh, 200px);
   box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.5),
               -1px -1px 1px rgba(255, 255, 255, 0.5);
   background: transparent;
   backdrop-filter: blur(10px);
   display: flex;
   position: relative;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   font-family: "Roboto", sans-serif;
   letter-spacing: 7px;
   font-size: 2.5vh;
   border-radius: 30px;
   overflow: hidden;
   cursor: pointer;
}

.projects .panel_img{
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  transform-origin: 50% 50%;
  transform: scale(0);
  z-index: -1;
  /* opacity: 0; */
}

.vendy_img{
  object-position: center 45%;
}

.dungeonbound_img{
  object-position: center 45%;
}

.ambal_img{
  object-position: center 10%;
}

.rhythmrun_img{
  object-position: center 45%;
}

.projects h3{
  z-index: 1000;
  text-align: center;
  position: relative;
}

.projects .skills_used{
  position: absolute;
  display: flex;
  top: 5%;
  left: 0.5%;
  z-index: 1001;
}

.projects .skills_used li{
  letter-spacing: 4px;
  font-weight: 500;
  list-style: none;
  margin-left: 2%;
  border-radius: 20px;
  box-shadow: -2px -2px 3px rgba(255, 255, 255,   0.1),
  4px 4px 6px rgba(5,5, 5,   0.5);
  padding: 1% 2%;
  font-size: 0.8vmax;
  transition: 1s;
  white-space: nowrap;
}

.works:hover .panel_img{
  transform: scale(1);
  opacity: 1;
}

.works:hover li{

  color: black;

}

.works:hover .skills_used_unity{

  background-color: rgba(255, 251, 171, 0.7);

}

.works:hover .skills_used_arduino{

  background-color: rgba(184, 255, 171, 0.7);

}

.works:hover .skills_used_processing{

  background-color: rgba(171, 226, 255, 0.7);

}

.works:hover .skills_used_animation{

  background-color: rgba(255, 171, 171, 0.7);

}

.works:hover .skills_used_illustrator{

  background-color: rgba(255, 214, 171, 0.7);

}
.works:hover .skills_used_aftereffects{

  background-color: rgba(196, 171, 255, 0.7);

}

/*--------- Contact Section ----------*/

.contact{
  height: 100vh;
  background: rgba(20, 20, 20, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
}

.contact .contact_form {
  display: flex;
  flex-direction: column;
  width: 80%;
  height: 80%;
  padding: 2%;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

.contact_form input {
  margin-bottom: 2%;
}

.contact_form textarea {
  /* margin-bottom: 2%; */
}

#email_input{
  height: 7%;
  box-shadow: -2px -2px 3px rgba(255, 255, 255,   0.1),
  4px 4px 6px rgba(5,5, 5,   0.5);
}

#name_input{
  height: 7%;
  box-shadow: -2px -2px 3px rgba(255, 255, 255,   0.1),
  4px 4px 6px rgba(5,5, 5,   0.5);
}

.contact_form textarea {
  height: 40%;
  padding: 1%;
  box-shadow: -2px -2px 3px rgba(255, 255, 255,   0.1),
  4px 4px 6px rgba(5,5, 5,   0.5);

}

.contact_form button {
  background: rgba(20, 20, 20, 1);
  color: white;
  width: clamp(140px, 20%, 240px);
  height: 15%;
  padding: 1%;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  border-radius: 7vw;
  box-shadow: -2px -2px 3px rgba(255, 255, 255,   0.1),
  4px 4px 6px rgba(5,5, 5,   0.5);
  margin: auto;
}

/* mediaqueries */
@media screen and (min-width: 560px) and (max-width: 1024px) {

html{
  scroll-snap-type: none;
}

.parallex_wrap{
  height: calc(var(--vh) * 100);
}

.parallex_wrap h1 {
  font-size: 8vw;
}

.profile_paragraph_1{
  font-size: 1.4vmax;
  margin-bottom: 0.0%;
}

.profile li{
  padding: 35%;
  font-size: 2vmax;
  margin-top: 0%;
}

.profile_paragraph_2{
  font-size: 1.7vmax;
  height: auto;
  min-height: 2lh;
  width: 95%;
  margin-bottom: clamp(12px, 20%, 32px)
}

.profile_paragraph_2 h2 {
  line-height: 1.6; /* or whatever spacing you prefer */
  text-align: center;
}

.profile_paragraph_3 {
  justify-content: center;
  margin-top: 35%;
}

.profile_paragraph_4{
  font-size: 1.2vmax;
}



.skills .skills_body{
  width: 90%;
  height: 80%;
  justify-content: center;
  padding: 3%;
}

.skills h1 {
  font-size: 3.5vmax;
  margin-bottom: 4.5vh;
  letter-spacing: 15px;
  filter: drop-shadow(7pt 7pt 5pt black);
}

.skills h2 {
  font-size: clamp(0.9rem, 1.2vw + 0.5rem, 1.3rem);
  white-space: nowrap;
}

.skills_body .bar {
  width: 90%;
  margin-top: 2vh;
  height: 1.2vh;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 2vh #DAA520;
}

.skills_body2{
  width: 100%;
  height: 60%;
  display: flex;
  flex-flow: row;
  justify-content: center;
  gap: 30px;
}

.skills .bar span {
  height: 1.2vh;
}

.skills .skills_body li{
  margin-bottom: 55px;
}

.projects{
  height: auto;
}

.projects h2 {
  font-size: 4vh;
  height: 8%;
}

.projects .projects_body{
  width: 100%;
  gap: 2vh;
  justify-content: start;
}

.projects .works{
  height: 18%;
}

.projects h3 {
  font-size: 2vmax;
}

.contact_form button{
  width: clamp(120px, 50%, 200px);
  height: clamp(120px, 15%, 300px);
  padding: 1.1%;
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  border-radius: 10vw;
}

}
@media screen and (max-width: 560px) {

  /* Show hamburger, hide full nav by default */
  .hamburger { 
    display: block; 
  }

  /* Let header pack tighter on small screens */
  header { 
    padding: 8px 12px; 
  }

  header ul {
    display: none;                /* hidden by default */
    flex-direction: column;
    align-items: flex-end;        /* right-align items */
    gap: 10px;
    position: absolute;
    top: 100%;                    /* just below header bar */
    right: 12px;                  /* slightly inset from edge */
    background: transparent;      /* no background panel */
    box-shadow: none;             /* remove shadow */
    margin-top: 3%;
    margin-right: 3%;
    z-index: 9999;
  }

  header ul li {
    margin-left: 0;           /* remove the desktop left-margin */
    padding: 6px 10px;
  }

  header a {                  /* scale link text a bit on mobile */
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  }

  /* When checked → show menu */
  .nav-toggle:checked + .hamburger + ul {
    display: flex;
  }

  /* Animate burger into an “X” when open */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .parallex_wrap{
    height: auto;            /* no viewport juggling */
    min-height: 350px;       /* pick a comfy value for your art */
    z-index: 0;              /* avoid negative stacking */
  }

  .cloud1, .cloud1_part2, .cloud2, .cloud2_part2,
    #moon_1, #moon_2, #moon_3, #moon_4, #main_header {
      animation: none !important;
      transform: none !important;
      will-change: auto !important;
    }

  .profile .profile_img_container { 
    flex: 0 0 35%;
    width: auto;
  }

  .profile .profile_paragraph {
    flex: 1 1 0;               /* take the remaining space */
    width: auto;               /* drop the 65% width */
    padding-inline: 3%;
    overflow: visible;         /* don't clip the right edge */
  }

  .profile_paragraph_3 {
    justify-content: center;   /* was missing on mobile */
    width: 100%;
  }
  .profile li {
    padding: 20px 30px;        /* override the huge 30% padding */
    margin-top: 25%;
    width: max-content;        /* shrink to fit content */
  }

  .profile_paragraph_2{
    margin-bottom: 23%
  }

  .profile_paragraph_4 {
    font-size: 1.4vmax;
    line-height: 1.8;
  }

  .skills h1 { 
    white-space: nowrap; 
  }

  .skills h2 { 
    white-space: normal; 
  }

  .skills .skills_body{
    width: 90%;
    height: 80%;
  }

  .skills_body2{
    width: 100%;
    height: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    align-items: center; /* center the column */
  }

  .skills .bar span {
    display: block;     /* instead of float */
    height: 8px;        /* or your mobile 1.2vh */
    background: #EEE8AA;
  }

  .col_1, .col_2 { 
    width: 60%;
  }

  .projects {
    padding: 1.5%;
    padding-bottom: 5%;
  }

  .projects h2 {
    font-size: 2.5rem;
    height: auto;
    margin-top: 10%;
    margin-bottom: 10%;
  }

  .projects .works {

  }

  .contact_form button {
    border-radius: 14vw;
    width: clamp(120px, 50%, 260px);
    font-size: clamp(1.3rem, 3.5vw, 2.0rem);
  }

}
