/*
==============================================
DevLife Tecnologia - Website CSS
==============================================
*/

/* ===== CSS RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== ROOT VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #1fc88a;
  --secondary-color: #363a3d;
  --text-color: #333;
  --text-light: #919696;
  --bg-light: #fbfbfb;
  --bg-dark: #363a3d;
  --white: #fff;
  --border-color: #e0e0e0;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;

  /* Fonts */
  --font-primary: 'Poppins', sans-serif;

  /* Other */
  --border-radius: 5px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

/* ===== GLOBAL STYLES ===== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

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

.btn-primary:hover {
  background-color: #19ad77;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--white);
}

.bg-dark .section-header h2 {
  color: var(--white);
}

/* ===== HEADER STYLES ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 1rem 0;
  z-index: 1000;
  transition: var(--transition);
}

#header.scrolled {
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  transition: var(--transition);
}

.scrolled .logo img {
  height: 40px;
}

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

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.scrolled .nav-menu a {
  color: var(--text-color);
}

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

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--white);
}

.scrolled .bar {
  background-color: var(--text-color);
}

.social-icons {
  display: flex;
}

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

.scrolled .social-icon {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
}

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

/* ===== HERO SECTION ===== */
#hero {
  height: 100vh;
 background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://ext.same-assets.com/1302069360/2320801393.png'),
    #363a3d; /* Cor de fallback */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero-content {
  width: 100%;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  animation: fadeInDown 1s ease;
}

#hero h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

#hero .btn {
  animation: fadeIn 1.5s ease;
}

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

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  top: 0;
}

.service-card:hover {
  top: -10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

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

.service-card p {
  color: var(--text-light);
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-light);
}

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

.feature-box {
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.feature-box p {
  color: var(--text-light);
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-us-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.why-us-card {
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.why-us-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.why-us-card:hover .why-us-icon {
  transform: rotateY(360deg);
}

.why-us-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.why-us-card p {
  color: var(--text-light);
}

/* ===== PRODUCTS SECTION ===== */
.cta-box {
  text-align: center;
  margin-bottom: 3rem;
}

.product-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 3rem;
}

.product-header {
  margin-bottom: 1rem;
}

.product-header h3 {
  font-size: 1.8rem;
  color: var(--white);
}

.product-box > p {
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.product-features p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.product-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-image img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.product-image:hover img {
  transform: scale(1.03);
}

/* ===== CLIENTS SECTION ===== */
.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.clients-logos img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.clients-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-detail p {
  color: var(--text-light);
}

.contact-info .social-icons {
  margin-top: 2rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(31, 200, 138, 0.2);
}

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

/* ===== FOOTER ===== */
#footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 5rem 0 0;
}

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

.footer-about h3,
.footer-nav h3,
.footer-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

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

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-left: 15px;
  padding-right: 15px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom .social-icons {
  justify-content: flex-end;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: #19ad77;
  transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .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 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
  }

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

  .nav-menu li {
    margin: 1.5rem 0;
  }

  .nav-menu a {
    color: var(--text-color);
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  #hero h1 {
    font-size: 2.8rem;
  }

  #hero h2 {
    font-size: 1.3rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media screen and (max-width: 768px) {
  .header-content .social-icons {
    display: none;
  }

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

  #hero h2 {
    font-size: 1.2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom .social-icons {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  #hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

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