/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: #fff;
    mix-blend-mode: difference;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    z-index: 100001;
    border: none;
}

.custom-cursor.cursor-hover {
    width: 40px;
    height: 40px;
    background: #fff;
}

/* Hide default cursor */
* {
    cursor: none !important;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.8;
  min-height: 100vh;
  background: #000 !important; /* Solid black background */
  position: relative;
  overflow-x: hidden;
}

/* Remove the gradient spotlight */
body::before {
  content: none;
}

body::after {
  content: none;
}

/* Header */
.header {
  text-align: center;
  padding: 30px;
  margin: 50px;
}

.header h1 {
  font-size: 3em;
  font-weight: 550;
  background: linear-gradient(45deg, #ff00ff, #ff83c3, #ffbb4f, #ffff00); /* Gradient colors */
  -webkit-background-clip: text; /* Clips the gradient to the text */
  color: transparent; /* Make the text transparent so the gradient shows */
  transition: color 0.5s ease; /* Smooth transition for color change */
}

/* Navigation Menu */
.menu {
  background-color: #000000;
  text-align: center;
  padding: 20px 0;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3em;
  padding: 10px 20px;
  border: 1px solid #ffffff;
  border-radius: 10px;
  display: inline-block; /* Enable scaling on hover */
  transition: transform 0.2s ease-in-out, background-color 0.3s ease-in-out; /* Moved here for consistency */
}

.menu a:hover {
  transform: scale(1.1); /* Slightly enlarge the button */
  box-shadow: 0 0 20px 5px #ff6eb6;
  background-color: #ffffff; /* Change background */
  color: #000000;
}

/* Main Content */
.main-content {
  display: flex;
  justify-content: center;
  padding: 50px;
  gap: 5px;
  flex-wrap: wrap;
}
.main-content img {
  width: 10%; /* Make the image 30% of the width of its parent container */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Prevent inline display issues */
  margin: 0 10px; /* Center the image horizontally */
}

.main-content-b {
  display: flex;
  justify-content: center;
  padding: 50px;
  gap: 5px;
  flex-wrap: wrap;
}
.main-content-b img {
  width: 40%; /* Make the image 30% of the width of its parent container */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Prevent inline display issues */
  margin: 0 10px; /* Center the image horizontally */
  object-fit: contain;
}


/* Optional: If you want the 'responsive' and 'center' classes to do something */
.responsive {
  max-width: 100%; /* Ensure the image is responsive and doesn't overflow */
  height: auto; /* Maintain aspect ratio */
}

.center {
  display: block; /* Make sure the image is displayed as a block element */
  margin-left: auto;
  margin-right: auto; /* Center the image horizontally */
}

.intro, .about {
  background-color: #000000;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.intro h3, .about h3 {
  font-size: 2em;
  margin-bottom: 10px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  margin-top: 20px;
}

.invert-cursor {
  display: none;
}

.projects-showcase {
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 6vw;
  justify-content: center;
  align-items: center;
  margin: 8vw 0 0 0;
}

.project-row {
  width: 90vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 350px;
  position: relative;
}

.project-info {
  flex: 1;
  text-align: left;
  z-index: 2;
}

.project-info h2 {
  font-size: 2.5vw;
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}

.project-sub {
  font-size: 1vw;
  color: #bdbdbd;
  margin-top: 0.5em;
  display: block;
}

.project-image-wrapper {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: relative;
}

.project-image {
  width: 175px;      /* 50% of 350px */
  max-width: 20vw;   /* 50% of 40vw */
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  background: transparent;
  position: relative;
  overflow: hidden;
  transform: none;
}

.project-image-wrapper:hover .project-image {
  transform: scale(1.04) rotate(2deg);
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.35) 10%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.0) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-image-wrapper:hover .project-image::after {
  opacity: 1;
}

.project-image-wrapper:hover .self-driving-img {
  transform: scale(2) rotate(0deg);
}

.rotate1 {
  transform: rotate(-12deg);
}
.rotate2 {
  transform: rotate(12deg);
}

.project-meta {
  flex: 1;
  text-align: right;
  font-size: 1vw;
  color: #ccc;
  z-index: 2;
}

@media (max-width: 900px) {
  .projects-showcase {
    gap: 3vw;
  }
  .project-row {
    flex-direction: column;
    align-items: flex-start;
    min-height: unset;
    gap: 2vw;
  }
  .project-meta {
    text-align: left;
    font-size: 2vw;
  }
  .project-image {
    width: 80vw;
    max-width: 90vw;
  }
}

.self-driving-img {
  transform: rotate(-12deg) scale(1.8);
}

.half-size {
  width: 20% !important;
  max-width: 100px !important;
  transform: none !important;
}

.custom-size {
  width: 60% !important;
  max-width: 250px !important;
  transform: none !important;
}

.google-image {
  width: 250px !important;
  max-width: 25vw !important;
}
