:root {
  --primary: #ee107f;
  /* magenta/pink from title */
  --secondary: #ffce00;
  /* yellow from button */
  --accent: #2e9cd1;
  /* blue from labels */
  --dark: #000000;
  --darker-gray: #111111;
  --light: #ffffff;
  --bg-contact: #f4f4f4;

  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Libre Franklin', sans-serif;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 600;
  --weight-black: 900;
}

body {
  font-family: var(--font-secondary);
  color: var(--light);
  background-color: var(--dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.step-title,
.logo-text {
  font-family: var(--font-primary);
}

.text-primary-color {
  color: var(--primary) !important;
}

.text-secondary-color {
  color: var(--secondary) !important;
}

.text-blue {
  color: var(--accent) !important;
}

.text-dark {
  color: #111 !important;
}

/* ---------------- Navbar ---------------- */
.custom-navbar {
  background-color: transparent;
  transition: background-color 0.3s ease, padding 0.3s ease;
  padding: 1rem 0;
  z-index: 1050 !important;
}

.custom-navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
}

.logo-img {
  max-height: 80px;
  transition: max-height 0.3s ease;
}

.custom-navbar.scrolled .logo-img {
  max-height: 50px;
}

.nav-link {
  color: var(--light) !important;
  font-weight: var(--weight-medium);
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary) !important;
}

.btn-primary-custom {
  background-color: var(--secondary);
  color: var(--dark);
  font-weight: var(--weight-bold);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 206, 0, 0.4);
  color: var(--dark);
  background-color: var(--secondary);
  border-color: transparent;
}

.btn-plus {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ---------------- Overlay Menu ---------------- */
.btn-menu-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1050; /* Above overlay */
  position: relative;
}

.btn-menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.menu-label {
  letter-spacing: 2px;
  font-family: var(--font-primary);
}

.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--darker-gray);
  z-index: 1040; /* Below navbar (1050) */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-menu.open {
  visibility: visible;
  opacity: 1;
}

.large-menu-link {
  font-family: var(--font-primary);
  font-size: 4.5rem;
  font-weight: var(--weight-light);
  color: var(--light);
  text-decoration: none;
  line-height: 1.1;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.large-menu-link:hover {
  color: var(--secondary);
  text-decoration: none;
  transform: translateX(20px);
}

@media (max-width: 991px) {
  .nav-left { flex: none !important; }
  .nav-right { flex: none !important; }
  .nav-center { flex: 1 !important; justify-content: flex-end !important; padding-right: 15px; }

  .large-menu-link {
    font-size: 3rem;
  }
}


/* ---------------- Hero Section ---------------- */
.hero-section {
  min-height: 100vh;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 4rem;
  font-weight: var(--weight-light);
  line-height: 1.1;
}

.hero-title .text-primary-color {
  font-weight: var(--weight-black);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: var(--weight-light);
}

.hero-subtitle strong {
  font-weight: var(--weight-bold);
}

.social-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  display: inline-flex;
  border-radius: 4px;
  text-decoration: none !important;
}

.social-icon:hover {
  transform: scale(1.1);
}

.yellow-icon {
  background-color: var(--secondary);
  color: var(--dark) !important;
  padding: 8px 12px;
}

.hero-text-link {
  color: var(--light);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.hero-text-link:hover {
  color: var(--secondary);
}

.hero-shape-mask {
  width: 100%;
  height: 90vh;
  clip-path: ellipse(80% 60% at 85% 50%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 9rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }

  .hero-shape-mask {
    clip-path: ellipse(100% 70% at 50% 50%);
    height: 50vh;
    margin-top: 2rem;
  }
}

/* ---------------- Services Section ---------------- */
.services-section {
  background-color: var(--light);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.technique-card {
  height: 65vh;
  min-height: 450px;
}

.application-card {
  height: 50vh;
  min-height: 350px;
}

.technique-card .service-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 100%);
}

