@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

/* Additional mobile-specific fixes */
@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem !important;
    }
    
    .floating-vote-btn {
        bottom: 20px !important;
        left: 20px !important;
        padding: 12px 20px !important;
    }
    
    .network-node {
        width: 36px;
        height: 36px;
    }
    
    .network-node.center-node {
        width: 50px;
        height: 50px;
    }
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
}
#morph-bg {
    background: conic-gradient(
        from 0deg at 50% 50%,
        rgba(234, 88, 12, 0.2) 0deg,
        rgba(255, 165, 0, 0.2) 120deg,
        rgba(220, 38, 38, 0.2) 240deg,
        rgba(234, 88, 12, 0.2) 360deg
    );
    background-size: 200% 200%;
    animation: gradientFlow 20s ease infinite;
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Animation classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}
/* Network visualization base styles */
.network-visualization {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
#networkVizContainer {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    margin: 0 auto;
}
.network-node {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    will-change: transform;
}
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
        padding: 0 1rem;
    }
    
    h2, h3 {
        font-size: 1.8rem !important;
        text-align: center;
    }
    
    p, li {
        font-size: 1.1rem !important;
        padding: 0 0.5rem;
    }
/* Layout */
    main {
        padding: 0 !important;
    }

    section {
        margin-bottom: 1.5rem !important;
        padding: 0 !important;
    }
/* Hero section */
    .min-h-\[80vh\] {
        min-height: 50vh !important;
        padding: 1rem !important;
    }
    /* Performance Dashboard */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
.modern-gauge {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto;
    }
    
    .gauge-value {
        font-size: 2rem !important;
    }
    /* Network Visualization */
    #networkViz {
        height: 60vh !important;
        min-height: 350px;
        padding: 1rem;
    }
    .network-node {
        width: 45px;
        height: 45px;
    }
    .network-node.center-node {
        width: 70px;
        height: 70px;
        position: absolute;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
    }
    /* Account Highlights */
    .grid.grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
.bg-gradient-to-br {
        padding: 1.5rem !important;
    }
    /* Research & AI Prompts */
    .grid.grid-cols-1.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
/* Interactive Elements */
    .flex.justify-center.space-x-4 {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
button, .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Video */
    .aspect-video {
        aspect-ratio: 16/9;
    }
    /* Vote Visualizer */
    vote-visualizer {
        padding: 1rem !important;
    }

    .vote-card {
        min-width: 100% !important;
        padding: 1.25rem !important;
    }
    
    .vote-name {
        font-size: 1.1rem !important;
    }
    
    .vote-role {
        font-size: 0.95rem !important;
    }
    /* Optimize animations for mobile */
    .particle-network,
    .quantum-dots,
    .data-streams {
        opacity: 0.3;
    }
/* Optimize shadows and effects */
    .shadow-lg, .hover\:shadow-xl {
        box-shadow: none !important;
    }
    /* Enhanced touch targets */
    a, button {
        min-height: 48px;
        min-width: 48px;
        padding: 0.75rem 1.25rem !important;
    }
    /* Hero section adjustments */
    .min-h-\[80vh\] {
        min-height: 65vh !important;
        padding: 1rem 0 !important;
    }
/* Better spacing for sections */
    section {
        margin-bottom: 2rem !important;
        padding: 0 !important;
    }
/* Center align all content */
    .text-center-mobile {
        text-align: center !important;
    }
}
.network-node.center-node {
    width: 80px;
    height: 80px;
    background: rgba(234, 88, 12, 0.9);
    box-shadow: 0 0 0 8px rgba(234, 88, 12, 0.3), 
                0 10px 30px rgba(234, 88, 12, 0.4);
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}
.strong-connection {
    background: rgba(234, 88, 12, 0.7);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.3);
}

.medium-connection {
    background: rgba(249, 115, 22, 0.7);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
}

.weak-connection {
    background: rgba(253, 186, 116, 0.7);
    box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.3);
}
.network-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

/* Center text in gauge circles */
.modern-gauge svg text {
    dominant-baseline: middle;
    text-anchor: middle;
}

.modern-gauge .gauge-value {
    font-size: 2.5rem;
    font-weight: 700;
    dominant-baseline: middle;
    text-anchor: middle;
    transition: all 0.3s ease;
}

.modern-gauge .gauge-unit {
    font-size: 0.875rem;
    opacity: 0.8;
    dominant-baseline: middle;
    text-anchor: middle;
}
/* Kelly Services logo container */
.bg-white {
    background-color: white !important;
}
.network-line {
    position: absolute;
    height: 2px;
    transform-origin: 0 0;
    z-index: 1;
    background: linear-gradient(to right, 
        rgba(234, 88, 12, 0.8),
        rgba(255, 165, 0, 0.8),
        rgba(220, 38, 38, 0.8),
        rgba(234, 88, 12, 0.8));
    background-size: 300% 100%;
    animation: lineGlow 3s linear infinite;
}

@keyframes lineGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
.network-node:hover {
    z-index: 20;
}
.network-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.9);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.network-node:hover .network-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* Modern Circular Gauges */
.modern-gauge {
    --progress: 0;
    --overflow: 0;
    --glow-opacity: 0;
}

