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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: black;
  color: #e7e7e7;
  min-height: 100vh;
  max-width: 100vw;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  border-radius: 1em;
  width: 60%;
  margin: 0 auto;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(65, 65, 65, 0.334); /* adjust color and opacity as needed */
  border-radius: 1em;
  filter: blur(10px);
  z-index: -1;
  backdrop-filter: blur(2px);
}

nav ul {
  display: flex;
  gap: 4rem;
  flex-direction: row;
  list-style: none;
  align-items: center;
}

nav ul li a {
  color: rgb(100, 100, 100);
  text-decoration: none;
}

nav ul li a:hover {
  color: #03ade1c2;
}

.left-header {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.left-header a {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  line-height: 0.9em;
  color: white;
}

.left-header a span {
  color: #03ade1c2;
}

.green-dot {
  width: 7px;
  height: 7px;
  background-image: linear-gradient(
    45deg,
    rgba(0, 255, 0, 1) 20%,
    rgb(0, 113, 0) 100%
  );
  border-radius: 50%;
  display: inline-block;
}

.right-header {
  position: relative;
  display: flex;
  gap: 0.7rem;
  flex-direction: row;
  align-items: center;
  border-radius: 2em;
  padding: 0.4rem 1rem;
  background-color: rgba(58, 58, 58, 0.8);
  box-shadow: 0 0 20px rgba(130, 130, 130, 0.3);
  isolation: isolate;
  overflow: hidden;
}

.right-header::before,
.right-header::after {
  content: "";
  position: absolute;
}
.right-header::before {
  width: 200%;
  height: 200%;
  background-image: conic-gradient(
    transparent 0deg,
    transparent 60deg,
    rgba(255, 255, 255, 1) 60deg,
    transparent 120deg,
    transparent 180deg,
    transparent 240deg
  );
  inset: -50%;
  z-index: -2;
  animation: border-animation 4s linear infinite;
}
@keyframes border-animation {
  to {
    transform: rotate(-360deg);
  }
}

.container-mobile {
  display: none;
  margin-top: 5em;
}

.container-mobile img {
  width: 100vw; /* Set the width to the full width of the viewport */
  height: auto; /* Maintain the aspect ratio */
  object-fit: cover; /* Ensure the image scales beautifully */
}

.right-header::after {
  inset: 1px;
  background-color: rgba(58, 58, 58, 1);
  border-radius: calc(2em - 4px);
  transition: all 0.3s ease;
  z-index: -1;
}

/* Homepage */
.container {
  position: relative; /* Change from absolute to relative */
  width: 140%; /* Make it wider than the viewport */
  margin-left: -20%; /* Push it left to center the wider content */
  height: 100vh; /* Set a specific height */
  overflow: hidden; /* Hide overflow content */
  z-index: -99;
  margin-bottom: 2rem; /* Add space below for next elements */
  padding-top: 80px; /* Add padding to account for fixed header */
}

/* For the spline viewer inside */
.container spline-viewer {
  width: 100%;
  height: 100%;
}

/* Skill Section */
.skills-section {
  padding: 4rem 2rem;
  text-align: center;
  z-index: 1;
}

.skills-section h1 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #e7e7e7;
}

.skills-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.2rem;
}

.skills-line {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 0.2em;
}

.skill-card p {
  font-weight: 400;
  font-size: 0.9rem;
}
/* Base skill card styling */
.skill-card {
  border-radius: 1em;
  padding: 0em 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  z-index: 1;
}

/* Color 1: Purple */
.skill-card.color1 {
  color: rgb(133, 90, 176);
  background-color: rgba(133, 90, 176, 0.12);
}

