/* ==========================================================================
   E/ACC — shared stylesheet (used by index.html and gallery.html)
   Consolidated from two duplicate <style> blocks into one cacheable file.
   ========================================================================== */

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

body {
  font-family: "Orbitron", "Raleway", "Arial", sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  background-image: url("../main_bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  gap: 2rem;
}

.header-logo {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.header-text {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.1em;
  margin-right: auto;
  margin-left: 0.1rem;
}

.header-nav {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.header-nav a:hover {
  color: #00ffff;
  text-shadow: 0 0 10px #91f6f6;
  transform: scale(1.05);
}

.highlight-social {
  animation: highlight 1.5s ease-in-out forwards;
}

@keyframes highlight {
  0% {
    transform: scale(1);
    text-shadow: none;
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff;
  }
  100% {
    transform: scale(1);
    text-shadow: none;
  }
}

/* ---------- Layout ---------- */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  flex-grow: 1;
}

.poster-container {
  margin: 2rem auto;
  position: relative;
  display: block;
}

.poster-image {
  width: 100%;
  max-width: 80vw;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0px 30px rgba(0, 255, 255, 0.3);
  transition: filter 0.5s ease-in-out;
}

.hover-text {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6),
    2px 2px 4px rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease-in-out, top 0.4s ease-in-out;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

.poster-container:hover .hover-text {
  opacity: 1;
  top: 50%;
}

.poster-container:hover .poster-image {
  filter: brightness(0.4);
}

.main-title {
  font-size: 3rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
  color: #ffffff;
  text-shadow: 0 0 10px rgb(255, 255, 255);
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: #cccccc;
  font-style: italic;
  text-shadow: 0 0 10px rgb(255, 255, 255);
}

.links-panel {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  margin: 3rem 0;
}

.link-item {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.link-item:hover {
  color: #00ffff;
  transform: scale(1.05);
  text-shadow: 0 0 10px #91f6f6;
}

/* ---------- Three-column layout (home page) ---------- */
.three-column-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
  padding: 0 1rem;
}

.column {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
  text-align: left;
}

.column h2 {
  font-size: 1.8rem;
  color: #00ffff;
  margin-bottom: 1rem;
  text-align: center;
  font-family: "Orbitron", sans-serif;
}

.social-links a,
.quote-text {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: white;
  text-shadow: 0 0 5px rgb(39, 221, 253);
  transform: scale(1.05);
}

.social-links img {
  vertical-align: middle;
  margin-right: 0.5rem;
  height: 1.2rem;
  width: auto;
}

.social-heading {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.column-image {
  display: block;
  margin: 1.5rem auto 2rem auto;
  border-radius: 5px;
  max-width: 95%;
  height: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.column-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
  border-radius: 10px;
}

.floating-text-container {
  width: 100%;
  overflow: hidden;
  height: 50px;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  position: relative;
}

.floating-text {
  display: flex;
  white-space: nowrap;
  animation: floatText 20s linear infinite;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 5px #ffffff;
}

@keyframes floatText {
  0% {
    transform: translateX(0%) translateY(-50%);
  }
  100% {
    transform: translateX(-200%) translateY(-50%);
  }
}

.video-container {
  margin: 1.5rem 0;
  text-align: center;
}

.video-container iframe {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
}

.philosophy-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
  font-family: "Share Tech", "Raleway", sans-serif;
}

.quote-box {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #00ffff;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
}

.quote-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  font-family: "Share Tech", "Raleway", sans-serif;
}

.quote-author {
  font-size: 0.9rem;
  color: #ccc;
  text-align: right;
}

.ca-display-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ca-label {
  font-size: 1.2rem;
  color: #00ffff;
  font-family: "Orbitron", sans-serif;
  margin-right: 0.5rem;
}

.ca-address {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem 1rem;
  display: inline-block;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  word-break: break-all;
  text-decoration: none;
  border-radius: 10px;
}

.ca-address:hover {
  background-color: rgba(28, 44, 43, 0.861);
  border-color: #ffffff;
}

.popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(91, 195, 195, 0.9);
  color: #0a0a0a;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(4, 237, 237, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  font-family: "Orbitron", sans-serif;
  font-weight: bold;
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

/* ---------- Home-page image slider ---------- */
.gallery-slider-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 2rem auto 1rem auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.3);
}

.gallery-slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  transform: translateX(0);
  opacity: 1;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow.left {
  left: 10px;
}

.slider-arrow.right {
  right: 10px;
}

.gallery-text-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  text-decoration: none;
  color: #00ffff;
  font-size: 1.5rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.gallery-text-link:hover {
  color: #fff;
  text-shadow: 0 0 10px #91f6f6;
}

/* ---------- CoinGecko data block ---------- */
.coingecko-data {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
  text-align: center;
}

.coingecko-data h2 {
  font-size: 1.8rem;
  color: #00ffff;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
}

.coingecko-data p {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  font-family: "Orbitron", sans-serif;
}

.coingecko-data span {
  font-weight: bold;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
}

/* ---------- Community section (home page) ---------- */
.community-section {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.community-text-content {
  text-align: left;
}

.community-text-content h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px #3edcff;
}

.community-text-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 2rem;
  font-family: "Share Tech", "Raleway", sans-serif;
}

.join-community-button {
  display: inline-block;
  background-color: #00ffffc4;
  color: #0a0a0a;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.join-community-button:hover {
  background-color: #91f6f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

.community-image-container {
  text-align: center;
}

.community-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.542);
}

/* ---------- Gallery page ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding: 0 1rem;
}

.video-item video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.nav-links-container {
  margin-top: 2rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.home-button {
  display: inline-block;
  background-color: #2bf9f9;
  color: #0a0a0a;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-bottom: 1.5rem;
}

.home-button:hover {
  background-color: #d2eded;
  transform: scale(1.05);
  box-shadow: 0 0 10px #2bf9f9;
}

.twitter-text-link-main {
  color: #cccccc;
  font-size: 1.2rem;
  margin-top: 1rem;
}

.twitter-text-link-main a {
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.twitter-text-link-main a:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #91f6f6;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #ccc;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-twitter-line {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-twitter-line a {
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-twitter-line a:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #91f6f6;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: #00ffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #91f6f6;
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .three-column-section {
    grid-template-columns: 1fr 2fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-text {
    font-size: 1.5rem;
    padding-left: 0.5rem;
  }

  .header-nav {
    gap: 1rem;
  }

  .header-nav a {
    font-size: 0.9rem;
  }

  .main-title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .poster-image {
    max-width: 80vw;
    width: 100%;
  }

  .links-panel {
    flex-direction: column;
    gap: 1.5rem;
  }

  .community-section {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }

  .community-text-content {
    text-align: center;
  }

  .community-text-content h2 {
    font-size: 2rem;
  }

  .community-text-content p {
    font-size: 1rem;
  }

  .join-community-button {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

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

  .nav-links-container {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .home-button {
    margin-bottom: 1rem;
  }

  .twitter-text-link-main,
  .footer-twitter-line {
    font-size: 1rem;
  }

  footer .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
