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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: url("../assets/images/Aarmax-World.webp") no-repeat calc(100% + 150px) -50px;
  background-size: 150vh;
  background-color: #0C0A1E;
  color: #FFFFFF;
  line-height: 1.5;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: #5C44FC;
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background-color: #0C0A1E;
}
html {
  scrollbar-color: #5C44FC #0C0A1E;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === Header & Navigation === */
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;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0; /* Remove extra space */
  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; /* minimal spacing */
  white-space: nowrap;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .company-slogan {
    font-size: 0.65rem;
  }
}

@media (max-width: 767px) {
  .company-slogan {
    font-size: 0.6rem;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .logo img {
    width: 48px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  nav a {
    margin-left: 16px; /* smaller gap */
    font-size: 0.82rem;
  }

  .contact-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .logo img {
    width: 45px; /* smaller logo */
  }

  .company-name {
    font-size: 0.85rem;
  }

  .company-slogan {
    font-size: 0.58rem;
  }

  .logo-text {
    max-width: 110px;
  }
}

/* === Contact Button === */
.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;
}
@media (max-width: 768px) {
  .contact-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .contact-btn {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 100px 5% 0px;
  background-size: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 1150px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 5px rgba(128, 128, 128, 0.6), 0 0 10px rgba(128, 128, 128, 0.4);
}
.hero p {
  font-size: 1rem;
  color: #CCCCCC;
  margin-bottom: 30px;
  max-width: 650px;
}
.hero p:first-of-type {
  margin-bottom: 10px;
}
.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 20px;
}
.hero-buttons .btn {
  flex: 1;
  min-width: 140px;
  max-width: 250px;
  text-align: center;
}

/* === Buttons === */
.btn {
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}
.btn-secondary {
  background: transparent;
  border: 2px solid #5C44FC;
  color: #5C44FC;
}
.btn-secondary:hover {
  background: #5C44FC;
  color: #ffffff;
}
.btn-primary {
  background: #5C44FC;
  color: #FFFFFF;
  border: none;
  padding: 12px 48px;
  min-width: 250px;
}
.btn-primary:hover {
  background: #9380FA;
}

.services-description {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 5%;
  background: #0C0A1E;
  color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(92, 68, 252, 0.15);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.8;
  font-size: 1.05rem;
}

.services-description h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  line-height: 1.4;
  color: #5C44FC;
  text-align: center;
}

.services-description p {
  margin-bottom: 22px;
  text-align: justify;
  color: #e0e0e0;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .services-description {
    padding: 30px 20px;
    font-size: 1rem;
  }

  .services-description h2 {
    font-size: 1.5rem;
  }
}

/* === Cards Section === */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}
.card {
  width: 280px;
  height: 360px;
  perspective: 1200px;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.card:hover .card-inner,
.card.flipped .card-inner {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  box-sizing: border-box;
}
.card-front {
  background: linear-gradient(135deg, #5C44FC 0%, #302D50 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.card-front i {
  font-size: 40px;
  margin-bottom: 15px;
}
.card-front h2 {
  font-size: 1.3rem;
  font-weight: 600;
}
.card-back {
  background-color: #1e1e2e;
  color: #fff;
  transform: rotateY(180deg);
  overflow-y: auto;
}
.card-back h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.card-back ul {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 0.95rem;
}
.card-back ul li {
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .card:hover .card-inner {
    transform: none;
  }
  .card.auto-flip .card-inner {
    transform: rotateY(180deg);
  }
}

/* === CTA SECTION === */
.cta {
  background: linear-gradient(135deg, #5C44FC, #1C1A2E);
  text-align: center;
  padding: 75px 5%;
  border-radius: 10px;
  color: #fff;
  margin: 50px auto;
}
.cta h3 {
  font-size: 1rem;
  letter-spacing: 1px;
  color: #E0E0E0;
  margin-bottom: 50px;
}
.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: bold;
}
.cta p {
  font-size: 0.95rem;
  color: #DDD;
  margin-bottom: 25px;
}
.cta .btn {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  background: #FFFFFF;
  color: #5C44FC;
  transition: all 0.3s ease;
  margin-top: 15px;
}
.cta .btn:hover {
  background: #9380FA;
  color: #ffffff;
}

/* === PARTNER LOGOS === */
.partners {
  padding: 60px 5% 50px;
  text-align: left;
}
.partners h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(128, 128, 128, 0.6), 0 0 10px rgba(128, 128, 128, 0.4);
}
.partner-logos {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
  background: transparent;
  white-space: nowrap;
  justify-content: center;
}
.partner-logos img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(70%);
  transition: filter 0.3s ease-in-out, transform 0.3s ease;
  opacity: 0.8;
}
.partner-logos img[alt="TikTok Logo"],
.partner-logos img[alt="Apple Logo"],
.partner-logos img[alt="Twitter Logo"],
.partner-logos img[alt="YouTube Logo"] {
  filter: invert(100%) brightness(200%) contrast(90%);
}
.partner-logos img:hover {
  filter: grayscale(0%) brightness(120%);
  opacity: 1;
  transform: scale(1.15);
}
.partner-logos img[alt="Apple Logo"]:hover,
.partner-logos img[alt="TikTok Logo"]:hover,
.partner-logos img[alt="Twitter Logo"]:hover,
.partner-logos img[alt="YouTube Logo"]:hover {
  filter: invert(100%) brightness(250%) contrast(100%);
}
.partner-logos img[alt="Google Logo"],
.partner-logos img[alt="Bing Logo"] {
  filter: grayscale(100%) brightness(100%);
}
.partner-logos .logos-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  animation: scroll 45s linear infinite;
  justify-content: flex-start;
  flex-wrap: nowrap;
  padding-left: 50px;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
.partner-logos:hover .logos-wrapper {
  animation-play-state: paused;
}

/* === FOOTER (FROM YOUR REFERENCE) === */
.footer {
  padding: 50px 5%;
  color: #CCCCCC;
}
.footer-container {
  max-width: 1200px;
  margin: auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.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-grid {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1fr 1.2fr;
  gap: 20px;
}
.footer-description {
  font-size: 0.95rem;
  color: #CCCCCC;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* === WHATSAPP FLOATING === */
.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);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navbar-links {
    display: none;
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .partner-logos .logos-wrapper {
    animation: scroll 45s linear infinite;
    gap: 30px;
    padding-left: 30px;
    position: relative;
  }
  .partner-logos .logos-wrapper::after {
    content: "";
    display: flex;
    position: absolute;
    top: 0;
    left: 100%;
    gap: 30px;
  }
  .partner-logos img {
    height: 30px !important;
    width: auto !important;
    max-height: 30px !important;
    object-fit: contain;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 80px 5%;
    text-align: left;
    max-width: 100%;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .company-name {
    font-size: 1rem;
  }
  .logo img {
    width: 50px;
  }
}

/* === MOBILE NAVIGATION === */
@media (max-width: 768px) {
.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: absolute;
  top: 42px;
  right: 0;
  min-width: 160px;
  background: #0d0b1f;
  z-index: 9999;
  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;
  padding: 12px 18px;
  text-align: left;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, padding-left 0.2s;
}
.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  padding-left: 24px;
}
.mobile-nav a:last-child {
  border-bottom: none;
  margin: 10px 10px 0 auto;
}
}
@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;
  }
}