/* ============================================
   Floating Icons - Global Background Animation
   Icons fly across the entire website with scroll effects
============================================ */

/* Container for floating icons - covers entire viewport */
.floating-icons-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Individual floating icon */
.float-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
  font-size: 24px;
  border: 2px solid rgba(79, 70, 229, 0.1);
  opacity: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transition: all 0.3s ease;
}

/* Temporary scroll icons */
.temp-scroll-icon {
  width: 40px !important;
  height: 40px !important;
  font-size: 20px !important;
  animation: none !important;
}

/* Different animation paths for variety */
@keyframes floatDiagonal1 {
  0% {
    transform: translate(-100px, -100px) rotate(0deg);
  }

  100% {
    transform: translate(calc(100vw + 100px), calc(100vh + 100px)) rotate(360deg);
  }
}

@keyframes floatDiagonal2 {
  0% {
    transform: translate(calc(100vw + 100px), -100px) rotate(0deg);
  }

  100% {
    transform: translate(-100px, calc(100vh + 100px)) rotate(-360deg);
  }
}

@keyframes floatVertical {
  0% {
    transform: translateY(-100px) rotate(0deg);
  }

  100% {
    transform: translateY(calc(100vh + 200px)) rotate(180deg);
  }
}

@keyframes floatHorizontal {
  0% {
    transform: translateX(-100px) rotate(0deg);
  }

  100% {
    transform: translateX(calc(100vw + 100px)) rotate(180deg);
  }
}

@keyframes floatZigzag {
  0% {
    transform: translate(-100px, 0) rotate(0deg);
  }

  25% {
    transform: translate(25vw, 25vh) rotate(90deg);
  }

  50% {
    transform: translate(50vw, 50vh) rotate(180deg);
  }

  75% {
    transform: translate(75vw, 75vh) rotate(270deg);
  }

  100% {
    transform: translate(calc(100vw + 100px), 100vh) rotate(360deg);
  }
}

@keyframes floatCircular {
  0% {
    transform: translate(50vw, -100px) rotate(0deg);
  }

  25% {
    transform: translate(calc(50vw + 200px), 25vh) rotate(90deg);
  }

  50% {
    transform: translate(50vw, 50vh) rotate(180deg);
  }

  75% {
    transform: translate(calc(50vw - 200px), 75vh) rotate(270deg);
  }

  100% {
    transform: translate(50vw, calc(100vh + 100px)) rotate(360deg);
  }
}

@keyframes floatSpiral {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.5);
  }

  50% {
    transform: translate(50vw, 50vh) rotate(180deg) scale(1);
  }

  100% {
    transform: translate(100vw, 100vh) rotate(360deg) scale(0.5);
  }
}

/* Assign different animations to 40 icons */
.float-icon:nth-child(1) {
  animation: floatDiagonal1 25s linear infinite;
  animation-delay: 0s;
  left: 10%;
  top: 0;
}

.float-icon:nth-child(2) {
  animation: floatDiagonal2 30s linear infinite;
  animation-delay: 2s;
  right: 10%;
  top: 0;
}

.float-icon:nth-child(3) {
  animation: floatVertical 20s linear infinite;
  animation-delay: 4s;
  left: 30%;
  top: 0;
}

.float-icon:nth-child(4) {
  animation: floatHorizontal 28s linear infinite;
  animation-delay: 1s;
  left: 0;
  top: 20%;
}

.float-icon:nth-child(5) {
  animation: floatZigzag 35s linear infinite;
  animation-delay: 3s;
  left: 0;
  top: 40%;
}

.float-icon:nth-child(6) {
  animation: floatDiagonal1 32s linear infinite;
  animation-delay: 5s;
  left: 50%;
  top: 0;
}

.float-icon:nth-child(7) {
  animation: floatCircular 40s linear infinite;
  animation-delay: 2.5s;
  left: 20%;
  top: 0;
}

.float-icon:nth-child(8) {
  animation: floatDiagonal2 27s linear infinite;
  animation-delay: 6s;
  right: 20%;
  top: 0;
}

.float-icon:nth-child(9) {
  animation: floatVertical 24s linear infinite;
  animation-delay: 4.5s;
  left: 70%;
  top: 0;
}

.float-icon:nth-child(10) {
  animation: floatHorizontal 33s linear infinite;
  animation-delay: 1.5s;
  left: 0;
  top: 60%;
}

.float-icon:nth-child(11) {
  animation: floatZigzag 29s linear infinite;
  animation-delay: 7s;
  left: 0;
  top: 80%;
}

