/* Advanced Design System - Deep Tech Aesthetics */

/* Hexagon grid pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 35px,
            rgba(0, 102, 204, 0.02) 35px,
            rgba(0, 102, 204, 0.02) 36px
        ),
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 35px,
            rgba(0, 102, 204, 0.02) 35px,
            rgba(0, 102, 204, 0.02) 36px
        ),
        repeating-linear-gradient(
            -60deg,
            transparent,
            transparent 35px,
            rgba(0, 102, 204, 0.02) 35px,
            rgba(0, 102, 204, 0.02) 36px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Terminal-style headers */
h2::before {
    content: '> ';
    color: var(--accent);
    opacity: 0.6;
    font-family: 'JetBrains Mono', monospace;
}

h3::before {
    content: '// ';
    color: var(--accent);
    opacity: 0.4;
    font-family: 'JetBrains Mono', monospace;
}

/* Button enhancements */
.button {
    position: relative;
    border: 1px solid rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 10px rgba(0, 102, 204, 0.1);
}

.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 255, 204, 0.1),
        transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.button:hover::after {
    transform: translateX(100%);
}

.button.primary {
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.9),
        rgba(0, 82, 163, 0.9));
    border: 1px solid rgba(0, 255, 204, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 20px rgba(0, 102, 204, 0.3),
        0 0 40px rgba(0, 102, 204, 0.1);
}

/* Card depth and sophistication */
.card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98),
        rgba(250, 250, 250, 0.95));
    border: 1px solid rgba(0, 102, 204, 0.1);
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 102, 204, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card:hover {
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.08),
        0 15px 60px rgba(0, 102, 204, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Tool cards with tech aesthetic */
.tool-card {
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: linear-gradient(45deg, 
        transparent,
        rgba(0, 102, 204, 0.5),
        rgba(0, 255, 204, 0.5),
        transparent);
    transform: translateX(-100%) translateY(-100%);
    transition: transform 0.6s;
    z-index: -1;
}

.tool-card:hover::after {
    transform: translateX(100%) translateY(100%);
}

/* Navigation enhancement */
.header {
    backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.9));
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 -1px 0 rgba(0, 102, 204, 0.05) inset,
        0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
    animation: pulse 2s infinite;
}

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

/* Code elements with tech style */
code {
    background: linear-gradient(135deg, 
        rgba(0, 20, 40, 0.05),
        rgba(0, 40, 80, 0.03));
    border: 1px solid rgba(0, 102, 204, 0.2);
    color: var(--accent);
    padding: 2px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    letter-spacing: 0.05em;
}

/* Input fields enhancement */
.input, .select {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95),
        rgba(250, 250, 250, 0.9));
    border: 1px solid rgba(0, 102, 204, 0.15);
    transition: all 0.3s;
}

.input:focus, .select:focus {
    border-color: rgba(0, 102, 204, 0.5);
    box-shadow: 
        0 0 0 3px rgba(0, 102, 204, 0.1),
        inset 0 1px 2px rgba(0, 102, 204, 0.05);
    background: rgba(255, 255, 255, 1);
}

/* Subtle animation for page loads */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
.card:nth-child(5) { animation-delay: 0.4s; }


/* Professional stats display */
.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--cyber-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
}

/* Tech grid overlay for hero sections */
.hero::before, .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Corner accents for cards */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 102, 204, 0.2);
}

.card::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.card::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body::after {
        opacity: 0.3;
    }
    
    h2::before, h3::before {
        display: none;
    }
}