:root {
    --glow-color-1: hsl(217, 100%, 50%);
    --glow-color-2: hsl(287, 100%, 50%);
    --glow-color-3: hsl(180, 100%, 50%);
    --glow-color-4: hsl(340, 100%, 50%);

    /* Premium Transitions from Workflow Website */
    --transition-fast: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-base: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #030303;
    /* Pure black for maximum OLED contrast and performance */
    color: #e5e7eb;
    overflow-x: hidden;
    position: relative;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
}

body.is-transitioning {
    pointer-events: none;
    cursor: wait;
}

.page-view {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* --- Film Grain Noise Removed for Performance --- */
.noise-overlay {
    display: none;
}

/* --- Scroll Progress Bar --- */
#scroll-progress-bar {
    /* filter removed for performance */
}

/* --- Mouse Follower Glow --- */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    /* OPTIMIZED: Uses CSS variables set by JS for smoothness */
    transform: translate3d(var(--mouse-x, 0), var(--mouse-y, 0), 0) translate(-50%, -50%);
    will-change: transform;
}

/* ===== PREMIUM REVEAL SYSTEM ===== */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
}

.reveal {
    transform: translate3d(0, 40px, 0);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left {
    transform: translate3d(-60px, 0, 0);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right {
    transform: translate3d(60px, 0, 0);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale {
    transform: scale(0.92);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger Delays */
[data-reveal-delay="100"] {
    transition-delay: 0.1s;
}

[data-reveal-delay="200"] {
    transition-delay: 0.2s;
}

[data-reveal-delay="300"] {
    transition-delay: 0.3s;
}

/* Global Form Controls Styling */
select,
input,
textarea {
    color-scheme: dark;
}

select option {
    background-color: #0f172a;
    color: white;
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* --- Animated Mesh Gradient Background --- */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    background: #000;
    contain: strict;
    content-visibility: auto;
}

.mesh-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    /* PERF: No filter blur, no animation - use pre-blurred gradients instead */
    transform: translateZ(0);
}

/* Vibrant Orbs */
/* PERF: Pre-blurred gradients (wider spread = visually similar to blur but zero GPU cost) */
.shape1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.6) 0%, transparent 50%);
    top: -10%;
    left: -10%;
}

.shape2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.6) 0%, transparent 50%);
    bottom: -10%;
    right: -10%;
}

.shape3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(219, 39, 119, 0.6) 0%, transparent 50%);
    top: 40%;
    left: 40%;
}

.shape4 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.6) 0%, transparent 50%);
    bottom: 10%;
    left: 10%;
}

/* PERF: mesh-move animation removed - static background is 60fps smoother */

.interactive-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.interactive-card:hover {
    z-index: 10;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 20px 0 rgba(147, 51, 234, 0.1);
}

/* --- Banner 3D Tilt Effect --- */
.banner-tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.banner-tilt-card:hover {
    will-change: transform;
}

.banner-card-container {
    perspective: 2000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

/* Force each dynamically-injected banner slide to be full-width and centered */
#banner-slides>div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 100% !important;
    flex-shrink: 0 !important;
}

/* The tilt card itself — constrain max width for clean look */
.banner-tilt-card {
    width: 100% !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Banner Content Styling */
.banner-tilt-card h2 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.banner-tilt-card p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- Liquid Glass Card Style --- */
/* --- Liquid Glass Card Style --- */
/* --- Classic Glass Card (For Static Sections) --- */
.glass-card {
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    backface-visibility: hidden;
    contain: paint layout;
}

/* --- iOS Liquid Glass Card (For Content Items) --- */
.ios-glass-card {
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.9) 0%, rgba(5, 5, 10, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transform: translate3d(0, 0, 0);
    contain: paint layout;
}

/* Glass Shine (Top Gradient) */
.ios-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    /* Top section only */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hover Sheen / Ripple Effect - OPTIMIZED: simplified for performance */
.ios-glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 2;
}