.skill-card.color1:hover {
  background-color: rgba(157, 0, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(157, 0, 255, 0.4);
}

/* Color 2: Orange */
.skill-card.color2 {
  color: rgb(205, 117, 35);
  background-color: rgba(205, 117, 35, 0.12);
}

.skill-card.color2:hover {
  background-color: rgba(255, 157, 0, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 157, 0, 0.4);
}

/* Color 3: Green */
.skill-card.color3 {
  color: rgb(48, 113, 66);
  background-color: rgba(48, 113, 66, 0.12);
}

.skill-card.color3:hover {
  background-color: rgba(0, 255, 191, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 255, 191, 0.4);
}

/* Color 4: Blue */
.skill-card.color4 {
  color: rgb(51, 119, 203, 66);
  background-color: rgba(51, 119, 203, 0.12);
}

.skill-card.color4:hover {
  background-color: rgba(40, 95, 161, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(40, 95, 161, 0.4);
}

/* Blob */

.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(97, 0, 158, 0.4) 0%,
    rgba(41, 121, 255, 0.4) 50%,
    rgba(44, 90, 72, 0.4) 100%
  );
  border-radius: 50%;
  filter: blur(30px);
  animation: float 10s ease-in-out infinite;
  z-index: -2;
  left: 40%; /* Center horizontally */
  transform: translateX(-50%); /* Ensure perfect centering */
  top: calc(100vh + 200px); /* Position it after the first viewport height plus some distance */
  margin-top: -150px; /* Pull it up a bit to overlap with skills section */
}

.blob::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  width: 150px;
  height: 150px;
  background: linear-gradient(
    45deg,
    rgba(205, 117, 35, 0.4) 0%,
    rgba(255, 41, 112, 0.4) 100%
  );
  border-radius: 50%;
  filter: blur(20px);
  mix-blend-mode: screen;
}

/* Second blob - behind projects */
.blob.blob2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(
    225deg,
    rgba(51, 119, 203, 0.4) 0%,
    rgba(133, 90, 176, 0.4) 50%,
    rgba(205, 117, 35, 0.4) 100%
  );
  border-radius: 50%;
  filter: blur(40px);
  animation: float 12s ease-in-out infinite reverse;
  z-index: -2;
  right: 20%; /* Position from right */
  left: auto; /* Reset left from previous blob */
  transform: none; /* Reset transform from previous blob */
  top: calc(200vh - 100px); /* Position it at approximately the projects section */
}

.blob.blob2::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 40%;
  width: 200px;
  height: 200px;
  background: linear-gradient(
    135deg,
    rgba(48, 113, 66, 0.4) 0%,
    rgba(41, 121, 255, 0.4) 100%
  );
  border-radius: 50%;
  filter: blur(25px);
  mix-blend-mode: screen;
}

/* Third blob - alongside the second one */
.blob.blob3 {
  position: absolute;
  width: 350px;
  height: 350px;
  background: linear-gradient(
    315deg,
    rgba(205, 117, 35, 0.4) 0%,
    rgba(48, 113, 66, 0.4) 50%,
    rgba(133, 90, 176, 0.4) 100%
  );
  border-radius: 50%;
  filter: blur(35px);
  animation: float2 15s ease-in-out infinite;
  z-index: -2;
  left: 15%; /* Position from left */
  top: calc(200vh - 150px); /* Position it similar to blob2 but slightly higher */
}

.blob.blob3::after {
  content: "";
  position: absolute;
  top: 35%;
  left: 25%;
  width: 180px;
  height: 180px;
  background: linear-gradient(
    90deg,
    rgba(41, 121, 255, 0.3) 0%,
    rgba(157, 0, 255, 0.3) 100%
  );
  border-radius: 50%;
  filter: blur(25px);
  mix-blend-mode: screen;
}

