* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0C0A1E;
  color: #FFFFFF;
  line-height: 1.5;
  background: url("../assets/images/Aarmax-World.webp") no-repeat calc(100% + 150px) -50px;
  background-size: 150vh;
  background-color: #0C0A1E;
}

/* For WebKit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #5C44FC;
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background-color: #0C0A1E;
}

/* For Firefox */
html {
  scrollbar-color: #5C44FC #0C0A1E;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: #0C0A1E;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo img {
  width: 60px;
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.logo img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(92, 68, 252, 0.6));
}

.company-name {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: bold;
  color: #FFFFFF;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.2), 
               0 0 6px rgba(255, 255, 255, 0.15);
}

.company-name::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 10%, rgba(0, 0, 0, 0) 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

nav a {
  margin-left: 30px;
  font-weight: 500;
  word-spacing: 5px;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease-in-out;
}

nav a:hover {
  color: #5C44FC;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #5C44FC;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

.contact-btn {
  background-color: #5C44FC;
  color: #FFFFFF !important;
  padding: 10px 18px;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.contact-btn:hover {
  background-color: #9380FA;
  color: #FFFFFF !important;
}

.contact-btn::after {
  display: none !important;
}

/* === FOOTER === */
.footer {
  padding: 50px 5%;
  color: #CCCCCC;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1fr 1.2fr;
  gap: 20px;
}

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(128, 128, 128, 0.6), 0 0 10px rgba(128, 128, 128, 0.4);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-social img {
  width: 30px;
  height: 30px;
  transition: opacity 0.3s;
}

.footer-social img:hover {
  opacity: 0.7;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(128, 128, 128, 0.6), 0 0 10px rgba(128, 128, 128, 0.4);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
  color: #CCCCCC;
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease-in-out;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #5C44FC;
}

.footer-links a::after,
.footer-contact a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #5C44FC;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.footer-links a:hover::after,
.footer-contact a:hover::after {
  width: 100%;
  left: 0;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #666666;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-description {
  font-size: 0.95rem;
  color: #CCCCCC;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 20px;
}

.whatsapp-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-chat img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.whatsapp-chat img:hover {
  transform: scale(1.1);
}

.hero {
  text-align: center;
  padding: 100px 8% 80px;
  background-size: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1,
.hero p {
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  text-align: center;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  margin-top: 50px;
}

.hero p {
  font-size: 1rem;
  color: #CCCCCC;
  margin-bottom: 30px;
  max-width: 650px;
}

.hero p:first-of-type {
  margin-bottom: 10px;
}

/* CTA Section */
.cta {
  background: #F4F5F7;
  text-align: left;
  padding: 100px 350px;
  color: #0C0A1E;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  box-sizing: border-box;
  margin: 40px 0;
  width: 100%;
  margin-bottom: 0;
  box-shadow: 
    0 -4px 10px rgba(100, 100, 255, 0.5),
    0 -8px 20px rgba(150, 0, 255, 0.3);
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: #2d42ad;
  line-height: 1.3;
}

.cta h3 {
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #0C0A1E;
  margin-bottom: 50px;
  font-weight: 500;
}

.cta-steps {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  min-width: 400px;
}

.cta-steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  position: relative;
}

.cta-steps ol li {
  width: 40px;
  height: 40px;
  background-color: #2d42ad;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  margin-bottom: 70px;
  counter-increment: step;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-steps ol li::before {
  content: counter(step);
}

.cta-steps ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 100px;
  background-color: #2d42ad;
  left: 50%;
  top: 80%;
  transform: translateX(-50%);
}

.cta-text {
  max-width: 250px;
}

.cta-text p {
  font-size: 1.1rem;
  color: #0C0A1E;
  margin: 0 0 25px;
  line-height: 1.6;
}

.form-container {
  width: 100%;
  background: #ffffff;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.proposal-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.proposal-icon {
  width: 60px;
  height: auto;
}

.proposal-container h3 {
  font-size: 1.3rem;
  color: #1b1742;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  gap: 25px;
  width: 100%;
  box-sizing: border-box;
}

.form-group input {
  flex: 1;
  padding: 18px;
  border: 1px solid #e0e0e0;
  background-color: #f5f5f5;
  border-radius: 8px;
  font-size: 1.1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease-in-out;
}

.form-group input:focus {
  border-color: #2d42ad;
  outline: none;
}

textarea {
  width: 100%;
  height: 200px;
  padding: 18px;
  border: 1px solid #e0e0e0;
  background-color: #f5f5f5;
  border-radius: 8px;
  resize: vertical;
  font-size: 1.1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease-in-out;
}

textarea:focus {
  border-color: #2d42ad;
  outline: none;
}

button {
  background: #2d42ad;
  color: white;
  padding: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  width: 100%;
  transition: background 0.3s ease-in-out;
  box-sizing: border-box;
  margin-bottom: 20px;
}

button:hover {
  background: #5C44FC;
}

iframe {
  width: 100%;
  height: 50vh;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.1;
}

.company-slogan {
  font-size: 0.72rem;
  font-weight: 400;
  color: #CCCCCC;
  text-transform: none;
  letter-spacing: 0.2px;
  margin-top: 1px;
  white-space: nowrap;
}

/* Ensure all elements stay within viewport and prevent horizontal scroll */
* {
  max-width: 100vw;
}

body, html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Force all containers to respect viewport boundaries */
header, footer, .hero, .cta, .footer-container, .form-container {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Specifically fix WhatsApp button boundary issues */
.whatsapp-chat {
  position: fixed;
  bottom: 20px;
  right: min(20px, 5vw);
  z-index: 1000;
}

.whatsapp-chat img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  max-width: 100%;
}

/* === RESPONSIVE STYLES === */

/* Large laptops */
@media (max-width: 1440px) {
  .cta {
    gap: 40px;
    padding: 80px 5%;
  }

  .form-container {
    width: 100%;
    max-width: 750px;
    padding: 40px;
  }
}

/* Tablets & landscape mode */
@media (max-width: 1024px) {
  .cta {
    flex-direction: column;
    align-items: center;
    padding: 40px 5%;
    gap: 30px;
  }

  .form-container {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Medium screens footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  nav a {
    margin-left: 18px;
    font-size: 0.95rem;
  }

  .contact-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .company-name {
    font-size: 1rem;
  }

  header {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .company-slogan {
    font-size: 0.65rem;
  }

  .logo img {
    width: 48px;
  }

  nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  nav a {
    margin-left: 16px;
    font-size: 0.82rem;
  }

  .contact-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .logo img {
    width: 45px;
  }

  .company-name {
    font-size: 0.85rem;
  }

  .company-slogan {
    font-size: 0.58rem;
  }

  .logo-text {
    max-width: 110px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .hero {
    padding: 80px 5% 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-top: 20px;
  }

  .logo img {
    width: 50px;
  }

  .company-name {
    font-size: 1rem;
  }

  .cta {
    flex-direction: column;
    padding: 60px 0;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }

  .cta-steps {
    text-align: left;
    gap: 20px;
    padding: 5%;
  }

  .cta-steps ol li {
    margin-bottom: 80px;
  }

  .cta-steps ol li:not(:last-child)::after {
    height: 100px;
  }

  .cta-content,
  .form-container {
    width: 100%;
    padding: 30px;
  }

  .form-group {
    flex-direction: column;
    gap: 20px;
  }

  textarea {
    height: 150px;
  }

  .proposal-container h3 {
    font-size: 1rem;
  }

  .contact-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  /* Tablet footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Mobile menu styles */
  .menu-container {
    position: relative;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 30px;
    cursor: pointer;
    z-index: 10001;
    background: transparent;
    border: none;
    padding: 5px;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 3px;
    transition: transform 0.25s ease, background 0.25s ease;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    background: rgba(13, 11, 31, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

  .mobile-nav.active {
    display: flex;
  }

  .mobile-nav a {
    color: #fff;
    display: block;
    padding: 15px 0;
    margin: 0 !important;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    word-spacing: normal !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.25s ease, transform 0.2s ease;
  }

  .mobile-nav a:last-child {
    border-bottom: none;
    margin: 10px;
  }

  .mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .contact-btn {
    padding: 7px 12px;
    font-size: 0.85rem;
  }

  .company-slogan {
    font-size: 0.6rem;
  }

  .whatsapp-chat {
    right: min(15px, 4vw);
    bottom: 15px;
  }

  .whatsapp-chat img {
    width: 55px;
    height: 55px;
  }

  body {
    padding-right: 0 !important;
    margin-right: 0 !important;
  }

  /* Mobile footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Very large screens */
@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
  }
}

/* Lock page scroll while the mobile menu is open */
html:has(.mobile-nav.active),
body:has(.mobile-nav.active) {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}