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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
}

section[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 1023px) {
  section[id] {
    scroll-margin-top: 70px;
  }
}

.fade-ready,
.fade-show {
  opacity: 1;
  transform: none;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.hero-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 50%, #f0f2f5 100%);
  position: relative;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(25, 25, 112, 0.01) 0%, rgba(25, 25, 112, 0.03) 50%, rgba(25, 25, 112, 0.01) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-pattern {
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(25, 25, 112, 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(25, 25, 112, 0.04) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.5) 0%,
      transparent 70%
    );
  background-size: 100% 100%;
  opacity: 0.6;
}

.hero-chemical-icons {
  z-index: 2;
}

.chemical-icon {
  position: absolute;
  width: 80px;
  height: 80px;
  color: rgba(25, 25, 112, 0.15);
  opacity: 0.4;
}

.chemical-icon svg {
  width: 100%;
  height: 100%;
}

.chemical-icon-1 {
  top: 15%;
  left: 10%;
}

.chemical-icon-2 {
  top: 25%;
  right: 15%;
}

.chemical-icon-3 {
  top: 50%;
  left: 8%;
}

.chemical-icon-4 {
  top: 60%;
  right: 12%;
}

.chemical-icon-5 {
  top: 75%;
  left: 20%;
}

.chemical-icon-6 {
  top: 80%;
  right: 25%;
}


@media (max-width: 768px) {
  .chemical-icon {
    width: 60px;
    height: 60px;
    opacity: 0.3;
  }
  
  .chemical-icon-1 {
    top: 10%;
    left: 5%;
  }
  
  .chemical-icon-2 {
    top: 20%;
    right: 5%;
  }
  
  .chemical-icon-3 {
    top: 45%;
    left: 3%;
  }
  
  .chemical-icon-4 {
    top: 55%;
    right: 8%;
  }
  
  .chemical-icon-5 {
    top: 70%;
    left: 10%;
  }
  
  .chemical-icon-6 {
    top: 75%;
    right: 15%;
  }
}

.hero-badge {
  opacity: 1;
}


.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.section-title {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(25, 25, 112, 0.15),
    transparent
  );
  transition: left 0.6s;
  z-index: 1;
}

.service-card:hover::before {
  left: 100%;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(25, 25, 112, 0.05) 0%,
    rgba(25, 25, 112, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(25, 25, 112, 0.4);
  border-color: rgba(25, 25, 112, 0.3);
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.hero-stat {
  transition: all 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-stat-modern {
  position: relative;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(25, 25, 112, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.hero-stat-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(25, 25, 112, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-stat-modern:hover::before {
  opacity: 1;
}

.hero-stat-modern::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(25, 25, 112, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-stat-modern:hover::after {
  opacity: 1;
}

.hero-stat-modern:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-color: rgba(25, 25, 112, 0.15);
  box-shadow: 0 12px 24px rgba(25, 25, 112, 0.1), 0 4px 8px rgba(25, 25, 112, 0.05);
}

.hero-stat-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-stat-modern:hover .hero-stat-content {
  transform: scale(1.02);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-number {
  display: inline-block;
  min-height: 1.2em;
  overflow: hidden;
}

.stat-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stat-modern:hover .stat-value {
  transform: scale(1.05);
}

.stat-suffix {
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stat-modern:hover .stat-suffix {
  transform: scale(1.1) translateY(-2px);
}

.hero-stat-modern {
  opacity: 1;
}

section {
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(25, 25, 112, 0.3),
    transparent
  );
}

input,
select,
textarea {
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(25, 25, 112, 0.1);
}

button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(25, 25, 112, 0.2),
    0 2px 4px -1px rgba(25, 25, 112, 0.1);
}

button:active {
  transform: scale(0.98);
}

button:hover {
  box-shadow: 0 10px 15px -3px rgba(25, 25, 112, 0.3),
    0 4px 6px -2px rgba(25, 25, 112, 0.2);
}

.navbar-scrolled {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-stat {
  backdrop-filter: blur(10px);
}

.z-1 {
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .hero-badge {
    margin-bottom: 1rem;
  }

  .hero-stat-modern {
    padding: 1rem;
  }

  .hero-stat-content {
    padding: 0.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  p {
    font-size: 0.875rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 85vh;
    padding: 1.5rem 0;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

#subscribe input:focus {
  box-shadow: 0 0 0 4px rgba(25, 25, 112, 0.3);
}

.footer-links a {
  transition: all 0.2s ease;
}

.footer-links a:hover {
  transform: translateX(4px);
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
  background: #191970;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#form-toast {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

#form-toast #toast-close {
  transition: transform 0.2s ease;
}

#form-toast #toast-close:hover {
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
