/* NanoTekno Signature Styles - Premium Corporate */

/* Animated Grid Background */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(to right, #1FA6A0 1px, transparent 1px),
        linear-gradient(to bottom, #1FA6A0 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Gradient Mesh Background */
.gradient-mesh {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(31, 166, 160, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(15, 42, 68, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(31, 166, 160, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-card-dark {
    background: rgba(15, 42, 68, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(31, 166, 160, 0.1);
}

/* Premium Hover Effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 42, 68, 0.15);
}

.hover-glow {
    position: relative;
    transition: all 0.3s ease;
}

.hover-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(31, 166, 160, 0.4), rgba(15, 42, 68, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-glow:hover::before {
    opacity: 1;
}

/* Circuit Pattern SVG Background */
.circuit-bg {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10h20v20h-20z M40 10h20v20h-20z M70 10h20v20h-20z M10 40h20v20h-20z M40 40h20v20h-20z M70 40h20v20h-20z M10 70h20v20h-20z M40 70h20v20h-20z M70 70h20v20h-20z' stroke='%231FA6A0' fill='none' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%231FA6A0'/%3E%3Ccircle cx='60' cy='60' r='2' fill='%231FA6A0'/%3E%3C/svg%3E");
}

/* Smooth Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Image overlay effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 42, 68, 0.6), rgba(31, 166, 160, 0.4));
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 0.8;
}

/* Icon glow effect */
.icon-glow {
    filter: drop-shadow(0 0 8px rgba(31, 166, 160, 0.3));
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .grid-bg {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hover-lift:hover {
        transform: none;
    }
}

/* Premium Link Underline */
.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #1FA6A0, #0F2A44);
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Feature card image container */
.feature-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.feature-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Shimmer effect for loading state */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

