/* style.css */
:root {
  /* Light Theme Colors */
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #7209b7;
  --text-color: #212529;
  --text-secondary: #495057;
  --bg-color: #ffffff;
  --card-bg: #f8f9fa;
  --border-color: #e9ecef;
  --success-color: #4cc9f0;
  --error-color: #f72585;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Roboto Slab', serif;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 40px;
}

/* Dark Theme Colors */
[data-theme="dark"] {
  --text-color: #f8f9fa;
  --text-secondary: #adb5bd;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --border-color: #343a40;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

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

ul {
  list-style: none;
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
}

/* ============================================
   CONTENT SECTION STYLES
   ============================================ */

/* Content Section Main Container */
.content-section {
  padding: 80px 0;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.content-block {
  max-width: 1000px;
  margin: 0 auto 60px;
}

.content-block:last-child {
  margin-bottom: 0;
}

/* Section Headings */
.content-block h2 {
  font-size: 2.4rem;
  color: var(--text-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
}

.content-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.content-block h2.text-center {
  text-align: center;
}

.content-block h2.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Content Paragraphs */
.content-block p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Feature List - Grid Layout */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.feature-list li {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  align-items: flex-start;
}

.feature-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.feature-list li i {
  font-size: 2.2rem;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 5px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 12px;
}

.feature-list li h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 600;
}

.feature-list li p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.7;
}

/* Steps Grid - 3 Column Layout */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.step-card {
  background: var(--card-bg);
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.step-number {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: 600;
}

.step-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.7;
}

/* Responsive - Content Section */
@media (max-width: 992px) {
  .content-section {
    padding: 60px 0;
  }
  
  .content-block h2 {
    font-size: 2rem;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .feature-list li {
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .content-section {
    padding: 50px 0;
  }
  
  .content-block {
    margin-bottom: 40px;
  }
  
  .content-block h2 {
    font-size: 1.7rem;
  }
  
  .content-block p {
    font-size: 1rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .feature-list li {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px;
  }
  
  .feature-list li i {
    margin: 0 auto 10px;
  }
  
  .step-card {
    padding: 25px 20px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .content-block h2 {
    font-size: 1.4rem;
  }
  
  .content-block h2::after {
    width: 50px;
  }
  
  .feature-list li {
    padding: 16px;
  }
  
  .step-card {
    padding: 20px 15px;
  }
}

/* ============================================
   END OF CONTENT SECTION STYLES
   ============================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

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

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Navigation */
.navbar {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.nav-toggle, .theme-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.nav-toggle:hover, .theme-toggle:hover {
  background-color: var(--card-bg);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
  color: white;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background-color: #f0f0f0;
}

/* Signature Tool */
.signature-tool {
  padding: 60px 0;
}

.tool-header {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
}

.tab {
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tool-content {
  display: none;
}

.tool-content.active {
  display: block;
}

/* Canvas */
.canvas-container {
  background-color: var(--card-bg);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  height: 300px;
}

#signature-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background-color: white;
}

.canvas-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.pen-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pen-controls label {
  font-weight: 500;
  margin-right: 8px;
}

.pen-controls input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

.pen-controls input[type="range"] {
  width: 120px;
  height: 8px;
  -webkit-appearance: none;
  background: var(--border-color);
  border-radius: 4px;
  outline: none;
}

.pen-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

/* Type Signature */
.type-input input {
  width: 100%;
  padding: 16px;
  font-size: 24px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-color);
  margin-bottom: 24px;
}

.font-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.font-selector label {
  font-weight: 500;
}

#font-select {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-color);
  font-size: 16px;
  min-width: 250px;
}

.signature-preview {
  background-color: var(--card-bg);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 24px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preview-text {
  font-size: 36px;
  color: var(--text-color);
}

.type-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.color-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-picker label {
  font-weight: 500;
}

.color-picker input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.faq-item {
  background-color: var(--bg-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.faq-item h3 {
  margin-bottom: 12px;
  color: var(--primary-color);
}

.faq-item p {
  color: var(--text-color);
}

/* Contact Form */
.contact-section {
  padding: 80px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 40px;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary-color);
  min-width: 24px;
  margin-top: 4px;
}

.contact-item h3 {
  margin-bottom: 8px;
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--card-bg);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: 16px;
}

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

.error-message {
  color: var(--error-color);
  font-size: 14px;
  margin-top: 6px;
  display: block;
}

#form-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

#form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Privacy & Disclaimer */
.privacy-section, .disclaimer-section {
  padding: 80px 0;
}

.privacy-content, .disclaimer-content {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.privacy-content h2, .disclaimer-content h2 {
  margin-top: 24px;
  color: var(--primary-color);
}

.privacy-content p, .disclaimer-content p {
  margin-bottom: 16px;
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.about-text ul {
  padding-left: 1.5rem;
  margin: 20px 0;
}

.about-text li {
  margin-bottom: 12px;
  position: relative;
}

.about-text li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

.signature-showcase {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.signature-item {
  background-color: var(--bg-color);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.signature-item h3 {
  margin-bottom: 16px;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--card-bg);
  padding: 60px 0 30px;
  margin-top: 80px;
}

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

.footer-logo h3 {
  margin-bottom: 16px;
  color: var(--primary-color);
}

.footer-links h4, .footer-social h4 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 40px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    background-color: var(--bg-color);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-toggle, .theme-toggle {
    display: block;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .tool-header {
    flex-wrap: wrap;
  }
  
  .tab {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .canvas-controls, .type-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .action-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .privacy-content, .disclaimer-content {
    padding: 24px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .font-selector {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #font-select {
    width: 100%;
    min-width: auto;
  }
}

/* Animation for theme toggle */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: fadeIn 0.3s ease-in;
}