/* Import network animation styles */
@import url('./network/network-animation.css');

/* Pixfort Theme Matching Styles */
:root {
    /* Pixfort Color Variables */
    --pf-primary-color: #ffceb7;
    --pf-primary-mid: #f468b1;
    --pf-primary-end: #7f75fc;
    --pf-heading-color: #2d3748;
    --pf-heading2-color: #fff;
    --pf-body-color: #718096;
    --pf-body2-color: #2f2f2f;
    --pf-white: #ffffff;
    --pf-gray-1: #f7fafc;
    --pf-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --pf-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Font */
body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Pixfort Color Classes */
.text-heading-default {
    color: var(--pf-heading-color);
}
.text-heading2-default {
    color: var(--pf-heading2-color);
}
.text-body-default {
    color: var(--pf-body-color);
}
.text-body2-default {
    color: #fefefe;
}

.bg-gradient-primary-light {
    background: linear-gradient(135deg, var(--pf-primary-color) 0%, var(--pf-primary-mid) 50%, var(--pf-primary-end) 100%);
}

.pix-gradient-text {
    background: linear-gradient(135deg, #00f0ff, #7b42ff, #ff00e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s linear infinite;
}

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

/* Sticky Navigation Styles */
#navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.55) 100%
    );
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 4px 20px -1px rgba(0, 0, 0, 0.08),
        0 2px 10px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 25px rgba(255, 255, 255, 0.5),
        inset 0 0 8px rgba(255, 206, 183, 0.15);
}

#navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
}

#navbar.scrolled {
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.65) 100%
    );
    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 10px 40px -5px rgba(0, 0, 0, 0.1),
        0 4px 15px -2px rgba(0, 0, 0, 0.05),
        inset 0 0 35px rgba(255, 255, 255, 0.6),
        inset 0 0 12px rgba(255, 206, 183, 0.2);
}

#navbar.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 206, 183, 0.1) 0%, 
        rgba(244, 104, 177, 0.1) 50%, 
        rgba(127, 117, 252, 0.1) 100%
    );
    z-index: -1;
}

/* Pixfort Typography */
.font-weight-bold {
    font-weight: 700;
}

.font-weight-normal {
    font-weight: 400;
}

.secondary-font {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.heading-font {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Pixfort Spacing */
.pix-px-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.pix-py-10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.pix-p-20 {
    padding: 20px;
}

.pix-mb-20 {
    margin-bottom: 20px;
}

/* Pixfort Badge */
.pix-badge {
    display: inline-flex;
    margin-right: 0.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    border-radius: 0.5rem;
    box-shadow: var(--pf-shadow-lg);
}

/* Pixfort Buttons */
.pix-button-primary {
    background: linear-gradient(135deg, var(--pf-primary-color) 0%, var(--pf-primary-mid) 50%, var(--pf-primary-end) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--pf-shadow-lg);
    position: relative;
    overflow: hidden;
}

.pix-button-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pix-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pix-button-primary:hover::before {
    left: 100%;
}

.pix-button-secondary {
    background: white;
    color: var(--pf-heading-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--pf-shadow);
}

.pix-button-secondary:hover {
    border-color: var(--pf-primary-mid);
    color: var(--pf-primary-mid);
    transform: translateY(-2px);
    box-shadow: var(--pf-shadow-lg);
}

.pix-button-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    color: var(--pf-heading-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pix-button-light:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 0 30px rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
}

.pix-button-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pix-button-light:hover::before {
    opacity: 1;
}

/* Pixfort Cards */
.pix-feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--pf-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.pix-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pf-shadow-lg);
    border-color: rgba(244, 104, 177, 0.2);
}

.pix-advantage-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--pf-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.pix-advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pf-shadow-lg);
    border-color: rgba(244, 104, 177, 0.2);
}

/* Icon Boxes */
.pix-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* Stats Cards */
.pix-stat-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--pf-shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pix-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(244, 104, 177, 0.2);
}

/* Benefits */
.pix-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pix-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-primary-color) 0%, var(--pf-primary-mid) 50%, var(--pf-primary-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Image Card */
.pix-image-card {
    position: relative;
}

.pix-stats-overlay {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--pf-shadow-lg);
    text-align: center;
}

