* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: white;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10vh 20px 8px;
  color: white;
  overflow: hidden;
}

h3 {
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 300;
}

h3 strong {
  color: darkgreen;
  font-weight: 600;
}

h3 span {
  color: #ffd700;
  font-weight: 500;
}

.blink {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  text-align: center;
  margin-bottom: 6px;
  animation: blink 2s infinite;
  color: blue;
}

.english {
  display: inline-block;
  margin-right: 20px;
}

.kannada {
  display: inline-block;
  font-style: italic;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.5;
  }
}

/* URL Display Tag */
.url-display,
.url-display-custom {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  background-color: skyblue;
  padding: 2px 6px;
  color: darkblue;
  position: absolute;
  border-radius: 20px;
  border: 2px solid aqua;
  box-shadow: black 2px 2px 4px;
  font-weight: bold;
  font-size: 15px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  z-index: 10;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  line-height: 1;
  transform: translate(-50%, -110%);
  max-width: none;
  box-sizing: border-box;
  left: 50%;
  right: auto;
  top: 0;
  pointer-events: none;
}

.url-display-custom {
  left: 50%;
  top: -20%;
  transform: translate(-50%, 0);
  margin-left: 0;
}

/* Reveal on hover/auto */
li a:hover .url-display,
li a.auto-hover .url-display,
.custom-service-box a:hover .url-display-custom,
.custom-service-box a.auto-hover .url-display-custom {
  opacity: 1;
  visibility: visible;
  animation: fadeInSlide 0.3s ease-out;
  display: block;
}

/* Auto show animation */
.url-display.auto-show,
.url-display-custom.auto-show {
  opacity: 1;
  visibility: visible;
  animation: autoFadeInSlide 1s ease-out;
}

@keyframes autoFadeInSlide {
  0% {
    opacity: 0;
    margin-top: 10px;
  }

  100% {
    opacity: 1;
    margin-top: 0;
  }
}

/* Main container */
ul {
  --size: min(90vw, 72vh, 800px);
  /* responsive to both width AND height */
  --radius: calc(var(--size) * 0.38);
  /* control item distance */
  list-style: none;
  position: relative;
  width: var(--size);
  height: var(--size);
  max-width: 700px;
  max-height: 700px;
  margin: 0 auto;
  border-radius: 50%;
  background-image:
    radial-gradient(circle,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 100%),
    url("https://res.cloudinary.com/djx69owjm/image/upload/v1774603820/Way2Agribusiness/Online%20services/Our_Online_Services_1_w8bwja.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.custom-service-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  padding: 6px;
  border: 2px solid #ffd700;
  width: 140px;
  height: 70px;
  border-radius: 75px / 55%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 0 20px rgba(255, 215, 0, 0.6),
    0 8px 12px rgba(0, 0, 0, 0.15),
    inset 0 0 12px rgba(255, 215, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: pulseGlow 3s infinite;
  overflow: visible;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow:
      0 0 25px rgba(255, 215, 0, 0.6),
      0 8px 16px rgba(0, 0, 0, 0.15),
      inset 0 0 15px rgba(255, 215, 0, 0.2);
  }

  50% {
    box-shadow:
      0 0 35px rgba(255, 215, 0, 0.8),
      0 8px 16px rgba(0, 0, 0, 0.15),
      inset 0 0 20px rgba(255, 215, 0, 0.3);
  }
}

.custom-img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 50px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.custom-service-box:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.9),
    0 12px 24px rgba(0, 0, 0, 0.2),
    inset 0 0 25px rgba(255, 215, 0, 0.4);
  border-color: #ffed4e;
}

.custom-service-box a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  transition: all 0.5s cubic-bezier(0.35, 0.5, 0.48, 0.98);
  border-radius: 70px / 50%;
}

.custom-service-box a.auto-hover,
.custom-service-box a:hover {
  transform: scale(1.5);
}

.custom-service-box a:hover .url-display-custom,
.custom-service-box a.auto-hover .url-display-custom {
  opacity: 1;
  visibility: visible;
  animation: fadeInSlide 0.5s ease-out;
}

.url-display-custom {
  opacity: 0;
  visibility: hidden;
  background-color: skyblue;
  padding: 4px 8px;
  color: darkblue;
  position: absolute;
  border-radius: 20px;
  border: 2px solid aqua;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  font-size: 12px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  z-index: 10;
  width: max-content;
  white-space: nowrap;
  left: 100%;
  top: -20%;
  transform: translate(-98%, 0);
  margin-left: 4px;
  pointer-events: none;
}

