html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: #f5f5f7;   /* light neutral background */
  color: #222222;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
}

.logo-image {
  max-width: 220px;   /* adjust as needed */
  height: auto;
  display: block;
}

/* 3D scene */
.logo-wrapper {
  perspective: 1000px;              /* Depth for the rotation */
}

/* The turning card */
.logo-card {
  position: relative;
  width: 240px;                     /* adjust to your logo size */
  height: 240px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-out;
}

/* Both faces stacked */
.logo-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Front = normal logo */
.logo-front {
  background: transparent;
}

/* Back = same logo, no visual change, just rotated */
.logo-back {
  transform: rotateY(180deg);
  background: transparent;
}

/* Logo image */
.logo-image {
  max-width: 200px;
  height: auto;
  display: block;
}

/* Hover: turn around and back (360deg = face -> back -> face) */
.logo-wrapper:hover .logo-card {
  transform: rotateY(360deg);
}

.quote {
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  max-width: 480px;

  font-size: 1rem;
  font-weight: 300;
  color: #666666;
  line-height: 1.6;
}

.quote-text {
  position: relative;
  z-index: 1;
  font-style: italic;
  font-size:2rem;
  color: #747373;
}

/* Huge decorative opening quote */
.quote::before {
  content: "“";
  position: absolute;
  left: -2rem;
  top: -1.0rem;

  font-size: 4rem;
  line-height: 1;
  color: #e0e0e0;      /* very light gray so it’s subtle on light bg */
  font-weight: 700;
  pointer-events: none;
}

.quote-text::after {
  content: "”";
  position: absolute;
  right: -1.8rem;
  bottom: -3.8rem;

  font-size: 4rem;
  font-weight: 700;   /* slightly smaller than the opening if you like */
  line-height: 1;
  color: #e0e0e0;      /* match or tweak to your opening quote color */
  vertical-align: -0.2rem;  /* nudge down a bit to align visually */
}

/* Glow overlay container positioned around the card */
.logo-wrapper {
  position: relative;
  perspective: 1000px;
}

.logo-card {
  position: relative;
  width: 240px;
  height: 240px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-out;
}

/* Glow box around logo */
.logo-glow {
  position: absolute;
  inset: -8px;                      /* slightly larger than the logo card */
  border-radius: 24px;              /* rounded “circuit frame” */
  border: 2px solid transparent;
  pointer-events: none;
}

/* animated state */
.logo-glow.is-glowing {
  border-color: #00c3ff;
  box-shadow:
    0 0 6px  #00c3ff,
    0 0 12px #00e1ff,
    0 0 24px #66f2ff;
  animation: circuit-glow 0.8s ease-out;
}

/* “Electricity” moving around the frame using gradient */
@keyframes circuit-glow {
  0% {
    border-color: transparent;
    box-shadow: none;
  }
  20% {
    border-color: #00c3ff;
    box-shadow:
      0 0 4px  #00c3ff,
      0 0 10px #00e1ff;
  }
  50% {
    border-color: #00e1ff;
    box-shadow:
      0 0 6px  #00e1ff,
      0 0 16px #66f2ff,
      0 0 28px #a8ffff;
  }
  80% {
    border-color: #00c3ff;
    box-shadow:
      0 0 4px  #00c3ff,
      0 0 10px #00e1ff;
  }
  100% {
    border-color: transparent;
    box-shadow: none;
  }
}