/* Workspace Hero Styling */
.workspace-hero-container {
    position: relative;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.workspace-image-wrapper {
    position: relative;
    transform: rotateY(-12deg) rotateX(8deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.workspace-hero-container:hover .workspace-image-wrapper {
    transform: rotateY(-8deg) rotateX(4deg);
}

/* Add animated gradient background */
.workspace-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(
        45deg,
        var(--pf-primary-color),
        var(--pf-primary-mid),
        var(--pf-primary-end),
        var(--pf-primary-color)
    );
    background-size: 400% 400%;
    border-radius: 32px;
    filter: blur(40px);
    opacity: 0.5;
    z-index: -1;
    animation: gradientMove 15s ease infinite;
    transform: translateZ(-50px);
}

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

.workspace-image-wrapper img {
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        -15px 15px 35px -5px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05) contrast(1.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    background: white;
}

/* Add a subtle inner glow */
.workspace-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4),
        transparent,
        transparent,
        rgba(255, 255, 255, 0.2)
    );
    z-index: 2;
    pointer-events: none;
}

.workspace-floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 28px;
    border-radius: 7px;
    box-shadow: 
        0 20px 40px -15px rgba(0, 0, 0, 0.2),
        0 10px 20px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: translateZ(80px);
    animation: floatCard 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    z-index: 999;
}

.workspace-floating-card .text-2xl {
    font-size: 1.75rem;
    line-height: 2rem;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1000;
}

.workspace-floating-card .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
    position: relative;
    z-index: 1000;
}

/* Floating Animations with Performance Optimizations */
@keyframes floatImage {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -20px, 0);
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -15px, 0) rotate(2deg);
    }
}

/* Base styles for floating elements */
.float-image,
.float-card {
    display: block;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    perspective: 1000px;
}

/* Specific element styles */
.float-image {
    animation: floatImage 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.float-card {
    animation: floatCard 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Performance optimizations */
.float-image,
.float-card {
    will-change: transform;
}

/* Pix-gradient-text adjustments */
.pix-gradient-text {
    background: linear-gradient(135deg, #00f0ff, #7b42ff, #ff00e5);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s linear infinite;
    position: relative;
    z-index: 1000;
}

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

/* Hero Content Layering */
.hero-content-left {
    position: relative;
    z-index: 40;
}

/* Highlight Background */
.pix-highlight-bg {
    position: relative;
    z-index: 1;
}

.pix-highlight-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(135deg, var(--pf-primary-color) 0%, var(--pf-primary-mid) 50%, var(--pf-primary-end) 100%);
    z-index: -1;
    border-radius: 8px;
    opacity: 0.3;
    animation: highlight-grow 0.8s ease-out forwards;
    animation-delay: 0.2s;
    transform: scaleX(0);
}

/* Highlight Background for herosection*/
.pix-highlight2-bg {
    position: relative;
    z-index: 1;
}

.pix-highlight2-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(135deg, var(--pf-primary-color) 0%, var(--pf-primary-mid) 50%, var(--pf-primary-end) 100%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: -1;
    border-radius: 8px;
    opacity: 0.8;
    animation: highlight-grow 0.8s ease-out forwards;
    animation-delay: 0.2s;
    transform: scaleX(0);
        
}

@keyframes highlight-grow {
    to {
        transform: scaleX(1);
    }
}

/* Scroll Animations */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease-out;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease-out;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-fade-in-delayed {
    opacity: 0;
    transition: all 1s ease;
}

/* When elements are in view */
.in-view {
    opacity: 1;
    transform: translate(0);
}

/* Staggered animation delays for grid items */
.animate-slide-left:nth-child(1) { transition-delay: 0.1s; }
.animate-slide-left:nth-child(2) { transition-delay: 0.2s; }
.animate-slide-left:nth-child(3) { transition-delay: 0.3s; }
.animate-slide-left:nth-child(4) { transition-delay: 0.4s; }
.animate-slide-left:nth-child(5) { transition-delay: 0.5s; }
.animate-slide-left:nth-child(6) { transition-delay: 0.6s; }

.animate-slide-right:nth-child(1) { transition-delay: 0.1s; }
.animate-slide-right:nth-child(2) { transition-delay: 0.2s; }
.animate-slide-right:nth-child(3) { transition-delay: 0.3s; }
.animate-slide-right:nth-child(4) { transition-delay: 0.4s; }
.animate-slide-right:nth-child(5) { transition-delay: 0.5s; }
.animate-slide-right:nth-child(6) { transition-delay: 0.6s; }

.animate-slide-up:nth-child(1) { transition-delay: 0.1s; }
.animate-slide-up:nth-child(2) { transition-delay: 0.2s; }
.animate-slide-up:nth-child(3) { transition-delay: 0.3s; }
.animate-slide-up:nth-child(4) { transition-delay: 0.4s; }
.animate-slide-up:nth-child(5) { transition-delay: 0.5s; }
.animate-slide-up:nth-child(6) { transition-delay: 0.6s; }

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(0, -15px);
    }
    75% {
        transform: translate(-10px, -10px);
    }
}

/* Fixed Animation Classes */
.pix-animate {
    opacity: 1; /* Changed from 0 to 1 to show content immediately */
    animation-fill-mode: forwards;
}

.fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

/* Network Canvas Styling */
#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    opacity: 0.8;
    z-index: 1;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    z-index: 0;
}

.floating-elements {
    display: none;
}

.floating-element {
    display: none;
}

.floating-icon {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--pf-primary-color), var(--pf-primary-end));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--pf-primary-mid), var(--pf-primary-end));
}

/* Loading States */
img {
    transition: opacity 0.3s ease;
}

img[data-loaded="false"] {
    opacity: 0;
}

img[data-loaded="true"] {
    opacity: 1;
}

/* Additional Pixfort-like Effects */
.shadow-hover-lg {
    transition: box-shadow 0.3s ease;
}

.shadow-hover-lg:hover {
    box-shadow: var(--pf-shadow-lg);
}

.pix-fade-in {
    animation: fade-in-up 0.6s ease-out;
}

/* Typography Matching */
.text-20 {
    font-size: 20px;
}

.text-sm {
    font-size: 14px;
}

/* Pixfort-style rounded corners */
.rounded-lg {
    border-radius: 12px;
}

.rounded-xl {
    border-radius: 16px;
}

/* Remove loading state that was hiding content */
.loading {
    opacity: 0;
    pointer-events: none;
}

.loading * {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
}

.loading-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: url('./logo.png') center/contain no-repeat;
    z-index: 2;
    animation: pulse 2s infinite;
}

.center-logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 2s infinite;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    animation: nodeAppear 0.5s ease-out forwards;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.2));
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    animation: lineGrow 0.5s ease-out forwards;
}

.loading-text {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #4B5563;
    font-weight: 500;
    opacity: 0;
    animation: textFade 0.5s ease-out 0.5s forwards;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.progress-bar {
    margin-top: 2rem;
    width: 200px;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #10B981, #3B82F6);
    width: 0%;
    animation: progressFill 2s ease-out forwards;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
}

@keyframes nodeAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes lineGrow {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes textFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

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

/* Hero Stats Glossy Effect */
.hero-stats > div {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-stats > div::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: gloss 3s infinite linear;
    pointer-events: none;
}

.hero-stats > div:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 12px -3px rgba(0, 0, 0, 0.15),
        0 4px 6px -2px rgba(0, 0, 0, 0.1),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
}

@keyframes gloss {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(50%, 50%) rotate(360deg);
    }
}

/* Timeline Styles */
.border-gradient-primary {
    background: linear-gradient(to bottom, var(--pf-primary-color), var(--pf-primary-mid), var(--pf-primary-end));
    background-clip: padding-box;
}

/* Timeline Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 206, 183, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 206, 183, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 206, 183, 0);
    }
}

.border-gradient-primary .absolute {
    animation: pulse 2s infinite;
}

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

.animated-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, rgba(34, 211, 238, 0.15), rgba(147, 51, 234, 0.15), rgba(236, 72, 153, 0.15), rgba(34, 211, 238, 0.15));
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    pointer-events: none;
}

/* Brand Logos Section Styles */
.brand-logos-section {
    background: linear-gradient(
        to bottom,
        var(--pf-body2-color) 0%,
        #1a1a1a 100%
    );
    position: relative;
    overflow: hidden;
}

.brand-logos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
}

.brand-logo-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.brand-logo {
    width: auto;
    height: auto;
    filter: grayscale(100%) brightness(0.8) contrast(1.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Hover Effects */
.brand-logo-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.3),
        0 5px 15px -5px rgba(0, 0, 0, 0.2);
}

.brand-logo-container:hover::before {
    opacity: 1;
}

.brand-logo-container:hover .brand-logo {
    filter: grayscale(0%) brightness(1) contrast(1);
    transform: scale(1);
}

/* Focus Effects */
.brand-logo-container:focus-within {
    outline: none;
    border-color: rgba(255, 206, 183, 0.3);
    box-shadow: 
        0 0 0 2px rgba(255, 206, 183, 0.1),
        0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Active State */
.brand-logo-container:active {
    transform: translateY(-2px);
}

.navbar-logo {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.timeline-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    isolation: isolate; /* Create a new stacking context */
}

.timeline-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: gloss 6s infinite linear;
    pointer-events: none;
    z-index: -1; /* Place the animation behind the content */
}

.timeline-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 12px -3px rgba(0, 0, 0, 0.15),
        0 4px 6px -2px rgba(0, 0, 0, 0.1),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
}

