html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, rgba(52, 89, 230, 0.05) 100%);
  overflow: hidden;
  padding: 0 0 3rem 0;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
}

.hero-content h1 {
  font-weight: 700;
  color: #2c3e50;
}

.hero-content .lead {
  font-size: 1.25rem;
  color: #6c757d;
}

.hero-visual {
  animation: slideInRight 1s ease-out;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
}

/* Background Animated Elements */
.background-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  animation: slideInRight 1s ease-out;
}

.background-elements > div {
  position: absolute;
  border-radius: 50%;
  background: rgba(52, 89, 230, 0.1);
}

.element-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 15%;
  animation: float1 6s ease-in-out infinite;
}

.element-2 {
  width: 150px;
  height: 150px;
  bottom: 30%;
  right: 10%;
  animation: float2 8s ease-in-out infinite;
}

.element-3 {
  width: 100px;
  height: 100px;
  top: 25%;
  right: 45%;
  animation: float3 7s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes float1 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(180deg);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-180deg);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(0, -70%) rotate(180deg);
  }
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Ensure content is above background elements */
.hero .container {
  position: relative;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .element-1 {
    width: 150px;
    height: 150px;
  }

  .element-2 {
    width: 100px;
    height: 100px;
  }

  .element-3 {
    width: 80px;
    height: 80px;
  }
}