/* Base Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #dcac5c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #fff;
  --font-main: "Arial", sans-serif;
  --font-heading: "Helvetica", sans-serif;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

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

h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 0.5rem auto;
}

p {
  margin-bottom: 1rem;
  text-align: left;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn-red {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-red:hover {
  background-color: #a48464;
  transform: translateY(-2px);
  color: var(--light-color);
}

.btn-submit {
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.btn-submit:hover {
  background-color: var(--accent-color);
  color: var(--light-color);
}

/* Layout */
.section {
  padding: 5rem 0;
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.section-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-color);
  color: var(--primary-color);
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-speed);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
}

.hamburger-menu {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  padding: 0;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  margin-left: 50px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all var(--transition-speed);
}

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

.nav-link {
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  position: relative;
  font-weight: bold;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

.nav-link:hover::after {
  width: 100%;
}

/* Slider Section */
.slider-section {
  padding: 0;
  position: relative;
  height: 90vh;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.slide-content {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  max-width: 800px;
  color: var(--text-light);
  text-align: right;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  padding: 2rem; /* Add padding for better spacing */
  border-radius: 8px; /* Optional: rounded corners */
}

.slide-content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  text-align: left;
}

.slide-content h2::after {
  margin: 0.5rem 0 0.5rem auto;
}

.slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-light);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.indicator.active {
  background: var(--text-light);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  border: none;
  font-size: 1.5rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-speed);
}

.slider-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 2rem;
}

.next {
  right: 2rem;
}

/* Accordion Section */
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1.5rem;
  background-color: var(--light-color);
  border: none;
  text-align: left;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.accordion-header:hover {
  background-color: #dfe6e9;
}

.accordion-icon {
  width: 30px;
  height: 30px;
  margin-right: 1rem;
}

.accordion-arrow {
  transition: transform var(--transition-speed);
}

.accordion-header[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed),
    padding var(--transition-speed);
}

.accordion-content[aria-hidden="false"] {
  padding: 1.5rem;
  max-height: 500px;
}

.accordion-content ol {
  padding-left: 2rem;
  margin: 1rem 0;
}

.text-link {
  color: var(--accent-color);
  font-weight: bold;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 5px;
  text-align: center;
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
  width: 300px;
  height: 220px;
  margin-bottom: 1rem;
}

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

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 5px;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

address p {
  margin-bottom: 0.5rem;
}

.contact-form {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 5px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
}

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

.error-message {
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.form-error {
  color: var(--accent-color);
  text-align: center;
  margin-top: 1rem;
  display: none;
}

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

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Case Study Page Styles */
.case-study-page {
  padding-top: 80px;
}

.case-study-hero {
  display: flex;
  min-height: 500px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.hero-content {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-content {
  padding: 4rem 0;
}

.content-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.case-study-section {
  margin-bottom: 4rem;
}

.case-study-section h2 {
  text-align: left;
  margin-bottom: 2rem;
}

.case-study-section h2::after {
  margin: 0.5rem 0;
}

.highlight-section {
  background-color: var(--light-color);
  padding: 3rem;
  border-radius: 8px;
}

/* Solution Grid */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.solution-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
}

.solution-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.result-card {
  text-align: center;
  padding: 1.5rem;
}

.result-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Testimonial */
.testimonial {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem;
  border-radius: 8px;
}

.testimonial blockquote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial footer {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.author-title {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 4px solid var(--accent-color);
}

.timeline-date {
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* CTA */
.case-study-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background-color: var(--light-color);
  border-radius: 8px;
}

.case-study-cta h3 {
  margin-bottom: 1.5rem;
}

/* Back to Home */
.back-to-home {
  display: inline-flex;
  align-items: center;
  color: var(--text-light);
  margin-top: 1rem;
}

.back-to-home i {
  margin-right: 0.5rem;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .case-study-hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-content {
    padding: 2rem;
  }

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

  .subtitle {
    font-size: 1.2rem;
  }

  .hero-image {
    height: 300px;
  }

  .solution-grid,
  .results-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .case-study-section {
    margin-bottom: 2rem;
  }

  .highlight-section,
  .testimonial,
  .case-study-cta {
    padding: 2rem 1rem;
  }
}

#search-form {
  display: flex;
  align-items: center;

  gap: 10px;
}

#voice-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

#search-input {
  padding: 9px;
  border: none;
}
