/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1e3a8a;
  --dark-blue: #1e40af;
  --light-blue: #3b82f6;
  --red: #dc2626;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f8fafc;
  --gray-medium: #64748b;
  --gray-dark: #334155;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
}

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

/* Header */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo h2 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: bold;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--red);
  font-size: 1.8rem;
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

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

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

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

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

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

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

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

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--red);
  color: var(--red);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-blue);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-icon {
  font-size: 15rem;
  opacity: 0.3;
  color: var(--white);
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: var(--gray-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 3rem;
  font-weight: bold;
}

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

.service-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--red);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  background-color: var(--primary-blue);
  color: var(--white);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.service-card h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

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

.service-features {
  list-style: none;
}

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

.service-features li::before {
  content: '✓';
  color: var(--red);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Projects Section */
.projects {
  padding: 80px 0;
  background-color: var(--white);
}

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

.project-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--white);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 0.9;
}

.project-info {
  text-align: center;
  color: var(--white);
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-decoration: none;
  display: block;
}

.project-card:hover .project-info {
  transform: translateY(0);
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 1rem;
  opacity: 0.9;
}

.projects-cta {
  text-align: center;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--white);
}

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

.about h2 {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.about p {
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  color: var(--red);
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--gray-dark);
  font-weight: 600;
  margin: 0;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-icon {
  font-size: 12rem;
  color: var(--primary-blue);
  opacity: 0.1;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--gray-light);
}

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

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  background-color: var(--primary-blue);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.contact-item p {
  color: var(--gray-medium);
  margin: 0;
}

.contact-form {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

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

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

/* Footer */
.footer {
  background-color: var(--black);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

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

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

.footer-section p {
  color: var(--gray-medium);
  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-medium);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-section ul li i {
  margin-right: 0.5rem;
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid var(--gray-dark);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-medium);
  margin: 0;
}

.portfolio {
  padding: 80px 0;
  background-color: var(--white);
}

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

.portfolio-item {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--red);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 0.8;
}

.portfolio-info-overlay {
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-decoration: none;
  display: block;
}

.portfolio-item:hover .portfolio-info-overlay {
  transform: translateY(0);
}

.portfolio-info-overlay i {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.portfolio-info-overlay p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Project Details Pages */
.project-details {
  padding: 80px 0;
  background-color: var(--white);
}

.project-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.project-main-info h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: bold;
}

.project-image-large {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-image-large img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.project-main-info p {
  color: var(--gray-medium);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.project-main-info h3 {
  color: var(--primary-blue);
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  font-weight: bold;
}

.project-solutions {
  list-style: none;
  margin-bottom: 2rem;
}

.project-solutions li {
  color: var(--gray-dark);
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 2rem;
  line-height: 1.6;
}

.project-solutions li::before {
  content: '✓';
  color: var(--red);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.project-specs {
  background-color: var(--gray-light);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.project-specs h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: var(--gray-dark);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item strong {
  color: var(--primary-blue);
}

.project-technologies {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-technologies h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-tag {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-navigation {
  padding: 40px 0;
  background-color: var(--gray-light);
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-buttons .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive for project details */
@media (max-width: 768px) {
  .project-info-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-buttons {
    flex-direction: column;
    text-align: center;
  }
  
  .project-image-large img {
    height: 200px;
  }
  
  .project-specs,
  .project-technologies {
    padding: 1.5rem;
  }
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-content h3 {
  color: var(--primary-blue);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.portfolio-category {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-content p {
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.portfolio-features {
  list-style: none;
}

.portfolio-features li {
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.portfolio-features li::before {
  content: '✓';
  color: var(--red);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: var(--gray-light);
}

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

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  color: var(--gray-medium);
  font-style: italic;
  line-height: 1.6;
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-blue);
  position: absolute;
  left: -20px;
  top: -10px;
  opacity: 0.3;
}

.testimonial-author h4 {
  color: var(--primary-blue);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.testimonial-author p {
  color: var(--gray-medium);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

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

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

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

  .hero-icon {
    font-size: 8rem;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-icon {
    font-size: 8rem;
  }

  .stats {
    justify-content: center;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

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

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

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

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

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

  .service-card,
  .contact-form {
    padding: 1.5rem;
  }

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

  .portfolio-content {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .project-image {
    height: 200px;
  }

  .project-info {
    padding: 1.5rem;
  }
}