:root {
  --primary-color: #001f3f;
  --primary-light: #003366;
  --accent-color: #f60;
  --accent-light: #ff8533;
  --text-color: #333;
  --text-light: #666;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-title {
  font-size: 2.8rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 4rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
}

.section-title.light {
  color: var(--white);
}

.section-title.light::after {
  background: var(--white);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
}

.header.scroll-down {
  transform: translateY(-100%);
}

.header.scroll-up {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-icon {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.logo-text {
  position: relative;
  font-size: 1.5rem;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40%;
  height: 3px;
  background: var(--accent-color);
  transition: var(--transition);
}

.logo:hover .logo-text::after {
  width: 100%;
}

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

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a i {
  font-size: 1.1rem;
  color: var(--accent-color);
  transition: var(--transition);
}

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

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

.nav-menu a:hover i {
  transform: translateY(-2px);
}

.cta-button.primary {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #FF6B35; /* Texto laranja */
  background-color: transparent; /* Fundo transparente */
  border: 2px solid #FF6B35; /* Borda laranja */
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cta-button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%; /* Começa fora do botão */
  width: 100%;
  height: 100%;
  background-color: #FF6B35; /* Fundo laranja */
  transition: left 0.3s ease;
  z-index: -1;
}

.cta-button.primary:hover {
  color: #ffffff; /* Texto branco ao passar o mouse */
  border-color: #FF6B35; /* Mantém a borda laranja */
}

.cta-button.primary:hover::before {
  left: 0; /* Preenche o botão */
}

.cta-button.primary:active {
  background-color: #E65A2B; /* Laranja mais escuro ao clicar */
  border-color: #E65A2B;
}

.cta-button.primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.9)),
              url('img/christina-wocintechchat-com-glRqyWJgUeY-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--light-bg), transparent);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.3s;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 6, 6, 0.15);
}

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

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--white);
  animation: bounce 5s infinite;
}
.hero-scrolltext {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  color: var(--white);
}

.hero-scroll span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-scroll i {
  font-size: 1.5rem;
}

/* About Section */
.about {
  padding: 8rem 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

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

.about-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom right, rgba(0, 31, 63, 0.8), rgba(255, 102, 0, 0.8));
  opacity: 0;
  transition: var(--transition);
}

.about-image:hover .about-image-overlay {
  opacity: 0.2;
}

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

.about-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateX(10px);
}

.about-card:hover::before {
  width: 100%;
  opacity: 0.1;
}

.about-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.about-values {
  padding: 2rem;
  background: var(--gradient);
  color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.values-list {
  list-style: none;
  margin-top: 1rem;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.values-list i {
  color: var(--accent-color);
}

/* Services Section */
.services {
  padding: 3rem 0;
  background: var(--light-bg);
  position: relative;
}

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

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-icon i {
  font-size: 2rem;
  color: var(--accent-color);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--white);
  transform: rotateY(360deg);
}

.service-features {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-features i {
  color: var(--accent-color);
}

.service-card:hover .service-features i {
  color: var(--white);
}

.service-cta {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--accent-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 25px;
  transition: var(--transition);
  text-align: center;
  margin-top: auto;
}

.service-card:hover .service-cta {
  background: var(--white);
  color: var(--primary-color);
}

/* Contact Section */
.contact {
  padding: 3rem 0;
  background: var(--gradient);
  color: var(--white);
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.contact-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.contact-card a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

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

.contact-social {
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-5px);
}

.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: calc(var(--border-radius) * 1.5);
  box-shadow: 
    0 12px 24px rgba(0,0,0,0.1),
    0 0 0 2px var(--accent-color),
    0 0 24px rgba(255,102,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(0,0,0,0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  background: rgba(0,0,0,0.05);
  color: #333;
  font-family: inherit;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 4px solid transparent;
}

/* Efeito de destaque no dropdown aberto */
.form-group select:focus {
  background: rgba(0,0,0,0.08);
  border-left: 4px solid var(--accent-color);
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.05),
    inset 0 0 0 1px rgba(0,0,0,0.1);
  outline: none;
}

/* Ícone personalizado para o dropdown */

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(0,0,0,0.08);
  border-left: 4px solid var(--accent-color);
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.05),
    inset 0 0 0 1px rgba(0,0,0,0.1);
}

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

.form-group:hover input:not(:focus),
.form-group:hover textarea:not(:focus) {
  border-left: 4px solid rgba(255,102,0,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  transform: translateX(5px);
  opacity: 0.5;
}

.submit-button {
  width: 100%;
  padding: 1.4rem;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff3300 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(255,102,0,0.2),
    0 0 0 2px rgba(255,255,255,0.1);
}

/* Animação de foco reforçada para dropdown */

@keyframes dropdown-focus {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding-top: 4rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
}

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

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

.footer-section ul a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 350px), (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    z-index: 100;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
  }

  .nav-menu a {
    font-size: 0.5rem;
  }

  .logo-text{
    font-size: 1.1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0.8rem;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  .filter-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}