/* Core Styles matching Home */
body {
    background-color: #ffffff;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}
html.dark body { background-color: #000000; }

/* Pattern */
.bg-pattern {
    background-image: url('../../images/Background.webp');
    background-size: 400px;
    background-repeat: repeat;
    background-position: center;
    animation: bgMove 120s linear infinite;
}
@keyframes bgMove {
    0% { background-position: 0 0; }
    100% { background-position: 400px 400px; }
}
html:not(.dark) .bg-pattern { filter: opacity(0.06); }
html.dark .bg-pattern { filter: invert(1) opacity(0.11); }

/* Top Blur */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 150px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    z-index: 40;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.hide-top-blur::before {
    opacity: 0;
}

/* Glass Card */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
html.dark .glass-panel {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glows */
html:not(.dark) { --glow-color-start: rgba(0, 0, 0, 0.2); --glow-color-end: rgba(0, 0, 0, 0.4); }
html.dark { --glow-color-start: rgba(255, 255, 255, 0.4); --glow-color-end: rgba(255, 255, 255, 0.8); }

.theme-icon-glow { filter: none; }
html.dark .theme-icon-glow { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)); }

.glow-red-border {
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.2), 0 10px 30px -5px rgba(220, 38, 38, 0.15);
}

/* Ripple */
.ripple {
    position: absolute; border-radius: 50%; transform: scale(0);
    animation: ripple 0.6s linear; background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none; z-index: 50;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Mobile Menu Animation */
.menu-link-item { opacity: 0; transform: translateX(-20px); transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.menu-animate-open .menu-link-item { opacity: 1; transform: translateX(0); }
.menu-animate-open .menu-link-item:nth-child(1) { transition-delay: 0.1s; }
.menu-animate-open .menu-link-item:nth-child(2) { transition-delay: 0.15s; }
.menu-animate-open .menu-link-item:nth-child(3) { transition-delay: 0.2s; }
.menu-animate-open .menu-link-item:nth-child(4) { transition-delay: 0.25s; }
.menu-animate-open .menu-link-item:nth-child(5) { transition-delay: 0.3s; }
.menu-animate-open .menu-link-item:nth-child(6) { transition-delay: 0.35s; }
.menu-animate-open .menu-chat-btn { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.menu-chat-btn { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.blur-content { filter: blur(5px); transition: filter 0.3s ease-out; pointer-events: none; user-select: none; }

/* View Transitions API for Theme Toggle */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* Text Shadow for Pattern Visibility */
.pattern-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
}
html.dark .pattern-text {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(156, 163, 175, 0.5); border-radius: 20px; border: 4px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(107, 114, 128, 0.8); }

/* --- PREMIUM CARD GLOW EFFECTS --- */
.card-base { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; z-index: 1; overflow: hidden; }

.glow-green { box-shadow: inset 0 0 30px rgba(34, 197, 94, 0.15), 0 15px 25px -5px rgba(0, 0, 0, 0.1) !important; border: 1px solid rgba(34, 197, 94, 0.3) !important; }
html.dark .glow-green { box-shadow: inset 0 0 30px rgba(34, 197, 94, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important; border: 1px solid rgba(34, 197, 94, 0.2) !important; }
.glow-green:hover { box-shadow: inset 0 0 60px rgba(34, 197, 94, 0.35), 0 25px 35px -5px rgba(0, 0, 0, 0.15) !important; transform: translateY(-4px); border-color: rgba(34, 197, 94, 0.6) !important; }

.glow-blue { box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.15), 0 15px 25px -5px rgba(0, 0, 0, 0.1) !important; border: 1px solid rgba(59, 130, 246, 0.3) !important; }
html.dark .glow-blue { box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important; border: 1px solid rgba(59, 130, 246, 0.2) !important; }
.glow-blue:hover { box-shadow: inset 0 0 60px rgba(59, 130, 246, 0.35), 0 25px 35px -5px rgba(0, 0, 0, 0.15) !important; transform: translateY(-4px); border-color: rgba(59, 130, 246, 0.6) !important; }

.glow-yellow { box-shadow: inset 0 0 30px rgba(234, 179, 8, 0.15), 0 15px 25px -5px rgba(0, 0, 0, 0.1) !important; border: 1px solid rgba(234, 179, 8, 0.3) !important; }
html.dark .glow-yellow { box-shadow: inset 0 0 30px rgba(234, 179, 8, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important; border: 1px solid rgba(234, 179, 8, 0.2) !important; }
.glow-yellow:hover { box-shadow: inset 0 0 60px rgba(234, 179, 8, 0.35), 0 25px 35px -5px rgba(0, 0, 0, 0.15) !important; transform: translateY(-4px); border-color: rgba(234, 179, 8, 0.6) !important; }

.glow-red { box-shadow: inset 0 0 30px rgba(220, 38, 38, 0.15), 0 15px 25px -5px rgba(0, 0, 0, 0.1) !important; border: 1px solid rgba(220, 38, 38, 0.3) !important; }
html.dark .glow-red { box-shadow: inset 0 0 30px rgba(220, 38, 38, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important; border: 1px solid rgba(220, 38, 38, 0.2) !important; }
.glow-red:hover { box-shadow: inset 0 0 60px rgba(220, 38, 38, 0.35), 0 25px 35px -5px rgba(0, 0, 0, 0.15) !important; transform: translateY(-4px); border-color: rgba(220, 38, 38, 0.6) !important; }

.glow-purple { box-shadow: inset 0 0 30px rgba(168, 85, 247, 0.15), 0 15px 25px -5px rgba(0, 0, 0, 0.1) !important; border: 1px solid rgba(168, 85, 247, 0.3) !important; }
html.dark .glow-purple { box-shadow: inset 0 0 30px rgba(168, 85, 247, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important; border: 1px solid rgba(168, 85, 247, 0.2) !important; }
.glow-purple:hover { box-shadow: inset 0 0 60px rgba(168, 85, 247, 0.35), 0 25px 35px -5px rgba(0, 0, 0, 0.15) !important; transform: translateY(-4px); border-color: rgba(168, 85, 247, 0.6) !important; }

.glow-pink { box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.15), 0 15px 25px -5px rgba(0, 0, 0, 0.1) !important; border: 1px solid rgba(236, 72, 153, 0.3) !important; }
html.dark .glow-pink { box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important; border: 1px solid rgba(236, 72, 153, 0.2) !important; }
.glow-pink:hover { box-shadow: inset 0 0 60px rgba(236, 72, 153, 0.35), 0 25px 35px -5px rgba(0, 0, 0, 0.15) !important; transform: translateY(-4px); border-color: rgba(236, 72, 153, 0.6) !important; }

.glow-cyan { box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.15), 0 15px 25px -5px rgba(0, 0, 0, 0.1) !important; border: 1px solid rgba(6, 182, 212, 0.3) !important; }
html.dark .glow-cyan { box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important; border: 1px solid rgba(6, 182, 212, 0.2) !important; }
.glow-cyan:hover { box-shadow: inset 0 0 60px rgba(6, 182, 212, 0.35), 0 25px 35px -5px rgba(0, 0, 0, 0.15) !important; transform: translateY(-4px); border-color: rgba(6, 182, 212, 0.6) !important; }

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Stacking Effect */
@media (max-width: 767px) {
    .review-card {
        position: sticky;
        top: 130px; /* Header height + spacing */
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05), 0 5px 10px -2px rgba(0, 0, 0, 0.05); /* Lighter shadow for depth */
    }
}

/* Header Animations */
@keyframes flash {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}
.animate-spark {
    animation: flash 1.5s ease-in-out infinite;
}

@keyframes tension-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg) scale(1.05); }
    75% { transform: rotate(3deg) scale(1.05); }
}
.animate-tension {
    animation: tension-shake 0.2s ease-in-out infinite;
}

