/* =========================================================
   Big Brick Digital — Resources Page (Enhanced Neon Matrix Edition)
   Futuristic + Performance-Optimized Styling
   Author: Surya Rathore | Big Brick Digital
========================================================= */

/* -------------------------
   Reset + Core
------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #e4e4e4;
  line-height: 1.6;
  background-color: #050505;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* -------------------------
   Intro Section (Matrix Aura)
------------------------- */
.intro {
  position: relative;
  text-align: center;
  padding: 120px 20px 100px;
  overflow: hidden;
  z-index: 1;
}

.background-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: brightness(1.2) contrast(1.1) saturate(1.3);
}

.intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,200,0.2) 0%, rgba(0,0,0,0.9) 70%);
  mix-blend-mode: lighten;
  animation: matrixGlow 8s infinite alternate ease-in-out;
  z-index: -1;
}

@keyframes matrixGlow {
  0% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
  100% { opacity: 0.3; transform: scale(1); }
}

.intro h1 {
  background: linear-gradient(120deg, #00ffcc, #00bfff, #ff00cc, #00ffcc);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 6s linear infinite;
  font-weight: 800;
  font-size: 84px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0,255,255,0.4);
  margin-bottom: 25px;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.intro p {
  font-size: 20px;
  max-width: 850px;
  margin: 0 auto;
  color: #c8f8ff;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 0 12px rgba(0,255,255,0.3);
  letter-spacing: 0.3px;
}

/* -------------------------
   Product Showcase
------------------------- */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 80px 20px;
  max-width: 1250px;
  margin: 0 auto;
}

.product-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0,255,200,0.3);
  box-shadow: 0 0 25px rgba(0,255,200,0.3);
}

.product-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
  transition: filter 0.4s, transform 0.4s;
}

.product-card:hover .product-image {
  filter: brightness(1.2) saturate(1.3);
  transform: scale(1.04);
}

.product-card h3 {
  font-size: 22px;
  color: #00ffc6;
  margin: 20px 15px 10px;
  text-align: center;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.product-card p {
  font-size: 15px;
  color: #b7c9d1;
  text-align: justify;
  margin: 0 20px 20px;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  align-self: center;
  background: linear-gradient(90deg, #00ffcc, #00bfff);
  color: #000;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 34px;
  margin: 25px auto;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-shadow: none;
}

.cta-button:hover {
  background: linear-gradient(90deg, #00bfff, #00ffcc);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0,255,255,0.4);
}

/* -------------------------
   Scroll Section
------------------------- */
.scroll-section {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.scroll-section h2 {
  font-size: 32px;
  color: #00ffc6;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}

/* -------------------------
   Footer
------------------------- */
footer {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(180deg, #0a0a0a, #001f1f);
  color: #e0e0e0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,255,200,0.15), transparent 70%);
  opacity: 0.4;
  animation: footerPulse 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes footerPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scale(1.15); opacity: 0.6; }
}

footer p {
  font-size: 15px;
  color: #a9b8c0;
  margin-bottom: 15px;
}

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

footer a:hover {
  color: #00bfff;
}

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

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  color: #a9b8c0;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #00ffc6;
  transform: scale(1.2);
}

/* -------------------------
   Responsive
------------------------- */
@media (max-width: 768px) {
  .intro h1 {
    font-size: 52px;
  }

  .intro p {
    font-size: 17px;
    padding: 0 10px;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 50px 15px;
  }

  .product-card h3 {
    font-size: 20px;
  }

  footer {
    padding: 40px 15px;
  }
}
