/* Dark mode toggle styles */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  background: var(--table-bg);
  border: 2px solid var(--table-border);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
  font-size: 20px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
  display: none;
  width: 20px;
  height: 20px;
  color: var(--text-color);
  stroke: var(--text-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

/* ===== FEATURE SECTIONS ===== */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent-color);
  fill: none;
  stroke-width: 1.5;
}


.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease; /* Smooth transition for filter changes */
}

/* Invert images in light mode */
[data-theme="light"] .feature-icon img {
  filter: invert(1); /* Inverts all colors: black becomes white, white becomes black */
}

.feature-content h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.1rem;
  color: var(--accent-color);
}

.feature-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-tertiary);
}


/* Animated SVG styles */
.animated-node {
  fill: var(--accent-color);
  /* animation: pulse 2s ease-in-out infinite; */
}

.animated-connection {
  stroke: var(--accent-color);
  stroke-width: 0.5;
  /* stroke-dasharray: 20; */
  animation: dash 3s linear infinite;
}

.animated-node-2 {
  fill: var(--accent-color);
  /* animation: pulse 2s ease-in-out infinite alternate; */
}

.animated-node-3 {
  fill: var(--accent-color);
  /* animation: pulse 2.5s ease-in-out infinite; */
}

.animated-triangle-line {
  stroke: var(--accent-color);
  stroke-width: 0.5;
  /* stroke-dasharray: 15; */
  animation: dash 2.5s linear infinite;
}

@keyframes pulse {
  0% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% { 
    transform: scale(1);
    opacity: 1;
  }
}

/* @keyframes dash {
  0% {
    stroke-dashoffset: 40;
  }
  100% {
    stroke-dashoffset: 0;
  }
} */

/* Get Started Section */
.get-started-section {
  padding: 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
}

.get-started-section h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.get-started-section > p {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--text-tertiary);
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* For images in aspect ratio containers within cards */
.card .aspect-w-3.aspect-h-2 img,
.card img {
  transition: filter 0.3s ease;
}

.card .aspect-w-3.aspect-h-2 img {
  filter: invert(0); /* Inverted in dark mode */
}

[data-theme="light"] .card .aspect-w-3.aspect-h-2 img {
  filter: invert(1); /* Original colors in light mode */
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(63, 196, 174, 0.1);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-primary);
}

.card-illustration {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.card-illustration img,
.card-illustration svg {
  max-width: 80%;
  max-height: 100%;
  filter: invert(1);
  transition: filter 0.3s ease;
}

[data-theme="light"] .card-illustration img,
[data-theme="light"] .card-illustration svg {
  filter: invert(0);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
  text-align: center;
  color: var(--text-tertiary);
}

.card a {
  color: var(--accent-color);
  text-decoration: underline;
  font-size: 0.9rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--accent-color), #2a9d8f);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 20px rgba(63, 196, 174, 0.3);
  backdrop-filter: blur(10px);
}

.back-to-top:hover {
  transform: translateY(-0px) scale(1.1);
  box-shadow: 0 8px 30px rgba(63, 196, 174, 0.5);
  background: linear-gradient(135deg, #4fd4c1, var(--accent-color));
}

.back-to-top:active {
  transform: translateY(-0px) scale(1.05);
}

/* Animated arrow */
.back-to-top::before {
  content: '';
  width: 12px;
  height: 12px;
  border-left: 2px solid #ffffff;
  border-top: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-bottom: -4px;
  transition: transform 0.3s ease;
}

.back-to-top:hover::before {
  transform: rotate(45deg) translateY(-0px);
}

/* ===== CONTACT FORM SECTION ===== */
.contact-section {
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.contact-container {
  width: 100%;
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.form-group {
  position: relative;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 300;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 0.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(63, 196, 174, 0.1);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--border-hover);
}

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

/* Error messages */
.error-message {
  display: none;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 300;
}

.form-group.error .error-message {
  display: block;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ff6b6b;
}

/* Submit button */
.submit-btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-color), #2a9d8f);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(63, 196, 174, 0.3);
  background: linear-gradient(135deg, #4fd4c1, var(--accent-color));
}

.submit-btn:active {
  transform: translateY(0);
}

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

/* Button loader */
.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
}

.submit-btn.loading .btn-text {
  opacity: 0.5;
}

.submit-btn.loading .btn-loader {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form feedback messages */
.form-feedback {
  margin-top: 1rem;
}

.success-message,
.error-message-general {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 300;
  animation: fadeIn 0.3s ease;
}

.success-message {
  background-color: rgba(63, 196, 174, 0.1);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.error-message-general {
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

.success-message.show,
.error-message-general.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}