@import './variables.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container-fluid {
  margin: 0 auto;
  padding: 0 140px;
}

/* Hero Section */
.hero {
  background-color: var(--color-gray-100);
  color: var(--color-gray-800);
  padding-top: 10vh;
}

.hero .container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero-content {
  max-width: 920px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-image {
  flex: 1;
  text-align: center;
  min-height: 400px;
  max-width: fit-content;
  display: flex;
  gap: 50px;
}

.hero-image img {
  max-width: auto;
  height: 400px;
  object-fit: contain;
}

.hero h2 {
  font-size: 30px;
}

.hero .button {
  margin-top: 10px;
}

/* Features Section */
.features-section {
  padding: 100px 140px;
  background-color: var(--color-gray-50);
}

.features-section .container-fluid {
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.section-header h2 {
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  width: 100%;
}

.features-grid.features-grid-secondary {
  grid-template-columns: repeat(4, minmax(300px, 1fr));
  gap: 30px;
}

.features-grid.features-grid-tertiary {
  grid-template-columns: repeat(2, minmax(500px, 1fr));
  gap: 60px;
}

.feature-item {
  text-align: center;
  height: 100%;
  padding: 30px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-gray-600);
}

.feature-item p {
  font-size: 16px;
  color: var(--color-gray-400);
}

/* Video Section */
.video-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-900));
  position: relative;
  overflow: hidden;
  color: var(--color-gray-50);
  text-align: center;
}

.video-section .container-fluid {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  padding: 0 140px;
}

.video-section .section-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  max-width: 800px;
  gap: 20px;
}

.video-section h2 {
  font-size: 54px;
  line-height: 54px;
  text-align: left;
  font-weight: 700;
}

.video-section h4 {
  font-size: 30px;
  text-align: left;
  font-weight: 300;
  line-height: 1;
  max-width: 600px;
  color: var(--color-gray-200);
}

.video-section p {
  font-weight: 300;
  color: var(--color-gray-translucid);
  line-height: 1.2;
  text-align: left;
}

.video-section button {
  margin-top: 10px;
}

.video-container {
  flex: 1.1;
  text-align: center;
  width: 100%;
  max-width: 700px;
  min-width: 500px;
  height: auto;
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(66, 133, 244, 0.2);
  transition: all 0.3s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 15px 30px rgba(66, 133, 244, 0.25);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
  background-color: var(--color-gray-200);
  transition: transform 0.3s ease;
}

.perspectiva-img {
  flex: 1;
  text-align: center;
  min-width: 300px;
}

.perspectiva-img img {
  width: 85%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: transparent;
}

/* Showcase Section */
.showcase-section {
  padding: 0;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-900));
  color: var(--color-gray-50);
  overflow: visible;
}

.showcase-section .container-fluid {
  margin: 0 auto;
  padding: 80px 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-section .section-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 700px;
  gap: 30px;
  padding: 80px 0;
  margin-right: 300px;
}

.showcase-section h2 {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.showcase-section p {
  line-height: 1.4;
  color: var(--color-gray-translucid);
  text-align: justify;
}

.showcase-image {
  max-width: 600px;
  height: 600px;
}

.showcase-image img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* Variação para produtos iDFace */
.showcase-section.idface .showcase-image {
  top: 0;
  right: 0;
  height: 600px;
  max-width: 600px;
}

.showcase-section.idface .section-header {
  margin-right: 300px;
}

/* Technical Details */
.models-table-section .container-fluid,
.tech-details .container-fluid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tech-details {
  padding: 80px 0;
  background-color: var(--color-gray-50);
}

.tech-table {
  background: var(--color-gray-50);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tech-table table {
  width: 100%;
  border-collapse: collapse;
}

.tech-table th {
  background-color: var(--color-primary-500);
  color: var(--color-gray-50);
  padding: 20px;
  font-weight: 600;
  text-align: left;
}

.tech-table td {
  padding: 20px;
  border-bottom: 1px solid var(--color-gray-100);
  text-align: left;
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table tr:nth-child(even) {
  background-color: var(--color-gray-100);
}

/* Models Table Section */
.models-table-section {
  padding: 80px 0;
  background-color: var(--color-gray-50);
}

.check-cell {
  text-align: center;
  color: var(--color-green);
  font-weight: bold;
}

.empty-cell {
  text-align: center;
  color: var(--color-red);
}

/* Box Content Section */
.box-content {
  padding: 80px 0;
  background-color: var(--color-gray-50);
}

.box-content .container-fluid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  width: 100%;
}

.box-content-text {
  flex: 0.9;
}

.box-content-text .section-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.box-content-image {
  flex: 1.1;
  text-align: center;
  width: 100%;
  max-width: 700px;
  min-width: 500px;
  height: auto;
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(66, 133, 244, 0.2);
  transition: all 0.3s ease;
}

.box-content-image img,
.box-content-image video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
  background-color: var(--color-gray-200);
  transition: transform 0.3s ease;
}

.box-content-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 15px 30px rgba(66, 133, 244, 0.15);
}

