/*
 * Main stylesheet for the AI Text Humanizer website.
 * The design makes heavy use of gradients, shadows and smooth animations
 * to give the site a modern look and feel. Colours are chosen to provide
 * good contrast against the moving background. Components such as buttons,
 * navigation links and cards respond to hover events with subtle effects.
 */

/* Global resets and base styling */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  line-height: 1.6;
  background: linear-gradient(45deg, #050f2a, #142658, #1e3a8a, #3773c4);
  background-size: 400% 400%;
  animation: gradientAnimation 25s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

a {
  color: #80caff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffd700;
}

/* Container to wrap content and centre it */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Navigation bar styling */
header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

nav .logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin-left: 20px;
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
}

.cta-button {
  background: #ff7f50;
  color: #ffffff;
  border: none;
  padding: 15px 35px;
  font-size: 1.2em;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Form styling */
.text-form {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

.text-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.text-form textarea,
.text-form input,
.text-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: none;
  font-size: 1em;
  color: #333;
}

.text-form input[type=submit] {
  width: auto;
  background: #28a745;
  color: #ffffff;
  cursor: pointer;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1em;
  transition: background 0.2s ease;
}

.text-form input[type=submit]:hover {
  background: #218838;
}

/* Content blocks */
.content {
  margin-top: 40px;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
}

.highlight {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #ff7f50;
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
}

blockquote {
  border-left: 5px solid #80caff;
  background: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
}

/* Table styling */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.table-container th,
.table-container td {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

.table-container th {
  background: rgba(0, 0, 0, 0.2);
  font-weight: bold;
}

/* List styling */
.list-section ul {
  list-style: disc;
  padding-left: 20px;
  margin: 20px 0;
}

.list-section li {
  margin-bottom: 8px;
}

/* Video card styling */
.video-card {
  position: relative;
  max-width: 640px;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.video-card img {
  width: 100%;
  display: block;
}

.video-card .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
}

.video-card .play-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #ffffff;
}

/* FAQ styling */
#faq {
  margin-top: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

#faq h2 {
  margin-top: 0;
}

#faq dt {
  font-weight: bold;
  margin-top: 15px;
  cursor: pointer;
}

#faq dd {
  margin-left: 0;
  margin-bottom: 10px;
  display: none;
}

#faq dt:hover + dd {
  display: block;
}

/* Footer styling */
footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.9em;
}
