/* php-frontend/css/universal.css */

/* Custom grid background styles */
.grid-bg-container {
    min-height: 20vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, #e7e5e4 1px, transparent 1px),
        linear-gradient(to bottom, #e7e5e4 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 0 0;
    
    /* Grid Masking */
    mask-image: 
        repeating-linear-gradient(
            to right,
            black 0px,
            black 3px,
            transparent 3px,
            transparent 8px
        ),
        repeating-linear-gradient(
            to bottom,
            black 0px,
            black 3px,
            transparent 3px,
            transparent 8px
        ),
        radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
        
    -webkit-mask-image: 
        repeating-linear-gradient(
            to right,
            black 0px,
            black 3px,
            transparent 3px,
            transparent 8px
        ),
        repeating-linear-gradient(
            to bottom,
            black 0px,
            black 3px,
            transparent 3px,
            transparent 8px
        ),
        radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
        
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* Animations */
@keyframes puff {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.animate-puff {
    animation: puff 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 25s linear infinite;
}

@keyframes officeMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-officeMarquee {
    animation: officeMarquee 18s linear infinite;
}

@keyframes scaleIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-scaleIn {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeInUp {
    0% { transform: translateY(1rem); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.3s ease-out forwards;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #00c43b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #008f2a;
}

/* Pulse highlight and card glows */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.6); }
}

.animate-glow {
    animation: glow 3s infinite ease-in-out;
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  padding: 8rem 0;

  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
}

.hero-title {
  position: relative;
  font-weight: 800;
  line-height: 1.2;
  color: #052e16;
  min-height: 1.4em;
  gap: 5px;
 
}

.hero-title .title-part {
  position: absolute;
  top: -55x;
  left: 0;
  right: 0;
  opacity: 0;
  animation: fadeTitle 9s ease-in-out infinite;
  margin-top: -70px;
}

.hero-title .title-part:nth-child(1) { animation-delay: 0s; }
.hero-title .title-part:nth-child(2) { animation-delay: 3s; }
.hero-title .title-part:nth-child(3) { animation-delay: 6s; }

@keyframes fadeTitle {
  0%, 20% { opacity: 0; }
  25%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.accent { color: #16a34a; }

.hero-cta .btn-primary {
  background: linear-gradient(to right, #16a34a, #065f46);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.3s ease;
}
.hero-cta .btn-primary:hover { transform: translateY(-2px); }

.hero-cta .btn-outline {
  border: 2px solid #16a34a;
  color: #16a34a;
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}
.hero-cta .btn-outline:hover { background: #16a34a; color: #fff; }

/* Floating minor bounce animation */
@keyframes minor-bounce {
    0%, 100% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(8px);
    }
}

.minor-bounce {
    display: inline-block;
    animation: minor-bounce 4s ease-in-out infinite;
}

/* Mobile coin marquee - continuous left scroll */
@keyframes coinMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.coin-marquee-track {
    display: flex;
    width: max-content;
    animation: coinMarquee 12s linear infinite;
}