.timeline-box h3 {
    background: linear-gradient(135deg, var(--pf-primary-color), var(--pf-primary-mid), var(--pf-primary-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.timeline-box p {
    position: relative;
    z-index: 1;
    color: #4a5568;
}

/* Performance Optimizations */
.pix-animate,
.workspace-image-wrapper,
.brand-logo-container,
.pix-button-primary,
.navbar-logo {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Animation Classes */
.animate-slide-left,
.animate-slide-right,
.animate-slide-up {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.animate-slide-left {
    transform: translateX(-20px);
}

.animate-slide-right {
    transform: translateX(20px);
}

.animate-slide-up {
    transform: translateY(20px);
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

/* Loading Screen Optimizations */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
}

/* Network Canvas Optimizations */
#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* Hero Section Network Animation */
.hero-section {
    position: relative;
}

#networkCanvas {
    opacity: 1 !important;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.hero-section:hover #networkCanvas {
    opacity: 1;
}

/* Preloader Styles */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pf-primary-color) 0%, var(--pf-primary-mid) 50%, var(--pf-primary-end) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

.preloader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.preloader-logo {
    position: relative;
    z-index: 10;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: preloader-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.preloader-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.preloader-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: preloader-node-appear 0.5s ease-out forwards;
}

.preloader-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    transform-origin: left center;
    opacity: 0;
    animation: preloader-line-grow 0.8s ease-out forwards;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.preloader-text {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: preloader-text-fade 2s ease-in-out infinite alternate;
}

.preloader-progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1));
    border-radius: 2px;
    animation: preloader-progress-fill 2s linear forwards;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.preloader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.preloader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: preloader-float 3s ease-in-out infinite;
}

/* Preloader Animations */
@keyframes preloader-node-appear {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes preloader-line-grow {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes preloader-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.2);
    }
}

@keyframes preloader-text-fade {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

@keyframes preloader-progress-fill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes preloader-float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(0, -15px);
    }
    75% {
        transform: translate(-10px, -10px);
    }
}

/* Feature Boxes Grid */
.features-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.pix-feature-boxes {
    display: grid;
    grid-template-columns: repeat(2, 50vw);
    grid-template-rows: repeat(2, minmax(350px, auto));
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}

.pix-feature-box {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    text-align: center;
    width: 50vw;
    height: 100%;
}

/* Box 1 - Pastel Orange */
.pix-feature-box:nth-child(1) {
    background: linear-gradient(145deg, #FFD5B5, #FFC5A1);
}

/* Box 2 - Vibrant Pink */
.pix-feature-box:nth-child(2) {
    background: linear-gradient(145deg, #FFB5D9, #FF99C2);
}

/* Box 3 - Vibrant Violet */
.pix-feature-box:nth-child(3) {
    background: linear-gradient(145deg, #e18ffc, #d675fc);
}

/* Box 4 - Vibrant Red */
.pix-feature-box:nth-child(4) {
    background: linear-gradient(145deg, #FFB5B5, #FF9999);
}

/* Hover effect for all boxes */
.pix-feature-box:hover {
    background: linear-gradient(145deg, #ffceb7, #f468b1, #7f75fc);
    background-size: 200% 200%;
    background-position: 100% 100%;
    transform: scale(1.02);
}

/* Content styling */
.pix-feature-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 90%;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.pix-feature-box:hover .pix-feature-content {
    transform: translateY(-5px);
}

/* Background Icon styling */
.pix-feature-bg-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-10deg) perspective(1000px);
    font-size: 280px;
    opacity: 0.25;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    width: 1.2em;
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.pix-feature-bg-icon svg {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.pix-feature-box:hover .pix-feature-bg-icon {
    transform: translate(-50%, -50%) rotate(5deg) perspective(1000px) translateZ(30px);
    opacity: 0.35;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

/* Text styling */
.pix-feature-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: rgba(51, 51, 51, 0.9);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease;
}

.pix-feature-box:hover .pix-feature-title {
    transform: scale(1.05);
    color: white;
}

.pix-feature-description {
    color: rgba(51, 51, 51, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    transition: all 0.5s ease;
}

.pix-feature-box:hover .pix-feature-description {
    color: rgba(255, 255, 255, 1);
}

/* Responsive adjustments for icons */
@media (max-width: 1200px) {
    .pix-feature-bg-icon {
        font-size: 240px;
    }
}

@media (max-width: 768px) {
    .pix-feature-boxes {
        grid-template-columns: 100vw;
        grid-template-rows: repeat(4, auto);
    }
    
    .pix-feature-box {
        width: 100vw;
        min-height: 300px;
    }
    
    .pix-feature-bg-icon {
        font-size: 200px;
    }
    
    .pix-feature-title {
        font-size: 1.5rem;
    }
    
    .pix-feature-description {
        font-size: 0.95rem;
    }
}

.footer-logo {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
    transform-origin: center center;
}

.footer-logo:hover {
    transform: scale(1.05);
}