/* Global Styles */
body {
  min-height: 100vh;
  background: #0f172a;
  color: #f8fafc;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  animation: fadeInBody 1s ease-out;
}

/* Glassmorphism Container */
.container {
  margin-top: 5rem;
  opacity: 0;
  animation: fadeInContainer 1.5s ease-out forwards;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--shadow-glow);
  margin-bottom: 1.5rem;
  animation: slideInUp 1s ease-out;
}

p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #94a3b8;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 3rem;
  animation: fadeUp 1s ease-out 0.5s both;
}

/* Glassmorphism File Upload */
input[type="file"] {
  display: block;
  margin: 1rem auto;
  background: rgba(255, 255, 255, 0.1); /* Glass effect */
  color: white;
  border: var(--border-glass);
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 1rem;
  width: 100%;
  backdrop-filter: blur(10px); /* Apply glass effect */
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  background: rgba(255, 255, 255, 0.15); /* Slightly change on hover */
}

/* Glassmorphism Collage Area */
#collageArea {
  background: rgba(255, 255, 255, 0.1); /* Glass effect */
  border: var(--border-glass);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  min-height: 400px;
  transition: all 0.3s ease;
  animation: fadeInCollage 1s ease-out;
}

#collageArea.grid-1 {
  justify-content: center;
}

#collageArea.grid-2,
#collageArea.grid-3,
#collageArea.grid-4 {
  justify-content: space-between;
}

#collageArea:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02); /* Slight zoom effect */
}

/* Glassmorphism Button */
button, a.btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: rgba(79, 70, 229, 0.1); /* Transparent with gradient */
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  backdrop-filter: blur(8px); /* Glass effect */
  animation: bounceIn 1s ease-out;
}

button:disabled, a.btn[style*="display:none"] {
  opacity: 0.5;
  cursor: not-allowed;
}

button:hover, a.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-neon);
  animation: buttonHover 0.3s ease-in-out;
}

button:hover::before, a.btn:hover::before {
  opacity: 0.75;
}

/* Footer Styles with Glassmorphism */
.footer {
  background: rgba(31, 41, 55, 0.8) !important; /* Semi-transparent dark background */
  backdrop-filter: blur(15px); /* Glass effect */
  border-top: var(--border-glass);
  padding: 4rem 0;
  margin-top: 3rem;
  color: white;
}

.footer .container {
  text-align: center;
  animation: fadeInFooter 1.5s ease-out forwards;
}

.footer h6 {
  color: #94a3b8;
  font-size: 1rem;
}

.footer .social-links .btn {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); /* Transparent background for social buttons */
  border: var(--border-glass);
  color: white;
  transition: all 0.3s ease;
  margin: 0.5rem;
  backdrop-filter: blur(8px); /* Glass effect */
  animation: bounceInSocial 1s ease-out;
}

.footer .social-links .btn:hover {
  transform: translateY(-5px) rotate(8deg);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glow);
  animation: buttonHover 0.3s ease-in-out;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBody {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInContainer {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInCollage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes inputHoverEffect {
  0% {
    background: rgba(255, 255, 255, 0.1);
  }
  100% {
    background: rgba(255, 255, 255, 0.2);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes buttonHover {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInFooter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounceInSocial {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