.ios-glass-card:hover::after {
    left: 200%;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-glass-card:hover {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(15, 15, 20, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    /* Brighter inner highlight on hover */
    transform: translateY(-4px) translateZ(0);
}

/* --- Ripple Effect (Click) --- */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.15);
    /* Sharper ripple */
    pointer-events: none;
    z-index: 5;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Heart Burst Animation --- */
@keyframes heartBurst {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.heart-burst {
    animation: heartBurst 0.4s ease-out;
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    width: auto;
    min-width: 260px;
    max-width: 380px;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast-message {
    flex: 1;
}

.toast-time {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}

.toast.removing {
    animation: toastSlideOut 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.toast-info .toast-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.glass-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 40px -5px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-card::before {
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(124, 58, 237, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-card:hover::before {
    opacity: 1;
}

/* --- Gradient Text --- */
.gradient-text {
    background-image: linear-gradient(90deg, #a78bfa, #f472b6, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient-flow 5s linear infinite;
}

@keyframes gradient-flow {
    to {
        background-position: 200% center;
    }
}

/* --- Enhanced Gradient Button --- */
.gradient-btn {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to right, #6d28d9, #9333ea, #be185d);
    background-size: 200% auto;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 15px 0 rgba(196, 125, 243, 0.4);
}

.gradient-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 80%);
    transform: skewX(-25deg);
    transition: left 0.8s ease-in-out;
}

.gradient-btn:hover {
    background-position: right center;
    transform: scale(1.05);
    box-shadow: 0 8px 30px 0 rgba(196, 125, 243, 0.7);
}

.gradient-btn:hover::before {
    left: 150%;
}

/* --- Magnetic Effect --- */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Glass Spotlight Effect --- */
.spotlight-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.group:hover .spotlight-glow {
    opacity: 1;
}

/* Particle effect for buttons */
.particle {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    animation: fly 0.9s ease-out forwards;
    pointer-events: none;
}

@keyframes fly {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(0) translate(var(--x), var(--y));
        opacity: 0;
    }
}

/* --- Page Transition Animations --- */
.page-view {
    animation: slideIn 0.5s ease-out forwards;
    position: relative;
    z-index: 1;
}

.page-view.hidden {
    display: none;
}

body.is-leaving .page-view:not(.hidden) {
    animation: fadeOut 0.4s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.94);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.interactive-card {
    contain: layout style;
    isolation: isolate;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#back-to-top {
    transition: opacity 0.3s, transform 0.3s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6d28d9, #be185d);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #8b5cf6, #db2777);
}

/* Donation Popup Styles */
#donation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#donation-popup.visible {
    opacity: 1;
    pointer-events: auto;
}

.donation-content {
    animation: pulse-border 1.5s infinite alternate;
}

@keyframes pulse-border {
    from {
        box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
    }

    to {
        box-shadow: 0 0 20px rgba(147, 51, 234, 1);
    }
}

/* --- Search Result Highlight (Premium Spotlight) --- */
@keyframes highlightPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
        border-color: rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
        border-color: #818cf8;
        transform: scale(1.01);
    }
}

.highlight-pulse {
    animation: highlightPulse 2.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 50;
    position: relative;
    border-color: #818cf8 !important;
    /* Force border color during anim */
}

.plugin-highlight-box {
    animation: highlightPulse 2.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 0.5rem;
    position: relative;
    z-index: 10;
}

/* --- Professional Modal Pop-In Animation --- */
@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Improved Loading Page Styles --- */
body.no-scroll {
    overflow: hidden;
}

#preloader {
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #000000 100%);
    overflow: hidden;
}

/* Light Leaks Background - PERF optimized */
.light-leak {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    /* PERF: No filter blur, no mix-blend-mode, no animation */
    opacity: 0.3;
}

.leak-1 {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #4f46e5, transparent 70%);
    /* Indigo */
    animation-duration: 12s;
}

.leak-2 {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, #db2777, transparent 70%);
    /* Pink */
    animation-duration: 15s;
    animation-delay: -2s;
}

.leak-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #0d9488, transparent 70%);
    /* Teal */
    width: 400px;
    height: 400px;
    animation-duration: 18s;
    opacity: 0.2;
}

@keyframes leakMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

/* --- Super Glow Banner Effect --- */
.banner-super-glow {
    position: relative;
    z-index: 1;
}

.banner-super-glow::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg,
            var(--glow-color-1),
            var(--glow-color-2),
            var(--glow-color-3),
            var(--glow-color-4));
    z-index: -1;
    border-radius: 2.6rem;
    /* Removed filter: blur(8px) for performance */
    opacity: 0.4;
    animation: banner-pulse 8s linear infinite;
    transition: opacity 0.5s ease;
}

.banner-super-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.4),
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.4));
    z-index: 10;
    border-radius: 2.5rem;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.5;
}

/* PERF: banner-pulse simplified - no animated filter changes */
@keyframes banner-pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.5;
    }
}

/* === Enhanced Modal Animations === */

/* Modal Backdrop Fade In/Out - PERF: no animated backdrop-filter */
@keyframes modalBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalBackdropOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Modal Card Scale + Slide In */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Card Scale + Slide Out */
@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
}

