/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  z-index: 2;
}

body {
  font-family: "Manrope", sans-serif;
  background: linear-gradient(135deg, #a1fffe, #e0c7f0, #6c58bd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Prevent flexbox from pushing content */
  color: #181619;
  text-align: center;
  padding: 0 20px;
  overflow-x: hidden;
  min-height: 100vh; /* Ensures body fills the viewport */
  height: auto; /* Prevents unwanted stretching */
  position: relative;
}

/* Main Header */
.main-header {
  margin: 22px 0 10px;
  width: 100%;
  filter: drop-shadow(0 2px 2px rgba(12, 12, 12, 0.1))
}

.main-header h1 {
  font-size: 3.5em;
  margin-bottom: 0;
  color: rgba(28, 28, 28, .95);
}

.subtitle {
  color: rgba(24, 22, 25, 0.5);
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: lighter;
}

.download-message {
  margin: -2rem 0 2rem;
  font-size: 1.3em;
  font-weight: lighter;
  color: rgba(24, 22, 25, 0.5);
}

/* App Links */
.app-links {
  margin: 0 auto; /* Centering */
  display: flex;
  justify-content: center;
  gap: 0px;
  transform: translateY(-42px);
}

.app-links img {
  width: 220px;
  height: auto;
 animation: scaleFloat 2s ease-in-out infinite;
}

/* Phone Mockup and Floating Icons */
.phone-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  width: 100%;
  position: relative;
  transform: translateY(-2rem);
  flex-grow: 0; /* Prevents it from stretching */
}

.phone-mockup {
  max-width: 700px;
  min-width: 250px;
}

.phone-mockup img {
  width: 55%;
  border-radius: 30px;
}

/* Floating Icons */
.floating-icons img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2))
    drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  display: block;
  margin-top: 1rem;
  margin-bottom: -2rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  opacity: 1;
}

/* Create a container for the animation */
.icon-wrapper {
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}

/* The icon inside will handle rotation */
.icon-wrapper img {
  display: block;
}

/* Define rotation speeds for different icons */
.rotate-speed-1 {
  animation: rotate360 30s linear infinite;
}

.rotate-speed-2 {
  animation: rotate360 25s linear infinite;
}

.rotate-speed-3 {
  animation: rotate360 20s linear infinite;
}

.rotate-speed-4 {
  animation: rotate360 15s linear infinite;
}

.rotate-speed-5 {
  animation: rotate360 10s linear infinite;
}

/* Define the floating animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Define the rotation animation */
@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Define the scaling animation */
@keyframes scaleFloat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}



.left, .right {
  width: 500px;
  height: fit-content;
  padding: 3.5rem;
  position: absolute;
  z-index: 1;
}

.left {
  left: 0;
  top: 0;
}

.right {
  right: 0;
  top: 0;
  transform: translateX(-25%);
}

/* Default floating icons arrangement (without zigzag) */
.floating-icons.left, .floating-icons.right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive Styles */
@media (max-width: 960px) {
  .left, .right {
    width: 50px;
  }

  .app-links {
    flex-direction: column;
  }

  .app-links img {
    width: 250px;
    padding-bottom: 0px;
  }

  .right { 
    right: 3%;
  }
}
  
@media (max-width: 844px) {
  .download-message {
    margin: -2.2rem 0 2rem;
    font-size: 1.1em;
    font-weight: lighter;
    color: rgba(24, 22, 25, 0.4);
  }
  
  .right {
    padding-top: 3%;
    margin-right: -18%;
    margin-left: -10%;
  }
  .left {
    padding-top: 3%;
    margin-right: -10%;
    margin-left: -10%;
  }
  .floating-icons img {
    width: 54px !important; /* Adjust the width */
    height: 54px !important; /* Adjust the height */
    margin-top: 2.6rem !important;
  }
}
  
@media (max-width: 420px) { 
  .phone-mockup img {
    width: 100% !important;
  }
  
  .floating-icons img {
    width: 54px !important; /* Adjust the width */
    height: 54px !important; /* Adjust the height */
  }
}

@media (max-width: 768px) {
  .floating-icons img {
    opacity: 0.25;
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2))
    drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    display: block;
    margin-top: 2.2rem;
    margin-bottom: -1.7rem;
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
  }
  
  .left, .right {
    width: auto;
    height: 100vh;
    position: absolute;
    z-index: 1;
  }

  .phone-mockup img {
    width: 89%;
  }
  
  .card-image {
    width: 200px;
  }

  .main-header h1 {
    font-size: 3em;
  }

  .subtitle {
    font-size: 1em;
  }
}