/* AROD App Splash Screen Styles */

/* Keyframe Animations */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes dotPulse {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ecgLine {
  0% {
    stroke-dashoffset: 1000;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(43, 95, 135, 0.4), 0 0 60px rgba(43, 95, 135, 0.2);
  }

  50% {
    box-shadow: 0 0 50px rgba(43, 95, 135, 0.6), 0 0 100px rgba(43, 95, 135, 0.3);
  }
}

/* Splash Screen Container */
.arod-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a3a52 0%, #2B5F87 50%, #3d7ab3 100%);
  background-size: 200% 200%;
  animation: gradientMove 8s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.arod-splash.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Floating Background Elements */
.splash-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.splash-bg-elements .hex {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite;
}

.splash-bg-elements .hex:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.splash-bg-elements .hex:nth-child(2) {
  top: 20%;
  right: 15%;
  width: 40px;
  height: 40px;
  animation-delay: 1s;
}

.splash-bg-elements .hex:nth-child(3) {
  bottom: 25%;
  left: 15%;
  width: 50px;
  height: 50px;
  animation-delay: 2s;
}

.splash-bg-elements .hex:nth-child(4) {
  bottom: 15%;
  right: 10%;
  animation-delay: 0.5s;
}

.splash-bg-elements .hex:nth-child(5) {
  top: 50%;
  left: 5%;
  width: 30px;
  height: 30px;
  animation-delay: 1.5s;
}

.splash-bg-elements .circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.splash-bg-elements .circle:nth-child(6) {
  width: 200px;
  height: 200px;
  top: -50px;
  right: -50px;
}

.splash-bg-elements .circle:nth-child(7) {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -100px;
}

/* Logo Container */
.splash-logo-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s ease-out;
}

/* Main Logo with Glassmorphism */
.splash-logo {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulse 3s ease-in-out infinite, glow 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.splash-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  animation: shimmer 3s infinite;
}

/* ECG Icon */
.splash-ecg {
  width: 80px;
  height: 50px;
}

.splash-ecg svg {
  width: 100%;
  height: 100%;
}

.splash-ecg-line {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  animation: ecgLine 2s ease forwards;
}

/* App Title */
.splash-title {
  margin-top: 30px;
  font-family: 'Julius Sans One', 'Open Sans', sans-serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 12px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease-out 0.3s backwards;
}

/* Tagline */
.splash-tagline {
  margin-top: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  animation: fadeIn 1s ease-out 0.5s backwards;
}

/* UPH Logo */
.splash-uph-logo {
  margin-top: 40px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-out 0.7s backwards;
}

.splash-uph-logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* UPH Logo */


/* Loading Indicator */
.splash-loader {
  position: absolute;
  bottom: 80px;
  display: flex;
  gap: 12px;
  animation: fadeIn 1s ease-out 0.7s backwards;
}

.splash-loader .dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.splash-loader .dot:nth-child(1) {
  animation-delay: 0s;
}

.splash-loader .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.splash-loader .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Version Text */
.splash-version {
  position: absolute;
  bottom: 30px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 480px) {
  .splash-logo {
    width: 120px;
    height: 120px;
    border-radius: 25px;
  }

  .splash-ecg {
    width: 60px;
    height: 40px;
  }

  .splash-title {
    font-size: 36px;
    letter-spacing: 8px;
  }

  .splash-tagline {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .splash-uph-logo {
    margin-top: 30px;
    padding: 10px 20px;
  }

  .splash-uph-logo img {
    height: 35px;
  }

  .splash-bg-elements .hex {
    display: none;
  }

  /* Footer */
  .landing-footer {
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
  }

  .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
  }

  .footer-logo img {
    height: 40px;
    object-fit: contain;
  }

  .footer-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-300);
  }

  .footer-text {
    font-size: 12px;
    color: var(--gray-600);
    letter-spacing: 0.5px;
  }

  .footer-faculty {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}