/* ============================================================
   ABOUT PAGE — WOW EFFECTS v1
   Parallax hero, floating orbs, animated gradient icons,
   glow hover, scroll-reveal, counter animations.
   ============================================================ */

/* ---------- Hero header ---------- */
.about-hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    isolation: isolate;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 20% 30%, rgba(156, 110, 255, 0.18), transparent 60%),
        radial-gradient(900px 500px at 80% 70%, rgba(110, 156, 255, 0.14), transparent 60%);
    z-index: -2;
    animation: aboutHeroFloat 18s ease-in-out infinite alternate;
}

@keyframes aboutHeroFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(20px, -15px) scale(1.03); }
    100% { transform: translate(-10px, 10px) scale(1.01); }
}

/* Floating orbs */
.about-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.about-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.about-orb-1 {
    width: 380px; height: 380px;
    top: -80px; left: -80px;
    background: radial-gradient(circle, #9c6eff, transparent 70%);
    animation-duration: 14s;
}

.about-orb-2 {
    width: 300px; height: 300px;
    top: 40%; right: -60px;
    background: radial-gradient(circle, #6e9cff, transparent 70%);
    animation-duration: 16s;
    animation-delay: -3s;
}

.about-orb-3 {
    width: 260px; height: 260px;
    bottom: -80px; left: 35%;
    background: radial-gradient(circle, #ff6ec7, transparent 70%);
    animation-duration: 18s;
    animation-delay: -6s;
    opacity: 0.35;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Section subtitle — shimmering pill */
.page-section .section-subtitle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        rgba(156, 110, 255, 0.12),
        rgba(110, 156, 255, 0.12),
        rgba(156, 110, 255, 0.12));
    background-size: 200% 100%;
    border: 1px solid rgba(156, 110, 255, 0.35);
    color: #b89cff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: shimmerPill 3.5s ease-in-out infinite;
}

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

.page-section .section-subtitle i {
    color: #b89cff;
    filter: drop-shadow(0 0 6px rgba(184, 156, 255, 0.6));
}

/* Page title — gradient text with subtle animation */
.page-section .page-title {
    position: relative;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 18px 0 0;
    background: linear-gradient(135deg,
        #ffffff 0%,
        #e0d4ff 45%,
        #b89cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0%   { filter: drop-shadow(0 0 12px rgba(156, 110, 255, 0.15)); }
    100% { filter: drop-shadow(0 0 22px rgba(156, 110, 255, 0.35)); }
}

/* ---------- Feature cards (Story / Mission / Vision) ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.features-grid .feature-card {
    position: relative;
    padding: 36px 28px;
    border-radius: 18px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.4s ease;
}

/* Animated gradient border on hover */
.features-grid .feature-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    padding: 1px;
    background: conic-gradient(from 0deg,
        #9c6eff, #6e9cff, #ff6ec7, #9c6eff);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotateBorder 4s linear infinite;
    z-index: 1;
}

@keyframes rotateBorder {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.features-grid .feature-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow:
        0 20px 60px rgba(156, 110, 255, 0.25),
        0 0 0 1px rgba(156, 110, 255, 0.4) inset;
}

.features-grid .feature-card:hover::before {
    opacity: 1;
}

/* Card inner glow follows cursor */
.features-grid .feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(156, 110, 255, 0.12),
        transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.features-grid .feature-card:hover::after {
    opacity: 1;
}

/* Feature icon — animated gradient */
.features-grid .feature-icon {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9c6eff, #6e9cff);
    background-size: 200% 200%;
    box-shadow: 0 8px 24px rgba(156, 110, 255, 0.4);
    animation: iconGradient 5s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes iconGradient {
    0%   { background-position: 0% 0%; transform: rotate(0deg); }
    100% { background-position: 100% 100%; transform: rotate(4deg); }
}

.features-grid .feature-card:hover .feature-icon {
    animation-play-state: paused;
    transform: rotate(-6deg) scale(1.08);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.features-grid .feature-icon i {
    font-size: 1.8rem;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Stagger reveal animation */
.features-grid .feature-card.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.features-grid .feature-card.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .feature-card.d1.animate.visible { transition-delay: 0s; }
.features-grid .feature-card.d2.animate.visible { transition-delay: 0.15s; }
.features-grid .feature-card.d3.animate.visible { transition-delay: 0.3s; }

.features-grid .feature-card h3 {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.features-grid .feature-card p {
    position: relative;
    z-index: 2;
    color: #c0c0d0;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Long content — enhanced h2 sections ---------- */
.long-content h2 {
    position: relative;
    margin-top: 52px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.long-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #9c6eff, #6e9cff);
    transition: width 0.6s ease;
}

.long-content h2:hover::after {
    width: 140px;
}

.long-content p {
    line-height: 1.85;
    color: #c8c8d8;
    margin-bottom: 18px;
}

.long-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
}

.long-content ul li {
    position: relative;
    padding: 10px 0 10px 32px;
    line-height: 1.75;
    color: #c8c8d8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.25s ease, transform 0.25s ease;
}

.long-content ul li:last-child {
    border-bottom: none;
}

.long-content ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9c6eff, #6e9cff);
    box-shadow: 0 0 10px rgba(156, 110, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.long-content ul li:hover {
    color: #fff;
    transform: translateX(4px);
}

.long-content ul li:hover::before {
    transform: translateY(-50%) scale(1.4);
    box-shadow: 0 0 16px rgba(156, 110, 255, 0.9);
}

.long-content strong {
    color: #e0d4ff;
    font-weight: 600;
}

.long-content a {
    color: #b89cff;
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 156, 255, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.long-content a:hover {
    color: #d4c0ff;
    border-bottom-color: #d4c0ff;
}

/* ---------- CTA section ---------- */
.cta-section {
    position: relative;
    padding: 48px 32px;
    border-radius: 20px;
    background: linear-gradient(135deg,
        rgba(156, 110, 255, 0.12),
        rgba(110, 156, 255, 0.08));
    border: 1px solid rgba(156, 110, 255, 0.25);
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        rgba(156, 110, 255, 0.08) 60deg,
        transparent 120deg,
        rgba(110, 156, 255, 0.06) 180deg,
        transparent 240deg,
        rgba(255, 110, 199, 0.05) 300deg,
        transparent 360deg);
    animation: ctaSpin 20s linear infinite;
    z-index: -1;
}

@keyframes ctaSpin {
    100% { transform: rotate(360deg); }
}

.cta-section .cta-title {
    position: relative;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.cta-section .cta-text {
    position: relative;
    color: #d0d0e0;
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-main {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s ease;
}

.cta-section .btn-main:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 36px rgba(88, 101, 242, 0.55);
}

.cta-section .btn-main i {
    font-size: 1.2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .about-hero { padding: 60px 0 40px; }
    .features-grid { gap: 18px; }
    .features-grid .feature-card { padding: 28px 22px; }
    .features-grid .feature-icon { width: 60px; height: 60px; border-radius: 16px; }
    .features-grid .feature-icon i { font-size: 1.5rem; }
    .about-orb-1 { width: 240px; height: 240px; }
    .about-orb-2 { width: 200px; height: 200px; }
    .about-orb-3 { width: 180px; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .about-hero::before,
    .about-orb,
    .features-grid .feature-icon,
    .cta-section::before,
    .page-section .page-title,
    .page-section .section-subtitle {
        animation: none !important;
    }
}
