/* CSS Variables for consistent theming */
:root {
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  --renaissance-curve: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Classic Renaissance */
  --primary-color: #8b4513;
  --secondary-color: #cd853f;
  --accent-color: #deb887;
  --background: #fdf6e3;
  --surface: #ffffff;
  --text-primary: #3c2415;
  --text-secondary: #5d4e37;
  --text-muted: #8b7765;
  --border: #e6ddd4;
  --error-color: #c0392b;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Button styles with renaissance curves */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--renaissance-curve);
  position: relative;
  overflow: hidden;
  color: white;
}

.btn-primary {
  background: var(--gradient);
  box-shadow: var(--shadow);
}

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

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

.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--surface);
  backdrop-filter: blur(10px);
  z-index: 999;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

header .btn {
  padding: 0.5rem 1.5rem;
}

header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

header nav ul a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s var(--renaissance-curve);
  position: relative;
}

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

header nav ul a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--primary-color);
  transition: all 0.3s var(--renaissance-curve);
  transform: translateX(-50%);
}

header nav ul a:hover::after {
  width: 100%;
}

.mobile-menu {
  position: fixed;
  display: flex;
  top: 67px;
  right: 0;
  /* height: calc(100vh - 77px); */
  width: 100%;
  z-index: 999;
  background-color: var(--surface);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.hide {
  display: none;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: var(--surface);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3" fill="%23deb887" opacity="0.18"/><circle cx="32" cy="8" r="3" fill="%23deb887" opacity="0.18"/><circle cx="8" cy="32" r="3" fill="%23deb887" opacity="0.18"/><circle cx="32" cy="32" r="3" fill="%23deb887" opacity="0.18"/></svg>')
    repeat;
  background-size: 50px 50px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  margin-bottom: 3rem;
}

/* .video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  padding: 1rem;
}

.video-placeholder {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s var(--renaissance-curve);
}

.video-placeholder:hover {
  transform: scale(1.02);
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.play-button::after {
  content: "▶";
  color: var(--primary-color);
  font-size: 2rem;
  margin-left: 4px;
} */

/* Section styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 16px;
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--shadow);
  transition: all 0.3s var(--renaissance-curve);
  position: relative;
}

.problem-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.problem-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  flex-shrink: 0;
  background: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--text-secondary);
}

.problem-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

.problem-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.impact-stat {
  display: inline-block;
  background: var(--accent-color);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  position: absolute;
  bottom: 1.5rem;
}

/* Solutions Section */
.solutions {
  background: var(--surface);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.solution-card {
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s var(--renaissance-curve);
  border: 1px solid var(--primary-color);
  height: 100%;
}

#main-solution {
  padding-top: 3.5rem;
}

.solution-card:first-child {
  border: 2px solid var(--secondary-color);
}

#main-solution {
  position: relative;
  overflow: hidden;
}

.specialty-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.solution-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.solution-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.integrations {
  background: var(--surface);
  padding: 0 2.5rem;
  margin-top: 4rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.integrations .container {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
}

.subsection-header {
  align-self: center;
}

@keyframes slide {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

.logos {
  overflow: hidden;
  height: 18rem;
  width: 70%;
  justify-self: center;
}

.logos-slide {
  display: flex;
  flex-direction: column;
  animation: 15s slide infinite linear;
}

.logos-slide img {
  height: 50px;
  margin: 2rem 0;
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
}

.process-step:last-child::before {
  display: none;
}

.process-number {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.process-step h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
  background: var(--surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-video {
  justify-self: center;
}

.testimonial-video iframe {
  border-radius: 20px;
  height: 25rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--primary-color);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s var(--renaissance-curve);
  height: fit-content;
  align-self: center;
}

.testimonial-content {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.author-info h4 {
  margin: 0;
  color: var(--text-primary);
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
}

/* FAQ Section */
.faq a[href="#contact"] {
  color: var(--text-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.faq-item .faq-toggle {
  display: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border: none;
  background: none;
}

.faq-question-text {
  transition: all 0.2s var(--renaissance-curve);
}

.faq-question:hover .faq-question-text {
  color: var(--secondary-color);
}

.faq-toggle:checked + .faq-question .faq-question-text {
  color: var(--secondary-color);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s var(--renaissance-curve);
  margin-left: 0.5rem;
}

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

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s grid-template-rows var(--renaissance-curve);
  padding: 0 1.5rem;
}

.faq-answer-content {
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  transition: padding-bottom 0.3s var(--renaissance-curve);
}

.faq-toggle:checked ~ .faq-answer {
  grid-template-rows: 1fr;
}

.faq-toggle:checked ~ .faq-answer .faq-answer-content {
  padding-bottom: 1.5rem;
}

/* Contact Section */
/* .contact {
  background: var(--surface);
} */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-form {
  background: var(--surface);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

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

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

.form-group.required label::after {
  content: " *";
  color: #e74c3c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s var(--renaissance-curve);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.form-group.valid input,
.form-group.valid textarea {
  border-color: #27ae60;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #e74c3c;
}

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

.form-error {
  display: none;
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  padding-left: 0.5rem;
}

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

.form-success {
  display: none;
  color: #27ae60;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  padding-left: 0.5rem;
}

.form-group.valid .form-success {
  display: block;
}

.character-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
}

.character-count.warning {
  color: #f39c12;
}

.character-count.danger {
  color: #e74c3c;
}

.form-submit-btn {
  position: relative;
  overflow: hidden;
}

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

.form-submit-btn .loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.form-submit-btn.loading .btn-text {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-success-message {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #c3e6cb;
  margin-bottom: 1rem;
}

.book-call-section {
  text-align: center;
  padding: 3rem;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 2px solid var(--primary-color);
  height: fit-content;
}

.book-call-section h3 {
  margin-bottom: 1rem;
}

.book-call-section p {
  margin-bottom: 2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  background: var(--text-primary);
  text-align: center;
  padding: 3rem 0;
}

footer p {
  color: var(--accent-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  nav.container {
    padding: 0;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .problem {
    padding: 3rem 1rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .problem-card {
    padding: 1.5rem;
    position: static;
  }

  .problem-card p {
    margin-bottom: 1.5rem;
  }

  .impact-stat {
    position: static;
  }

  .integrations {
    padding: 2rem 0;
  }

  .integrations .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .logos {
    height: 4rem;
    width: 100%;
    white-space: nowrap;
  }

  @keyframes slide {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-100%);
    }
  }

  .logos-slide {
    display: inline-block;
    animation: 20s slide infinite linear;
  }

  .logos-slide img {
    height: 35px;
    margin: 0 1rem;
  }

  /* .video-placeholder {
    height: 250px;
  } */

  .process-step::before {
    display: none;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 940px) {
  .hide-on-mobile {
    display: none;
  }

  .mobile-menu-icons {
    display: block;
  }
}

/* Animation utilities */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--renaissance-curve);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.solution-card.fade-in.visible:hover,
.testimonial-card.fade-in.visible:hover,
.problem-card.fade-in.visible:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
