/* Reset & basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background: #121212;
    color: #a8d8a8;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    text-align: center;
  }
  
  /* Container to center content */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 2;
  }
  
  /* Header styling */
  header {
    padding: 1rem 0;
    text-align: center;
  }
  
  header h1 {
    font-size: 2rem;
    color: #00ff99;
    text-shadow: 0px 0px 5px #00ff99;
  }
  
  /* Navigation */
  header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  header nav a {
    color: #a8d8a8;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
  }
  
  header nav a:hover {
    color: #00ff99;
  }
  
  /* Centered Logo */
  .center-logo {
    display: block;
    margin: 1rem auto;
    max-width: 200px; /* Adjust size as needed */
    height: auto;
  }
  
  /* Smaller text for paragraph under logo */
  .small-text {
    font-size: 1.3rem;
    text-align: center;
    margin-top: 0.5rem;
  }
  
  /* Section styles */
  section {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid #a8d8a8;
    border-radius: 4px;
  }
  
  /* Button container */
  .button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  /* Cyberpunk Button Hover Effect */
  .action-button {
    background: #1e1e1e;
    color: #a8d8a8;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border: 1px solid #a8d8a8;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  }
  
  .action-button:hover {
    background: #00ff99;
    color: #121212;
    box-shadow: 0px 0px 15px #00ff99;
    transform: scale(1.05);
  }
  
  /* Hover effect for contract text */
  #contract-text {
    justify-content: center;
    display: flex;
    font-size: .6rem;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  #contract-text:hover {
    color: #00ff99;
    text-shadow: 0px 0px 5px #00ff99;
  }
  
  /* Glitch text effect */
  .glitch {
    position: relative;
    
    text-transform: uppercase;
    color: #a8d8a8;
  }
  
  /* Glitch effect layers */
  .glitch::before,
  .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: inherit;
    opacity: 0;
    pointer-events: none;
  }
  
  .glitch::before {
    animation: glitch-anim 3s infinite;
  }
  
  .glitch::after {
    animation: glitch-anim2 3s infinite;
  }
  
  /* Updated keyframes for a more random, subtle glitch */
  @keyframes glitch-anim {
    0%, 5%, 95%, 100% {
      transform: translate(0);
      opacity: 0;
    }
    10% {
      transform: translate(-1px, 1px);
      opacity: 0.5;
    }
    20% {
      transform: translate(1px, -1px);
      opacity: 0.5;
    }
    30% {
      transform: translate(-1px, 0);
      opacity: 0.5;
    }
    40% {
      transform: translate(0);
      opacity: 0;
    }
    50% {
      transform: translate(1px, 1px);
      opacity: 0.5;
    }
    60% {
      transform: translate(-1px, -1px);
      opacity: 0.5;
    }
    70%, 80% {
      transform: translate(0);
      opacity: 0;
    }
  }
  
  @keyframes glitch-anim2 {
    0%, 5%, 95%, 100% {
      transform: translate(0);
      opacity: 0;
    }
    15% {
      transform: translate(1px, 1px);
      opacity: 0.5;
    }
    25% {
      transform: translate(-1px, -1px);
      opacity: 0.5;
    }
    35% {
      transform: translate(1px, 0);
      opacity: 0.5;
    }
    45% {
      transform: translate(0);
      opacity: 0;
    }
    55% {
      transform: translate(-1px, 1px);
      opacity: 0.5;
    }
    65% {
      transform: translate(1px, -1px);
      opacity: 0.5;
    }
    75%, 85% {
      transform: translate(0);
      opacity: 0;
    }
  }
  
  /* Matrix digital rain background */
  #matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }
  
  /* Footer styling */
  footer {
    background: #1e1e1e;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #a8d8a8;
  }
  
  .footer-content p {
    color: #a8d8a8;
  }
  
  /* Scroll to Top Button */
  #scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e1e1e;
    color: #a8d8a8;
    border: 1px solid #a8d8a8;
    padding: 0.6rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 3;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  }
  
  #scroll-top:hover {
    background: #00ff99;
    color: #121212;
    box-shadow: 0px 0px 10px #00ff99;
  }
  
  /* Responsive typography */
  @media (min-width: 768px) {
    .glitch {
      font-size: 2rem;
    }
    header nav a {
      font-size: 1.2rem;
    }

    #contract-text {        
        font-size: 2rem;
    }
  }
  
/* Base tweet gallery styling */
.tweet-gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Default: single column */
    gap: 16px;
    padding: 10px;
    width: 100%; /* Ensures it doesn't overflow */
    max-width: 1200px; /* Prevents it from becoming too wide */
    margin: 0 auto; /* Centers the gallery */
}

.tweet-container {
    background: rgba(18, 18, 18, 0.8);
    width: 100%;
    max-width: 100%; /* Prevents overflow */
    overflow: hidden; /* Ensures content inside doesn't break out */
    word-wrap: break-word; /* Prevents long words from overflowing */
}

/* Responsive layout: 3 columns on larger screens */
@media (min-width: 1024px) {
    .tweet-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
    }
}

/* Adjust layout for tablets: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .tweet-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices: 1 column */
@media (max-width: 767px) {
    .tweet-gallery {
        grid-template-columns: repeat(1, 1fr);
        padding: 0px; /* Reduce padding for small screens */
    }
}