/* ===== Image Styles and Graphics ===== */

/* Hero Background Pattern */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated Background Elements */
.hero-section .animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-section .bg-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(251, 191, 36, 0.1));
    animation: float-bg 20s infinite linear;
}

.hero-section .bg-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-section .bg-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.hero-section .bg-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 70%;
    animation-delay: 10s;
}

@keyframes float-bg {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.3; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.1; }
}

/* Service Card Icons with Gradient */
.service-icon {
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-card:hover .service-icon::before {
    opacity: 1;
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Technology Section Visual Enhancements */
.tech-animation {
    position: relative;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.tech-center::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.tech-center::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    animation: pulse-ring 2s infinite 0.5s;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* Data Flow Lines */
.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.data-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: data-flow 3s infinite linear;
}

.data-line:nth-child(1) {
    top: 25%;
    left: 0;
    width: 60%;
    animation-delay: 0s;
}

.data-line:nth-child(2) {
    top: 50%;
    right: 0;
    width: 40%;
    animation-delay: 1s;
}

.data-line:nth-child(3) {
    bottom: 30%;
    left: 20%;
    width: 50%;
    animation-delay: 2s;
}

@keyframes data-flow {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Geometric Shapes */
.geometric-shape {
    position: absolute;
    border: 2px solid rgba(255, 107, 53, 0.3);
    animation: rotate-slow 20s infinite linear;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid rgba(255, 107, 53, 0.2);
    top: 20%;
    right: 10%;
}

.shape-square {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.2);
    transform: rotate(45deg);
    bottom: 20%;
    left: 15%;
}

.shape-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    top: 70%;
    right: 30%;
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Particle System */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; right: 25%; animation-delay: 3s; }
.particle:nth-child(3) { bottom: 40%; left: 60%; animation-delay: 6s; }
.particle:nth-child(4) { top: 60%; left: 10%; animation-delay: 9s; }
.particle:nth-child(5) { bottom: 20%; right: 40%; animation-delay: 12s; }

@keyframes particle-float {
    0% { transform: translateY(0px) scale(0); opacity: 0; }
    10% { opacity: 1; transform: scale(1); }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* Network Visualization */
.network-visual {
    position: relative;
    width: 100%;
    height: 300px;
    background: radial-gradient(circle at center, rgba(31, 41, 55, 0.8) 0%, rgba(31, 41, 55, 0.95) 100%);
    border-radius: 15px;
    overflow: hidden;
}

.network-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-color);
    animation: node-pulse 2s infinite;
}

.network-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: connection-flow 4s infinite;
}

/* Responsive Image Styles */
.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.responsive-img:hover {
    transform: scale(1.05);
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.8), rgba(251, 191, 36, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

.image-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-overlay:hover .image-overlay-content {
    opacity: 1;
}

/* Loading Animation for Images */
.image-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Print Styles for Images */
@media print {
    .animated-bg,
    .particles,
    .data-flow,
    .geometric-shape {
        display: none !important;
    }
    
    .service-icon,
    .tech-center {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-icon {
        border: 2px solid currentColor;
    }
    
    .floating-icon {
        border: 2px solid currentColor;
    }
    
    .tech-circle {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-icon,
    .tech-center,
    .particle,
    .data-line,
    .geometric-shape {
        animation: none !important;
    }
    
    .service-card:hover {
        transform: none !important;
    }
}

