* {
  user-select: none;
}
.top-left-image {
  position: absolute;
  top: 10px;
  left: 30px;
  width: 100px; /* Adjust as needed */
  height: auto;
}
p {
  text-align: left;
}
.center-box {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  backdrop-filter: blur(10px); /* Creates the frosted glass effect */
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2); /* Optional: subtle border */
}

.center-box h1 {
  margin-top: 0;
  color: white;
  font-size: 2.5rem;
}

.center-box h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.center-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.custom-icon {
  width: 50px; /* Adjust size as needed */
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
}

.audio-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin: 0 15px;
}

.icon {
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s;
}

.icon:hover {
  transform: scale(1.1);
}

/* Loading animation container - covers the whole screen */
#loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Change to match your site's background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

/* Loading spinner */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #3498db; /* Change color as needed */
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
} 

/* Loading text */
.loading-text {
  margin-top: 20px;
  font-family: Arial, sans-serif;
  color: #333;
  font-size: 18px;
}

/* Your website content - initially hidden */
#website-content {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

/* Class to hide the loading container */
.loaded #loading-container {
  opacity: 0;
  pointer-events: none;
}

/* Class to show the website content */
.loaded #website-content {
  opacity: 1;
}
body {
  margin: auto;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: auto;
  background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgba(48,238,226,1) 68%, rgba(255,25,25,1) 98%);
  animation: gradient 15s ease infinite;
  background-size: 400% 400%;
  background-attachment: fixed;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* This prevents scrolling */
}
@keyframes gradient {
  0% {
      background-position: 0% 0%;
  }
  50% {
      background-position: 100% 100%;
  }
  100% {
      background-position: 0% 0%;
  }
}

.wave {
  background: rgb(255 255 255 / 25%);
  border-radius: 1000% 1000% 0 0;
  position: fixed;
  width: 200%;
  height: 12em;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.wave:nth-of-type(2) {
  bottom: -1.25em;
  animation: wave 18s linear reverse infinite;
  opacity: 0.8;
}

.wave:nth-of-type(3) {
  bottom: -2.5em;
  animation: wave 20s -1s reverse infinite;
  opacity: 0.9;
}

@keyframes wave {
  2% {
      transform: translateX(1);
  }

  25% {
      transform: translateX(-25%);
  }

  50% {
      transform: translateX(-50%);
  }

  75% {
      transform: translateX(-25%);
  }

  100% {
      transform: translateX(1);
  }
}

.taskbar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(20, 20, 30, 0.8);
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.taskbar button {
  background: #2c2f38;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.taskbar button:hover {
  background: #4b4f60;
}

.window {
  position: absolute;
  background: #ffffff;
  color: #fff;
  width: 700px; /* Increased from 300px */  
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  backdrop-filter: blur(10px); /* Creates the frosted glass effect */
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
  padding-right: 20px;
  padding-left: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2); /* Optional: subtle border */
  
}

.window.show {
  transform: scale(1);
  opacity: 1;
}

.title-bar {
  background: #44444400;
  padding: 10px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 30px;
  border-bottom: 1px solid #444;
  color: #fff;
}

.close-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease; /* Smooth scaling animation */
}

.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  padding: 4px; /* Prevents layout shift during hover */
}

/* Hover effect */
.close-btn:hover .close-icon {
  transform: scale(1.05); /* 20% larger on hover */
}

/* If using text instead of SVG (like the '✕' character) */
.close-btn:hover {
  transform: scale(1.05);
}
.content {
  padding: 16px;
  font-size: 18px;
}

.audio-controls {
position: absolute;
bottom: 10px;
right: 10px;
display: flex;
gap: 8px;
padding: 6px 12px;
  border-radius: 12px;
  background: #ffffff;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  backdrop-filter: blur(10px); /* Creates the frosted glass effect */
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2); /* Optional: subtle border */
}

.audio-controls button {
color: #fff;
border: none;
padding: 6px 12px;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s;

}

.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon {
  font-size: 64px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.icon:hover {
  transform: scale(1.1);
}

.social-icons {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  justify-content: center;
}

.icon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding-top: 50px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font-size: 32px;
  transition: transform 0.2s;
}

.icon:hover {
  transform: scale(1.1);
}

.icon-label {
  margin-top: 8px;
  font-size: 18px;
  margin-top: 8px;
  font-weight: bold;

  margin-top: 0.5rem;
  color: white;
}
  
.audio-controls button {
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}


.content h3 {
  margin-top: 0;
  color: #fff;
}

.content a {
  color: #4dabf7;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.portfolio-item {
  background: rgba(255,255,255,0.1);
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.two-column-layout {
  display: flex;
  gap: 20px;
  width: 100%;
}

.left-column {
  width: 25%;
  padding-right: 15px;
}

.right-column {
  width: 75%;
}

.profile-image {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 15px;
}
.project-image {
  width: 100%;
  margin-bottom: 15px;
  transition: transform 0.3s ease; /* Smooth transition */
  max-width: 100%; /* Ensure it doesn't overflow */
  height: auto; /* Maintain aspect ratio */
  cursor: pointer; /* Indicates it's interactive */
}

.project-image:hover {
  transform: scale(1.05); /* Slightly enlarge (5%) */
  z-index: 10; /* Bring to front if needed */
}

/* Optional: Add a subtle shadow on hover for depth */
.project-image:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ensure the container can handle the enlarged image */
.project-item {
  overflow: hidden; /* Prevents hover effects from affecting layout */
  position: relative;
}

.skills-list {
  padding-left: 20px;
}

.image-gallery {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.image-gallery img {
  width: 33.33%;
  height: auto;
  object-fit: cover;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.workimages {
width: 250px;
}

#two-columns {
  display: flex;
  gap: 4%; /* Space between columns */
}

.column {
  width: 48%;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #fff;
  width: 700px; /* Increased from 300px */  
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  backdrop-filter: blur(10px); /* Creates the frosted glass effect */
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
  padding-right: 20px;
  padding-left: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2); /* Optional: subtle border */
}


#projects-container {
  margin-top: 20px;
}