.url-display-custom.auto-show {
  opacity: 1;
  visibility: visible;
  animation: autoFadeInSlide 1s ease-out;
}

/* Circular arrangement */
li:not(.services_main) {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

/* Set z-index for stacking order - first item on top */
li:nth-of-type(1) {
  z-index: 6;
}

li:nth-of-type(2) {
  z-index: 5;
}

li:nth-of-type(3) {
  z-index: 4;
}

li:nth-of-type(4) {
  z-index: 3;
}

li:nth-of-type(5) {
  z-index: 2;
}

li:nth-of-type(6) {
  z-index: 1;
}

/* Top (2 items) */
li:nth-of-type(1) {
  transform: translate(-130px, 80px) rotate(-60deg) translate(300px) rotate(60deg);
}

li:nth-of-type(2) {
  transform: translate(40px, 65px) rotate(-120deg) translate(300px) rotate(120deg);
}

/* Right (2 items) */
li:nth-of-type(3) {
  transform: translate(-145px, -150px) rotate(-330deg) translate(300px) rotate(330deg);
}

li:nth-of-type(5) {
  transform: translate(-230px, 240px) rotate(-30deg) translate(300px) rotate(30deg);
}

/* Left (2 items) */
li:nth-of-type(4) {
  transform: translate(90px, 215px) rotate(-150deg) translate(300px) rotate(150deg);
}

li:nth-of-type(6) {
  transform: translate(50px, -190px) rotate(-210deg) translate(300px) rotate(210deg);
}

li a {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
}

/* Auto hover effect */
li a.auto-hover {
  transform: scale(0.9);
  box-shadow: 0 0 20px white;
  /* border-color: #ffd700; */
}

li a:hover,
li a:active {
  transform: scale(0.9);
  box-shadow: 0 0 20px white;
  /* border-color: #ffd700; */
}

li a:hover .url-display,
li a:active .url-display {
  display: block;
}

/* Individual positioning for each list item URL on desktop - CUSTOMIZE HERE */
li:nth-of-type(1) .url-display,
li:nth-of-type(2) .url-display,
li:nth-of-type(4) .url-display {
  left: 50%;
  top: -10px;
  bottom: auto;
  right: auto;
  transform: translate(-50%, -120%);
  overflow: visible;
}

li:nth-of-type(5) .url-display {
  left: auto;
  top: auto;
  bottom: 80px;
  right: -100px;
  transform: translate(-50%, -120%);
  overflow: visible;
}

li:nth-of-type(6) .url-display {
  left: 52%;
  top: -10px;
  bottom: auto;
  right: auto;
  transform: translate(-50%, -120%);
}

li:nth-of-type(3) .url-display {
  left: 50%;
  top: -10;
  transform: translate(-50%, -120%);
}

@keyframes fadeInSlide {
  0% {
    opacity: 0;
    margin-top: 5px;
  }

  100% {
    opacity: 1;
    margin-top: 0;
  }
}

/* Images within circles */
li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 50%;
}

li a:hover img,
li a:active img,
li a.auto-hover img {
  transform: scale(1.5);
}



