@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #000000;
  --secondary-color: #0041C2;
  --accent-color: #2997ff;
  --text-color: #1d1d1f;
  --light-text: #f5f5f7;
  --bg-gradient: #ffffff;
  --section-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.1);
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  width: 100%;
  max-width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-stagger-1 {
  transition-delay: 0.1s;
}

.reveal-stagger-2 {
  transition-delay: 0.2s;
}

.reveal-stagger-3 {
  transition-delay: 0.3s;
}

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

ul {
  list-style: none;
}

section,
nav,
footer {
  width: 100%;
}

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

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

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: #003194;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 65, 194, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--light-text);
  color: var(--light-text);
}

.btn-outline:hover {
  background: var(--light-text);
  color: var(--primary-color);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

nav.scrolled,
nav.active {
  background: var(--secondary-color);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
  box-shadow: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: var(--light-text);
  font-weight: 500;
  opacity: 0.8;
}

.nav-links li a:hover {
  opacity: 1;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

.hero {
  height: 100vh;
  background: #0071e3;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('nexa_hero_new.jpg') center/cover no-repeat;
  opacity: 0.5;
  z-index: 1;
  filter: saturate(0.2) brightness(0.8);
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero p {
  font-size: 1.7rem;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  line-height: 1.4;
}

.header-social {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.social-links-contact {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.social-links-contact .social-icon {
  font-size: 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-links-contact .social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-links-contact .social-icon.facebook {
  color: #1877F2;
}

.social-links-contact .social-icon.instagram {
  color: #E4405F;
}

.social-links-contact .social-icon.linkedin {
  color: #0A66C2;
}

.social-links-contact .social-icon.youtube {
  color: #FF0000;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.services {
  padding: 5rem 0;
  background: var(--section-bg);
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.erp-section {
  padding: 5rem 0;
  background: #fff;
}

.erp-section .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.erp-content {
  flex: 1;
}

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

.erp-image img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  transition: var(--transition);
}

.erp-image img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.2);
}

.modules-section {
  padding: 5rem 0;
  background: #fff;
}

.module-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.module-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.module-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.module-row:nth-child(even) {
  flex-direction: row-reverse;
}

.module-content {
  flex: 1;
}

.module-image {
  flex: 1.3;
}

.module-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-orange {
  display: inline-block;
  background: #e65100;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1rem;
}

.faq-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.accordion-item {
  background: #fff;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 2rem;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.clients {
  padding: 5rem 0;
  background: #fff;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 3rem;
  align-items: center;
  justify-items: center;
}

.resources {
  padding: 5rem 0;
  background: #f8f9fa;
}

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

.resource-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.resource-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.resource-card-content {
  padding: 2rem;
}

.contact-section {
  padding: 5rem 0;
}

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

.contact-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
}

footer {
  background: var(--primary-color);
  color: var(--light-text);
  padding: 5rem 0 2rem;
}

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

.whatsapp-widget-btn,
.chat-widget-btn,
.scroll-top {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.whatsapp-widget-btn {
  bottom: 30px;
  right: 100px;
  background: #25D366;
  color: white;
}

.chat-widget-btn {
  bottom: 30px;
  right: 30px;
  background: var(--secondary-color);
  color: white;
}

.scroll-top {
  bottom: 30px;
  right: 170px;
  background: #333;
  color: white;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 500px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  overflow: hidden;
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: var(--secondary-color);
  color: white;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 80%;
  font-size: 0.9rem;
}

.message.received {
  background: #f0f0f5;
  align-self: flex-start;
}

.message.sent {
  background: var(--secondary-color);
  color: white;
  align-self: flex-end;
}

/* Lightbox Modal Styles */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 2rem;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .erp-section .container {
    flex-direction: column;
    text-align: center;
  }

  .module-row {
    flex-direction: column !important;
    text-align: center;
  }

  .contact-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    margin-right: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--secondary-color);
    flex-direction: column;
    padding: 80px 40px;
    transition: 0.4s;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    font-size: 1.2rem;
    color: white;
    opacity: 1;
  }

  .header-social {
    display: none;
  }

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

  .hero p {
    font-size: 1.2rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

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

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

  .whatsapp-widget-btn {
    right: 20px;
    bottom: 85px;
  }

  .chat-widget-btn {
    right: 20px;
    bottom: 20px;
  }

  .scroll-top {
    display: none;
  }

  .chat-window {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
}