.application-card .service-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.text-shadow {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.accent-line {
  height: 4px;
  width: 60px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.service-card:hover .accent-line {
  width: 100px;
  background-color: var(--secondary);
}

.tracking-widest {
  letter-spacing: 0.15em;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-title {
  color: var(--light);
  font-size: 2rem;
  font-weight: var(--weight-light);
  margin-bottom: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.btn-service-link {
  color: var(--light);
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.btn-service-link:hover {
  color: var(--secondary);
}

.btn-service-link:hover .animate-arrow {
  transform: translateX(5px);
}

.animate-arrow {
  transition: transform 0.3s ease;
}

/* ---------------- Process Section ---------------- */
.process-section {
  background-color: var(--dark);
}

.section-heading {
  font-size: 3.5rem;
  font-weight: var(--weight-bold);
  line-height: 1;
}

.section-heading .text-primary-color {
  font-weight: var(--weight-black);
}

.section-label-blue {
  color: var(--accent);
  font-weight: var(--weight-bold);
  font-size: 1rem;
  font-family: var(--font-primary);
}

.process-steps-container {
  padding-left: 2rem;
}

.process-line {
  position: absolute;
  left: 20px;
  top: 10px;
  bottom: 0;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.process-step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

.step-content {
  transition: transform 0.8s ease-out;
}

.process-step.active-step .step-content {
  transform: translateX(30px);
}

.step-marker {
  position: absolute;
  left: -20px;
  top: 5px;
  color: var(--accent);
  background-color: var(--dark);
  padding: 5px 0;
  z-index: 2;
  transition: color 0.5s ease;
}

.process-step.active-step .step-marker {
  color: var(--accent);
}

.step-title {
  font-weight: var(--weight-regular);
  /* Not bold initially */
  font-size: 1.5rem;
  margin-bottom: 1rem;
  
  /* Reading sweep effect */
  background: linear-gradient(to right, var(--accent) 50%, #666666 50%);
  background-size: 200% 100%;
  background-position: right;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback */
  
  transition: background-position 0.8s ease-out, font-weight 0.8s ease-out;
}

.process-step.active-step .step-title {
  background-position: left;
  font-weight: var(--weight-black);
  /* Bolder */
}

.step-num {
  font-family: var(--font-secondary);
  font-weight: var(--weight-light);
  font-size: 1rem;
  margin-right: 0.5rem;
}

.step-desc {
  color: #aaaaaa;
  font-size: 1.15rem;
  line-height: 1.6;
}

.clients-pill {
  background-color: var(--light);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.client-img {
  height: 150px;
  width: auto;
  aspect-ratio: 3/2;
  object-fit: contain;
  transition: transform 0.3s;
}

.client-img:hover {
  transform: scale(1.1);
}

/* ---------------- Contact Section ---------------- */
.contact-section {
  background-color: var(--bg-contact);
}

.contact-subtitle {
  font-size: 1.8rem;
  font-weight: var(--weight-bold);
}

.contact-label {
  font-family: var(--font-secondary);
}

.blue-icon {
  background-color: transparent;
  color: var(--accent) !important;
  font-size: 2.5rem;
}

.blue-icon:hover {
  color: var(--primary) !important;
}

.minimal-input {
  background-color: transparent !important;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding: 10px 0;
  box-shadow: none !important;
  font-family: var(--font-secondary);
}

.minimal-input:focus {
  border-color: var(--accent);
}

.form-floating > .minimal-input.form-control,
.form-floating > .minimal-input.form-select {
  padding-left: 0;
  padding-right: 0;
}

.form-floating > label {
  padding-left: 0;
  color: #666;
}

.btn-submit {
  background-color: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 4px;
  padding: 0;
  font-family: var(--font-primary);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 206, 0, 0.4);
  color: var(--dark);
  background-color: var(--secondary);
  border-color: transparent;
}

.submit-text {
  padding: 1rem;
}

.submit-plus {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  height: 100%;
}

/* ---------------- Floating Elements ---------------- */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s;
}

.floating-wa:hover {
  transform: scale(1.1);
  color: white;
}

.pulse-animation {
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}