/* --- MOBILE PERFORMANCE PATCH --- */
@media screen and (max-width: 768px) {
    /* Stop background animation */
    .bg-pattern {
        animation: none !important;
        background-attachment: scroll !important;
    }
    /* Remove heavy glows on mobile */
    .glow-green, .glow-red, .glow-yellow, .glow-blue, .glow-purple, .glow-pink, .glow-cyan, .card-base {
        box-shadow: none !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    /* Disable blur filters */
    .blur-content, [class*="backdrop-blur"] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Hide Header on Mobile Footer Intersection */
.header-hidden-mobile {
    transform: translate(-50%, -200%) !important; /* Maintain X centering, move Y up */
    opacity: 0;
    pointer-events: none;
}

/* --- NEWSLETTER STYLES --- */
.fuaprint-footer-newsletter {
    background-color: transparent;
    padding: 10px 0;
}

.fuaprint-footer-newsletter p {
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

/* The Input + Button Row */
.fuaprint-footer-newsletter .input-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

/* The Email Field */
.fuaprint-footer-newsletter input[type="email"] {
    width: 200px;
    padding: 6px 10px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    outline: none;
    transition: 0.3s;
    font-size: 0.8rem;
}

.fuaprint-footer-newsletter input:focus {
    border-color: #ffffff; /* White Glow */
    background: #333;
}

/* The Subscribe Button */
.fuaprint-footer-newsletter button {
    padding: 6px 12px;
    background-color: #ffffff; /* White */
    color: #000; /* Black Text */
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    font-size: 0.8rem;
}

.fuaprint-footer-newsletter button:hover {
    background-color: #e5e5e5; /* Light Gray */
    transform: translateY(-2px);
}