.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fbff 0%, #f0f4ff 100%);
}

body.dark-theme .hero-section {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.animated-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  animation: bgPulse 8s ease-in-out infinite;
}

body.dark-theme .animated-svg-bg {
  opacity: 0.4;
}

@keyframes bgPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.hero-text {
  color: #1e293b;
}

body.dark-theme .hero-text {
  color: #f1f5f9;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.8rem;
}

.title-line {
  display: block;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.title-text {
  display: inline-block;
  opacity: 0;
  animation: titleReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.title-line:nth-child(1) .title-text {
  animation-delay: 0.3s;
  color: #1e293b;
}

body.dark-theme .title-line:nth-child(1) .title-text {
  color: #f1f5f9;
}

.title-line:nth-child(2) .title-text {
  animation-delay: 0.6s;
  background: linear-gradient(135deg, #3d63dd, #2b50c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-theme .title-line:nth-child(2) .title-text {
  background: linear-gradient(135deg, #6b8eff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #4b5563;
  font-weight: 400;
  max-width: 90%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 1s forwards;
  margin-top: 2.5rem;
}

body.dark-theme .hero-subtitle {
  color: #cbd5e1;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 1.4s forwards;
  margin-top: 2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.7s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #3d63dd, #2b50c5);
  color: white;
  box-shadow: 0 4px 20px rgba(61, 99, 221, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(61, 99, 221, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #3d63dd;
  border: 2px solid #3d63dd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.dark-theme .btn-secondary {
  background: rgba(30, 41, 59, 0.95);
  color: #a5b4fc;
  border: 2px solid #6b8eff;
}

.btn-secondary:hover {
  background: #3d63dd;
  color: white;
  border-color: #3d63dd;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(61, 99, 221, 0.4);
}

.hero-visual {
  position: relative;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
  height: 500px;
  width: 100%;
  max-width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

body.dark-theme .hero-image-container {
  background: linear-gradient(145deg, #1a2036, #0f1424);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(61, 99, 221, 0.05) 50%,
    transparent 100%
  );
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-image-container:hover::before {
  opacity: 1;
}

.hero-image-container:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(3deg);
  box-shadow: 0 30px 80px rgba(61, 99, 221, 0.15),
    0 0 0 1px rgba(61, 99, 221, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

body.dark-theme .hero-image-container:hover {
  box-shadow: 0 30px 80px rgba(61, 99, 221, 0.2),
    0 0 0 1px rgba(107, 142, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  position: relative;
  z-index: 1;
  padding: 15px;
}

.hero-image-container:hover .hero-image {
  transform: scale(1.03);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
  display: block !important;
  /* opacity: 1 !important; */
  visibility: visible !important;
}
.floating-element i {
  font-size: 1.8rem;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.floating-element {
  position: absolute;
  opacity: 1 !important;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #3d63dd;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(61, 99, 221, 0.15);
  animation: floatEnhanced 8s ease-in-out infinite;
  pointer-events: auto;
  z-index: 35;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .floating-element {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.95),
    rgba(15, 23, 42, 0.95)
  );
  color: #a5b4fc;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(107, 142, 255, 0.2),
    0 0 20px rgba(107, 142, 255, 0.2);
}

.floating-element:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 35px rgba(61, 99, 221, 0.25),
    0 0 0 1px rgba(255, 255, 255, 1), 0 0 30px rgba(61, 99, 221, 0.3);
  background: linear-gradient(135deg, #ffffff, #f0f4ff);
  color: #2b50c5;
}

body.dark-theme .floating-element:hover {
  background: linear-gradient(
    135deg,
    rgba(40, 51, 69, 0.95),
    rgba(25, 35, 55, 0.95)
  );
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(107, 142, 255, 0.3),
    0 0 30px rgba(107, 142, 255, 0.3);
}

@keyframes floatEnhanced {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-15px) rotate(3deg) scale(1.05);
  }
  66% {
    transform: translateY(10px) rotate(-2deg) scale(0.98);
  }
}

.floating-element:nth-child(1) {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  animation-duration: 7s;
}

.floating-element:nth-child(2) {
  top: 65%;
  right: 12%;
  animation-delay: 2s;
  animation-duration: 6s;
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 12%;
  animation-delay: 4s;
  animation-duration: 8s;
}

.floating-element:nth-child(4) {
  top: 35%;
  right: 8%;
  animation-delay: 1s;
  animation-duration: 5.5s;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
    height: 400px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .floating-element {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }

  .floating-element:nth-child(1) {
    top: 12%;
    left: 5%;
  }

  .floating-element:nth-child(2) {
    top: 70%;
    right: 5%;
  }

  .floating-element:nth-child(3) {
    bottom: 15%;
    left: 8%;
  }

  .floating-element:nth-child(4) {
    top: 40%;
    right: 5%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-visual {
    height: 350px;
  }

  .floating-element {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border-radius: 15px;
  }

  .floating-element:nth-child(3),
  .floating-element:nth-child(4) {
    display: flex;
  }

  .floating-element:nth-child(1) {
    top: 10%;
    left: 5%;
  }

  .floating-element:nth-child(2) {
    top: 75%;
    right: 5%;
  }

  .floating-element:nth-child(3) {
    bottom: 10%;
    left: 5%;
  }

  .floating-element:nth-child(4) {
    top: 45%;
    right: 5%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-visual {
    height: 280px;
  }

  .floating-element {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .hero-actions {
    gap: 0.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    width: auto;
    min-width: 200px;
    margin: 0;
  }
}
