* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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;
}

@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);
    }
}

/* Content styles with glass morphism */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
}

/*h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-family: Open Sans, sans-serif;
  color: #fff;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  font-size: 2em;
  padding: 5px;
}*/

.dev-wordtag {
  transition: color 0.5s ease; /* smooth fade */
}
.dev-wordtag {
  background: linear-gradient(    270deg,    #ffffff,    #3d3b3a,    #000000,    #ffffff,    #c8e8e9,    #bab8ba,    #ece7e9  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: neon-gradient 8s ease infinite;
  -webkit-animation: neon-gradient 8s ease infinite;
  font-weight: bold;
}

@keyframes neon-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


#title {
  text-align: center;
  padding: 2rem 1rem 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: white;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.2;
}

.developers-portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
}

.developer-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: white;
  display: flex;
  flex-direction: column;
}

.developer-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.developer-card img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.developer-card:hover img {
  transform: scale(1.05);
}

.developer-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
  color: white;
  line-height: 1.3;
}

.developer-card p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.dev-socials {
  margin-top: auto;
  padding-top: 1.5rem;
}

.dev-socials a {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  transition: all 0.3s ease;
  display: inline-block;
}

.dev-socials a:hover {
  color: white;
  transform: translateY(-3px) scale(1.2);
  text-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.back-home {
  text-align: center;
  padding: 1.5rem;
}

.home-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  transition: all 0.3s ease;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-btn:hover, .home-btn:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

footer {
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-top: auto;
}

footer p {
  margin: 0.5rem 0;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Reduced motio */
@media (prefers-reduced-motion: reduce) {
  .animated-gradient,
  .wave-layer-1,
  .wave-layer-2,
  .developer-card,
  .developer-card img,
  .dev-socials a,
  .home-btn {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch device */
@media (hover: none) and (pointer: coarse) {
  .developer-card:hover {
    transform: none;
  }
  
  .developer-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.25);
  }
  
  .dev-socials a:hover {
    transform: none;
  }
  
  .dev-socials a:active {
    transform: scale(1.2);
    color: white;
  }
  
  .home-btn:hover {
    transform: none;
  }
  
  .home-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
  }
}

/* Responsive design */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .developers-portfolio {
    padding: 2rem;
  }
  
  .developer-card {
    padding: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  #title {
    padding: 3rem 2rem 2rem;
    letter-spacing: 2px;
  }
  
  .developers-portfolio {
    gap: 2.5rem;
    padding: 2rem;
  }
  
  .developer-card {
    width: calc(50% - 1.25rem);
    max-width: none;
  }
  
  .developer-card:hover {
    transform: translateY(-10px) scale(1.02);
  }
  
  .home-btn:hover {
    transform: translateY(-5px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .developers-portfolio {
    gap: 3rem;
  }
  
  .developer-card {
    width: calc(33.333% - 2rem);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .developer-card {
    width: 320px;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .developer-card {
    border-width: 0.5px;
  }
}

/* Print styles */
@media print {
  .gradient-background,
  .wave-layer-1,
  .wave-layer-2 {
    display: none;
  }
  
  .content-wrapper {
    backdrop-filter: none;
  }
  
  .developer-card {
    background: white;
    color: black;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  
  .developer-card h2 {
    color: black;
  }
  
  .home-btn {
    background: #f0f0f0;
    color: black;
    border: 1px solid #ccc;
  }
  
  footer {
    background: #f0f0f0;
    color: black;
  }
}