/* ===================================
   TRITONIUM SHARED VISUAL EFFECTS
   Apply these classes across all pages
   =================================== */

@import url('/shared/nav.css');

/* Shared hover glow */
[data-scroll-glow],
[data-tilt] {
    will-change: transform, box-shadow;
}

[data-scroll-glow] {
    box-shadow: none;
    transition: box-shadow var(--transition-base, 300ms ease), transform var(--transition-base, 300ms ease);
}

[data-scroll-glow]:hover {
    box-shadow: 0 25px 60px rgba(var(--scroll-glow-rgb, 0, 245, 255), 0.18);
}

/* 1. Background Effects */
.bg-animation {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 217, 192, 0.15) 0%, transparent 50%);
    animation: bgPulse 10s ease-in-out infinite;
    transform-origin: center center;
}

@media (max-width: 640px) {
    .bg-animation {
        top: -10%;
        left: -10%;
        width: 120%;
        height: 120%;
    }
}

@keyframes bgPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.02;
    pointer-events: none;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbHRlcj0idXJsKCNhKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
}

/* 2. Floating Particle System */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(0, 217, 192, 0.1));
    animation: float 8s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 70%;
    animation-delay: 4s;
}

.floating-shape:nth-child(4) {
    width: 30px;
    height: 30px;
    top: 40%;
    left: 80%;
    animation-delay: 6s;
}

.floating-shape:nth-child(5) {
    width: 50px;
    height: 50px;
    top: 10%;
    right: 25%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(20px) rotate(5deg); }
    50% { transform: translateY(-20px) translateX(-20px) rotate(-5deg); }
    75% { transform: translateY(-40px) translateX(10px) rotate(3deg); }
}

/* 3. Glassmorphic Cards with Rotating Gradient */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.15), 0 0 30px rgba(255, 140, 0, 0.1);
}

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

/* 4. Small Glass Cards (for features, benefits, etc.) */
.glass-card-small {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.glass-card-small:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.2), 0 0 20px rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.3);
}

/* 5. Neon Button Effects (Primary CTA)
   Base styles inherited from design-system.css, only animation enhancements here */
.neon-button {
    position: relative;
    overflow: hidden;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

.neon-button:hover::before,
.neon-button:focus-visible::before {
    left: 100%;
}

.neon-button:hover,
.neon-button:focus-visible {
    animation: buttonGlow 3s ease-in-out infinite alternate, buttonPulse 0.8s ease-in-out infinite;
}

@keyframes buttonGlow {
    0% { box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3); }
    100% { box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5), 0 0 15px rgba(0, 217, 192, 0.2); }
}

@keyframes buttonPulse {
    0%, 100% { transform: translateY(-2px) scale(1.05); }
    50% { transform: translateY(-4px) scale(1.08); }
}

/* 6. Secondary Button with Border Glow
   Base styles inherited from design-system.css */
.neon-button-secondary {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.neon-button-secondary:hover {
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4), 0 0 20px rgba(255, 140, 0, 0.3);
}

/* 7. Neon Text Glow */
.neon-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 217, 192, 0.5)); }
}

/* 8. Input Fields with Glow Focus */
.neon-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--text-body);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.neon-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

/* 9. Pulsing Accent Elements */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255, 140, 0, 0.3); }
    100% { box-shadow: 0 0 25px rgba(255, 140, 0, 0.6), 0 0 15px rgba(0, 217, 192, 0.3); }
}

/* 10. Responsive Adjustments */
@media (max-width: 768px) {
    .floating-elements {
        display: none;
    }

    .glass-card {
        padding: var(--space-lg) var(--space-md);
    }

    .neon-button {
        padding: var(--space-sm) var(--space-lg);
        font-size: 16px;
    }
}

/* 11. Global Footer Styles */
footer {
    padding: var(--section-padding-y) var(--section-padding-x) var(--section-padding-x);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary, #ff8c00);
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary, #ff8c00);
    transform: translateX(3px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary, #ff8c00);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 6px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-contact {
    margin: 0;
}

.footer-contact a {
    color: var(--primary, #ff8c00);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary, #7ff5ff);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    footer {
        padding: 60px 30px 30px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }

    footer {
        padding: 50px 20px 30px;
    }
}
