/* =========================
   MODERN SAFETY SECTION
========================= */

.modern-safety-section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(63, 194, 109, 0.45), transparent 35%),
    radial-gradient(circle at bottom right, rgba(209, 214, 221, 0.55), transparent 35%),
    linear-gradient(135deg, #f8fffc 0%, #d6dce4 100%);
}

/* LIGHT EFFECT */
.modern-safety-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 50%;
  top: -180px;
  right: -150px;
  filter: blur(35px);
}

.modern-safety-section::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 50%;
  bottom: -160px;
  left: -140px;
  filter: blur(35px);
}

.modern-wrapper {
  max-width: 1280px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 85px;
  position: relative;
  z-index: 2;
}

/* REVERSE */
.reverse-layout {
  flex-direction: row-reverse;
}

/* =========================
   IMAGE BOX
========================= */

.modern-image-box {
  flex: 1;
  position: relative;
}

/* GLOW */
.image-glow {
  position: absolute;
  inset: -18px;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  border-radius: 36px;
  opacity: 0.12;
  filter: blur(22px);
}

/* IMAGE */
.modern-image-box img {
  width: 100%;
  border-radius: 30px;
  display: block;
  position: relative;
  z-index: 2;
  border: 8px solid rgba(255,255,255,0.95);

  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.12),
    0 10px 30px rgba(34, 197, 94, 0.08);

  transition: 0.5s ease;
}

/* HOVER */
.modern-image-box:hover img {
  transform: translateY(-8px) scale(1.01);
}

/* FLOATING BORDER */
.modern-image-box::before {
  content: "";
  position: absolute;
  width: 94%;
  height: 94%;
  border: 2px dashed rgba(34, 197, 94, 0.22);
  border-radius: 32px;
  top: 24px;
  left: 24px;
  z-index: 1;
  transition: 0.4s ease;
}

.modern-image-box:hover::before {
  top: 14px;
  left: 14px;
}

/* =========================
   CONTENT
========================= */

.modern-content {
  flex: 1;
}

/* SMALL TAG */
.section-tag {
  display: inline-block;
  padding: 10px 22px;
  background: rgba(34, 197, 94, 0.10);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

/* =========================
   HEADING STYLE
========================= */

.modern-content h2 {
  font-size: 54px;
  line-height: 1.2;
  margin-bottom: 28px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -1px;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

/* GREEN TEXT */
.modern-content h2 span {
  color: #22c55e;
  position: relative;
  display: inline-block;
}

/* UNDERLINE EFFECT */
.modern-content h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 12px;
  background: rgba(34, 197, 94, 0.18);
  z-index: -1;
  border-radius: 20px;
}

/* =========================
   PARAGRAPH
========================= */

.modern-content p {
  font-size: 18px;
  line-height: 2;
  color: #000;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

/* =========================
   BUTTONS
========================= */

.modern-btns {
  display: flex;
  gap: 18px;
  margin-top: 38px;
  flex-wrap: wrap;
}

/* BUTTON COMMON */
.modern-btn {
  padding: 15px 36px;
  border-radius: 60px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* PRIMARY BUTTON */
.primary-btn {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;

  box-shadow:
    0 14px 30px rgba(30, 58, 138, 0.22);
}

.primary-btn:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #15803d, #22c55e);
  color: #fff;
}

/* SECONDARY BUTTON */
.secondary-btn {
  background: rgba(255,255,255,0.75);
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.secondary-btn:hover {
  background: #22c55e;
  color: #fff;
  transform: translateY(-4px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

  .modern-wrapper,
  .reverse-layout {
    flex-direction: column;
    gap: 60px;
  }

  .modern-content h2 {
    font-size: 40px;
    line-height: 1.3;
  }

  .modern-image-box::before {
    display: none;
  }
}

@media (max-width: 768px) {

  .modern-safety-section {
    padding: 80px 0;
  }

  .modern-wrapper {
    padding: 0 18px;
  }

  .modern-content h2 {
    font-size: 32px;
    line-height: 1.35;
  }

  .modern-content p {
    font-size: 15px;
    line-height: 1.9;
  }

  .modern-btns {
    flex-direction: column;
  }

  .modern-btn {
    width: 100%;
  }
}



.scroll-top-btn{
    position: fixed !important;
    bottom: 20px !important;
    right: 30px !important;
    width: 30px !important;
    height: 30px !important;
    background: #00aaff !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 30px !important;
    font-weight: bold !important;
    z-index: 999999 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-top-btn:hover{
    transform: scale(1.1) !important;
    background: #0088cc !important;
}