.float-icon:nth-child(12) {
  animation: floatDiagonal1 26s linear infinite;
  animation-delay: 3.5s;
  left: 80%;
  top: 0;
}

.float-icon:nth-child(13) {
  animation: floatCircular 38s linear infinite;
  animation-delay: 5.5s;
  left: 40%;
  top: 0;
}

.float-icon:nth-child(14) {
  animation: floatDiagonal2 31s linear infinite;
  animation-delay: 2.8s;
  right: 30%;
  top: 0;
}

.float-icon:nth-child(15) {
  animation: floatVertical 22s linear infinite;
  animation-delay: 6.5s;
  left: 60%;
  top: 0;
}

.float-icon:nth-child(16) {
  animation: floatSpiral 45s linear infinite;
  animation-delay: 8s;
  left: 15%;
  top: 0;
}

.float-icon:nth-child(17) {
  animation: floatDiagonal1 23s linear infinite;
  animation-delay: 9s;
  right: 15%;
  top: 0;
}

.float-icon:nth-child(18) {
  animation: floatVertical 27s linear infinite;
  animation-delay: 1.2s;
  left: 85%;
  top: 0;
}

.float-icon:nth-child(19) {
  animation: floatHorizontal 36s linear infinite;
  animation-delay: 7.5s;
  left: 0;
  top: 10%;
}

.float-icon:nth-child(20) {
  animation: floatZigzag 41s linear infinite;
  animation-delay: 4.8s;
  left: 0;
  top: 30%;
}

.float-icon:nth-child(21) {
  animation: floatCircular 34s linear infinite;
  animation-delay: 6.2s;
  left: 65%;
  top: 0;
}

.float-icon:nth-child(22) {
  animation: floatDiagonal2 29s linear infinite;
  animation-delay: 8.5s;
  right: 5%;
  top: 0;
}

.float-icon:nth-child(23) {
  animation: floatSpiral 39s linear infinite;
  animation-delay: 3.7s;
  left: 25%;
  top: 0;
}

.float-icon:nth-child(24) {
  animation: floatVertical 21s linear infinite;
  animation-delay: 9.2s;
  left: 45%;
  top: 0;
}

.float-icon:nth-child(25) {
  animation: floatHorizontal 37s linear infinite;
  animation-delay: 2.3s;
  left: 0;
  top: 50%;
}

.float-icon:nth-child(26) {
  animation: floatDiagonal1 28s linear infinite;
  animation-delay: 5.8s;
  left: 75%;
  top: 0;
}

.float-icon:nth-child(27) {
  animation: floatZigzag 33s linear infinite;
  animation-delay: 7.2s;
  left: 0;
  top: 70%;
}

.float-icon:nth-child(28) {
  animation: floatCircular 42s linear infinite;
  animation-delay: 4.1s;
  left: 35%;
  top: 0;
}

.float-icon:nth-child(29) {
  animation: floatDiagonal2 25s linear infinite;
  animation-delay: 8.8s;
  right: 25%;
  top: 0;
}

.float-icon:nth-child(30) {
  animation: floatSpiral 44s linear infinite;
  animation-delay: 6.7s;
  left: 55%;
  top: 0;
}

.float-icon:nth-child(31) {
  animation: floatDiagonal1 26s linear infinite;
  animation-delay: 9.5s;
  left: 5%;
  top: 0;
}

.float-icon:nth-child(32) {
  animation: floatVertical 19s linear infinite;
  animation-delay: 3.2s;
  left: 95%;
  top: 0;
}

.float-icon:nth-child(33) {
  animation: floatHorizontal 31s linear infinite;
  animation-delay: 6.8s;
  left: 0;
  top: 15%;
}

.float-icon:nth-child(34) {
  animation: floatZigzag 43s linear infinite;
  animation-delay: 2.1s;
  left: 0;
  top: 35%;
}

.float-icon:nth-child(35) {
  animation: floatCircular 36s linear infinite;
  animation-delay: 7.9s;
  left: 90%;
  top: 0;
}

.float-icon:nth-child(36) {
  animation: floatSpiral 41s linear infinite;
  animation-delay: 4.6s;
  left: 12%;
  top: 0;
}

.float-icon:nth-child(37) {
  animation: floatDiagonal2 24s linear infinite;
  animation-delay: 8.3s;
  right: 8%;
  top: 0;
}

.float-icon:nth-child(38) {
  animation: floatVertical 26s linear infinite;
  animation-delay: 5.1s;
  left: 88%;
  top: 0;
}

.float-icon:nth-child(39) {
  animation: floatHorizontal 35s linear infinite;
  animation-delay: 1.7s;
  left: 0;
  top: 25%;
}