/* Apply animations to modal */
.modal-backdrop-in {
    animation: modalBackdropIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-backdrop-out {
    animation: modalBackdropOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.modal-content-in {
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content-out {
    animation: modalSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Stagger animation for modal children */
@keyframes modalChildFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-child-animate {
    animation: modalChildFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-child-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.modal-child-animate:nth-child(2) {
    animation-delay: 0.15s;
}

.modal-child-animate:nth-child(3) {
    animation-delay: 0.2s;
}

.modal-child-animate:nth-child(4) {
    animation-delay: 0.25s;
}

/* --- UI POLISH: Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

/* Hover State for Cursor - PERF: no backdrop-filter */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* --- UI POLISH: Noise Overlay (DISABLED - invisible at 0.02 opacity but still composited) --- */
.noise-overlay {
    display: none !important;
}

/* --- UI POLISH: Sticky Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(5, 5, 16, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* --- UI POLISH: Scroll To Top --- */
#scroll-to-top {
    position: fixed;
    bottom: 100px;
    /* Moved up to clear AI agent widget */
    right: 27px;
    /* Adjusted to align with AI agent widget horizontally */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 500;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

#scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.6);
}

/* --- Star Border Effect --- */
.star-border-container {
    display: block;
    /* Changed from inline-block to block for full width cards */
    position: relative;
    border-radius: 1.5rem;
    /* Match existing card radius */
    overflow: hidden;
    height: 100%;
    /* Ensure it fills parent */
    transition: transform 0.2s ease-out;
    /* Add hover lift support */
}

/* Hover lift for the whole container */
.interactive-card:hover .star-border-container {
    transform: translateY(-5px);
}

.border-gradient-bottom {
    position: absolute;
    width: 200%;
    height: 50%;
    opacity: 0.15;
    bottom: -12px;
    right: -150%;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.3s ease;
}

.interactive-card:hover .border-gradient-bottom {
    animation: star-movement-bottom 12s linear infinite alternate;
    opacity: 0.35;
}

.border-gradient-top {
    position: absolute;
    opacity: 0.15;
    width: 200%;
    height: 50%;
    top: -12px;
    left: -150%;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.3s ease;
}

.interactive-card:hover .border-gradient-top {
    animation: star-movement-top 12s linear infinite alternate;
    opacity: 0.35;
}

/* Subtle Floating Animation for Premium Feel */
/* Subtle Floating Animation for Premium Feel - Only on hover to save GPU */
.interactive-card {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.interactive-card:hover {
    animation: card-float 4s ease-in-out infinite;
}

@keyframes card-float {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

.interactive-card:hover {
    animation-play-state: paused;
}

.inner-content {
    position: relative;
    /* Use existing glass style variables or overrides */
    /* border: 1px solid rgba(255, 255, 255, 0.1);  Existing glass border */
    background: #050510;
    /* Dark background to make stars pop, matching site bg approx */
    /* color: white; inherited */
    /* font-size: 16px; inherited */
    /* text-align: center; REMOVED to keep existing left alignment */
    /* padding: 16px 26px; REMOVED, controlled by inner classes */
    border-radius: 1.5rem;
    /* Match container */
    z-index: 1;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    /* Important */
}

/* Ensure inner content preserves the flex layout of existing cards */
.inner-content-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes star-movement-bottom {
    0% {
        transform: translate(0%, 0%);
        opacity: 1;
    }

    100% {
        transform: translate(-100%, 0%);
        opacity: 0;
    }
}

@keyframes star-movement-top {
    0% {
        transform: translate(0%, 0%);
        opacity: 1;
    }

    100% {
        transform: translate(100%, 0%);
        opacity: 0;
    }
}


/* --- Glare Hover Effect --- */
.glare-hover {
    --gh-width: 100%;
    --gh-height: 100%;
    --gh-bg: transparent;
    --gh-br: 2rem;
    --gh-border: rgba(255, 255, 255, 0.1);
    --gh-angle: -30deg;
    --gh-rgba: rgba(255, 255, 255, 0.3);
    --gh-duration: 0.8s;
    --gh-size: 300px;

    width: var(--gh-width);
    height: var(--gh-height);
    background: var(--gh-bg);
    border-radius: var(--gh-br);
    /* border: 1px solid var(--gh-border); Use caution with borders if Tailwind handles them */
    overflow: hidden;
    position: relative;
}

.glare-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--gh-angle),
            hsla(0, 0%, 0%, 0) 60%,
            var(--gh-rgba) 70%,
            hsla(0, 0%, 0%, 0),
            hsla(0, 0%, 0%, 0) 100%);
    transition: var(--gh-duration) ease;
    background-size: var(--gh-size) var(--gh-size), 100% 100%;
    background-repeat: no-repeat;
    background-position: -100% -100%, 0 0;
    z-index: 20;
    pointer-events: none;
}

.glare-hover:hover::before {
    background-position: 100% 100%, 0 0;
}

.glare-hover--play-once::before {
    transition: none;
}

.glare-hover--play-once:hover::before {
    transition: var(--gh-duration) ease;
    background-position: 100% 100%, 0 0;
}



/* Fluid Header Navigation Classes - Refined for Compact Alignment */
.fluid-header-gap {
    gap: clamp(4px, 0.8vw, 16px) !important;
}

.fluid-logo {
    font-size: clamp(18px, 1.4vw, 24px) !important;
}

.fluid-search-container {
    width: clamp(110px, 12vw, 280px) !important;
    min-width: 0 !important;
    /* Allow layout to handle shrinking gracefully */
    flex-shrink: 1 !important;
}

.fluid-search-input {
    padding: clamp(5px, 0.5vw, 8px) clamp(10px, 0.8vw, 16px) clamp(5px, 0.5vw, 8px) clamp(26px, 2.2vw, 32px) !important;
    font-size: clamp(10px, 0.85vw, 13px) !important;
}

.fluid-nav-container {
    gap: clamp(1px, 0.45vw, 12px) !important;
    flex-shrink: 1 !important;
}

.fluid-nav-link {
    padding: clamp(4px, 0.4vw, 6px) clamp(4px, 0.7vw, 14px) !important;
    font-size: clamp(10px, 0.85vw, 14px) !important;
}

.fluid-icon-btn {
    width: clamp(28px, 2.2vw, 36px) !important;
    height: clamp(28px, 2.2vw, 36px) !important;
    font-size: clamp(12px, 0.9vw, 15px) !important;
    flex-shrink: 0;
}

.fluid-btn {
    padding: clamp(5px, 0.6vw, 8px) clamp(6px, 1vw, 20px) !important;
    font-size: clamp(10px, 0.9vw, 15px) !important;
    gap: clamp(3px, 0.4vw, 6px) !important;
    flex-shrink: 0;
}

.fluid-btn svg {
    width: clamp(13px, 1vw, 18px) !important;
    height: clamp(13px, 1vw, 18px) !important;
}

/* --- Phase 1: Magnetic Cursor FX --- */
.custom-cursor {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, background 0.3s ease, width 0.3s ease, height 0.3s ease;
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        display: block;
    }

    body {
        cursor: none;
    }

    a,
    button,
    [role='button'],
    .glass-card {
        cursor: none;
    }
}

.cursor-hover {
    transform: scale(3.5);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* --- Phase 2: Skeleton Loaders --- */
.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* --- Phase 3: AI Chat Assistant --- */
#ai-chat-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 10002;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    height: 550px;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: none;
    /* PERF: Disabled until active */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(30px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
    visibility: hidden;
    /* PERF: Tell browser to ignore */
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
    /* backdrop-filter removed for performance */
    background: rgba(5, 5, 8, 0.95);
    visibility: visible;
}

.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 15px;
    border-radius: 16px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
}

.message-ai {
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-user {
    background: #8b5cf6;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 15px;
    color: white;
    font-size: 14px;
    outline: none;
}

.chat-input:focus {
    border-color: #8b5cf6;
}

/* Premium Button Enhancements */
.premium-btn {
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.premium-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.premium-btn:active {
    transform: translateY(0) scale(0.98);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    transform-origin: 0% 50%;
    transform: scaleX(0);
    z-index: 10000;
    will-change: transform;
}

/* --- Premium Footer Styles --- */
.footer-premium {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.footer-premium a {
    position: relative;
    display: inline-block;
}

.footer-premium a:not([class*="bg-"])::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.footer-premium a:not([class*="bg-"]):hover::after {
    width: 100%;
}

.footer-premium .fa-brands {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .footer-premium {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .footer-premium .grid {
        gap: 3rem;
    }
}

/* FAQ Styles */
.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 1rem;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Contact Styles */
.contact-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.contact-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    outline: none;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Smooth Page Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    to {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
}

.is-leaving .page-view:not(.hidden) {
    animation: fadeOut 0.4s var(--ease-out-expo) forwards;
}

/* Fix social icon centering in footer */
.footer-premium a i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* --- Optimized Custom Cursor (CSS Driven) --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(var(--mouse-x, 0), var(--mouse-y, 0), 0) translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    will-change: transform;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #6366f1;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}
