#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  z-index: 9999;
}

.loader-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.splash-logo {
  width: 130px;
  z-index: 5;
  animation: pulse 1.2s infinite;
}

.loader-line {
  width: 0;
  height: 3px;
  background: #c62828;
  margin-top: 20px;
  z-index: 5;
  animation: loadingLine 3s ease-in-out forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes loadingLine {
  0% {
    width: 0%;
  }

  100% {
    width: 80%;
  }
}

/* =======================
   HEADER — defined globally in common.css
======================= */

/* =======================
   WELCOME SECTION
======================= */

.welcome-modern {
  position: relative;
  padding-top: 160px;
  padding-bottom: 80px;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(198, 40, 40, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(163, 22, 22, 0.04) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #f5f7fa 0%, #e8eef5 50%, #c3cfe2 100%);
  font-family: "Inter", sans-serif;
  overflow: hidden;
}

/* Animated background patterns - Layer 1 */
.welcome-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(198, 40, 40, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(163, 22, 22, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 30%,
      rgba(211, 47, 47, 0.04) 0%,
      transparent 60%
    );
  animation: backgroundPulse 15s ease-in-out infinite;
  z-index: 0;
}

/* Floating orb - Layer 2 */
.welcome-modern::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(198, 40, 40, 0.12) 0%,
    rgba(163, 22, 22, 0.06) 40%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatShape 20s ease-in-out infinite;
  filter: blur(40px);
  z-index: 0;
}

@keyframes backgroundPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  33% {
    transform: translate(-50px, 80px) rotate(120deg) scale(1.1);
  }

  66% {
    transform: translate(50px, -50px) rotate(240deg) scale(0.9);
  }
}

/* Enhanced Red curved background with gradient */
.welcome-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(
    135deg,
    #c62828 0%,
    #d32f2f 30%,
    #e53935 50%,
    #d32f2f 70%,
    #a31616 100%
  );
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  box-shadow:
    0 10px 40px rgba(198, 40, 40, 0.4),
    0 20px 80px rgba(198, 40, 40, 0.2);
  z-index: 1;
}

/* Decorative pattern overlay on hero */
.welcome-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(
      30deg,
      transparent 48%,
      rgba(255, 255, 255, 0.08) 49%,
      rgba(255, 255, 255, 0.08) 51%,
      transparent 52%
    ),
    linear-gradient(
      150deg,
      transparent 48%,
      rgba(255, 255, 255, 0.08) 49%,
      rgba(255, 255, 255, 0.08) 51%,
      transparent 52%
    );
  background-size: 60px 60px;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  animation: patternShift 10s linear infinite;
}

@keyframes patternShift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

/* Animated shine effect */
.welcome-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  animation: heroShine 8s ease-in-out infinite;
}

@keyframes heroShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* MAIN FLEX WRAPPER */
.welcome-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  z-index: 2;
}

/* Decorative floating geometric shapes */
.welcome-wrapper::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 5%;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(198, 40, 40, 0.1),
    rgba(163, 22, 22, 0.15)
  );
  border-radius: 20px;
  transform: rotate(45deg);
  animation: floatDecor1 6s ease-in-out infinite;
  z-index: -1;
}

.welcome-wrapper::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: 8%;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(198, 40, 40, 0.08),
    rgba(163, 22, 22, 0.12)
  );
  border-radius: 50%;
  animation: floatDecor2 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes floatDecor1 {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(225deg) translateY(-20px);
  }
}

@keyframes floatDecor2 {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.1);
  }
}

/* =======================
   FLOATING PARTICLES
======================= */

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.particle-1 {
  top: 15%;
  left: 8%;
  width: 12px;
  height: 12px;
  background: radial-gradient(
    circle,
    rgba(198, 40, 40, 0.4),
    rgba(198, 40, 40, 0.1)
  );
  animation: float1 8s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(198, 40, 40, 0.3);
}

.particle-2 {
  top: 35%;
  right: 12%;
  width: 8px;
  height: 8px;
  background: radial-gradient(
    circle,
    rgba(211, 47, 47, 0.5),
    rgba(211, 47, 47, 0.1)
  );
  animation: float2 10s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(211, 47, 47, 0.4);
}

