@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #0d0d0d;
  --accent-color: #00f5a0;
  --text-color: #ffffff;
  --text-secondary: #b3b3b3;
  --card-bg: #1a1a1a;
  --border-radius: 12px;
  --transition: all 0.3s ease-in-out;
}

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

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

.logo i {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.1) 0%, rgba(13, 13, 13, 1) 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--accent-color), #00ffbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.url-input-wrapper {
  position: relative;
  flex: 1;
}

.url-input-wrapper .url-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 1rem;
  transition: var(--transition);
}

.url-input-wrapper .url-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.2);
}

.url-input-wrapper .url-input::placeholder {
  color: var(--text-secondary);
}

.url-input-wrapper .paste-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 12px;
  background: rgba(0, 245, 160, 0.1);
  border: 2px solid rgba(0, 245, 160, 0.3);
  color: var(--accent-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.url-input-wrapper .paste-btn:hover {
  background: rgba(0, 245, 160, 0.2);
  border-color: var(--accent-color);
}

.download-btn {
  background: var(--accent-color);
  border: none;
  color: #000;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.download-btn:hover {
  background: #00ffbb;
  box-shadow: 0 0 20px var(--accent-color);
  transform: translateY(-2px);
}

.download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.options-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.option-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 150px;
}

.option-select label {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quality-select,
.format-select {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 120px;
}

.quality-select:focus,
.format-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 245, 160, 0.2);
}

.loading {
  display: none;
  text-align: center;
  margin: 2rem 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 245, 160, 0.3);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.video-preview {
  display: none;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-info {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.video-player-container {
  position: relative;
  flex-shrink: 0;
}

.video-thumbnail {
  width: 200px;
  height: 350px;
  border-radius: var(--border-radius);
  object-fit: cover;
  flex-shrink: 0;
}

.video-player {
  width: 200px;
  height: 350px;
  border-radius: var(--border-radius);
  background: #000;
  display: none;
}

.player-controls {
  margin-top: 10px;
  text-align: center;
}

.player-toggle-btn {
  background: rgba(0, 245, 160, 0.1);
  border: 2px solid rgba(0, 245, 160, 0.3);
  color: var(--accent-color);
  padding: 8px 15px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.player-toggle-btn:hover {
  background: rgba(0, 245, 160, 0.2);
  border-color: var(--accent-color);
}

.video-details {
  flex: 1;
}

.video-details h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.video-details p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.video-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.download-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-download {
  background: var(--accent-color);
  color: #000;
  flex: 2;
}

.secondary-download {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex: 1;
}

.secondary-download:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.features {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.02);
}

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

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 245, 160, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
}

/* How to Use Section */
.how-to-use {
  padding: 80px 0;
  background: rgba(0, 0, 0, 0.3);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 245, 160, 0.1);
  border-color: rgba(0, 245, 160, 0.3);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), #00ffbb);
  color: #000;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 245, 160, 0.3);
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SEO Content Section */
.seo-content {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.02);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  border-bottom: 2px solid rgba(0, 245, 160, 0.3);
  padding-bottom: 0.5rem;
}

.content-wrapper h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.content-wrapper p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.content-wrapper ul {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.content-wrapper li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.content-wrapper li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.content-wrapper strong {
  color: var(--accent-color);
  font-weight: 600;
}

footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.page-content {
  padding: 120px 0 80px;
  min-height: calc(100vh - 200px);
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.content-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.08);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-answer.active {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-toggle {
  color: var(--accent-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.faq-toggle.rotated {
  transform: rotate(180deg);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--accent-color);
  border: none;
  color: #000;
  padding: 15px 40px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
}

.submit-btn:hover {
  background: #00ffbb;
  box-shadow: 0 0 20px var(--accent-color);
  transform: translateY(-2px);
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  animation: slideIn 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.success {
  background: #00c853;
}

.notification.error {
  background: #f44336;
}

.notification button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.notification button:hover {
  opacity: 1;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.notification i {
  margin-right: 5px;
}

.fa-spin {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.legal-section h2 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 245, 160, 0.3);
}

.legal-section h3 {
  color: var(--text-color);
  font-size: 1.3rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.legal-section ul {
  color: var(--text-secondary);
  margin: 1rem 0 2rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  position: relative;
}

.legal-section li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.legal-section a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.legal-section a:hover {
  border-bottom: 1px solid var(--accent-color);
}

.legal-meta {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  text-align: center;
}

.legal-meta p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.content-card.legal-card {
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.content-card.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #667eea);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .input-group {
    flex-direction: column;
  }

  .url-input-wrapper {
    width: 100%;
  }

  .url-input-wrapper .url-input {
    padding: 12px 45px 12px 15px;
  }

  .url-input-wrapper .paste-btn {
    padding: 8px 10px;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .options-group {
    flex-direction: column;
    gap: 0.8rem;
  }

  .option-select {
    min-width: 100%;
  }

  .video-info {
    flex-direction: column;
    text-align: center;
  }

  .video-thumbnail,
  .video-player {
    width: 100%;
    max-width: 300px;
    height: 400px;
  }

  .download-actions {
    flex-direction: column;
  }

  .primary-download,
  .secondary-download {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .content-wrapper {
    padding: 2rem;
  }

  .content-wrapper h2 {
    font-size: 1.6rem;
  }

  .content-wrapper h3 {
    font-size: 1.3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .content-card.legal-card {
    padding: 2rem;
    margin: 1rem;
  }
  
  .legal-section h2 {
    font-size: 1.5rem;
  }
  
  .legal-section h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .download-form,
  .content-card {
    padding: 1.5rem;
  }

  .page-content {
    padding: 100px 0 60px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .option-select {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .quality-select,
  .format-select {
    width: 100%;
  }

  .player-toggle-btn span {
    display: none;
  }

  .player-toggle-btn {
    padding: 8px 12px;
  }

  .video-thumbnail,
  .video-player {
    height: 300px;
  }

  .content-card.legal-card {
    padding: 1.5rem;
  }
  
  .legal-section h2 {
    font-size: 1.3rem;
  }
  
  .legal-section h3 {
    font-size: 1.1rem;
  }
  
  .legal-section p {
    font-size: 0.95rem;
  }
}