/* Glitch text base style */
.glitch-text {
  position: relative;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  text-align: center;
  z-index: 1;
  /* Glitch effect (example) */
  text-shadow:
    2px 0 #6c5ce7,
    -2px 0 #00cec9,
    0 2px #ff7675,
    0 -2px #fdcb6e;
  animation: glitch 1.2s infinite linear alternate-reverse;
  word-break: break-word;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 #6c5ce7, -2px 0 #00cec9, 0 2px #ff7675, 0 -2px #fdcb6e; }
  20% { text-shadow: -2px 0 #6c5ce7, 2px 0 #00cec9, 0 -2px #ff7675, 0 2px #fdcb6e; }
  40% { text-shadow: 2px 2px #6c5ce7, -2px -2px #00cec9, 2px -2px #ff7675, -2px 2px #fdcb6e; }
  60% { text-shadow: -2px -2px #6c5ce7, 2px 2px #00cec9, -2px 2px #ff7675, 2px -2px #fdcb6e; }
  80% { text-shadow: 2px 0 #6c5ce7, -2px 0 #00cec9, 0 2px #ff7675, 0 -2px #fdcb6e; }
  100% { text-shadow: none; }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .glitch-text {
    font-size: 2rem;
    padding: 0 10px;
    line-height: 1.15;
    word-break: break-word;
  }

  /* General section and container padding */
  /* section, .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  } */

  /* Headings and text */
  h1, .hero-text h1, .glitch-text {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    /* padding: 0 8px !important; */
    word-break: break-word;
  }
  h2, .section-header h2 {
    font-size: 1.2rem !important;
    /* padding: 0 6px !important; */
  }
  p, .lead {
    font-size: 1rem !important;
    /* padding: 0 6px !important; */
  }

  /* Navbar */
  .navbar {
    /* padding: 10px 0 !important; */
  }
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  .navbar .nav-link {
    font-size: 1rem !important;
    margin: 0 4px !important;
  }

  /* Hero section */
  .hero-section {
    min-height: 60vh !important;
    padding-top: 110px !important;
    padding-bottom: 20px !important;
  }
  .hero-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .hero-buttons .btn {
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  .btn-connect{
        margin-left: 0 !important;
  }

  /* Cards (feature, contact, airdrop, etc.) */
  .feature-card,
  .contact-info-card,
  .airdrop-card,
  .case-study-card,
  .staking-calculator,
  .cta-card {
    padding: 14px 8px !important;
    border-radius: 12px !important;
    margin-bottom: 18px !important;
    min-width: 0 !important;
    box-shadow: 0 2px 12px rgba(44,62,80,0.10) !important;
  }
  .feature-card h3,
  .airdrop-card h3,
  .contact-info-title {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }
  .feature-card p,
  .airdrop-card p,
  .contact-info-text {
    font-size: 0.98rem !important;
  }

  .feature-icon{
    margin-left: 150px !important;
}

.feature-text{
    text-align: center !important;
}

  /* Timeline */
  .timeline, .timeline-item, .timeline-content {
    width: 100% !important;
    padding: 10px 6px !important;
  }
  .timeline-icon, .timeline-icon2 {
    margin-top: 25px !important;
    margin-left: 15px !important;
    /* width: 36px !important; */
    /* height: 36px !important; */
    /* font-size: 1rem !important; */
    /* left: 0 !important; */
  }

  /* Forms */
  .form-control,
  .contact-input,
  .contact-textarea {
    font-size: 1rem !important;
    padding: 0.7rem 1rem !important;
    border-radius: 8px !important;
  }
  .contact-btn, .btn, .btn-lg, .btn-primary, .btn-outline-primary {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 0.8rem 1.2rem !important;
    margin-bottom: 10px !important;
  }

  /* Modal */
  .wallet-modal {
    max-width: 98vw !important;
    min-width: 0 !important;
    padding: 0 !important;
    max-height: 96vh !important;
    border-radius: 14px !important;
  }
  .wallet-modal-header, .wallet-modal-body, .wallet-modal-footer {
    padding: 1rem !important;
  }
  .wallet-option {
    padding: 0.7rem !important;
    font-size: 1rem !important;
  }

  /* Map Section */
  .map-section {
    height: 320px !important;
  }
  .map-card {
    max-width: 98vw !important;
    padding: 14px 8px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
  }
  .map-card-title {
    font-size: 1.1rem !important;
  }
  .map-card-btn {
    font-size: 1rem !important;
    padding: 0.7rem 1.2rem !important;
  }

  /* Footer */
  .footer, .new-footer {
    padding: 30px 0 10px !important;
    text-align: center !important;
  }
  .footer-brand-card, .footer-links-card {
    padding: 12px 6px !important;
    border-radius: 10px !important;
    min-height: 0 !important;
  }
  .footer-links-card h5 {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }
  .footer-links-card ul li {
    margin-bottom: 6px !important;
  }
  .footer-bottom {
    margin-top: 20px !important;
    padding-top: 10px !important;
    font-size: 0.95rem !important;
  }

  /* Make main footer column full width */
  .footer .main {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
  }
  /* Make 1st and 2nd columns appear side by side in a row */
  .footer .1st,
  .footer .2nd {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .footer .row.gy-4.align-items-stretch {
    flex-wrap: wrap;
    flex-direction: row !important;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
  }
  /* Footer cards: reduce padding for mobile */
  .footer-brand-card, .footer-links-card {
    padding: 16px 8px !important;
    border-radius: 12px !important;
    min-height: 0 !important;
    margin-bottom: 12px !important;
  }
  /* Center footer links and social icons */
  .footer-links-card ul,
  .footer-socials {
    justify-content: center !important;
    text-align: center !important;
  }
  /* Make footer links larger for touch */
  .footer-links-card ul li a {
    font-size: 1.05rem !important;
    padding: 6px 0 !important;
    display: inline-block;
  }

  /* Hide large background elements on mobile */
  .hero-bg-elements, .circle-1, .circle-2, .circle-3 {
    display: none !important;
  }

  /* Prevent horizontal scroll */
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* About Hero Section */
  .about-hero {
    padding: 100px 0 40px !important;
    text-align: center;
  }
  .about-hero h1 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  .about-hero .lead {
    font-size: 1rem !important;
    padding: 0 8px !important;
  }

  /* About Section */
  .about-section {
    padding: 40px 0 !important;
  }
  .about-section .row.align-items-center {
    flex-direction: column !important;
  }
  .about-section .col-lg-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 24px !important;
  }
  .about-section img {
    width: 100% !important;
    max-width: 340px;
    margin: 0 auto;
    display: block;
    border-radius: 12px !important;
  }
  .about-card {
    padding: 18px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 18px !important;
  }
  .about-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }
  .about-card p {
    font-size: 0.98rem !important;
  }
  .value-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
  }

  /* Timeline (Milestones) */
  .timeline-about {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .timeline-about::after {
    left: 20px !important;
    width: 4px !important;
  }
  .milestone {
    width: 100% !important;
    padding: 10px 10px 10px 40px !important;
    margin-bottom: 24px !important;
    left: 0 !important;
  }
  .milestone-content {
    padding: 14px 10px !important;
    border-radius: 10px !important;
  }
  .milestone-date,
  .milestone-date2 {
    left: 250px !important;
    top: 15px !important;
    width: 70px !important;
    font-size: 0.85rem !important;
    padding: 3px 0 !important;
    border-radius: 14px !important;
  }

  /* Team Section */
  .team-section {
    padding: 40px 0 !important;
  }
  .team-card {
    border-radius: 12px !important;
    margin-bottom: 18px !important;
  }
  .team-img {
    height: 160px !important;
  }
  .team-info {
    padding: 12px !important;
  }
  .team-info h3 {
    font-size: 1.1rem !important;
  }
  .team-info p {
    font-size: 0.95rem !important;
  }
  .team-social a {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .glitch-text {
    font-size: 1.3rem;
    padding: 0 4px;
  }
}

@media (max-width: 950.98px) {
  /* Make main footer column full width */
  .footer .main {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
  }
  /* Make 1st and 2nd columns appear side by side in a row */
  .footer .1st,
  .footer .2nd {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .footer .row.gy-4.align-items-stretch {
    flex-wrap: wrap;
    flex-direction: row !important;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
  }
  /* Footer cards: reduce padding for mobile */
  .footer-brand-card, .footer-links-card {
    padding: 16px 8px !important;
    border-radius: 12px !important;
    min-height: 0 !important;
    margin-bottom: 12px !important;
  }
  /* Center footer links and social icons */
  .footer-links-card ul,
  .footer-socials {
    justify-content: center !important;
    text-align: center !important;
  }
  /* Make footer links larger for touch */
  .footer-links-card ul li a {
    font-size: 1.05rem !important;
    padding: 6px 0 !important;
    display: inline-block;
  }
}