/* Root Variables - Modern Dark Theme */
:root {
  --primary-color: #6c63ff;
  --primary-dark: #5a51d8;
  --secondary-color: #ff006e;
  --accent-color: #00d9ff;
  --text-dark: #0f3460;
  --text-light: #666666;
  --background-light: #f8f9ff;
  --background-dark: #1a1a2e;
  --border-color: #e0e0e0;
  --white: #ffffff;
  --success: #10b981;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

/* Enhanced overall styling with better spacing and animations */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

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

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  opacity: 0.8;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
  padding: 6rem 0;
  margin-bottom: 4rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-dark);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cursive-showcase {
  background: var(--white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.showcase-text {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.showcase-text-alt {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.showcase-text-fancy {
  font-size: 1.8rem;
  color: var(--accent-color);
}

/* Generator Section */
.generator {
  padding: 4rem 0;
  background: var(--background-light);
}

.generator h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.generator-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.input-group {
  margin-bottom: 2rem;
}

#inputText {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: all 0.3s ease;
}

#inputText:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

#inputText::placeholder {
  color: #ccc;
}

.char-count {
  text-align: right;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

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

.style-box {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  text-align: center;
  transition: all 0.3s ease;
}

.style-box:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.1);
}

.style-box label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.output {
  background: var(--white);
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
  font-size: 1.2rem;
  word-break: break-word;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.output:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.copy-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.3rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 0.5rem;
}

.copy-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: var(--white);
}

.features h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

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

.feature-card {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 0.8rem;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Content Info Section */
.content-info {
  padding: 4rem 0;
  background: var(--background-light);
}

.content-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.content-info h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: var(--text-dark);
}

.content-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1rem;
}

.content-info ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-info li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
  padding: 4rem 0;
  background: var(--background-light);
}

.faq h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.faq-item {
  background: var(--white);
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
  border: none;
  width: 100%;
}

.faq-question:hover {
  background: var(--primary-color);
  color: var(--white);
}

.toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active .toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.faq-answer p {
  color: var(--text-light);
  line-height: 1.8;
}

.faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Content Pages */
.content-page {
  padding: 3rem 0;
  min-height: 70vh;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.content-page section {
  margin-bottom: 2.5rem;
}

.content-page h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.content-page h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem 0;
  color: var(--text-dark);
}

.content-page ul {
  list-style-position: inside;
  color: var(--text-light);
  margin: 1rem 0;
}

.content-page li {
  margin-bottom: 0.5rem;
  margin-left: 1.5rem;
}

.content-page p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-page a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.content-page a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form-section,
.contact-info-section {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 0.8rem;
}

.contact-form-section h2,
.contact-info-section h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-note {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--success);
  color: var(--white);
  border-radius: 0.4rem;
  text-align: center;
  display: none;
}

.contact-info-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-info-section ul {
  list-style: none;
  margin-left: 0;
}

.contact-info-section li {
  margin-left: 0;
  margin-bottom: 0.5rem;
}

.contact-info-section li:before {
  content: "✓ ";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #0a0e27 100%);
  color: var(--white);
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .styles-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .logo a {
    font-size: 1.2rem;
  }

  .nav-menu {
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

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

  .showcase-text {
    font-size: 1.5rem;
  }

  .showcase-text-alt {
    font-size: 1.2rem;
  }

  .generator h2,
  .features h2,
  .faq h2 {
    font-size: 1.8rem;
  }

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

  .btn {
    width: 100%;
    text-align: center;
  }
}
