/* Reset */
@font-face {
  font-family: "NeueHaasDisplayThin";
  src: url("../assets/NeueHaasDisplayThin.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

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

html,
body {
  height: 100%;
  color: #000;
  font-family: "NeueHaasDisplayThin", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  overflow: hidden;
  position: relative;
}

body {
  position: relative;
  border: 1px solid #ccc;
  margin: 30px;
  height: calc(100vh - 70px);
  background: #fff;
  overflow: hidden;
}

/* Launch screen */
.launch-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.launch-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.launch-content {
  text-align: center;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.launch-content .name-part {
  display: inline-block;
  opacity: 0;
  animation: launchFadeIn 1s ease-out forwards;
  font-weight: 600; /* Make Ken Tupal bolder */
  margin-right: 5px; /* Reduce space after Ken Tupal */
}

.launch-content .portfolio-part {
  display: inline-block;
  opacity: 0;
  animation: launchFadeIn 1.5s ease-out 0.5s forwards;
  font-weight: 300; /* Keep Portfolio at normal weight */
  margin-left: 5px; /* Reduce space before Portfolio */
}

@keyframes launchFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background layers */
.background-layers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Blurred gradient base layer */
.blur-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/blur.webp");
  background-size: cover;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

/* Noise texture overlay */
.grain-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/grain.webp");
  background-size: 200px;
  opacity: 0.15;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}

/* Animated gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  animation: blobFadeIn 1s ease-out forwards;
  /* Animation duration - customize to make faster or slower */
  animation-duration: 15s; /* Changed from 1 to 15s for faster animation (lower = faster) */
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
}

@keyframes blobFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}

/* Individual blob styles with different colors and animations */
.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 100, 100, 0.8) 0%,
    rgba(255, 100, 100, 0) 70%
  );
  top: 20%;
  left: 20%;
  animation-name: drift-1;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(100, 100, 255, 0.6) 0%,
    rgba(100, 100, 255, 0) 70%
  );
  top: 60%;
  left: 60%;
  animation-name: drift-2;
  animation-delay: 0.5s;
}

.blob-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(100, 255, 100, 0.5) 0%,
    rgba(100, 255, 100, 0) 70%
  );
  top: 40%;
  left: 70%;
  animation-name: drift-3;
  animation-delay: 1s;
}

.blob-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(255, 200, 100, 0.7) 0%,
    rgba(255, 200, 100, 0) 70%
  );
  top: 70%;
  left: 30%;
  animation-name: drift-4;
  animation-delay: 1.5s;
}

.blob-5 {
  width: 450px;
  height: 450px;
  background: radial-gradient(
    circle,
    rgba(200, 100, 255, 0.7) 0%,
    rgba(200, 100, 255, 0) 70%
  );
  top: 15%;
  left: 75%;
  animation-name: drift-5;
  animation-delay: 2s;
}

.blob-6 {
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(255, 100, 200, 0.6) 0%,
    rgba(255, 100, 200, 0) 70%
  );
  top: 80%;
  left: 75%;
  animation-name: drift-6;
  animation-delay: 2.5s;
}

/* Additional keyframe animations for new drifting motion */
@keyframes drift-5 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translate(70px, -90px) scale(1.1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-100px, 50px) scale(0.9);
    opacity: 0.6;
  }
  75% {
    transform: translate(60px, 80px) scale(1.05);
    opacity: 0.65;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
}

@keyframes drift-6 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(-90px, 70px) scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: translate(80px, -60px) scale(1.1);
    opacity: 0.5;
  }
  75% {
    transform: translate(-50px, -40px) scale(0.85);
    opacity: 0.65;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
}

/* To customize animation speed, adjust the animation-duration property in the .blob class above */
/* Lower values = faster animations, higher values = slower animations */
/* Example: 10s = very fast, 20s = medium (current), 30s = slow */

/* Keyframe animations for drifting motion */
@keyframes drift-1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(100px, 50px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translate(50px, 100px) scale(0.9);
    opacity: 0.7;
  }
  75% {
    transform: translate(-50px, 70px) scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
}

@keyframes drift-2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(-80px, -60px) scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: translate(-120px, 30px) scale(1.1);
    opacity: 0.5;
  }
  75% {
    transform: translate(40px, -30px) scale(0.85);
    opacity: 0.65;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
}

@keyframes drift-3 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(-70px, 80px) scale(1.15);
    opacity: 0.4;
  }
  50% {
    transform: translate(90px, 60px) scale(0.85);
    opacity: 0.6;
  }
  75% {
    transform: translate(60px, -90px) scale(1.05);
    opacity: 0.45;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
}

