@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Hubballi&family=Space+Mono&display=swap');

:root {
  --outline-color: #c550dc;
}

/* Basic page styling */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: rgb(0, 0, 0);
  font-family: 'Comfortaa', 'Hubballi', 'Space-Mono', sans-serif;
  scroll-behavior: smooth;
  overflow: hidden;
}

/* Stars background */
.stars {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: transform 1s ease, filter 1s ease;
}

/* Content layer */

.sections {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.section {
  width: 100%;
  height: 100vh;
  position: relative;

  display: flex;
  flex-direction: column;

  font-family: 'Comfortaa', 'Hubballi', 'Space Mono', sans-serif;
}

.scrollable {
  flex: 1;
  height: 100%;
  overflow-y: auto;
}

.header{
  color: rgb(255, 255, 255);
  font-family: 'Comfortaa',  sans-serif;
  font-size: 2.5em;
  text-shadow: 0px 0px 2px var(--outline-color);
  text-align: center;
}

/* Home section */
.home-content {
  position: relative;
  text-align: center;
  color: white;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 30vh;
}

.home-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}

.home-content p {
  font-size: 1.2rem;
  margin-bottom: 2em;
}

.home-nav button {
  background: pink;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 0.8em 1.5em;
  margin: 0 0.5em;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.home-nav button:hover {
  transform: scale(1.1);
}

.gradient-name {
  background: linear-gradient(
    -45deg,
    rgb(255, 0, 174), /* deep blue */
    rgb(219, 153, 205), /* cyan */
    #fff, /* white */
    rgb(0, 119, 255),
    skyblue /* blue again to loop */
  );
  background-size: 400% 400%; /* large so it can move */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.back-button {
  position: relative;
  z-index: 900;
  background-color: rgba(0,0,0,0);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  margin: 0 0.5em;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, visibility 3s ease 0.8s, max-height 2s ease, opacity 3s ease 0.8s;
  
  opacity: 0;
  visibility: hidden;
  max-height: 0;
}

.back-button:hover {
  transform: scale(1.1);
}

.back-button i {
  color: white;
  animation: float-ui 10s ease-in-out infinite alternate;
  margin-top: 10px;
}

.back-button.show {
  opacity: 1;
  visibility: visible;
  max-height: 100px; 
}


/* Single star style */
.star {
  position: absolute;
  background: rgb(237, 187, 216);
  border-radius: 50%;
  opacity: 0.8;
  animation: floatDown linear infinite;
}
.star-init {
  position: absolute;
  background: rgb(237, 187, 216);
  border-radius: 50%;
  opacity: 0.8;
  animation: floatDown linear 1;
}

/* Animation for stars */
@keyframes floatDown {
  from {
    transform: translateY(-10vh);
  }
  to {
    transform: translateY(110vh);
  }
}

/* Props floating in foreground */
.prop {
  position: fixed;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: transform 0.75s ease;
}

.prop-rotate {
  width: 100%;
  animation: rotate 480s linear infinite;
}

.prop-rotate-alt {
  width: 100%;
  animation: rotate-alt 700s linear infinite;
}

.prop-float {
  width: 100%;
  animation: float 12s ease-in-out infinite alternate;
}

.prop img {
  width: 100%;
  display: block;
}

.worrel {
  top: 60%;
  left: 25%;
  width: 240px;
}

.spaceship {
  top: 140%;
  left: 90%;
  width: 240px; 
  filter: blur(0.75px);
}

.pink-star {
  top: 25%;
  left: 90%;
  width: 50px;
  filter: blur(0.5px);
}

.blue-star {
  top: 20%;
  left: 5%;
  width: 50px;
  filter: blur(1px);
}

.yellow-star {
  top: 95%;
  left: 55%;
  width: 50px;
}

.planet {
  top: 120%;
  left: 10%;
  width: 160px;
  filter: blur(2px);
}

@keyframes float-ui {
  0% { transform: translateY(0px); }
  100% { transform: translateY(10px); }
}

@keyframes float {
  0% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
  100% {
    transform: translate(-50%, -50%) translateY(10px);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate-alt {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Bounce keyframes */
@keyframes bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.1); }
  50%  { transform: scale(0.9); }
  70%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* When bounce class is added */
.worrel-inner.bounce {
  animation: bounce 0.2s ease;
}


/* About me / contact section */
.about-wrapper {
  display: flex;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: 50px auto;
  flex-wrap: wrap;
}

.portrait-container {
  flex: 0 0 200px;
  position: relative;
  animation: float-portrait 6s ease-in-out alternate infinite;
}

@keyframes float-portrait {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.portrait {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(174, 231, 255, 0.5);
}

.about-content {
  flex: 1 1 600px;
  color: white;
  max-width: 500px;
}

.contact-icons {
  width: 100%;

  display: flex;
  flex-direction: row;
  justify-content: center;

  color: white;
  gap: 30px;
}

.contact-icons a {
  text-decoration: none;
  transition: transform 0.2s ease;
}

.contact-icons a:link, a:visited {
  color: white;
}

.contact-icons a:hover {
  transform: scale(1.1);
}

/* Projects */

.project-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.project {
  display: flex;
  flex-direction: row;
  width: 700px;

  color: white;
  background-color: rgb(38, 38, 38);

  margin: 10px auto;


  border-radius: 25px;

  text-decoration: none;
}
.project:hover {
  cursor: pointer;
}

.project:link,
.project:visited {
  color: white; 
}

.project h3 {
  font-size: 1.7em;
  padding: 10px 0px;
  margin-top: 10px;
  margin-bottom: 0px;
}

.project-image {
  display: block;
  width: 300px;
  height: 250px;
}

.left {
  padding-right: 20px;
  border-radius: 25px 0px 0px 25px;
}

.right {
  padding-left: 20px;
  border-radius: 0px 25px 25px 0px;
}

.project.pleft {
  flex-direction: row;
}

.project.pright {
  flex-direction: row-reverse;
}

.project-description {
  display: flex;
  flex-direction: column;
}

.project p {
  line-height: 1.5;
}

.project-skills {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

/* Should be pill shaped */
.project-skills p {
  color: black;
  background-color: pink;
  font-weight: bold;

  margin: 0px 5px;
  padding: 5px 10px;

  border-radius: 15px;

  transition: transform 0.2s ease;
}

.project-skills p:hover {
  transform: scale(1.1);
}

/* Other skills section of projects */
.skills {
  margin: 50px auto;
  width: 700px;
  text-align: center;
  color: white;
  background-color: rgb(38, 38, 38);
  border-radius: 25px;
}

.skills-header {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.skill-pill {
  background: pink;
  color: black;
  font-weight: bold;
  padding: 5px 10px;
  margin-bottom: 20px;
  border-radius: 20px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.skill-pill:hover {
  transform: scale(1.1);
}



/* Custom Scrollbar */
/* width */
::-webkit-scrollbar {
  width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #323232;
  border-radius: 15px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 15px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #dfdfdf;
}

/* for hiding the scrollbar */
/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scroll::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scroll {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Footer */
.site-footer {
  position: absolute;
  bottom: 5px;
  text-align: center;
  color: white;
  font-size: 0.8rem;
  padding: 20px;
  opacity: 0.4;
}

/* Art section */
.art-subheader {
  color: white;
  text-align: center;
  font-size: 1.5em;
  margin-top: 30px;
}

.art-grid {
  column-width: 300px;
  column-gap: 12px;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.art-grid a {
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
}

.art-grid img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.art-footer {
  text-align: center;
  color: white;
  font-size: 1.2em;
  margin: 40px 0;
}

.art-footer a {
  color: pink;
  text-decoration: underline;
}

/* Lightbox overlay */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
}

/* Image in the lightbox */
.lightbox-content {
  display: block;
  margin: 5% auto;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: pink;
}

.lightbox-prev, .lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 20px;
  color: white;
  font-weight: bold;
  font-size: 50px;
  user-select: none;
  transform: translateY(-50%);
  transition: color 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
  color: pink;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}


/* Project tag filters */

.tags {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
  width: 100%;
}

.filter-btn {
  background: grey;
  color: rgb(0, 0, 0);
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 0.8em 1em;
  margin: 0 0.5em;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.filter-btn:hover {
  transform: scale(1.1);
}

/* Art filters */
.art-filter-btn {
  background: grey;
  color: rgb(0, 0, 0);
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 0.8em 1em;
  margin: 0 0.5em;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.art-filter-btn:hover {
  transform: scale(1.1);
}