* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

:root {
  /* Light Theme Colors */
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --border: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.5rem;
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;
}

html,
body {
  width: 100%;
  font-family: "Segoe UI", sans-serif;
  background: #000;
  line-height: 1.6;
  overflow-x: hidden;
}

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

header {
  background: #111;
  color: white;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  height: 6rem;
  top: 0;
  z-index: 3;
}

header img {
  height: 5rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
}

.nav a:hover {
  color: #149cea;
}

/* Hero Section */
.hero {
  padding: 150px 0 60px;
  text-align: center;
  background-image: url("./assets/img/fundo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn a {
  color: #fff !important;
}

button {
  width: 10em;
  position: relative;
  height: 3.5em;
  border: 3px ridge #0d6fc2;
  outerline: none;
  background: transparent;
  color: white;
  transition: 1s;
  border-radius: 0.3em;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 3%;
  width: 95%;
  height: 40%;
  transition: 0.5s;
  transform-origin: center;
}

button::before {
  content: "";
  position: absolute;
  transform-origin: center;
  top: 80%;
  left: 3%;
  width: 95%;
  height: 40%;
  transition: 0.5s;
}

button:hover::before,
button:hover::after {
  transform: scale(0);
}
button:hover {
  box-shadow: inset 0 0 25px #0d6fc2;
}

section {
  padding: 80px 0;
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  color: #fbbf24;
}

/* ABOUT */
.about {
  background-color: #050505;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));

  color: #fff;
}

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

.service-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.service-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: #374151;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.Ellipse {
  width: 150px;
  height: 150px;
  background: rgba(13, 111, 194, 1); /* #0d6fc2 com 57% de opacidade */
  box-shadow: 0 0 100px rgba(20, 156, 234, 1); /* #149cea com 57% de opacidade */
  border-radius: 100%;
  filter: blur(100px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-mission-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-text-paragraph {
  color: #fff;
  margin-bottom: 1rem;
}

.about-features {
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.feature-check {
  font-size: 0.875rem;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20rem;
  border-radius: var(--radius);
}

.about-rocket {
  font-size: 5rem;
}

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

.section-title {
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.section-description {
  font-size: 1.25rem;
  color: #fff;
  max-width: 48rem;
  margin: 0 auto;
}

article h2 {
  max-width: 600px;
}

.container h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* PROJETOS */
.projetos h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-top: 0;
  color: #333;
}

.card a {
  color: #0077cc;
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
  padding: 8px 16px;
  border: 1px solid #0077cc;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
}

.card a:hover {
  background-color: #0077cc;
  color: white;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
  background: #f5f5f5;
  border-radius: 4px;
}

.card p {
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.carousel {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  width: 100%;
  will-change: transform;
  backface-visibility: hidden;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  padding: 0 15px;
  box-sizing: border-box;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.carousel-button.prev {
  left: 0;
}

.carousel-button.next {
  right: 0;
}

.carousel-button:hover {
  background: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: #0077cc;
  transform: scale(1.2);
}

/* CONTATO*/
.contact {
  padding: 8rem 0;
  background: #1f2937;
  color: white;
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fbbf24;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item i {
  font-size: 1.2rem;
  color: #10b981;
  width: 20px;
}
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* BOTÃO HAMBÚRGUER */
.hamburger {
  display: none;
  border: none;
  background: none;
  border-top: 3px solid #fff;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 2;
}

.hamburger::after,
.hamburger::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background: #fff;
  margin-top: 5px;
  position: relative;
  transition: 0.3s;
}

/* MENU MOBILE */
.mobile-nav {
  display: none;
}

/* Responsivo */

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 2fr 1fr;
  }

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

@media (min-width: 992px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - 30px);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
  }

  .hamburger {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    clip-path: circle(45px at 90% -15%);
    transition: clip-path 0.6s ease-in-out, background-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
  }

  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
  }

  .mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    transition: color 0.3s ease;
  }

  .mobile-menu a:hover,
  .mobile-menu a:active {
    color: #149cea;
  }

  /* Animações individuais */
  .mobile-menu li:nth-child(1) a {
    transition: 0.5s 0.2s;
  }

  .mobile-menu li:nth-child(2) a {
    transition: 0.5s 0.4s;
  }

  .mobile-menu li:nth-child(3) a {
    transition: 0.5s 0.6s;
  }

  .mobile-nav.active .mobile-menu {
    clip-path: circle(1500px at 90% -15%);
    pointer-events: all;
  }

  .mobile-nav.active .mobile-menu a {
    opacity: 1;
  }

  .mobile-nav.active .hamburger {
    position: fixed;
    top: 26px;
    right: 16px;
    border-top-color: transparent;
  }

  .mobile-nav.active .hamburger::before {
    transform: rotate(135deg);
  }

  .mobile-nav.active .hamburger::after {
    transform: rotate(-135deg);
    top: -7px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .sobre {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .sobre article h2,
  .container h2 {
    text-align: center;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }
  .service-features li {
    font-size: 0.9rem;
    padding-left: 1.2rem;
  }

  .section-description {
    font-size: 1rem;
    max-width: 95%;
    padding: 0;
  }

  .carousel-slide {
    flex: 0 0 85%;
    margin-right: 15px;
    padding: 0;
    scroll-snap-align: start;
  }

  .carousel-container {
    padding: 0;
  }

  .carousel-button {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

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

  .card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: calc(var(--radius) / 2);
    margin-bottom: 1rem;
    background-color: hsl(var(--muted));
  }

  .card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card a {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
  }

  .contact {
    padding: 4rem 0;
  }

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

  @media (max-width: 480px) {
    .mobile-nav h1 {
      font-size: 1rem;
    }

    .mobile-nav {
      width: 100%;
      max-width: 100%;
      padding: 15px;
    }
    .mobile-menu {
      width: 100%;

      padding-top: 70px;
    }

    .mobile-menu a {
      font-size: 1.2rem;
      text-decoration: none;
    }

    header img {
      height: 3.5rem;
    }

    section {
      padding: 60px 15px;
    }

    .container {
      padding: 0 15px;
      width: 100%;
    }

    .hero {
      padding: 100px 15px 40px;
    }

    img {
      max-width: 100%;
      height: auto;
    }

    .hero h2 {
      font-size: 1.8rem;
    }

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