:root {
  --primary: #4a6bff;
  --primary-dark: #3a56d4;
  --secondary: #ff4757;
  --light: #ffffff;
  --dark: #2d3436;
  --gray: #636e72;
  --light-gray: #dfe6e9;
  --bg-color: #f5f7fa;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--dark);
  line-height: 1.6;
}

header {
  background-color: var(--light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo i {
  font-size: 1.8rem;
  color: var(--primary);
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

nav a.active {
  color: var(--primary);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

nav a:hover {
  color: var(--primary);
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.upload-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.upload-card {
  background-color: var(--light);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
  text-align: center;
}

.upload-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.subtitle {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.upload-area {
  border: 2px dashed var(--light-gray);
  border-radius: 12px;
  background-color: #f8fafc;
  transition: all 0.25s ease;
  padding: 3rem 1rem;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upload-area.dragover {
  border-color: var(--primary);
  background-color: rgba(74, 107, 255, 0.05);
}

.upload-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gray);
  gap: 1rem;
  width: 100%;
}

.upload-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.upload-instructions p {
  margin: 0;
  font-size: 1.1rem;
}

.divider {
  display: flex;
  align-items: center;
  color: var(--gray);
  margin: 1rem 0;
  width: 80%;
  font-size: 0.9rem;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--light-gray);
}

.divider::before {
  margin-right: 1rem;
}

.divider::after {
  margin-left: 1rem;
}

#browse-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#browse-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 107, 255, 0.2);
}

.formats {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 1.5rem;
  opacity: 0.8;
}

.image-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeIn 0.5s;
  width: 100%;
}

.image-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

#remove-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#remove-btn:hover {
  background: #ff3345;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  text-align: center;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--dark);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-logo i {
  color: var(--primary);
}

/* Social Media Footer Icons */
.footer-social {
  display: flex;
  gap: 1.4rem;
  margin: 0.5rem 0 0.2rem 0;
}

.footer-social a {
  color: var(--light-gray);
  font-size: 1.55rem;
  transition: color 0.2s, transform 0.18s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-2px) scale(1.12);
}

.footer-copy {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 1rem;
}

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

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav {
    width: 100%;
    justify-content: space-around;
    gap: 0.5rem;
  }
  
  .upload-card {
    padding: 1.5rem;
  }
  
  .upload-area {
    padding: 2rem 1rem;
    min-height: 240px;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  .footer-content {
    gap: 1rem;
  }
}