html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Poppins", sans-serif;
  background: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

#vanta-bg,
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#vanta-bg {
  z-index: 0;
}

#particles-js {
  z-index: 1;
}

.wrapper,
.sidebar,
.openbtn,
.dashboard-icon {
  position: relative;
  z-index: 3;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  text-align: center;
  padding: 100px 20px 30px;
}

header h1#stormworks {
  font-family: "Orbitron", sans-serif;
  font-size: 4rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  gap: 5px;
  color: #ffffff;
  text-shadow: 0 0 4px #00ffff, 0 0 8px #00ffff;
  -webkit-text-stroke: 1px #00ffff;
  transition: text-shadow 0.3s, color 0.3s;
}

#stormworks span {
  display: inline-block;
  transition: text-shadow 0.3s, color 0.3s;
}

#stormworks span:hover {
  color: #39ff14;
  text-shadow: 0 0 2px #39ff14, 0 0 5px #39ff14;
}

#stormworks:hover {
  color: #39ff14;
  text-shadow: 0 0 2px #39ff14, 0 0 5px #39ff14;
}

header p {
  font-size: 1.5rem;
  opacity: 0.9;
  letter-spacing: 2px;
  color: #ccc;
  margin-top: 20px;
}

.sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  margin: 40px 10px;
}

.card {
  background: #1e1e1e;
  border: 2.5px solid #00ffff;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  width: 400px;
  transition: all 0.4s ease;
  cursor: pointer;
  animation: fadeInUp 1s ease-out forwards;
}

.card h2 {
  color: #00ffff;
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-shadow: none;
  transition: color 0.3s ease;
}

.card:hover h2 {
  color: #39ff14; /* neon green */
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  background: #2b2b2b;
  box-shadow: 0 8px 20px #00ffff50;
}

a {
  text-decoration: none;
  color: inherit;
}

.consultation-button-fixed {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #00ffff, #00ffaa);
  border: 2px solid #00ffff;
  color: #121212;
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  overflow: hidden;
  box-shadow: 0 0 5px #00ffff50;
  transition: all 0.3s ease;
  z-index: 20;
}

.consultation-button-fixed .calendar-icon {
  width: 24px;
  height: 24px;
  z-index: 2;
}

.consultation-button-fixed .button-text {
  position: absolute;
  left: 60px;
  white-space: nowrap;
  opacity: 0;
  color: #121212;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-10px);
}

.consultation-button-fixed:hover {
  width: 240px;
  border-radius: 50px;
  padding: 0 20px;
  justify-content: flex-start;
  box-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff;
}

.consultation-button-fixed:hover .button-text {
  opacity: 1;
  transform: translateX(0);
}

