
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f2027, #0b5b9468, #63b8e0);
  background-attachment: fixed;
  background-size: cover;
  padding: 20px;
  color: #ffffff;
  transition: background 0.6s ease, color 0.6s ease;
}




.glass-title {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}


.tool-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}


.tool-card {
  background: rgba(255, 255, 255, 0.085);
backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 30px;
  width: 230px; /* Increased from 160px */
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: static;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #00f0ff, #ff00c8);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tool-card:hover::before {
  opacity: 0.2;
}

.tool-card:hover {
  transform: scale(1.4);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.tool-card img {
  width: 170px; /* Increased from 64px */
  height: 170px;
  margin-bottom: 14px;
    transition: transform 0.4s ease;
}

.tool-card p {
  font-size: 18px; /* Slightly larger text */
  font-weight: 600;
}

.tool-card:hover img {
  transform: scale(1.25);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}





@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}



.fade-container {
  animation: fadeIn 0.8s ease-out forwards;
}

#batteryStatus {
  position: fixed; /* This makes it stay put */
  top: 20px;       /* 20px from the top edge of the screen */
  right: 20px;     /* 20px from the right edge of the screen */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  z-index: 9999; /* Ensure it's on top of all other elements */
  pointer-events: none;
}

@media screen and (max-width: 600px) {
  .glass-toggle {
    top: 20px;
    right: 20px;
  }


}



.moon-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.moon-toggle input {
  display: none;
}

.moon-toggle label img {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.moon-toggle label img:hover {
  transform: scale(1.1);
}


.glass-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.glass-switch {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 40px;
}

.glass-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.glass-slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background 0.4s ease;
  position: relative;
}

.mode-label {
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.toggle-ball {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #00f0ff, #ff00c8);
  border-radius: 50%;
  transition: transform 0.4s ease;
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

input:checked + .glass-slider .toggle-ball {
  transform: translateX(76px);
}

input:checked + .glass-slider .mode-label:nth-child(2) {
  opacity: 1;
}

input:not(:checked) + .glass-slider .mode-label:nth-child(1) {
  opacity: 1;
}


#themeTransition {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00f0ff, #ff00c8);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

body.animating #themeTransition {
  opacity: 0.3;
}

body.animating {
  transition: background 0.6s ease, color 0.6s ease;
}











@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100;200;300;400;500;600;700;800;900&display=swap');
 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Onest', sans-serif;
}
 
:root{
  --color-white: #fff;
  --color-1:#350048;
  --color-2:rgba(255, 255, 255, 0.05);
  --color-3:rgba(0, 0, 0, 0.2);
  --color-4:rgba(255, 255, 255, 0.1);
  --color-gradient-1: rgba(255,255,255, 0.15);
 
}
.cd__main{
   background: var(--color-1) !important;
   min-height: 640px;
   align-items: center;
}

 
.container {
  width: 100%;
  display: flex;
  justify-content: center;   /* Centers the buttons horizontally */
  align-items: center;
  gap: 25px;                 /* Space between buttons */
  margin-top: 10px;
  margin-bottom: 40px;       /* Adds spacing below buttons */
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}
 
.container .btn {
  position: relative;
  width: 130px;
  height: 45px;
  margin: 10px;
}
 
.container .btn a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-2);
  box-shadow: 0 15px 35px var(--color-3);
  border-top: 1px solid var(--color-4);
  border-bottom: 1px solid var(--color-4);
  border-radius: 30px;
  color: var(--color-white);
  z-index: 1;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  overflow: hidden;
  transition: 0.8s;
  backdrop-filter: blur(15px);
}
 
.container .btn:hover a {
  letter-spacing: 3px;
}
 
.container .btn a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, var(--color-gradient-1), transparent);
  transform: skewX(45deg) translateX(0);
  transition: 0.8s;
}
 
.container .btn:hover a::before {
    transform: skewX(45deg) translateX(200%);
}
 
.container .btn::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 30px;
  height: 10px;
  background: red;
  border-radius: 10px;
  transition: 0.8s;
  transition-delay: 0s;
}
 
.container .btn:hover::before {
  bottom: 0;
  height: 50%;
  width: 80%;
  border-radius: 30px;
  transition-delay: 0.5s;
}
 
 
.container .btn::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -5px;
  width: 30px;
  height: 10px;
  background: red;
  border-radius: 10px;
  transition: 0.8s;
  transition-delay: 0s;
}
 
.container .btn:hover::after {
  top: 0;
  height: 50%;
  width: 80%;
  border-radius: 30px;
  transition-delay: 0.5s;
}
 
.container .btn:nth-child(1)::before,
.container .btn:nth-child(1)::after {
  background: #ff1f71;
  box-shadow: 0 0 5px #ff1f71,
              0 0 15px #ff1f71,
              0 0 30px #ff1f71,
              0 0 60px #ff1f71;
}
 
 
.container .btn:nth-child(2)::before,
.container .btn:nth-child(2)::after {
  background: #136075;
  box-shadow: 0 0 5px #2bd2ff,
              0 0 15px #2bd2ff,
              0 0 30px #2bd2ff,
              0 0 60px #2bd2ff;
}
.container .btn:nth-child(3)::before,
.container .btn:nth-child(3)::after {
  background: #ffffffb7;
  box-shadow: 0 0 5px #1eff45,
              0 0 15px #1eff45,
              0 0 30px #1eff45,
              0 0 60px #1eff45;
}


@media screen and (max-width: 600px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .container .btn {
    width: 80%;
    max-width: 250px;
  }
}