/*
 * Main stylesheet for the AI Text Humanizer site.  This file defines the
 * overall look and feel of the site, including a dynamic gradient
 * background, modern card styling with shadows and rounded corners, and
 * interactive hover states.  The layout uses responsive flexbox to
 * ensure blocks adapt gracefully to different screen sizes.  Comments
 * throughout the file explain the purpose of key rules.
 */

/* Reset some default browser styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f9f9f9;
  line-height: 1.6;
}

/* Animated gradient background for the entire page */
body {
  background: linear-gradient(-45deg, #1e3c72, #2a5298, #6b2d8b, #b13568);
  background-size: 600% 600%;
  animation: gradientShift 20s ease infinite;
}

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

/* Header and navigation */
header {
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Container for page content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero section styling */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.hero .hero-text {
  flex: 1 1 500px;
  margin-right: 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #e0e0e0;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #ff6b81;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #ff87a1;
}

/* Form section */
.form-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
}

.form-section h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #ffffff;
}

.form-section textarea {
  width: 100%;
  min-height: 150px;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  resize: vertical;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.form-section input,
.form-section select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.form-section button {
  background: #23d5ab;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.form-section button:hover {
  background: #20c99c;
}

/* Text block styling */
.text-block {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
  color: #f9f9f9;
  font-size: 1rem;
}

.text-block p {
  margin-bottom: 1.2rem;
}

.text-block ul {
  margin: 1rem 0 1rem 1.5rem;
  list-style: disc;
}

.text-block li {
  margin-bottom: 0.5rem;
}

.text-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  color: #f3f3f3;
}

.text-block th,
.text-block td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.8rem;
  text-align: left;
}

.text-block th {
  background: rgba(255, 255, 255, 0.15);
}

.highlight {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-left: 4px solid #ff6b81;
  margin: 1.5rem 0;
}

.blockquote {
  border-left: 4px solid #23a6d5;
  margin: 1.5rem 0;
  padding-left: 1rem;
  font-style: italic;
  color: #dddddd;
}

/* Video block */
.video-block {
  position: relative;
  max-width: 640px;
  margin: 0 auto 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.video-block .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.video-block .play-button:after {
  content: '';
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 5px;
}

.video-block:hover .play-button {
  background: rgba(0, 0, 0, 0.7);
}

/* FAQ section */
.faq {
  margin: 3rem 0;
}

.faq h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.faq details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.faq p {
  margin-top: 0.5rem;
  line-height: 1.5;
  color: #e0e0e0;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #cccccc;
}
footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
  .hero .hero-text {
    margin-right: 0;
    margin-bottom: 2rem;
  }
}