.modern-gauge .progress-track {
    stroke-dashoffset: calc(314 * (1 - min(var(--progress), 1)));
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
    transition: stroke-dashoffset 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.modern-gauge .overflow-track {
    stroke-dashoffset: calc(314 * (1 - max(var(--overflow), 0)));
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.7));
    opacity: var(--glow-opacity);
    transition: all 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.modern-gauge .gauge-value {
    font-size: 2.5rem;
    font-weight: 700;
    dominant-baseline: middle;
    transition: all 0.3s ease;
}

.modern-gauge .gauge-unit {
    font-size: 0.875rem;
    opacity: 0.8;
    dominant-baseline: middle;
}

.modern-gauge:hover .progress-track {
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8));
}

.modern-gauge.overachieved .overflow-track {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5)); }
    50% { filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8)); }
    100% { filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5)); }
}
/* Innovation & Research Section */
.perspective-card {
    perspective: 1000px;
}

.perspective-card:hover {
    transform: translateY(-2px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 25px 50px -12px rgba(234, 88, 12, 0.25);
}
/* New Research Animation */
.research-animation-container {
    position: relative;
    padding-top: 61.54%;
    height: 0;
    overflow: hidden;
    aspect-ratio: 16.25/10;
    border-radius: 1rem;
    isolation: isolate;
}

.particle-network {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(234, 88, 12, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    animation: particlePulse 8s infinite alternate;
}

.quantum-dots {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px),
        radial-gradient(circle, rgba(234,88,12,0.6) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: quantumDrift 20s linear infinite;
    opacity: 0.7;
}

.data-streams {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(234,88,12,0.1) 50%),
        linear-gradient(transparent 50%, rgba(249,115,22,0.1) 50%);
    background-size: 60px 60px;
    animation: dataFlow 15s linear infinite;
}

.quantum-orb {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234,88,12,0.4) 0%, transparent 70%);
    box-shadow: 0 0 30px rgba(234,88,12,0.4);
    animation: orbPulse 3s infinite ease-in-out;
}

@keyframes particlePulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

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

@keyframes dataFlow {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}
/* Research and Email card animations */
.research-animation-container .animate-pulse,
.vision-animation-container .animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.research-animation-container .animate-spin,
.vision-animation-container .animate-spin {
    animation: spin 3s linear infinite;
}

.vision-animation-container .animate-float {
    animation: float 3s infinite ease-in-out;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
/* AI Workflow Container */
.ai-workflow-container {
    border: 1px solid rgba(234, 88, 12, 0.2);
    transition: all 0.3s ease;
    position: relative;
    padding-top: 61.54%; /* 16.25:10 aspect ratio */
    height: 0;
    overflow: hidden;
    aspect-ratio: 16.25/10;
    max-width: 100%;
}
.ai-workflow-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ai-workflow-container:hover {
    border-color: rgba(234, 88, 12, 0.5);
    box-shadow: inset 0 0 30px rgba(234, 88, 12, 0.1);
}
/* New Enterprise Vision Animation */
.enterprise-vision-animation {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    max-width: 100%;
}
.strategic-layers {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(45deg, 
            transparent, 
            transparent 20px, 
            rgba(249, 115, 22, 0.1) 20px, 
            rgba(249, 115, 22, 0.1) 40px);
    animation: layerShift 15s linear infinite;
}

.vision-rays {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at center, 
            rgba(234, 88, 12, 0.2) 0%, 
            transparent 70%);
    animation: rayPulse 8s infinite alternate;
}

.leadership-core {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        rgba(249, 115, 22, 0.8) 0%, 
        rgba(234, 88, 12, 0.6) 50%, 
        transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: corePulse 4s infinite ease-in-out;
}

.vision-orb {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 45deg,
        rgba(249, 115, 22, 0.8),
        rgba(234, 88, 12, 0.8),
        rgba(249, 115, 22, 0.8)
    );
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.6);
    animation: visionSpin 6s linear infinite;
}

@keyframes layerShift {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

@keyframes rayPulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

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

@keyframes visionSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .research-animation-container,
    .ai-workflow-container,
    .vision-animation-container {
        aspect-ratio: 16.25/10;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .research-animation-container,
    .ai-workflow-container,
    .vision-animation-container {
        aspect-ratio: 16/9;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .grid.grid-cols-1.lg\:grid-cols-3 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
/* Zoomable image styles */
#zoomableImage {
    transition: transform 0.2s ease-out;
    min-width: 100%;
    min-height: 100%;
    will-change: transform;
}

/* Scrollbar styling for zoom container */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Zoom controls */
.absolute.top-6.left-6 {
    background: rgba(26, 26, 26, 0.7);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.absolute.top-6.left-6 button {
    transition: all 0.2s ease;
}

.absolute.top-6.left-6 button:hover {
    transform: scale(1.1);
    background: rgba(234, 88, 12, 0.5) !important;
}
/* Responsive adjustments */
@media (max-width: 768px) {
h1 {
        font-size: 3.5rem !important;
    }
    
    .network-visualization {
        height: 60vh !important;
    }
}