/* Create a slightly different animation pattern for variety */
@keyframes float2 {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  33% {
    transform: translate(-20px, 30px) rotate(-8deg);
  }
  66% {
    transform: translate(25px, -15px) rotate(8deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}

@keyframes float {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  33% {
    transform: translate(30px, -20px) rotate(10deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}

/* Fourth blob - for the About page */
.blob.blob4 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.4) 0%,
    rgba(0, 200, 255, 0.4) 50%,
    rgba(255, 255, 0, 0.4) 100%
  );
  border-radius: 50%;
  filter: blur(30px);
  animation: float3 12s ease-in-out infinite;
  z-index: -1; /* Ensure it is behind other elements but visible */
  left: 10%; /* Center horizontally */
  transform: translateX(-70%); /* Center the blob */
  top: 50%; /* Adjust this value to position it vertically */
}

.blob.blob4::after {
  content: "";
  position: absolute;
  top: 25%;
  left: 25%;
  width: 150px;
  height: 150px;
  background: linear-gradient(
    45deg,
    rgba(255, 100, 0, 0.4) 0%,
    rgba(0, 255, 200, 0.4) 100%
  );
  border-radius: 50%;
  filter: blur(20px);
  mix-blend-mode: screen;
}

/* Create a slightly different animation pattern for variety */
@keyframes float3 {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  33% {
    transform: translate(-20px, 30px) rotate(-8deg);
  }
  66% {
    transform: translate(25px, -15px) rotate(8deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}


/* Projects Section */
.projects {
  padding: 4rem 2rem;
  text-align: center;
  z-index: 1;
}

.project-column {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.projects-container {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 0.8em;
  z-index: 1;
}
.project-card {
  align-items: stretch;
  background-attachment: scroll;
  background-clip: border-box;
  backdrop-filter: blur(20px);
  background-image: none;
  background-origin: padding-box;
  background-position-x: 0%;
  background-position-y: 0%;
  background-repeat: repeat;
  background-size: auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px,
              rgba(0, 0, 0, 0) 0px 0px 0px 0px,
              rgba(255, 255, 255, 0.145) 0px 0px 0px 1px;
  box-sizing: border-box;
  color: rgb(237, 237, 237);
  color-scheme: dark;
  display: flex;
  flex-basis: auto;
  flex-direction: column;
  flex-grow: 0;
  flex-shrink: 1;
  font-family: Geist, "Geist Fallback", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-feature-settings: "rlig", "calt" 0;
  font-size: 14px;
  font-synthesis-small-caps: auto;
  font-synthesis-style: auto;
  font-synthesis-weight: none;
  justify-content: flex-start;
  line-height: 24px;
  position: relative;
  text-rendering: optimizelegibility;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
  padding: 2em;
  -webkit-font-smoothing: antialiased;
  max-width: 20em;
  gap: 0.8em;
}

.projects h1 {
  font-size: 2.5rem;
  color: #e7e7e7;
}

.projects > p {
  margin-bottom: 2rem;
  color: #5e5e5e;
}

.projects > p a {
  color: #9a99f6;
  text-decoration: none;
  transition: color 0.2s;
}

/* Footer */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  border-radius: 1em;
  width: 60%;
  margin: 0 auto;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(65, 65, 65, 0.334); /* adjust color and opacity as needed */
  border-radius: 1em;
  filter: blur(10px);
  z-index: -1;
  backdrop-filter: blur(2px);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem 1.5rem;
  background-image: linear-gradient(
    135deg,
    rgba(97, 0, 158, 0.1) 0%,
    rgba(41, 121, 255, 0.1) 50%,
    rgba(44, 90, 72, 0.1) 100%
  );
  align-self: flex-end;
}

.footer::before {
  content: "";
  filter: blur(10px);
  z-index: -1;
  backdrop-filter: blur(2px);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  line-height: 0.9em;
}

.footer-name span {
  color: #03ade1c2;
}

footer p a {
  color: #9a99f6;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #999;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: #e7e7e7;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #03ade1c2;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #e7e7e7;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #03ade1c2;
}

.footer-bottom {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-nav {
    justify-content: center;
  }
}

/* About Page */

.about-me-overlay {
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  margin: 7em auto;
  margin-bottom: 0;
}

.btn-submit2 {
  padding: 0.7em 2em;
  border-radius: 50px;
  background-color: rgb(233, 233, 233);
  color: black;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  max-width: 10em;
  max-height: 3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.about-me-overlay > p {
  margin-bottom: .8em;
}

.about-me-details {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

/* Contact Page */
.contact-form-section {
  display: flex;
  width: 20em;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 10em;
  margin-left: 10em;
  margin-bottom: 5em;
}


.tag-box {
  position: relative;
  width: 10em;
  height: 1.5em;
  border-radius: 50px;
  background: linear-gradient(
    to right,
    rgba(0, 255, 179, 0.5) 0%,
    rgba(0, 179, 255, 0.5) 30%,
    rgba(0, 179, 255, 0.5) 60%,
    rgba(0, 255, 179, 0.5) 100%
  );
  align-items: center;
  justify-content: center;
  text-align: center;
  display: flex;
  background-size: 200%;
  animation: border-animation2 2.5s linear infinite;
  box-shadow: 0 0 15px rgba(157, 157, 157, 0.5);
}

@keyframes border-animation2 {
  to {
    background-position: 200%;
  }
}

.tag {
  font-size: 0.8rem;
  position: absolute;
  inset: 2px;
  background-color: black;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s ease;
}

.tag:hover {
  color: #9a99f6;
}

.contact-form-section h1 {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 4px;
  color: #e7e7e7;
}

.contact-form-section > p {
  margin-bottom: 2rem;
  color: #767676;
}

.btn-submit {
  padding: 0.7em 2em;
  border-radius: 50px;
  background-color: rgb(233, 233, 233);
  color: black;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  max-width: 10em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover, .btn-submit2:hover {
  background-color: #dadadac2;
}

input, textarea {
  width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  padding: 0.7em 1em;
  margin-bottom: 1.5rem;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(106, 106, 106, 0.1);
  backdrop-filter: blur(10px);
  color: #e7e7e7;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  resize: none;
}

input:focus, textarea:focus {
  border-bottom: 2px solid #03ade1c2;
  background: rgba(106, 106, 106, 0.2);
  box-shadow: 0px 4px 15px rgba(3, 173, 225, 0.5);
}

form {
  display: flex;
  flex-direction: column;
  max-width: 20em;
}

.containerContact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place it behind other elements */
  overflow: hidden; /* Prevent overflow */
}

.containerContact spline-viewer {
  width: 100%;
  height: 100%;
}

.email {
  font-size: 0.9rem;
  color: #767676;
  margin-top: 1rem;
  text-align: center;
}
#logo {
  display: none;
}

@media (max-width: 430px) {
  .projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    justify-content: center;
  }
  .skills-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .skills-line {
    display: flex;
    flex-direction: column;
    width: 100vw;
    align-items: center;
  }
  header.header {
    width: 100%;
  }
  .disappear {
    display: none;
  }
  .right-header {
    display: none;
  }

  .container {
    display:none; /* Reset to default positioning */
  }

  .container-mobile {
    display:inline-block;
    
  }

  .blob, .blob2, .blob3, .blob4 {
    display: none;
  }

  .containerContact {
    display: none;
  }

  .containerContact spline-viewer {
    display: none;
  }
  .contact-form-section {
    position: inherit;
    margin: 2em auto;
    margin-top: 7em;
  }

  form button {
    margin: 1em auto;
    scale: 1.2;
  }

  html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Ensure the body and html take up the full height of the viewport */
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  
  body {
    display: flex;
    flex-direction: column;
  }
  
  .containerContact {
    flex: 1; /* Allow the main content to take up the remaining space */
  }
  
  footer.footer {
    position: relative;
    width: 100%;
    bottom: 0;
  }

  .about-me-details {
    flex-direction: column;
    align-items: center;
    gap: 3em;
  }
  .about-me-overlay {
    width: 100%;
    margin: 7em auto;
    margin-bottom: 0;
  }
  
}