* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  min-height: 100vh;
  padding: 20px;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo i {
  font-size: 2.5rem;
  color: #fff;
  background: linear-gradient(45deg, #ff0000, #ff6b6b);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.logo-text {
  color: white;
}

.logo-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text p {
  font-size: 0.9rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  padding: 8px 15px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
}

nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Main content */
.main-content {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  animation: fadeIn 1s ease;
}

.converter-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  flex: 1;
  position: relative;
  overflow: hidden;
}

.converter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ff0000, #ff6b6b);
}

.converter-card h2 {
  font-size: 2rem;
  margin-bottom: 5px;
  color: #1a2a6c;
}

.converter-card p {
  color: #666;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.url-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.url-input:focus {
  border-color: #ff6b6b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
  background: white;
}

.format-selection {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.format-option {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 20px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.format-option:hover {
  transform: translateY(-5px);
  border-color: #ff6b6b;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.format-option.active {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
}

.format-option i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ff6b6b;
}

.format-option h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #333;
}

.format-option p {
  color: #666;
  margin: 0;
  font-size: 0.8rem;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.convert-btn,
.download-btn {
  flex: 1;
  padding: 18px;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.convert-btn {
  background: linear-gradient(45deg, #1a2a6c, #2a5298);
  box-shadow: 0 5px 15px rgba(26, 42, 108, 0.4);
}

.convert-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 42, 108, 0.6);
}

.convert-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.download-btn {
  background: linear-gradient(45deg, #ff0000, #ff6b6b);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

.download-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.conversion-status {
  margin-top: 25px;
  padding: 20px;
  border-radius: 12px;
  background: #f0f8ff;
  display: none;
  animation: fadeIn 0.5s ease;
}

.conversion-status.active {
  display: block;
}

.status-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 15px 0;
  overflow: hidden;
}

.status-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1a2a6c, #2a5298);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.status-text {
  text-align: center;
  color: #444;
  font-weight: 500;
}

.quality-selection {
  display: none;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.quality-selection.active {
  display: block;
}

.quality-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  margin-bottom: 20px;
}

.quality-btn {
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #444;
  min-width: 80px;
  text-align: center;
}

.quality-btn:hover {
  border-color: #ff6b6b;
  transform: translateY(-2px);
}

.quality-btn.active {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  font-weight: 600;
}

.format-selection-section {
  margin-bottom: 20px;
}

.section-title {
  font-weight: 600;
  color: #444;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: #ff6b6b;
}

.ad-space {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  animation: fadeInRight 0.8s ease;
}

.ad-space h3 {
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 1.5rem;
}

.ad-space i {
  font-size: 3rem;
  opacity: 0.7;
  margin-bottom: 20px;
}

.ad-space p {
  margin: 5px 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.ad-banner {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  margin: 40px 0;
  color: white;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  animation: fadeInUp 0.8s ease;
}

.ad-banner h3 {
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 1.5rem;
}

.ad-banner i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0.7;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-card i {
  font-size: 2.5rem;
  color: #ff6b6b;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1a2a6c;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  animation: fadeInUp 0.8s ease;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 20px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

/* Responsive design */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  header {
    flex-direction: column;
    gap: 20px;
  }

  nav ul {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .format-selection {
    flex-direction: column;
  }

  .action-buttons {
    flex-direction: column;
  }

  .quality-options {
    justify-content: center;
  }

  .ad-space {
    min-height: 200px;
  }
}

/* Decorative elements */
.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 800" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,192L48,181.3C96,171,192,149,288,165.3C384,181,480,235,576,234.7C672,235,768,181,864,160C960,139,1056,149,1152,165.3C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  z-index: 0;
  opacity: 0.7;
}
