body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: url('../images/electr-bkgnd-4.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  background-repeat: no-repeat;
  color: lightgrey;
}

/* Alternate Background for Secondary Pages */
body.secondary-bg {
  background: url('../images/electr-bkgnd-4.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, rgba(173, 216, 230, 0.2), rgba(173, 216, 230, 0.0));
}

.hero h1 {
  font-family: 'Orbitron', 'Share Tech Mono', monospace;
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: lightgrey;
  margin: 0;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

/* Simple Horizontal Tabs */
.simple-tabs {
  max-width: 900px;
  margin: 40px auto;
  font-family: 'Share Tech Mono', monospace;
}

.tab-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.tab-list button {
  background: none;
  border: 2px solid #00f0ff;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 1rem;
  color: lightgrey;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab-list button.active {
  border-color: #8a2be2;
  background-color: rgba(0, 240, 255, 0.1);
  font-weight: bold;
}

.tab-list button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #00f0ff;
}

.tab-panel {
  display: none;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: lightgrey;
}

.tab-panel.active {
  display: block;
}

/* Navigation Buttons */
.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.button {
  display: inline-block;
  padding: clamp(12px, 2vw, 18px) 30px;
  min-width: 220px;
  text-align: center;
  border-radius: 30px;
  background: linear-gradient(135deg, #00f0ff, #8a2be2);
  color: white;
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-family: 'Orbitron', 'Share Tech Mono', monospace;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4), 0 0 20px rgba(138, 43, 226, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  transform: rotate(45deg);
  transition: opacity 0.4s ease;
  opacity: 0;
}

.button:hover::before {
  opacity: 1;
}

.button:hover {
  background: linear-gradient(135deg, #8a2be2, #00f0ff);
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), 0 0 25px rgba(138, 43, 226, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: pulseGlow 1.2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), 0 0 25px rgba(138, 43, 226, 0.5); }
  50% { box-shadow: 0 0 25px rgba(0, 255, 255, 0.8), 0 0 35px rgba(138, 43, 226, 0.7); }
  100% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), 0 0 25px rgba(138, 43, 226, 0.5); }
}

/* Language Switcher */
.language-switcher {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.language-switcher a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.language-switcher .flag {
  width: 32px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.language-switcher .flag:hover {
  transform: scale(1.1);
}

.language-switcher .lang-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: white;
}

/* Footer */
footer {
  text-align: center;
  padding: 22px;
  background: linear-gradient(135deg, rgba(173, 216, 230, 0.0), rgba(173, 216, 230, 0.2));
  color: lightgrey;
}

/* Contact Form */
.contact-form {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-form label {
  font-size: 1rem;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  resize: vertical;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  padding: 12px;
  border-radius: 25px;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #a777e3, #6e8efb);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 4px 15px rgba(0, 0, 0, 0.2);
}

input, textarea, button {
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #a777e3;
  box-shadow: 0 0 5px rgba(167, 119, 227, 0.5);
}

.services-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: 420px;
  margin: 40px auto 20px;
  padding: 0;
}

.icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.icon-box img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.7),
    0 0 50px rgba(0, 255, 255, 0.4);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.icon-box:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .services-icons {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 90%;
  }

  .icon-box img {
    max-width: 140px;
  }
}

/* Rainbow Flicker Text Effect */
.rainbow-text p {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  text-align: justify;
  hyphens: auto;
  word-spacing: normal;

  background: linear-gradient(90deg, #ffffff, #00c3ff, #dcaffa);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowFlicker 12s linear infinite;
  font-weight: normal;
}

@keyframes rainbowFlicker {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

footer small {
  display: block;
  font-size: 0.8em;
  color: #aaa;
  text-align: center;
  margin-bottom: 5px;
}

/* Contact Form Styling */
form label {
  display: block;
  text-align: left;
  margin: 10px auto 5px auto;
  max-width: 500px;
  font-weight: bold;
  color: #F5F5F5;
  font-family: 'Share Tech Mono', monospace;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 90%;
  max-width: 500px;
  margin: 0 auto 15px auto;
  display: block;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #00ffff;
  background-color: #111;
  color: #eee;
  font-family: 'Share Tech Mono', monospace;
  box-shadow: 0 0 8px #00ffff;
  transition: box-shadow 0.3s ease;
}

form button[type="submit"] {
  display: block;
  margin: 20px auto 0 auto;
  max-width: 500px;
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #00ffff;
  color: black;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 10px #00ffff;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  text-align: left;
}

section.fade-in-safe p {
  text-shadow: 0 0 5px #00ffff;
}

.small-button {
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 6px;
  background-color: #00ffff;
  color: black;
  font-family: 'Orbitron', sans-serif;
  text-decoration: none;
  box-shadow: 0 0 6px #00ffff;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.image-glow {
  display: inline-block;
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}
.image-glow img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 400px) {
  body {
    font-size: 0.9rem;
  }

  .content {
    padding: 20px;
    font-size: 1rem;
  }

  .button,
  .small-button {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .image-glow {
    width: 80px;
    height: 80px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h2.subtitle {
    font-size: 1.2rem;
  }
}

.recaptcha-tight {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.recaptcha-tight .g-recaptcha {
  display: inline-block;
  box-shadow: 0 0 10px #00ffff;
  border-radius: 4px;
}