@keyframes drift-4 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translate(60px, -100px) scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: translate(100px, -50px) scale(1.1);
    opacity: 0.8;
  }
  75% {
    transform: translate(-30px, 90px) scale(0.95);
    opacity: 0.65;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    border: 1px solid #ccc;
    margin: 20px;
    height: calc(100vh - 40px);
  }

  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .container {
    padding: 20px;
  }

  .blob {
    filter: blur(20px);
  }

  .blob-1,
  .blob-2,
  .blob-3,
  .blob-4 {
    width: 300px;
    height: 300px;
  }

  nav ul {
    font-size: 0.8rem;
  }

  .home-details,
  .project-details,
  .info-details,
  .contact-details,
  .other-details {
    max-width: 200px;
    font-size: 0.75rem;
    bottom: 20px;
    right: 20px;
  }

  .outside-copyright {
    font-size: 0.6rem;
    bottom: 5px;
    left: 5px;
  }

  /* Launch screen adjustments for mobile */
  .launch-content {
    font-size: 2rem;
    padding: 0 20px;
  }

  .launch-content .name-part {
    margin-right: 3px;
  }

  .launch-content .portfolio-part {
    margin-left: 3px;
  }
}

/* Main container */
.container {
  display: flex;
  justify-content: space-between;
  height: 100%;
  padding: 40px;
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* Left side panel */
.left-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  z-index: 10;
  opacity: 0;
  animation: fadeInLeft 1s ease-out 0.5s forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.header {
  margin-bottom: 15px;
}

.title {
  font-weight: 300;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.name-part {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.separator {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.25s;
}

.portfolio-part {
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  font-weight: 300;
  font-size: 1rem;
  opacity: 0.8;
}
/* Title hover effect */
.title {
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.title:hover {
  transform: scale(1.02);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  color: #333;
}

/* Navigation */
nav {
  padding-top: 15px;
}

nav ul {
  list-style-type: none;
  font-weight: 4000;
  font-size: 0.9rem;
  line-height: 2.2;
}

nav ul li {
  position: relative;
}

nav ul li {
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

nav ul li.active {
  /* transform: translateX(5px); - Removed slide animation */
}

nav ul li a {
  color: #000;
  text-decoration: none;
}

/* nav ul li.active::before {
  content: "●";
  position: absolute;
  left: -15px;
  color: #000;
} */

nav ul li.active::before {
  content: "●";
  position: absolute;
  left: -15px;
  color: #000;
}
/* Navigation link hover effect */
nav ul li a:hover {
  color: #666;
  transition: color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  /* transform: translateX(5px); - Removed slide animation */
  display: inline-block;
}

/* Navigation link active/clicked effect */
nav ul li a:active {
  color: #333;
  /* transform: translateX(8px); - Removed animation */
  /* transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); - Removed animation */
}

/* Navigation link clicked effect */
nav ul li a.clicked {
  color: #333;
  /* transform: translateX(8px); - Removed animation */
  /* transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); - Removed animation */
}

nav ul li a {
  /* transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); - Removed animation */
}

/* Copyright */
.copyright {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}

.copyright:hover {
  opacity: 0.8;
}

/* Right side panel */
.right-panel {
  max-width: 220px;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: right;
  z-index: 10;
  align-self: flex-end;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInRight 1s ease-out 0.5s forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.right-panel p {
  margin: 0;
}

/* Home details section */
.home-details {
  position: absolute;
  bottom: 40px;
  right: 40px;
  max-width: 300px;
  font-weight: 400;
  /* Smooth transition for content sections */
  .home-details,
  .project-details,
  .info-details,
  .contact-details,
  .other-details {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .home-details.active,
  .project-details.active,
  .info-details.active,
  .contact-details.active,
  .other-details.active {
    opacity: 1;
  }
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 10;
  display: none;
  text-align: right;
}

.home-details.active {
  display: block;
  animation: popupFadeIn 0.5s ease-out forwards;
}

/* Project details section */
.project-details {
  position: absolute;
  bottom: 40px;
  right: 40px;
  max-width: 300px;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 10;
  display: none;
  text-align: right;
}

.project-details.active {
  display: block;
  animation: popupFadeIn 0.5s ease-out forwards;
}

/* Popup animation for project details */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Info details section */
.info-details {
  position: absolute;
  bottom: 40px;
  right: 40px;
  max-width: 300px;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 10;
  display: none;
  text-align: right;
}

.info-details.active {
  display: block;
  animation: popupFadeIn 0.5s ease-out forwards;
}

/* Contact details section */
.contact-details {
  position: absolute;
  bottom: 40px;
  right: 40px;
  max-width: 300px;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 10;
  display: none;
  text-align: right;
}

.contact-details.active {
  display: block;
  animation: popupFadeIn 0.5s ease-out forwards;
}

/* Other details section */
.other-details {
  position: absolute;
  bottom: 40px;
  right: 40px;
  /* Content section hover effects */
  .home-details,
  .project-details,
  .info-details,
  .contact-details,
  .other-details {
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .home-details:hover,
  .project-details:hover,
  .info-details:hover,
  .contact-details:hover,
  .other-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 5px;
  }
  max-width: 300px;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 10;
  display: none;
  text-align: right;
}

.other-details.active {
  display: block;
}

/* Outside copyright */
.outside-copyright {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.75rem;
  opacity: 0.6;
  z-index: 5;
}

/* Project listings styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.project-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.project-image {
  height: 180px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholder-image::before {
  content: "Project Image";
  color: #999;
  font-size: 14px;
  font-weight: 300;
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 15px 0;
  color: #333;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 300;
}

/* Responsive adjustments for project listings */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
  }
  .container {
    padding: 20px; /* Add this line - reduces from 40px to 20px */
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.85rem;
  }
}
