/* PQ Crypta About Page - Electric Dark Blue Glass Theme */
:root {
    --electric-blue: #00CFFF;
    --dark-blue: #002B4C;
    --deep-blue: #001528;
    --glass-bg: rgba(0, 43, 76, 0.3);
    --glass-border: rgba(0, 207, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #B0E0FF;
    --accent-glow: #00AEEF;

    /* Deep color variations */
    --deep-purple: #8B00FF;
    --deep-red: #FF0055;
    --deep-cyan: #00FFD4;
    --purple-glass: rgba(139, 0, 255, 0.2);
    --red-glass: rgba(255, 0, 85, 0.2);
    --cyan-glass: rgba(0, 255, 212, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #000000;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Electric Background */
.electric-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(ellipse at top, var(--dark-blue) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, var(--deep-blue) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, var(--deep-blue) 50%, #000000 100%);
    animation: pulse-background 10s ease-in-out infinite;
}

@keyframes pulse-background {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Animated Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 207, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 207, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Main Container */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Glass Header */
.about-header {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 207, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.about-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 207, 255, 0.1) 0%, transparent 70%);
    animation: glow-rotate 15s linear infinite;
}

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

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.logo-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--electric-blue);
    box-shadow:
        0 0 20px rgba(0, 207, 255, 0.5),
        0 0 40px rgba(0, 207, 255, 0.3);
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 207, 255, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 207, 255, 0.8); }
}

.logo-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--electric-blue) 0%, #ffffff 50%, var(--electric-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 207, 255, 0.3);
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

/* Glass Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 207, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--electric-blue);
    box-shadow:
        0 10px 40px rgba(0, 207, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 207, 255, 0.5));
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 207, 255, 0.3);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--electric-blue);
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 207, 255, 0.1);
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: var(--electric-blue);
    box-shadow: 0 0 30px rgba(0, 207, 255, 0.3);
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--electric-blue);
    text-shadow: 0 0 20px rgba(0, 207, 255, 0.5);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--deep-blue) 100%);
    border: 2px solid var(--electric-blue);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
    box-shadow:
        0 0 40px rgba(0, 207, 255, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 207, 255, 0.5);
}

.cta-description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--accent-glow) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 207, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 207, 255, 0.6);
}

/* 3D Mouse Trail */
.mouse-trail {
    position: fixed;
    left: var(--mouse-x, 0);
    top: var(--mouse-y, 0);
    width: var(--particle-size, 20px);
    height: var(--particle-size, 20px);
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--particle-hue, 190), 100%, 50%) 0%, transparent 70%);
    box-shadow: 0 0 var(--particle-size, 20px) hsl(var(--particle-hue, 190), 100%, 50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1);
    animation: trail-fade 0.8s ease-out forwards;
}

.mouse-trail.click-explosion {
    opacity: 1;
    transition: none;
}

.mouse-trail.click-explosion.exploding {
    left: var(--target-x, 0);
    top: var(--target-y, 0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes trail-fade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(0);
    }
}

/* Card Tilt Effects */
.feature-card,
.stat-card {
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.feature-card.card-tilted,
.stat-card.card-tilted {
    transform: translateY(-5px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1.02);
}

/* Parallax Effects */
.electric-background {
    transform: translateY(var(--scroll-y, 0));
}

.grid-overlay {
    transform: translate(var(--scroll-x, 0), var(--scroll-y, 0));
}

.feature-card {
    transform: translateY(var(--parallax-y, 0));
}

/* Ripple Effect */
.cta-button {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    left: var(--ripple-x, 0);
    top: var(--ripple-y, 0);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Loading Overlay Hidden State */
.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Color Variations for Feature Cards */
.feature-card.feature-purple {
    border-color: var(--purple-glass);
    background: linear-gradient(135deg, var(--glass-bg) 0%, var(--purple-glass) 100%);
}

.feature-card.feature-purple:hover {
    border-color: var(--deep-purple);
    box-shadow:
        0 10px 40px rgba(139, 0, 255, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.feature-card.feature-purple h3 {
    color: var(--deep-purple);
    text-shadow: 0 0 10px rgba(139, 0, 255, 0.5);
}

.feature-card.feature-red {
    border-color: var(--red-glass);
    background: linear-gradient(135deg, var(--glass-bg) 0%, var(--red-glass) 100%);
}

.feature-card.feature-red:hover {
    border-color: var(--deep-red);
    box-shadow:
        0 10px 40px rgba(255, 0, 85, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.feature-card.feature-red h3 {
    color: var(--deep-red);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.feature-card.feature-cyan {
    border-color: var(--cyan-glass);
    background: linear-gradient(135deg, var(--glass-bg) 0%, var(--cyan-glass) 100%);
}

.feature-card.feature-cyan:hover {
    border-color: var(--deep-cyan);
    box-shadow:
        0 10px 40px rgba(0, 255, 212, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.feature-card.feature-cyan h3 {
    color: var(--deep-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 212, 0.5);
}

/* Footer */
.about-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

.footer-link {
    color: var(--electric-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--deep-cyan);
    text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

/* Quantum Lattice Canvas */
.quantum-lattice-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-text h1 {
        font-size: 2.5rem;
    }

    .about-header {
        padding: 2rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 2rem 1.5rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1rem 0.6rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.quantum-loader {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top-color: var(--electric-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.5);
}

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