.float-icon:nth-child(40) {
  animation: floatCircular 47s linear infinite;
  animation-delay: 9.4s;
  left: 42%;
  top: 0;
}

/* Icon Colors - All Skills Icons */
.float-icon.flutter i {
  color: #02569B;
}

.float-icon.android i {
  color: #3DDC84;
}

.float-icon.ios i {
  color: #000;
}

.float-icon.dart i {
  color: #0175C2;
}

.float-icon.riverpod i {
  color: #4f46e5;
}

.float-icon.bloc i {
  color: #6366f1;
}

.float-icon.gorouter i {
  color: #02569B;
}

.float-icon.laravel i {
  color: #FF2D20;
}

.float-icon.php i {
  color: #777BB4;
}

.float-icon.rest-api i {
  color: #4f46e5;
}

.float-icon.json i {
  color: #F7DF1E;
}

.float-icon.firebase i {
  color: #FFCA28;
}

.float-icon.supabase i {
  color: #3ECF8E;
}

.float-icon.auth i {
  color: #4f46e5;
}

.float-icon.hosting i {
  color: #6366f1;
}

.float-icon.fcm i {
  color: #FFCA28;
}

.float-icon.functions i {
  color: #4f46e5;
}

.float-icon.firestore i {
  color: #FFCA28;
}

.float-icon.mysql i {
  color: #4479A1;
}

.float-icon.sqlite i {
  color: #003B57;
}

.float-icon.drift i {
  color: #4f46e5;
}

.float-icon.hive i {
  color: #FFA000;
}

.float-icon.preferences i {
  color: #6366f1;
}

.float-icon.html i {
  color: #E34F26;
}

.float-icon.css i {
  color: #1572B6;
}

.float-icon.js i {
  color: #F7DF1E;
}

.float-icon.bootstrap i {
  color: #7952B3;
}

.float-icon.responsive i {
  color: #4f46e5;
}

.float-icon.pwa i {
  color: #5A0FC8;
}

.float-icon.performance i {
  color: #00C851;
}

.float-icon.git i {
  color: #F05032;
}

.float-icon.github i {
  color: #181717;
}

.float-icon.vscode i {
  color: #007ACC;
}

.float-icon.npm i {
  color: #CB3837;
}

.float-icon.firebase-cli i {
  color: #FFCA28;
}

.float-icon.cicd i {
  color: #4f46e5;
}

.float-icon.play-console i {
  color: #01875f;
}

.float-icon.app-store i {
  color: #0D7377;
}

.float-icon.crashlytics i {
  color: #FF6B35;
}

.float-icon.analytics i {
  color: #4285F4;
}

.float-icon.admob i {
  color: #EA4335;
}

.float-icon.erp i {
  color: #4f46e5;
}

.float-icon.crm i {
  color: #6366f1;
}

.float-icon.rts i {
  color: #4338ca;
}

.float-icon.figma i {
  color: #F24E1E;
}

.float-icon.uiux i {
  color: #FF6B6B;
}

.float-icon.design i {
  color: #4ECDC4;
}

.float-icon.graphics i {
  color: #45B7D1;
}

.float-icon.product-design i {
  color: #FFA726;
}

.float-icon.design-systems i {
  color: #AB47BC;
}

.float-icon.youtube i {
  color: #FF0000;
}

.float-icon.tiktok i {
  color: #000000;
}

.float-icon.facebook i {
  color: #1877F2;
}

.float-icon.instagram i {
  color: #E4405F;
}

.float-icon.video-editing i {
  color: #FF6B35;
}

.float-icon.content i {
  color: #4ECDC4;
}

.float-icon.strategy i {
  color: #6366f1;
}

.float-icon.marketing i {
  color: #FF6B6B;
}

.float-icon.seo i {
  color: #4285F4;
}

.float-icon.aso i {
  color: #34A853;
}

.float-icon.growth i {
  color: #00C851;
}

.float-icon.chatgpt i {
  color: #10A37F;
}

.float-icon.ai-images i {
  color: #FF6B35;
}

.float-icon.ai-dev i {
  color: #6366f1;
}

.float-icon.prompting i {
  color: #4f46e5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .float-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* Reduce number of visible icons on mobile */
  .float-icon:nth-child(n+31) {
    display: none;
  }
}

@media (max-width: 480px) {

  /* Even fewer icons on very small screens */
  .float-icon:nth-child(n+21) {
    display: none;
  }
}

/* Ensure content stays above floating icons */
body>*:not(.floating-icons-global) {
  position: relative;
  z-index: 2;
}

.floating-icons-global {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}