* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('1x/circle\ red.png'), auto;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

  body {
    background-color: black;
    background-image: url('gif\ bg.gif');
    background-attachment: fixed;
    background-size: cover;
}

@media (max-width: 768px) {
  body {
   background-image: url(gif\ bg\ mobile.gif);
   background-position: center;
  }
}

.hover-message {
  display: block;
}

@media (max-width: 768px) {
  .hover-message{
    display: none;
  }
}

.logo {
  cursor:url('SVG/cursor\ flower.svg'), auto;
  position: fixed;
  top: 10px;
  left: 10px;
  width: 40px;
  height: auto;
  z-index: 20;
}

.jakarta {
  font-family: 'Space mono', 'space grotesk', monospace;
  font-size: 8pt;
  color: whitesmoke;
  mix-blend-mode: difference;
  position: fixed;
  top: 10pt;
  left: 30vw;
  z-index: 10;
}

/*-------------------------------------------- Menu container styling ------------------------------------------*/

.menu-container {
  max-width: 100%;
  mix-blend-mode: difference;
  font-family: 'Space mono', 'space grotesk', monospace;
  font-weight: 400;
  color: whitesmoke;
  position: fixed;
  z-index: 10;
  top: 0;
  right: 10px;
  display: inline-block;
}

.menu:hover,
.menu-container:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.dropdown-content {
  text-align: right;
  position: fixed;
  top: 35px;
  right: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  list-style: none;
  visibility: hidden;
  background-color: transparent;
}

.menu {
  cursor: url('SVG/cursor\ flower.svg'), auto;
  font-size: 18px;
  padding: 10px;
  transition: color 0.3s;
}

.menu:hover {
  color: red;
}

/* Cascading delay for dropdown items */
.dropdown-content li {
  margin: 5px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content li:nth-child(1) {
  transition-delay: 0.1s;
}

.dropdown-content li:nth-child(2) {
  transition-delay: 0.2s;
}

.dropdown-content li:nth-child(3) {
  transition-delay: 0.3s;
}

/* Show items with hover */
.menu-container:hover .dropdown-content li {
  opacity: 1;
  transform: translateY(0);
}

/* Add cascading out effect when hover ends */
.menu-container:not(:hover) .dropdown-content li {
  opacity: 0;
  transform: translateY(-10px);
}

/* Links inside dropdown */
.dropdown-content a {
  position: relative;
  right: 10px;
  color: white;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.dropdown-content a:hover {
  color: red;
}

@media (max-width: 768px) {
  /* Only activate click-based toggle on mobile */
  .menu-container:hover .dropdown-content {
      opacity: 0;
      transform: translateY(-10px);
      visibility: hidden;
  }
}


/* Default Dropdown Styles */
.dropdown-content {
  text-align: right;
  position: fixed;
  top: 35px;
  right: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  list-style: none;
  visibility: hidden;
  background-color: transparent;
}

/* Show dropdown content on hover for desktop */
.menu-container:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  /* Disable hover dropdown on mobile */
  .menu-container:hover .dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
  }

  /* Show dropdown only when .open class is added */
  .menu-container.open .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

/* ---------------------------------------CURSOR---------------- */
.cursor {
  position: fixed;
  width: 25vw;
  height: 25vw;
  background-color: rgb(150, 0, 0);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.4s ease-out, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
  mix-blend-mode: color;
}

.cursor.fast {
  width: 20vw;
  height: 20vw;
  border-radius: 50%;
}

/*----------------------------------------------------------- Hero Section -------------------------------------------------------*/
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  font-family: 'space mono', monospace;
}

.motion-text {
  overflow: hidden;
  z-index: 10;
  font-size: 50vh;
  color: whitesmoke;
  position: absolute;
  top: 10vh;
  white-space: nowrap;
  transform: translateX(100vw);
}

@media (max-width: 768px) {
  .motion-text{
    top:30vh;
    font-size:50vw;
    text-align: center;
    align-items: center;
  }

  }
.hover-message {
  z-index: -1;
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border: 2px solid whitesmoke;
  border-radius: 30px;
  color: whitesmoke;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
}