#projects-scroll {
  max-height: 900px; /* Adjust this value as needed */
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/* For Webkit browsers */
#projects-scroll::-webkit-scrollbar {
  width: 8px;
}

#projects-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#projects-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

#projects-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.project-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.project-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.two-column-layout {
  display: flex;
  gap: 20px;
  align-items: center;
}

.left-column {
  flex: 1;
  min-width: 200px;
}

.right-column {
  flex: 2;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

.title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.text {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: #fff;
}

.container:hover .text {
  opacity: 1;
  transform: translateX(0);
}
button {
  background: transparent;
  padding: 5px 15px;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: rgb(255, 255, 255);
  transition: color 0.3s 0.1s ease-out;
  margin: 0px 0 10px 0;
}

button span {
  margin: 10px;
}

button::before {
  position: absolute;

  margin: auto;
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;

  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

button:hover {
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px; /* Width of the scrollbar */
  height: 10px; /* Height (for horizontal scrollbars) */
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1); /* Transparent track */
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3); /* Semi-transparent thumb */
  border-radius: 5px;
  border: 2px solid transparent; /* Optional: adds space around the thumb */
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5); /* Brighter on hover */
}

.image-viewer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.enlarged-image {
  max-width: 500px;
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Resposive Responsivo*/


/* Add this to your existing CSS */

/* Mobile-specific styles */
@media (max-width: 768px) and (orientation: portrait) {
  .center-box {
    width: 90%;
    padding: 1rem;
  }
  
  .center-icons {
    gap: 1rem;
  }
  
  .social-icons {
    position: fixed;
    bottom: 80px; /* Above the audio controls */
    left: 0;
    right: 0;
    transform: none;
    justify-content: space-around;
    padding: 0 20px;
  }
    
  .audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px; /* Increased gap between buttons */
  }

  .audio-controls button {
    padding: 12px 20px; /* Increased padding */
    border-radius: 25px; /* More rounded corners */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px; /* Larger font */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    transition: all 0.3s ease;
    min-width: 120px; /* Minimum width */
    justify-content: center;
  }

  .audio-controls .audio-icon {
    width: 24px; /* Larger icon */
    height: 24px; /* Larger icon */
    transition: all 0.3s ease;
  }

  /* Keep your existing shadow effects */
  .audio-controls button.enabled {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  }

  .audio-controls button.enabled .audio-icon {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
  }
  
  /* Fullscreen windows for mobile */
  .window {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0;
    position: fixed;
    overflow-y: auto;
  }
  
  .window .content {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  
  /* Adjust project layout for mobile */
  .two-column-layout {
    flex-direction: column;
  }
  
  .left-column, .right-column {
    width: 100% !important;
  }
  
  /* Adjust the two-columns layout in "Mi Trabajo" */
  #two-columns {
    flex-direction: column;
  }
  
  #two-columns .column {
    width: 80% !important;
    margin-bottom: 20px;
  }
  
  /* Make buttons more touch-friendly */
  button {
    padding: 10px 20px;
    font-size: 16px;
  }
  
  /* Adjust icon sizes */
  .custom-icon {
    width: 40px;
    height: 40px;
  }
  
  .icon-label {
    font-size: 16px;
  }
}

/* Tablet landscape and larger phones in landscape */
@media (max-width: 1024px) and (orientation: landscape) {
  .window {
    width: 90% !important;
    max-height: 90vh;
    top: 5vh !important;
    left: 5% !important;
  }
  
  .window .content {
    max-height: calc(90vh - 60px);
    overflow-y: auto;
  }
}

/* Update your existing responsive CSS with these changes */
@media (orientation: portrait) {
  /* ... (keep your existing mobile styles) ... */
  
  /* Adjust the projects scroll container for mobile */
  #projects-scroll {
    max-height: 60vh !important; /* Use viewport height for better sizing */
    height: auto;
    min-height: 300px; /* Minimum height to ensure usability */
    padding: 15px;
  }
  
  /* Make the project items more spacious */
  .project-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
  }
  
  /* Ensure columns take full width */
  .two-column-layout {
    flex-direction: column;
  }
  
  .left-column, .right-column {
    width: 100% !important;
  }
  
  /* Adjust the two-columns layout in "Mi Trabajo" */
  #two-columns {
    flex-direction: column;
  }
  
  #two-columns .column {
    width: 80% !important;
    margin-bottom: 15px;
    padding: 15px;
  }
  
  /* Make the scrollbar more visible */
  #projects-scroll::-webkit-scrollbar {
    width: 6px;
  }
  
  #projects-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
  }
}
