/* Sathuno Tech - Custom Styles */

/* CSS Variables for theming */
:root {
    --primary-hue: 199;
    --secondary-hue: 292;
    --accent-cyan: #06b6d4;
    --accent-magenta: #ec4899;
    --accent-lime: #84cc16;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #d946ef);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #38bdf8, #e879f9);
}

/* Selection color */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: #fff;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Glass morphism utilities */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Neon glow effects */
.neon-primary {
    box-shadow: 0 0 5px #0ea5e9,
                0 0 10px #0ea5e9,
                0 0 20px #0ea5e9,
                0 0 40px #0ea5e9;
}

.neon-secondary {
    box-shadow: 0 0 5px #d946ef,
                0 0 10px #d946ef,
                0 0 20px #d946ef,
                0 0 40px #d946ef;
}

/* Circuit line animation */
.circuit-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-circuit 3s ease-out forwards;
}

@keyframes draw-circuit {
    to {
        stroke-dashoffset: 0;
    }
}

/* Holographic effect */
.holographic {
    background: linear-gradient(
        135deg,
        rgba(14, 165, 233, 0.1) 0%,
        rgba(217, 70, 239, 0.1) 25%,
        rgba(6, 182, 212, 0.1) 50%,
        rgba(236, 72, 153, 0.1) 75%,
        rgba(132, 204, 22, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: holographic-shift 8s ease infinite;
}

@keyframes holographic-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Scan line effect */
.scan-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(14, 165, 233, 0.03) 2px,
        rgba(14, 165, 233, 0.03) 4px
    );
    pointer-events: none;
}

/* Glitch effect on hover */
.glitch-hover {
    position: relative;
}

.glitch-hover:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

/* Magnetic button effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Loading shimmer */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Custom form styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #f8fafc;
    -webkit-box-shadow: 0 0 0px 1000px #1e293b inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Product card hover lift */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.2);
}

/* Service card icon pulse */
.service-icon-pulse {
    animation: icon-pulse 2s ease-in-out infinite;
}

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

/* Testimonial quote decoration */
.quote-decoration::before {
    content: '"';
    font-size: 6rem;
    line-height: 1;
    color: rgba(14, 165, 233, 0.1);
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: Georgia, serif;
}

/* Navigation blur on scroll */
.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.8);
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slide-in-right 0.3s ease-out;
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Success checkmark animation */
.checkmark-animation {
    animation: checkmark-draw 0.5s ease-out forwards;
}

@keyframes checkmark-draw {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0ea5e9;
    border-radius: 50%;
    opacity: 0.5;
    animation: float-particle 10s infinite;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}