/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #2563eb;
  --secondary-blue: #1e40af;
  --accent-blue: #3b82f6;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-300: #cbd5e1;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --gradient-secondary: linear-gradient(135deg, #1e40af 0%, #1e1b4b 100%);
  --gradient-accent: linear-gradient(45deg, #3b82f6, #2563eb, #1e40af);
}

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

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 1.8rem;
}

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

.nav-link {
  text-decoration: none;
  color: var(--gray-300);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(37, 99, 235, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(30, 64, 175, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--gray-300);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-orb {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient-accent);
  position: relative;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.3),
    inset 0 0 50px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tech-orb::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.tech-orb img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.floating-elements {
  position: absolute;
  inset: 0;
}

.element {
  position: absolute;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.7;
}

.element-1 {
  width: 80px;
  height: 60px;
  top: 20%;
  left: 10%;
  animation: float 4s ease-in-out infinite;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: none;
}

.element-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.element-2 {
  width: 80px;
  height: 60px;
  top: 70%;
  right: 15%;
  animation: float 5s ease-in-out infinite reverse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: none;
}

.element-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.element-3 {
  width: 80px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation: float 3s ease-in-out infinite;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: none;
}

.element-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.element-4 {
  width: 80px;
  height: 60px;
  top: 15%;
  right: 10%;
  animation: float 4.5s ease-in-out infinite;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: none;
  position: absolute;
}

.element-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.stat {
  text-align: center;
}

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

.stat-label {
  color: var(--gray-300);
  font-size: 0.9rem;
}

/* Section Styles */
section {
  padding: 6rem 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: var(--darker-bg);
}

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

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
}

.about-text p {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-features {
  display: grid;
  gap: 2rem;
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.2rem;
  color: var(--white);
}

.feature h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.feature p {
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--gray-800);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.service-card p {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.service-card li {
  color: var(--gray-300);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

/* Team Section */
.team {
  background: var(--darker-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

/* Team grid for four members */
.team-grid.team-four {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin: 3rem auto 0;
  gap: 2rem;
}

@media (max-width: 768px) {
  .team-grid.team-four {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.team-member {
  background: var(--gray-800);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-photo {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-photo:hover .member-overlay {
  opacity: 1;
}

.member-photo:hover img {
  transform: scale(1.1);
}

.member-social {
  display: flex;
  gap: 1rem;
}

.member-social a {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.member-social a:hover {
  transform: scale(1.1);
}

.member-info {
  padding: 2rem;
}

.member-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.member-role {
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.member-description {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Expertise Section */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.expertise-item {
  background: var(--gray-800);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.expertise-item:hover {
  transform: translateY(-5px);
  background: var(--gradient-primary);
}

.expertise-item i {
  font-size: 2rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.expertise-item:hover i {
  color: var(--white);
}

.expertise-item h4 {
  color: var(--white);
  font-size: 1rem;
}

/* Demos Section */
.demos {
  background: var(--darker-bg);
}

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

.demo-card {
  background: var(--gray-800);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

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

.demo-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.demo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demo-image:hover .demo-overlay {
  opacity: 1;
}

.demo-image:hover img {
  transform: scale(1.1);
}

.demo-link {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.demo-link:hover {
  transform: scale(1.05);
}

.demo-content {
  padding: 1.5rem;
}

.demo-content h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.demo-content p {
  color: var(--gray-300);
  line-height: 1.6;
}

/* Clients Section */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}

.client-logo {
  background: var(--white);
  padding: 0.8rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.client-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

.client-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.client-name {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-top: 0.5rem;
}

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

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.2rem;
  color: var(--white);
}

.contact-details h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--gray-300);
}

/* Contact Simple Layout */
.contact-content-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 800px;
  margin: 0 auto;
  justify-items: center;
  align-items: start;
}

/* Força o layout em 2 colunas para telas maiores */
@media (min-width: 769px) {
  .contact-content-simple {
    grid-template-columns: 1fr 1fr !important;
  }
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--gray-800);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: var(--white);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

/* Footer */
.footer {
  background: var(--darker-bg);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section h3 {
  color: var(--accent-blue);
  font-size: 1.5rem;
}

.footer-section p {
  color: var(--gray-300);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: var(--gray-300);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(15, 23, 42, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
  }

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

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    height: 300px;
  }

  .tech-orb {
    width: 200px;
    height: 200px;
  }

  .tech-orb img {
    width: 90%;
    height: 90%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }
}