.box-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.box-feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background-color: var(--color-gray-100);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.box-feature-item:hover {
  transform: translateX(5px);
  box-shadow: 0 15px 15px rgba(4, 22, 59, 0.1);
}

.box-feature-item img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.box-feature-text h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-gray-600);
}

.box-feature-text p {
  font-size: 16px;
  color: var(--color-gray-400);
  line-height: 1.4;
}

/* Downloads Section */
.downloads {
  padding: 80px 0;
  background-color: var(--color-gray-50);
  text-align: center;
}

.downloads-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  margin-top: 30px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 30px;
  background-color: var(--color-gray-50);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.download-item img {
  height: 70px;
  width: auto;
}

.download-item p {
  font-weight: 500;
  margin: 0;
  color: var(--color-gray-600);
}

.download-item i {
  font-size: 26px;
  color: var(--color-gray-600);
  transition: all 0.3s ease;
}

.download-item:hover i {
  color: var(--color-primary-500);
  transform: scale(1.05);
}

.download-item:hover {
  transform: translateY(-2px);
  color: var(--color-primary-500);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsivity */
@media (max-width: 768px) {
  .container-fluid {
    padding: 0 20px;
  }

  /* Hero Section */
  .hero {
    padding-top: 60px;
  }

  .hero .container-fluid {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-bottom: 40px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-image {
    min-height: auto;
    max-width: 100%;
    flex-direction: column;
    gap: 20px;
  }

  .hero-image img {
    height: auto;
    max-width: 100%;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero .button {
    align-self: center;
  }

  /* Features Section */
  .features-section {
    padding: 60px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .features-grid.features-grid-secondary {
    grid-template-columns: 1fr;
  }

  .features-grid.features-grid-tertiary {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 26px;
  }

  /* Video Section */
  .video-section {
    padding: 60px 0;
  }

  .video-section .container-fluid {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
  }

  .video-section .section-header {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .video-section h2 {
    text-align: center;
    font-size: 32px;
    line-height: 1.2;
  }

  .video-section h4 {
    text-align: center;
    font-size: 24px;
  }

  .video-section p {
    text-align: center;
  }

  .video-container {
    max-width: calc(100vw - 40px);
    min-width: auto;
    width: 100%;
    border-radius: 16px;
  }

  .perspectiva-img {
    min-width: auto;
    width: 100%;
  }

  .perspectiva-img img {
    width: 100%;
    max-width: 300px;
  }

  /* Showcase Section */
  .showcase-section .container-fluid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 60px 20px;
  }

  .showcase-section .section-header {
    max-width: 100%;
    align-items: center;
    margin-right: 0;
    padding: 0;
  }

  .showcase-section h2 {
    text-align: center;
    font-size: 32px;
  }

  .showcase-section p {
    text-align: center;
  }

  .showcase-image {
    max-width: 100%;
    height: auto;
  }

  .showcase-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
  }

  /* Tech Details */
  .tech-details {
    padding: 60px 0;
  }

  .tech-table {
    overflow-x: auto;
  }

/*   .tech-table th,
  .tech-table td {
    padding: 15px 10px;
    font-size: 14px;
    white-space: nowrap;
  } */

  .tech-table th,
.tech-table td {
  padding: 15px 10px;
  font-size: 14px;
  white-space:initial;
  max-width: 150px;
  overflow:inherit;
  text-overflow: ellipsis;
}

  /* Models Table */
  .models-table-section {
    padding: 60px 0;
  }

  /* Box Content */
  .box-content {
    padding: 60px 0;
  }

  .box-content .container-fluid {
    flex-direction: column;
    gap: 40px;
  }

  .box-content-image {
    max-width: calc(100vw - 40px);
    min-width: auto;
    width: 100%;
  }

  .box-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .box-feature-item {
    padding: 20px 15px;
  }

  .box-feature-item img {
    width: 40px;
    height: 40px;
  }

  .box-feature-text h4 {
    font-size: 18px;
  }

  .box-feature-text p {
    font-size: 15px;
  }

  /* Downloads */
  .downloads {
    padding: 60px 0;
  }

  .downloads-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .download-item {
    max-width: 100%;
    gap: 20px;
    padding: 15px 20px;
  }

  .download-item img {
    height: 50px;
  }
}