.contact-button {
  display: block;
  width: fit-content;
  margin: 20px auto;
  margin-top: 300px;
  padding: 16px 35px;
  background: linear-gradient(90deg, #00ffff, #00ffaa);
  color: #121212;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50px;
  border: 2px solid #00ffff;
  box-shadow: 0 0 5px #00ffff50;
  transition: 0.3s ease;
}

.contact-button:hover {
  background: linear-gradient(90deg, #00ffaa, #00ffff);
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff;
}

@keyframes subtleGlow {
  0% {
    box-shadow: 0 0 10px #00ffff;
  }
  100% {
    box-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

footer {
  display: inline-block;
  background: rgba(0, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  color: #bdbaba;
  text-align: center;
  margin: 16px auto;
}

footer p {
  margin: 0;
}

/* Sidebar container */
.sidebar {
  width: 0;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.85); /* slight transparency */
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.5s, padding-left 0.5s, box-shadow 0.5s;
  padding-top: 80px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  min-height: 100%;

  /* ✅ Subtle glow all around */
  box-shadow: 0 0 20px #00ffff33;
}

.sidebar.open {
  /* When you open the sidebar, apply a stronger glow */
  box-shadow: 0 0 20px #00ffff66, 0 0 40px #00ffff44;
}
.sidebar .social-icons {
  margin-top: 30px;
  margin-bottom: 20px; /* space below icons to stop sidebar naturally */
  display: flex;
  flex-direction: row; /* keep them in a row */
  gap: 50px; /* space *between* icons */
  justify-content: flex-start; /* align to the left edge */
  padding-left: 20px; /* optional: slight indent for alignment */
}
.sidebar .social-icons a img:hover {
  transform: scale(1.2);
}

.silver-gradient-text {
  display: inline-block;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #c0c0c0 20%,
    #808080 40%,
    #c0c0c0 60%,
    #ffffff 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.sidebar a {
  margin: 5px 0;
  padding: 15px 0;
  text-decoration: none;
  font-size: 24px;
  color: #ffbb00;
  width: 100%;
  transition: all 0.3s ease;
  font-family: "Orbitron", sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar a:hover {
  color: #00ffaa;
  text-shadow: 0 0 10px #00ffff;
  padding-left: 5px;
}

.sidebar .social-icons {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}

.sidebar .social-icons a img {
  width: 28px;
  height: 28px;
  filter: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar .social-icons a img:hover {
  transform: scale(1.2);
}

.sidebar .closebtn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 48px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar .closebtn:hover {
  color: #00ffaa;
  text-shadow: 0 0 10px #00ffff;
}

.openbtn {
  font-size: 30px;
  cursor: pointer;
  background: #111111;
  color: #00ffff;
  padding: 3px 5px;
  border-radius: 8px;
  position: fixed;
  top: 30px;
  left: 20px;
  z-index: 35;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  transition: all 0.3s ease;
}

.openbtn:hover {
  color: #00ffaa;
  background: #000;
}

.menu-tooltip {
  position: absolute;
  top: 50%;
  left: 120%;
  transform: translateY(-50%);
  background: #000;
  color: #00ffff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 0;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.openbtn:hover .menu-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

.dashboard-icon {
  position: fixed;
  top: 30px;
  right: 20px;
  z-index: 999;
  background-color: #111111;
  padding: 7px 6px;
  border-radius: 25%;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.dashboard-icon img {
  width: 35px;
  height: 35px;
}

.dashboard-icon:hover {
  transform: scale(1.1);
}

.dashboard-tooltip {
  position: absolute;
  top: 50%;
  right: 120%;
  transform: translateY(-50%);
  background: #000;
  color: #00ffff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 0;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-icon:hover .dashboard-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-10px);
}

.social-icons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.social-icons img {
  width: 30px;
  height: 32px;
  filter: brightness(0) saturate(100%) invert(81%) sepia(0%) saturate(3%)
    hue-rotate(163deg) brightness(106%) contrast(101%);
  transition: transform 0.3s;
}

.sidebar .social-icons img {
  filter: none;
}

.social-icons img:hover {
  transform: scale(1.2);
}

/* ✅ MOBILE FIXES */
@media (max-width: 768px) {
  header h1#stormworks {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1rem;
  }

  .sections {
    grid-template-columns: 1fr;
  }

  .card {
    width: 90%;
    max-width: 350px;
    margin: 10px 0;
  }

  .consultation-button-fixed {
    left: 20px;
    bottom: 20px;
    width: 50px; /* stays icon size */
    transform: none;
  }

  .openbtn {
    font-size: 30px;
    top: 10px;
    left: 10px;
  }

  .sidebar a {
    font-size: 22px;
    padding: 15px 20px;
  }

  .contact-button {
    width: auto; /* Let it shrink naturally */
    max-width: 200px; /* Limit the width */
    margin: 30px auto 0;
    font-size: 1rem;
    padding: 12px 20px;
  }

  .social-icons {
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: center; /* Center them */
  }

  .social-icons a img {
    width: 32px;
    height: 32px;
  }

  .sidebar .closebtn {
    top: 33px;
    right: 20px;
    font-size: 55px;
  }
}
