/* Industrial CNC E-commerce - Premium Theme */

:root {
    /* Industrial Dark Palette */
    --steel-900: #0a0f14;
    --steel-800: #111820;
    --steel-700: #1a232e;
    --steel-600: #242f3d;
    --steel-500: #3d4f63;
    --steel-400: #5a7085;
    --steel-300: #8fa3b8;
    --steel-200: #c5d3e0;
    --steel-100: #e8eef4;
    
    /* Accent Colors */
    --electric: #00d4ff;
    --electric-glow: rgba(0, 212, 255, 0.3);
    --spark: #ff6b35;
    --spark-glow: rgba(255, 107, 53, 0.3);
    --success: #00f5a0;
    --warning: #ffd93d;
    
    /* Metallic Gradients */
    --gradient-metal: linear-gradient(135deg, #2c3e50 0%, #3d566e 50%, #2c3e50 100%);
    --gradient-chrome: linear-gradient(135deg, #c9d6df 0%, #f0f5f9 50%, #c9d6df 100%);
    --gradient-dark: linear-gradient(180deg, #0a0f14 0%, #1a232e 100%);
}

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

/* Base Typography */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--steel-100);
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse-electric {
    0%, 100% { 
        box-shadow: 0 0 20px var(--electric-glow),
                    0 0 40px var(--electric-glow),
                    inset 0 0 20px rgba(0, 212, 255, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px var(--electric-glow),
                    0 0 60px var(--electric-glow),
                    inset 0 0 30px rgba(0, 212, 255, 0.15);
    }
}

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

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

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spark-trail {
    0% { 
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% { 
        opacity: 0;
        transform: translateX(100px) scale(0);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-electric {
    animation: pulse-electric 3s ease-in-out infinite;
}

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ===== HERO SECTION ===== */

.hero-industrial {
    background: linear-gradient(135deg, #0a0f14 0%, #1a232e 50%, #0f1419 100%);
    position: relative;
    overflow: hidden;
}

.hero-industrial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 107, 53, 0.1), transparent);
    pointer-events: none;
}

/* Grid Pattern Overlay */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black, transparent);
}

/* Blueprint Pattern */
.blueprint-pattern {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            rgba(0, 212, 255, 0.05) 49px,
            rgba(0, 212, 255, 0.05) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(0, 212, 255, 0.05) 49px,
            rgba(0, 212, 255, 0.05) 50px
        );
    opacity: 0.5;
}

/* Animated Scanline */
.scanline {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--electric), transparent);
    animation: scanline 8s linear infinite;
    opacity: 0.3;
}

/* ===== TYPOGRAPHY ===== */

