/* ============================================================
   GREAT TECHNOLOGIES - MODERN UI ENHANCEMENTS
   Futuristic, premium effects: glassmorphism, neon, gradients
   ============================================================ */

/* === Animated Mesh Background === */
.mesh-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.mesh-bg::before,
.mesh-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: meshFloat 20s ease-in-out infinite;
}
.mesh-bg::before {
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    top: -200px;
    left: -100px;
}
.mesh-bg::after {
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    bottom: -200px;
    right: -100px;
    animation-delay: -10s;
}
@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-80px, 80px) scale(0.95); }
}

/* === Animated Grid === */
.tech-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* === Floating Particles === */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
    animation: particleFloat 15s linear infinite;
    opacity: 0;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
}

/* === Premium Glass Card === */
.glass-premium {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(96,165,250,0.4), transparent 40%, transparent 60%, rgba(168,85,247,0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
.glass-premium:hover {
    transform: translateY(-8px);
    border-color: rgba(96,165,250,0.4);
    box-shadow: 0 20px 60px rgba(59,130,246,0.25), 0 0 80px rgba(139,92,246,0.15);
}
.glass-premium:hover::before {
    opacity: 1;
}

/* === Neon Glow Button === */
.btn-neon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(59,130,246,0.3), 0 0 0 0 rgba(139,92,246,0.5);
}
.btn-neon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.4s;
}
.btn-neon span, .btn-neon i, .btn-neon svg {
    position: relative;
    z-index: 1;
}
.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(59,130,246,0.5), 0 0 60px rgba(139,92,246,0.4);
}
.btn-neon:hover::before {
    opacity: 1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    transition: all 0.4s ease;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(96,165,250,0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* === Service Card Premium === */
.service-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(15,23,42,0.7), rgba(30,41,59,0.5));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96,165,250,0.1), transparent);
    transition: left 0.7s;
}
.service-card:hover::before {
    left: 100%;
}
.service-card .icon-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s;
}
.service-card:hover .icon-wrap {
    transform: rotate(-8deg) scale(1.1);
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(96,165,250,0.4);
    box-shadow: 0 25px 60px rgba(59,130,246,0.2);
}

/* === Animated Tech Badge === */
.tech-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(96,165,250,0.3);
    border-radius: 999px;
    color: #93c5fd;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}
.tech-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* === Holographic Title === */
.holo-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: holoShift 4s ease infinite;
}
@keyframes holoShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === Marquee Tech Stack === */
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marqueeMove 30s linear infinite;
    width: max-content;
}
@keyframes marqueeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Stats Counter Card === */
.stat-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(139,92,246,0.05));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    overflow: hidden;
    transition: all 0.4s ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}
.stat-card:hover::before {
    transform: scaleX(1);
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96,165,250,0.3);
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* === Process Step === */
.process-step {
    position: relative;
    padding: 2rem;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    transition: all 0.4s ease;
}
.process-step .step-num {
    position: absolute;
    top: -20px;
    left: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 10px 25px rgba(59,130,246,0.4);
}
.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(96,165,250,0.4);
    box-shadow: 0 20px 50px rgba(59,130,246,0.15);
}

/* === Animated Border Card === */
.border-anim {
    position: relative;
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
}
.border-anim::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, #3b82f6, #8b5cf6, transparent 30%);
    animation: rotateBorder 4s linear infinite;
}
.border-anim::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0f172a;
    border-radius: 18px;
}
.border-anim > * {
    position: relative;
    z-index: 1;
}
@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}

/* === CTA Premium === */
.cta-premium {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 50%, #831843 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(59,130,246,0.3);
}
.cta-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(96,165,250,0.4), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168,85,247,0.4), transparent 50%);
    animation: ctaGlow 8s ease infinite;
}
@keyframes ctaGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* === Hover Lift === */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-6px);
}

/* === Glow on Hover === */
.glow-hover {
    transition: all 0.4s ease;
}
.glow-hover:hover {
    box-shadow: 0 0 30px rgba(96,165,250,0.4), 0 0 60px rgba(139,92,246,0.2);
}

/* === Section Title === */
.section-title-modern {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* === Decorative Lines === */
.deco-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

/* === Reveal Animation === */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile Optimizations === */
@media (max-width: 640px) {
    .stat-number { font-size: 2.25rem; }
    .btn-neon, .btn-ghost { padding: 0.875rem 1.5rem; font-size: 0.95rem; }
}
