/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-image: 
    url('Background Glow.png'),
    url('Nackground no glow.png'),
    url('Glow.png') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  color: #fff;
  overflow-x: hidden;
}

.min-h-screen {
  min-height: 100vh;
}


.navbar-mobile-link {
  color: #fff !important;
}


.text-white {
  color: #fff;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

/* Background Effects */
.bg-gradient-1 {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(0, 0, 0, 1) 50%, rgba(34, 197, 94, 0.03) 100%);
  z-index: -10;
}

.bg-gradient-2 {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(34, 197, 94, 0.05), transparent 50%);
  z-index: -10;
}

.bg-gradient-3 {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(34, 197, 94, 0.03), transparent 50%);
  z-index: -10;
}

/* Particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #22c55e, #16a34a, #15803d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

/* Home Hero Section */
.home-hero-section {
  text-align: center;
  padding: 5rem 1rem;
}

.home-hero-title {
  font-size: 3.75rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #22c55e, #16a34a, #15803d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .home-hero-title {
    font-size: 5rem;
  }
}

.home-hero-subtitle {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .home-hero-subtitle {
    font-size: 1.5rem;
  }
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-primary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: #fff;
  font-weight: bold;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-primary:hover {
  background: linear-gradient(to right, #16a34a, #15803d);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

.cta-secondary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: 2px solid #22c55e;
  color: #22c55e;
  font-weight: bold;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background-color: rgba(34, 197, 94, 0.1);
  transform: scale(1.05);
}

.cta-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Home Gamdom Section */
.home-gamdom-section {
  max-width: 32rem;
  margin: 0 auto;
}

/* Gamdom Section */
.gamdom-section {
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.gamdom-card,
.home-gamdom-card {
  background-color: rgba(31, 41, 55, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  text-align: center;
}

.gamdom-label {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.gamdom-logo {
  height: 2.5rem;
  margin: 0 auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gamdom-logo:hover {
  opacity: 1;
}

.gamdom-subtitle {
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Features Section */
.features-section {
  max-width: 96rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  margin-top: -4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: rgba(31, 41, 55, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: #9ca3af;
}

/* Responsive fixes for mobile */
@media (max-width: 767px) {
  .home-hero-section {
    padding: 3rem 1rem;
  }

  .home-hero-title {
    font-size: 2.5rem;
  }

  .home-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    margin-bottom: 2rem;
  }

  .features-section {
    padding: 2rem 1rem;
  }
}

.float-icon {
  position: fixed;
  width: 350px; /* increase size here */
  z-index: -1;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
  opacity: 0.95;
}

/* Trophy positions */
.trophy.left {
  top: 100px;
  left: 10px;
  scale: 1.3;
}

.trophy.right {
  top: 100px;
  right: 10px;
  scale: 1.3;
}

/* Dice positions with no side margin */
.dice.left {
  bottom: 0;
  left: -45px;
}

.dice.right {
  bottom: 0;
  right: -45px;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .float-icon {
    width: 250px; /* smaller size for mobile */
  }

  .trophy.left, .trophy.right {
    width: 200px; /* smaller trophy size for mobile */
    scale: 1;
    margin-top: 150px;
  }
  .trophy.left{
    margin-left: -30px;
  }
    .trophy.right{
    margin-right: -30px;
  }

  .dice.left, .dice.right {
    width: 200px; /* smaller dice size for mobile */
  }
}

/* ========== Footer & Mobile Header Styles Combined (Green Theme) ========== */

.footer {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  box-sizing: border-box;
  border-top: 1px solid rgba(46, 204, 113, 0.2);
  margin-top: auto;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-label {
  color: #2ecc71;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #e0e0e0;
  transition: transform 0.3s ease;
}

.footer-logo-link:hover {
  transform: scale(1.05);
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #e0e0e0;
  transition: transform 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.social-link:hover {
  transform: scale(1.05);
  background: rgba(46, 204, 113, 0.1);
}

.social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.gamble-aware-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gamble-aware {
  color: #2ecc71;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(46, 204, 113, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: inline-block;
  position: relative;
}

.gamble-aware:hover {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gamble-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.95);
  color: #b3b3b3;
  text-align: center;
  padding: 0.8rem;
  border-radius: 6px;
  width: 220px;
  font-size: 0.8rem;
  line-height: 1.4;
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(46, 204, 113, 0.1);
  pointer-events: none;
}

.gamble-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(17, 17, 17, 0.95) transparent transparent transparent;
}

.gamble-aware:hover .gamble-tooltip {
  visibility: visible;
  opacity: 1;
}

/* ========== Mobile Nav & Header Styles ========== */

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: white;
}

.header-brand {
  height: -50px;
  display: flex;
  align-items: baseline;
}

.mobile-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.sign_in {
  color: white;
  text-decoration: none;
  font-size: 20px;
}

.social-container {
  display: flex;
  align-items: baseline;
}

@media (max-width: 930px) {
  #loginContainer.nav-link {
    right: 40px;
  }

  .hamburger {
    display: block;
    align-items: center;
  }

  .login_button {
    right: 10%;
  }

  .mobile-nav-links {
    position: fixed;
    top: 100px;
    width: 100%;
    left: -200%;
    gap: 10px;
    flex-direction: column;
    background-color: black;
    text-align: center;
    transition: 0.3s;
    height: 100vh;
  }

  .mobile-nav-links.active {
    left: 50%;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-link {
    margin: 16px 0;
    color: white;
    text-decoration: none;
  }

  .mobile-nav-links .nav-link {
    display: block;
    width: 95%;
    top: 5%;
    margin: 0.1rem auto;
    position: relative;
    text-align: left;
    color: #2ecc71 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-links .nav-link:hover,
  .mobile-nav-links .nav-link.active {
    background: rgba(46, 204, 113, 0.2) !important;
  }

  body {
    padding: 0 !important;
  }

  .footer,
  .footer-section,
  .footer-brand,
  .footer-socials,
  .footer-logo-link,
  .gamble-aware-container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    width: 100% !important;
    text-align: center !important;
  }

  .footer-section {
    margin-bottom: 1.5rem !important;
  }

  .footer-socials {
    flex-wrap: wrap !important;
  }

  .gamble-tooltip {
    width: 200px !important;
    font-size: 0.75rem !important;
  }
}

@media screen and (max-width: 768px) {
  .header-brand-name {
    display: none;
  }

  .footer,
  .footer-section,
  .footer-brand,
  .footer-socials,
  .footer-logo-link,
  .gamble-aware-container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    width: 100% !important;
    text-align: center !important;
  }

  .footer-section {
    margin-bottom: 1.5rem !important;
  }

  .footer-socials {
    flex-wrap: wrap !important;
  }

  .gamble-tooltip {
    width: 200px !important;
    font-size: 0.75rem !important;
  }
}

#loginContainer img {
  display: block;
  object-fit: cover;
  border-radius: 50%;
}
