:root {
  /* Mapaima Brand Colors */
  --bg-color: #050505;
  --bg-secondary: #0a0a0a;
  --bg-card: #0f0f0f;
  --primary-color: #2979ff;
  --primary-light: #5393ff;
  --primary-dark: #1565c0;
  --accent-cyan: #00d4ff;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --text-color: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --border-color: #1a1a1a;
  --border-light: #2a2a2a;

  /* Typography */
  --font-main: 'Outfit', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 110px;

  /* Effects */
  --glow-primary: 0 0 20px rgba(41, 121, 255, 0.3);
  --glow-primary-strong: 0 0 40px rgba(41, 121, 255, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 48px rgba(41, 121, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  position: relative;
  overflow-x: hidden;
}

/* Futuristic Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(41, 121, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  animation: backgroundPulse 15s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}

@keyframes backgroundPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Animated Grid Pattern */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(41, 121, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 121, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 60px 0 40px;
  max-width: 100%;
}

.logo {
  margin-right: auto;
  padding-left: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 0;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 0;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-links a:not(.btn):hover {
  color: var(--primary-light);
  text-shadow: 0 0 20px rgba(41, 121, 255, 0.5);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(41, 121, 255, 0.3);
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(41, 121, 255, 0.3);
  }

  50% {
    box-shadow: 0 4px 25px rgba(41, 121, 255, 0.5);
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(41, 121, 255, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--text-color);
  margin-left: 15px;
}

.btn-outline:hover {
  background: rgba(41, 121, 255, 0.1);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(41, 121, 255, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--header-height) + 60px) 0 60px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.92) 0%, rgba(10, 10, 20, 0.88) 50%, rgba(5, 5, 5, 0.92) 100%),
    url('hero-bg.png') center/cover no-repeat;
  background-attachment: fixed;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 25px;
  color: var(--text-color);
  animation: floatIn 1s ease-out;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan), var(--accent-purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 500;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Floating Geometric Shapes */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}

.hero-bg::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.2), transparent);
  top: -250px;
  right: -250px;
  animation-delay: 0s;
}

.hero-bg::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent);
  bottom: -200px;
  left: -200px;
  animation-delay: 5s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
}

.section h2,
.section h3 {
  color: var(--text-color);
  font-weight: 600;
}

.section h2 {
  font-size: 2.5rem;
}

.section h3 {
  font-size: 1.5rem;
}

.section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* About Section */
.about {
  text-align: center;
}

.about-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* Services Section */
.services {
  background: linear-gradient(180deg, transparent 0%, rgba(41, 121, 255, 0.02) 100%);
}

.services-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.service-highlight {
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(41, 121, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-highlight:hover::before {
  opacity: 1;
}

.service-highlight:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 40px rgba(41, 121, 255, 0.2);
}

.highlight-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.service-highlight h3 {
  margin-bottom: 15px;
}

.section-title {
  margin-bottom: 70px;
  text-align: center;
  position: relative;
  display: block;
  width: 100%;
  padding: 0 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
  border-radius: 2px;
  animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {

  0%,
  100% {
    width: 80px;
  }

  50% {
    width: 120px;
  }
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 35px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(41, 121, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-card-hover);
}

.card .service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: var(--primary-color);
  filter: drop-shadow(var(--glow-primary));
  transition: transform 0.3s ease;
}

.card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  margin-bottom: 16px;
  color: var(--text-color);
}

.card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Blog Cards */
.blog-grid .card {
  display: flex;
  flex-direction: column;
}

.blog-image {
  width: calc(100% + 70px);
  height: 200px;
  margin: -35px -35px 20px -35px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  transition: transform 0.4s ease;
}

.card:hover .blog-image {
  transform: scale(1.05);
}

/* Contact */
.contact {
  background: linear-gradient(180deg, transparent 0%, rgba(41, 121, 255, 0.03) 100%);
}

.contact-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(20px);
  padding: 60px 50px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.contact-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.1) 0%, transparent 70%);
  animation: contactGlow 10s ease-in-out infinite;
}

@keyframes contactGlow {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(10%, 10%);
  }
}

.contact-wrapper h3 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

.contact-wrapper p {
  color: var(--text-secondary);
  margin-bottom: 35px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.contact-link svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.contact-link:hover svg {
  transform: scale(1.1) rotate(5deg);
}

.contact-link.whatsapp {
  background: linear-gradient(135deg, #25D366, #1ebc57);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.contact-link.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.contact-link.email {
  background: rgba(41, 121, 255, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--text-color);
}

.contact-link.email:hover {
  background: rgba(41, 121, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(41, 121, 255, 0.3);
}

.contact-link.audit {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(41, 121, 255, 0.3);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.contact-link.audit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(41, 121, 255, 0.5);
}


/* Footer */
.footer {
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
  background: var(--bg-secondary);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding: calc(var(--header-height) + 40px) 0 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-outline {
    margin-left: 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 50px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .services-intro {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 25px;
  }

  .blog-image {
    width: calc(100% + 50px);
    margin: -25px -25px 15px -25px;
  }
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #0f0f0f;
  width: 90%;
  max-width: 500px;
  padding: 50px;
  border-radius: 24px;
  border: 1px solid rgba(41, 121, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-color);
}

.modal-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.modal-description {
  color: var(--text-secondary);
  margin-bottom: 35px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Form Styles */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: var(--text-color);
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(41, 121, 255, 0.02);
  box-shadow: 0 0 0 4px rgba(41, 121, 255, 0.1);
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(41, 121, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(41, 121, 255, 0.5);
}

/* Pulse Effect for Button */
.pulse-effect {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(41, 121, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(41, 121, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(41, 121, 255, 0);
  }
}