.text-gradient-electric {
    background: linear-gradient(135deg, #00d4ff 0%, #00f5a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-spark {
    background: linear-gradient(135deg, #ff6b35 0%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-chrome {
    background: linear-gradient(135deg, #e8eef4 0%, #c5d3e0 50%, #e8eef4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Industrial Headline */
.headline-industrial {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.mono-text {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== BUTTONS ===== */

.btn-electric {
    position: relative;
    background: linear-gradient(135deg, var(--electric) 0%, #0099cc 100%);
    border: 1px solid var(--electric);
    color: white;
    padding: 16px 32px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-electric::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0099cc 0%, var(--electric) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-electric::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-electric:hover {
    color: white;
    box-shadow: 0 0 30px var(--electric-glow),
                0 0 60px var(--electric-glow);
    transform: translateY(-2px);
}

.btn-electric:hover::before {
    opacity: 1;
}

.btn-electric:hover::after {
    width: 300px;
    height: 300px;
}

.btn-electric span {
    position: relative;
    z-index: 1;
}

.btn-spark {
    position: relative;
    background: linear-gradient(135deg, var(--spark) 0%, #ff8c42 100%);
    color: white !important;
    padding: 16px 32px;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.btn-spark * {
    color: white !important;
}

.btn-spark::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-spark:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px var(--spark-glow),
                0 0 60px var(--spark-glow);
    color: white !important;
}

.btn-spark:hover::before {
    left: 100%;
}

.btn-chrome {
    position: relative;
    background: linear-gradient(135deg, #e8eef4 0%, #c5d3e0 50%, #e8eef4 100%);
    color: var(--steel-800);
    padding: 16px 32px;
    font-weight: 700;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-chrome:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== CARDS ===== */

.card-industrial {
    background: var(--steel-800);
    border: 1px solid var(--steel-600);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-industrial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-industrial:hover {
    border-color: var(--electric);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 30px var(--electric-glow);
}

.card-industrial:hover::before {
    opacity: 1;
}

.card-glass {
    background: rgba(26, 35, 46, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.card-hover-glow:hover {
    box-shadow: 0 0 20px var(--electric-glow),
                0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Category Cards */
.category-card-industrial {
    background: linear-gradient(135deg, var(--steel-700) 0%, var(--steel-800) 100%);
    border: 1px solid var(--steel-500);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card-industrial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--electric-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card-industrial:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--electric);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.category-card-industrial:hover::before {
    opacity: 1;
}

/* ===== BADGES ===== */

.badge-electric {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--electric);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.badge-spark {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid var(--spark);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== STATS ===== */

.stat-box {
    position: relative;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 24px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--electric), var(--spark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff !important;
    margin-top: 8px;
}

/* ===== FEATURE ICONS ===== */

.icon-box-electric {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--steel-700) 0%, var(--steel-800) 100%);
    border: 1px solid var(--steel-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--electric);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.icon-box-electric::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, var(--electric), transparent);
    animation: rotate-slow 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-box-electric::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--steel-800);
    z-index: 1;
}

.icon-box-electric i {
    position: relative;
    z-index: 2;
}

.icon-box-electric:hover {
    border-color: var(--electric);
    box-shadow: 0 0 30px var(--electric-glow);
}

.icon-box-electric:hover::before {
    opacity: 1;
}

/* ===== NAVIGATION ===== */

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--steel-900);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--steel-600), var(--steel-700));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--electric), var(--steel-600));
}

/* ===== CTA SECTION ===== */

.cta-industrial {
    background: linear-gradient(135deg, var(--steel-900) 0%, var(--steel-800) 100%);
    position: relative;
    overflow: hidden;
}

.cta-industrial::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--spark-glow), transparent 50%);
    opacity: 0.5;
}

.cta-industrial::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--electric-glow), transparent 50%);
    opacity: 0.5;
}

/* ===== LOADING & EFFECTS ===== */

.shimmer {
    background: linear-gradient(90deg, var(--steel-700) 25%, var(--steel-600) 50%, var(--steel-700) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.spinner {
    border: 3px solid var(--steel-600);
    border-top: 3px solid var(--electric);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: rotate-slow 1s linear infinite;
}

/* ===== BORDERS & DIVIDERS ===== */

.border-gradient-electric {
    border-image: linear-gradient(90deg, var(--electric), var(--spark)) 1;
}

.divider-electric {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--electric), transparent);
}

.divider-glow {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric), var(--spark), transparent);
    box-shadow: 0 0 10px var(--electric-glow);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .animate-fade-in-up,
    .animate-slide-in-left,
    .animate-slide-in-right {
        animation: fadeIn 0.6s ease-out forwards;
    }
    
    .headline-industrial {
        font-size: 2.5rem !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===== PRODUCT CARDS ===== */

.product-card {
    position: relative;
    background: white;
    border: 1px solid var(--steel-200);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.product-card:hover::after {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--electric);
}

/* ===== TOOLTIP ===== */

.tooltip-industrial {
    position: relative;
}

.tooltip-industrial::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: var(--steel-800);
    color: var(--steel-100);
    border: 1px solid var(--steel-600);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip-industrial:hover::after {
    opacity: 1;
}

/* ===== MODERN UTILITIES ===== */

.shadow-electric {
    box-shadow: 0 10px 40px var(--electric-glow);
}

.shadow-spark {
    box-shadow: 0 10px 40px var(--spark-glow);
}

.shadow-industrial {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.glow-electric {
    box-shadow: 0 0 20px var(--electric-glow),
                0 0 40px var(--electric-glow);
}

.glow-spark {
    box-shadow: 0 0 20px var(--spark-glow),
                0 0 40px var(--spark-glow);
}

/* Text glow */
.text-glow-electric {
    text-shadow: 0 0 10px var(--electric-glow),
                 0 0 20px var(--electric-glow);
}

/* ===== CLIP PATHS ===== */

.clip-angle-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.clip-angle-top {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* ===== GLASS MORPHISM ===== */

.glass-dark {
    background: rgba(10, 15, 20, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== LEGACY SUPPORT ===== */

.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.feature-box {
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: scale(1.05);
}

/* Hero Pattern - keeping for backward compatibility but with new style */
.hero-pattern {
    background: linear-gradient(135deg, #0a0f14 0%, #1a232e 50%, #0f1419 100%);
    position: relative;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.15), transparent),
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
}
