/* Global Styles */
body {
  background: #0f172a; /* Dark background to highlight glass effect */
  color: #f8fafc; /* Light text color */
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
h2 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--shadow-glow);
  margin-bottom: 2rem;
  text-align: center;
}

/* Container Styling */
.container {
  margin-top: 5rem;
}

/* Glassmorphism for Image Upload Section */
#imageInput {
  background: rgba(255, 255, 255, 0.1); /* Frosted glass effect */
  border-radius: 10px;
  padding: 1rem;
  border: var(--border-glass);
  color: white;
  backdrop-filter: blur(10px); /* Apply blur for glass effect */
  transition: background 0.3s ease;
  width: 100%;
}

#imageInput:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Image Container */
#imageContainer {
  margin-top: 1rem;
  text-align: center;
}

#image {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(10px); /* Apply blur for the image preview */
}

/* Glassmorphism Crop Button */
#cropBtn {
  background: rgba(255, 255, 255, 0.1); /* Frosted effect */
  border-radius: 10px;
  padding: 1rem;
  font-size: 1.1rem;
  width: 100%;
  border: var(--border-glass);
  color: white;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
  margin-top: 1rem;
}

#cropBtn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

/* Download Button */
#downloadBtn {
  background: rgba(255, 255, 255, 0.1); /* Frosted effect */
  border-radius: 10px;
  padding: 1rem;
  font-size: 1.1rem;
  width: 100%;
  border: var(--border-glass);
  color: white;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
  margin-top: 1.5rem;
}

#downloadBtn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

/* Footer Styling */
.footer {
  background: rgba(31, 41, 55, 0.8); /* Semi-transparent dark background */
  backdrop-filter: blur(15px); /* Glass effect */
  padding: 4rem 0;
  margin-top: 3rem;
  border-top: var(--border-glass);
  text-align: center;
}

.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);
  border: var(--border-glass);
  color: white;
  transition: all 0.3s ease;
  margin: 0.5rem;
  backdrop-filter: blur(8px); /* Apply glass effect */
}

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

/* Glassmorphism Variables */
:root {
  --border-glass: 2px solid rgba(255, 255, 255, 0.3); /* Light border for glass effect */
  --shadow-glow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Soft shadow */
  --gradient-main: linear-gradient(45deg, #3b82f6, #9333ea); /* Color gradient */
}

/* Social Button Hover Effects */
.btn:hover {
  transform: scale(1.1);
}