.particle-3 {
  top: 60%;
  left: 15%;
  width: 10px;
  height: 10px;
  background: radial-gradient(
    circle,
    rgba(163, 22, 22, 0.4),
    rgba(163, 22, 22, 0.1)
  );
  animation: float3 12s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(163, 22, 22, 0.3);
}

.particle-4 {
  top: 25%;
  right: 25%;
  width: 6px;
  height: 6px;
  background: radial-gradient(
    circle,
    rgba(229, 57, 53, 0.6),
    rgba(229, 57, 53, 0.1)
  );
  animation: float4 9s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(229, 57, 53, 0.4);
}

.particle-5 {
  top: 70%;
  right: 18%;
  width: 14px;
  height: 14px;
  background: radial-gradient(
    circle,
    rgba(198, 40, 40, 0.35),
    rgba(198, 40, 40, 0.08)
  );
  animation: float5 11s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(198, 40, 40, 0.25);
}

.particle-6 {
  top: 45%;
  left: 20%;
  width: 9px;
  height: 9px;
  background: radial-gradient(
    circle,
    rgba(211, 47, 47, 0.45),
    rgba(211, 47, 47, 0.1)
  );
  animation: float6 13s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(211, 47, 47, 0.35);
}

@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.6;
  }

  50% {
    transform: translate(20px, -30px);
    opacity: 1;
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-25px, 35px) scale(1.3);
    opacity: 0.9;
  }
}

@keyframes float3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.7;
  }

  50% {
    transform: translate(30px, -20px) rotate(180deg);
    opacity: 1;
  }
}

@keyframes float4 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.8;
  }

  50% {
    transform: translate(-15px, -40px);
    opacity: 0.4;
  }
}

@keyframes float5 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(25px, 25px) scale(0.8);
    opacity: 1;
  }
}

@keyframes float6 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.6;
  }

  50% {
    transform: translate(-20px, -25px) rotate(-180deg);
    opacity: 0.95;
  }
}

/* SIDE IMAGES */
.side-img {
  width: min(360px, 100%);
  height: 420px;
  background: #fff;
  padding: 25px;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.side-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* CENTER BOX */
.welcome-box {
  position: relative;
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 680px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
}

/* Subtle glow effect on hover */
.welcome-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    rgba(198, 40, 40, 0.2),
    rgba(163, 22, 22, 0.1)
  );
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.welcome-box:hover::before {
  opacity: 1;
}

/* LOGO ROW */
.welcome-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  /* THIS is critical */
  gap: 30px;
  margin-bottom: 10px;
}

/* Left & Right logos – SAME visual size */
.wl-left,
.wl-right {
  height: 90px;
  object-fit: contain;
  display: block;
}

/* Center triangle – intentionally smaller */
.wl-center {
  height: 105px;
  object-fit: contain;
  display: block;
}

/* ISO / IAF */
.welcome-cert-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.welcome-cert-row span {
  font-size: 15px;
  font-weight: 700;
  color: #c62828;
  margin-bottom: 2px;
}

/* ISO logos directly under text */
.welcome-cert-row img {
  height: 90px;
  margin-top: 0;
  /* kill extra gap */
}

/* TITLES */
.welcome-box h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
  color: #222;
}

.subtitle {
  font-size: 17px;
  color: #666;
  margin-bottom: 28px;
}

/* BUTTON GROUP */
.welcome-btn-group button {
  padding: 14px 32px;
  background: var(--brand-red);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.welcome-btn-group button:hover {
  background: var(--brand-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(198, 40, 40, 0.4);
}

.welcome-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

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

@media (max-width: 992px) {
  .welcome-wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .side-img {
    width: 100%;
    max-width: 360px;
    height: 350px;
  }
}

@media (max-width: 600px) {
  .welcome-modern {
    padding-top: 140px;
  }

  .welcome-hero {
    height: 130px;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
  }

  .welcome-box {
    padding: 25px 20px;
  }

  .welcome-logo-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .wl-left,
  .wl-right {
    height: 50px;
  }

  .wl-center {
    height: 80px;
    width: 100%;
    order: -1; /* Place the main logo on top when wrapped */
  }

  .welcome-cert-row img {
    height: 80px;
  }

  .welcome-box h1 {
    font-size: 20px;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .welcome-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .welcome-btn-group button {
    width: 100%;
    font-size: 15px;
  }
}

/* Modern footer moved to common.css */

/* button:hover and h1/h2/p responsive sizing handled in common.css */
