/* Main Styles for AV-GPS Website */
:root {
  --primary-color: #0066cc;
  --secondary-color: #ffcc00;
  --accent-color: #ff6600;
  --dark-color: #1a2a3a;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --white-color: #ffffff;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px */
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 2rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.section-title::after {
  content: '';
  width: 10rem;
  height: 0.4rem;
  background-color: var(--secondary-color);
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0.2rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 1.2rem 3rem;
  border-radius: 5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

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

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.header.scrolled {
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.98);
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark-color);
}

.logo svg {
  margin-right: 1rem;
}

.menu-toggle {
  display: none;
  font-size: 2.4rem;
  color: var(--dark-color);
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 3rem;
}

.nav-links a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.5rem;
}

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

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

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1920x1080/?brazil,road') no-repeat center center/cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white-color);
  padding: 0 2rem;
  margin-top: 0;
}

.hero h1,
.hero p {
  color: var(--white-color);
}

.hero-content {
  max-width: 80rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
  animation: fadeIn 1.5s ease;
}

.hero .btn {
  animation: fadeInUp 2s ease;
}

/* Features Section */
.features {
  padding: 10rem 0;
  background-color: var(--white-color);
}

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

.feature-card {
  background-color: var(--light-color);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-1rem);
}

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

.feature-title {
  margin-bottom: 1.5rem;
}

/* Services Section */
.services {
  padding: 10rem 0;
  background-color: var(--light-color);
}

.service-item {
  display: flex;
  align-items: center;
  margin-bottom: 5rem;
  background-color: var(--white-color);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-icon {
  flex: 0 0 20%;
  background-color: var(--primary-color);
  padding: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-color);
  font-size: 5rem;
}

.service-content {
  flex: 0 0 80%;
  padding: 4rem;
}

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

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 3rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-item p {
  font-size: 1.8rem;
  color: var(--gray-color);
  margin-bottom: 0;
}

/* Games Section */
.games {
  padding: 10rem 0;
  background-color: var(--light-color);
}

.games-content {
  text-align: center;
  margin-bottom: 5rem;
}

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

.game-card {
  background-color: var(--white-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.game-image {
  height: 20rem;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--accent-color);
  color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
}

.game-content {
  padding: 2rem;
}

.game-content h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.game-content p {
  margin-bottom: 2rem;
  font-size: 1.4rem;
  color: var(--gray-color);
}

.game-link {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  transition: var(--transition);
}

.game-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

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

.contact-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
}

.contact-info {
  padding: 3rem;
  background-color: var(--primary-color);
  border-radius: 1rem;
  color: var(--white-color);
}

.contact-info h3 {
  color: var(--white-color);
  margin-bottom: 3rem;
}

.contact-info-item {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.contact-info-item i {
  margin-right: 1.5rem;
  font-size: 2.4rem;
}

.contact-form {
  padding: 3rem;
  background-color: var(--light-color);
  border-radius: 1rem;
}

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

.form-control {
  width: 100%;
  padding: 1.5rem 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  padding: 8rem 0 2rem;
  background-color: var(--dark-color);
  color: var(--light-color);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 2rem;
}

.footer-logo svg {
  margin-right: 1rem;
}

.footer-links h4 {
  color: var(--white-color);
  margin-bottom: 2.5rem;
  position: relative;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  width: 5rem;
  height: 0.3rem;
  background-color: var(--secondary-color);
  bottom: -1rem;
  left: 0;
}

.footer-links ul li {
  margin-bottom: 1.5rem;
}

.footer-links ul li a {
  color: var(--light-color);
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

.footer-newsletter p {
  margin-bottom: 2.5rem;
}

.newsletter-form {
  display: flex;
  margin-bottom: 2rem;
}

.newsletter-input {
  flex: 1;
  padding: 1.2rem;
  border: none;
  outline: none;
  border-radius: 0.5rem 0 0 0.5rem;
}

.newsletter-btn {
  padding: 1.2rem 1.5rem;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  font-weight: 600;
  border: none;
  border-radius: 0 0.5rem 0.5rem 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
}

.social-links {
  display: flex;
}

.social-links li {
  margin-right: 1.5rem;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.animate {
  opacity: 0;
  transform: translateY(5rem);
  transition: all 1s ease;
}

.animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  html {
    font-size: 55%;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 2rem 0;
  }
  
  .service-item {
    flex-direction: column;
  }
  
  .service-icon {
    flex: 0 0 100%;
    padding: 3rem;
  }
  
  .service-content {
    flex: 0 0 100%;
    padding: 3rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .hero p {
    font-size: 1.8rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}