@keyframes clockPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    border-width: 3px;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.6;
    border-width: 2px;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    border-width: 3px;
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  ul {
    top: 5vh;
    width: min(90vw, 500px);
    height: min(90vw, 500px);
    overflow: visible;
  }

  .custom-service-box {
    width: 120px;
    height: 60px;
    border-radius: 60px / 45%;
    padding: 5px;
  }

  .custom-img {
    width: 100%;
    height: 100%;
    border-radius: 30px;
  }

  li:not(.services_main) {
    width: 100px;
    height: 100px;
  }

  li a {
    width: 90px;
    height: 90px;
  }

  .url-display {
    font-size: 10px;
    right: -100px;
    bottom: -50px;
    top: auto;
  }

  .url-display-custom {
    font-size: 10px;
    padding: 3px 6px;
    left: 50%;
    top: -20%;
    bottom: auto;
    transform: translate(-50%, 0);
    margin-left: 0;
    pointer-events: none;
  }

  /* Individual positioning for each list item URL - CUSTOMIZE HERE */
  li:nth-of-type(1) .url-display,
  li:nth-of-type(2) .url-display,
  li:nth-of-type(3) .url-display,
  li:nth-of-type(4) .url-display {
    left: 50%;
    top: -10px;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -100%);
  }

  li:nth-of-type(5) .url-display {
    left: 0;
    top: -10px;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -100%);
  }

  li:nth-of-type(6) .url-display {
    left: 52%;
    top: -10px;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -100%);
  }

  .custom-service-box a.auto-hover,
  .custom-service-box a:hover {
    transform: scale(1.5);
  }

  .custom-service-box a:hover .url-display-custom,
  .custom-service-box a.auto-hover .url-display-custom {
    opacity: 1;
    visibility: visible;
    animation: fadeInSlide 0.5s ease-out;
  }

  li:nth-of-type(1) {
    transform: translate(-62px, -50px) rotate(-60deg) translate(188px) rotate(60deg);
  }

  li:nth-of-type(2) {
    transform: translate(-6px, -69px) rotate(-120deg) translate(188px) rotate(120deg);
  }

  li:nth-of-type(3) {
    transform: translate(-28px, -94px) rotate(-330deg) translate(188px) rotate(330deg);
  }

  li:nth-of-type(5) {
    transform: translate(-106px, 194px) rotate(-30deg) translate(188px) rotate(30deg);
  }

  li:nth-of-type(4) {
    transform: translate(-34px, 163px) rotate(-150deg) translate(188px) rotate(150deg);
  }

  li:nth-of-type(6) {
    transform: translate(-75px, -138px) rotate(-210deg) translate(188px) rotate(210deg);
  }

  h3 {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
  }

  body {
    justify-content: flex-start;
    padding: 20vh 10px 6px;
  }
}

@media (max-width: 480px) {
  ul {
    width: min(90vw, 350px);
    height: min(90vw, 350px);
    overflow: visible;
  }

  .custom-service-box {
    width: 100px;
    height: 60px;
    border-radius: 50px / 35%;
    padding: 4px;
    overflow: visible;
  }

  .custom-img {
    width: 100%;
    height: 100%;
    border-radius: 60px;
  }

  li:not(.services_main) {
    width: 40px;
    height: 30px;
  }

  li a {
    width: 70px;
    height: 70px;
  }

  .url-display {
    font-size: 8px;
    padding: 1px 2px;
    right: -50px;
    bottom: -35px;
    top: auto;
    overflow: visible;
  }

  .url-display-custom {
    font-size: 7px;
    padding: 2px 6px;
    left: 50%;
    top: -30%;
    bottom: auto;
    transform: translate(-50%, 0);
    margin-left: 0;
    overflow: visible;
    pointer-events: none;
  }

  /* Individual positioning for each list item URL - CUSTOMIZE HERE */
  li:nth-of-type(1) .url-display,
  li:nth-of-type(2) .url-display,
  li:nth-of-type(3) .url-display,
  li:nth-of-type(4) .url-display {
    left: 50%;
    top: -10px;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -100%);
  }

  li:nth-of-type(5) .url-display {
    left: -50%;
    top: -10px;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -100%);
  }

  li:nth-of-type(6) .url-display {
    left: 52%;
    top: -10px;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -100%);
  }

  li:nth-of-type(1) {
    transform: translate(-44px, -35px) rotate(-60deg) translate(131px) rotate(60deg);
  }

  li:nth-of-type(2) {
    transform: translate(-4px, -48px) rotate(-120deg) translate(131px) rotate(120deg);
  }

  li:nth-of-type(3) {
    transform: translate(-20px, -66px) rotate(-330deg) translate(131px) rotate(330deg);
  }

  li:nth-of-type(5) {
    transform: translate(-74px, 136px) rotate(-30deg) translate(131px) rotate(30deg);
  }

  li:nth-of-type(4) {
    transform: translate(-24px, 114px) rotate(-150deg) translate(131px) rotate(150deg);
  }

  li:nth-of-type(6) {
    transform: translate(-52px, -96px) rotate(-210deg) translate(131px) rotate(210deg);
  }

  h3 {
    font-size: clamp(0.9rem, 2vw, 1.4rem);
  }

  body {
    justify-content: flex-start;
    padding: 5vh 20px 10px;
  }

  .custom-service-box {
    width: 80px;
    height: 40px;
    border-radius: 40px / 30%;
    padding: 3px;
  }

  .custom-img {
    width: 100%;
    height: 100%;
    border-radius: 40px;
  }
}