.scroll-text {
  position: absolute;
  text-align: center;
  bottom: 10vh;
  left: 50%;
  padding: 10px 20px;
  border: 2px solid whitesmoke;
  transform: translateX(-50%);
  border-radius: 30px;
  color: whitesmoke;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
}


/* -----------------------------------------------------------About Me Section---------------------------------------- */
.about-section {
  display: flex;
  transform:translate(10%,-50%);
  justify-content: center;
  align-items: center;
  padding: 50px; /* Adds padding around the content */
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 1));
  backdrop-filter: blur(30px);
  background-size: 30px;
  border-radius: 50px;
  width: 80vw; /* Makes the background span full width */
  min-height: 50vh; /* Ensures it covers the full viewport height */
}

.about-content {
  width: 90%;
  max-width: 80vw;
  margin: 0 auto;
  text-align: center;
  color: whitesmoke;
  padding: 20px; /* Add padding around content */
  border-radius: 10px; /* Optional: make the box round */
}

.hello-image {
  display: block; /* Ensures the element behaves as a block for centering */
  margin: 0 auto; /* Centers the image horizontally */
  max-width: 100%; /* Limit the max width for responsiveness */
  height: auto; /* Keep the height proportional */
  padding: 20px;
}

.software-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* Add space between each logo */
  margin-top: 50px;
}

.software-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px; /* Set a width for consistency */
  color: whitesmoke;
  text-align: center;
}

.software-item img {
  width: 50px;
  height: auto;
  margin-bottom: 8px; /* Smaller margin between logo and text */
}

.software-item p {
  font-size: 0.85rem;
  line-height: 1.2;
  margin: 5px 0; /* Reduce margin to keep text closer */
}

.software-item span {
  font-size: 0.75rem;
  color: #ccc;
}

/* "Check This Out" Section */
.check-this-out {
  position: relative;
  color: whitesmoke;
  margin-top: 40px;
  font-size: 10vh;
  text-align: center;
  padding: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .software-logos {
    gap: 15px; /* Reduce gap for smaller screens */
  }
  .about-section {
    padding: 10px; /* Adds padding around the content */

  }
}

.scroll-text2 {
  position: absolute;
  text-align: center;
  left: 50%;
  padding: 10px 20px;
  border: 2px solid whitesmoke;
  transform: translateX(-50%);
  border-radius: 30px;
  color: whitesmoke;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
}
.slider-section {

  z-index: -1;
  height: 100vh; /* Ensure the section has a height */
  position: relative;
}

.slider {
  position: absolute;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide:not(#slide-1) { /* Corrected selector */
  transform-origin: center;
  z-index: 2;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Ensure images are behind the slides */
}

body {
  font-family: 'Space Mono', monospace;
}



/* Portfolio Section Styling */
.portfolio-section {
  padding: 30px 0;
  background-color: #000;
  color: #fff;
  text-align: center;
  font-family: 'Space Mono', 'Space Grotesk', monospace;
}

.portfolio-section p {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
}

.flex-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Animation classes */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Portfolio Item Styling */
.portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  transition: filter 0.5s ease, transform 0.5s ease;
}

.portfolio-description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Hover Effect */
.portfolio-item:hover img {
  filter: blur(5px) brightness(0.5);
}

.portfolio-item:hover .portfolio-description {
  opacity: 1;
}

/* Responsive styling for tablets and smaller screens */
@media (max-width: 992px) {
  .portfolio-section p {
      font-size: 1.8rem;
  }

  .portfolio-description p {
      font-size: 1.2rem;
  }
}

/* Responsive styling for phones */
@media (max-width: 768px) {
  .portfolio-section {
      padding: 10px 0;
  }

  .portfolio-description p {
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .portfolio-section p {
      font-size: 1.6rem;
  }

  .portfolio-description p {
      font-size: 0.9rem;
  }
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 50px;
  padding-left: 2%;
  padding-bottom:50;
  margin-bottom: 0;
  background-image: url('grey\ overlay\ bg.gif');
  background-size: cover;
  background-color: black; /* Replace with your GIF background */
  background-position: center;
  color: white;
}

.footer p, .footer a {
  margin: 5px 0;
  color: white;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}